Bug Summary

File:root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/nsCOMPtr.h
Warning:line 339, column 5
Branch condition evaluates to a garbage value

Annotated Source Code

Press '?' to see keyboard shortcuts

clang -cc1 -cc1 -triple x86_64-pc-linux-gnu -O2 -analyze -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name ActorsParent.cpp -analyzer-checker=core -analyzer-checker=apiModeling -analyzer-checker=unix -analyzer-checker=deadcode -analyzer-checker=cplusplus -analyzer-checker=security.insecureAPI.UncheckedReturn -analyzer-checker=security.insecureAPI.getpw -analyzer-checker=security.insecureAPI.gets -analyzer-checker=security.insecureAPI.mktemp -analyzer-checker=security.insecureAPI.mkstemp -analyzer-checker=security.insecureAPI.vfork -analyzer-checker=nullability.NullPassedToNonnull -analyzer-checker=nullability.NullReturnedFromNonnull -analyzer-output plist -w -setup-static-analyzer -analyzer-config-compatibility-mode=true -mrelocation-model pic -pic-level 2 -fhalf-no-semantic-interposition -mframe-pointer=all -relaxed-aliasing -ffp-contract=off -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu x86-64 -tune-cpu generic -debugger-tuning=gdb -fdebug-compilation-dir=/root/firefox-clang/obj-x86_64-pc-linux-gnu/dom/indexedDB -fcoverage-compilation-dir=/root/firefox-clang/obj-x86_64-pc-linux-gnu/dom/indexedDB -resource-dir /usr/lib/llvm-23/lib/clang/23 -include /root/firefox-clang/config/gcc_hidden.h -include /root/firefox-clang/obj-x86_64-pc-linux-gnu/mozilla-config.h -I /root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/stl_wrappers -D _GLIBCXX_ASSERTIONS=1 -I /root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/system_wrappers -U _FORTIFY_SOURCE -D _FORTIFY_SOURCE=2 -D DEBUG=1 -D MOZ_HAS_MOZGLUE -D MOZILLA_INTERNAL_API -D IMPL_LIBXUL -D MOZ_SUPPORT_LEAKCHECKING -D STATIC_EXPORTABLE_JS_API -I /root/firefox-clang/dom/indexedDB -I /root/firefox-clang/obj-x86_64-pc-linux-gnu/dom/indexedDB -I /root/firefox-clang/obj-x86_64-pc-linux-gnu/ipc/ipdl/_ipdlheaders -I /root/firefox-clang/ipc/chromium/src -I /root/firefox-clang/third_party/abseil-cpp -I /root/firefox-clang/dom/base -I /root/firefox-clang/dom/storage -I /root/firefox-clang/ipc/glue -I /root/firefox-clang/third_party/sqlite3/src -I /root/firefox-clang/xpcom/build -I /root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include -I /root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/nspr -I /root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/nss -D MOZILLA_CLIENT -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/16/../../../../include/c++/16 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/16/../../../../include/x86_64-linux-gnu/c++/16 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/16/../../../../include/c++/16/backward -internal-isystem /usr/lib/llvm-23/lib/clang/23/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/16/../../../../x86_64-linux-gnu/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -Wno-error=pessimizing-move -Wno-error=large-by-value-copy=128 -Wno-error=implicit-int-float-conversion -Wno-error=thread-safety-analysis -Wno-error=tautological-type-limit-compare -Wno-invalid-offsetof -Wno-range-loop-analysis -Wno-deprecated-anon-enum-enum-conversion -Wno-deprecated-enum-enum-conversion -Wno-inline-new-delete -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=free-nonheap-object -Wno-error=atomic-alignment -Wno-error=deprecated-builtins -Wno-psabi -Wno-error=builtin-macro-redefined -Wno-vla-cxx-extension -Wno-unknown-warning-option -Wno-character-conversion -std=gnu++20 -fdeprecated-macro -ferror-limit 19 -fstrict-flex-arrays=1 -stack-protector 2 -fstack-clash-protection -ftrivial-auto-var-init=pattern -fno-rtti -fgnuc-version=4.2.1 -fno-implicit-modules -fskip-odr-check-in-gmf -fno-sized-deallocation -fno-aligned-allocation -fdiagnostics-absolute-paths -vectorize-loops -vectorize-slp -analyzer-checker optin.performance.Padding -analyzer-output=html -analyzer-config stable-report-filename=true -mllvm -dwarf-linkage-names=Abstract -faddrsig -fdwarf2-cfi-asm -o /tmp/scan-build-2026-10-20-101348-366856-1 -x c++ /root/firefox-clang/dom/indexedDB/ActorsParent.cpp

/root/firefox-clang/dom/indexedDB/ActorsParent.cpp

→
1/* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
3 * You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5#include "ActorsParent.h"
6
7#include <inttypes.h>
8#include <math.h>
9#include <stdlib.h>
10#include <string.h>
11
12#include <algorithm>
13#include <cstdint>
14#include <iterator>
15#include <new>
16#include <numeric>
17#include <type_traits>
18#include <utility>
19
20#include "ActorsParentCommon.h"
21#include "CrashAnnotations.h"
22#include "DBSchema.h"
23#include "DatabaseFileInfo.h"
24#include "DatabaseFileManager.h"
25#include "DatabaseFileManagerImpl.h"
26#include "ErrorList.h"
27#include "IDBCursorType.h"
28#include "IDBObjectStore.h"
29#include "IDBTransaction.h"
30#include "IndexedDBCipherKeyManager.h"
31#include "IndexedDBCommon.h"
32#include "IndexedDatabaseInlines.h"
33#include "IndexedDatabaseManager.h"
34#include "KeyPath.h"
35#include "MainThreadUtils.h"
36#include "NotifyUtils.h"
37#include "ProfilerHelpers.h"
38#include "ReportInternalError.h"
39#include "SafeRefPtr.h"
40#include "SchemaUpgrades.h"
41#include "TransactionOpResult.h"
42#include "chrome/common/ipc_channel.h"
43#include "ipc/IPCMessageUtils.h"
44#include "js/RootingAPI.h"
45#include "js/StructuredClone.h"
46#include "js/Value.h"
47#include "jsapi.h"
48#include "mozIStorageAsyncConnection.h"
49#include "mozIStorageConnection.h"
50#include "mozIStorageFunction.h"
51#include "mozIStorageProgressHandler.h"
52#include "mozIStorageService.h"
53#include "mozIStorageStatement.h"
54#include "mozIStorageValueArray.h"
55#include "mozStorageCID.h"
56#include "mozStorageHelper.h"
57#include "mozilla/Algorithm.h"
58#include "mozilla/ArrayAlgorithm.h"
59#include "mozilla/ArrayIterator.h"
60#include "mozilla/Assertions.h"
61#include "mozilla/Atomics.h"
62#include "mozilla/Attributes.h"
63#include "mozilla/Casting.h"
64#include "mozilla/CondVar.h"
65#include "mozilla/DebugOnly.h"
66#include "mozilla/EndianUtils.h"
67#include "mozilla/ErrorNames.h"
68#include "mozilla/ErrorResult.h"
69#include "mozilla/GeckoTrace.h"
70#include "mozilla/InitializedOnce.h"
71#include "mozilla/Logging.h"
72#include "mozilla/Maybe.h"
73#include "mozilla/Monitor.h"
74#include "mozilla/Mutex.h"
75#include "mozilla/NotNull.h"
76#include "mozilla/Preferences.h"
77#include "mozilla/ProfilerLabels.h"
78#include "mozilla/RefCountType.h"
79#include "mozilla/RefCounted.h"
80#include "mozilla/RemoteLazyInputStreamParent.h"
81#include "mozilla/RemoteLazyInputStreamStorage.h"
82#include "mozilla/Result.h"
83#include "mozilla/ResultExtensions.h"
84#include "mozilla/SchedulerGroup.h"
85#include "mozilla/SnappyCompressOutputStream.h"
86#include "mozilla/SpinEventLoopUntil.h"
87#include "mozilla/StaticPtr.h"
88#include "mozilla/TimeStamp.h"
89#include "mozilla/UniquePtr.h"
90#include "mozilla/Variant.h"
91#include "mozilla/dom/BlobImpl.h"
92#include "mozilla/dom/ContentParent.h"
93#include "mozilla/dom/FileBlobImpl.h"
94#include "mozilla/dom/FlippedOnce.h"
95#include "mozilla/dom/IDBCursorBinding.h"
96#include "mozilla/dom/IDBFactory.h"
97#include "mozilla/dom/IPCBlob.h"
98#include "mozilla/dom/IPCBlobUtils.h"
99#include "mozilla/dom/IndexedDatabase.h"
100#include "mozilla/dom/Nullable.h"
101#include "mozilla/dom/PContentParent.h"
102#include "mozilla/dom/ScriptSettings.h"
103#include "mozilla/dom/indexedDB/IDBResult.h"
104#include "mozilla/dom/indexedDB/Key.h"
105#include "mozilla/dom/indexedDB/PBackgroundIDBCursor.h"
106#include "mozilla/dom/indexedDB/PBackgroundIDBCursorParent.h"
107#include "mozilla/dom/indexedDB/PBackgroundIDBDatabase.h"
108#include "mozilla/dom/indexedDB/PBackgroundIDBDatabaseFileParent.h"
109#include "mozilla/dom/indexedDB/PBackgroundIDBDatabaseParent.h"
110#include "mozilla/dom/indexedDB/PBackgroundIDBFactory.h"
111#include "mozilla/dom/indexedDB/PBackgroundIDBFactoryParent.h"
112#include "mozilla/dom/indexedDB/PBackgroundIDBFactoryRequestParent.h"
113#include "mozilla/dom/indexedDB/PBackgroundIDBRequest.h"
114#include "mozilla/dom/indexedDB/PBackgroundIDBRequestParent.h"
115#include "mozilla/dom/indexedDB/PBackgroundIDBSharedTypes.h"
116#include "mozilla/dom/indexedDB/PBackgroundIDBTransactionParent.h"
117#include "mozilla/dom/indexedDB/PBackgroundIDBVersionChangeTransactionParent.h"
118#include "mozilla/dom/indexedDB/PBackgroundIndexedDBUtilsParent.h"
119#include "mozilla/dom/ipc/IdType.h"
120#include "mozilla/dom/quota/ArtificialFailure.h"
121#include "mozilla/dom/quota/Assertions.h"
122#include "mozilla/dom/quota/CachingDatabaseConnection.h"
123#include "mozilla/dom/quota/Client.h"
124#include "mozilla/dom/quota/ClientDirectoryLock.h"
125#include "mozilla/dom/quota/ClientDirectoryLockHandle.h"
126#include "mozilla/dom/quota/ClientImpl.h"
127#include "mozilla/dom/quota/ConditionalCompilation.h"
128#include "mozilla/dom/quota/Date.h"
129#include "mozilla/dom/quota/DecryptingInputStream_impl.h"
130#include "mozilla/dom/quota/DirectoryLock.h"
131#include "mozilla/dom/quota/DirectoryLockInlines.h"
132#include "mozilla/dom/quota/EncryptingOutputStream_impl.h"
133#include "mozilla/dom/quota/ErrorHandling.h"
134#include "mozilla/dom/quota/FileStreams.h"
135#include "mozilla/dom/quota/OriginScope.h"
136#include "mozilla/dom/quota/PersistenceScope.h"
137#include "mozilla/dom/quota/PersistenceType.h"
138#include "mozilla/dom/quota/PrincipalUtils.h"
139#include "mozilla/dom/quota/QuotaCommon.h"
140#include "mozilla/dom/quota/QuotaManager.h"
141#include "mozilla/dom/quota/QuotaObject.h"
142#include "mozilla/dom/quota/ResultExtensions.h"
143#include "mozilla/dom/quota/ThreadUtils.h"
144#include "mozilla/dom/quota/UniversalDirectoryLock.h"
145#include "mozilla/dom/quota/UsageInfo.h"
146#include "mozilla/fallible.h"
147#include "mozilla/glean/DomIndexedDBMetrics.h"
148#include "mozilla/ipc/BackgroundParent.h"
149#include "mozilla/ipc/BackgroundUtils.h"
150#include "mozilla/ipc/InputStreamParams.h"
151#include "mozilla/ipc/PBackgroundParent.h"
152#include "mozilla/ipc/PBackgroundSharedTypes.h"
153#include "mozilla/ipc/ProtocolUtils.h"
154#include "mozilla/mozalloc.h"
155#include "mozilla/storage/Variant.h"
156#include "nsBaseHashtable.h"
157#include "nsCOMPtr.h"
158#include "nsClassHashtable.h"
159#include "nsContentUtils.h"
160#include "nsDebug.h"
161#include "nsError.h"
162#include "nsEscape.h"
163#include "nsHashKeys.h"
164#include "nsIAsyncInputStream.h"
165#include "nsID.h"
166#include "nsIDUtils.h"
167#include "nsIDirectoryEnumerator.h"
168#include "nsIEventTarget.h"
169#include "nsIFile.h"
170#include "nsIFileProtocolHandler.h"
171#include "nsIFileStreams.h"
172#include "nsIFileURL.h"
173#include "nsIInputStream.h"
174#include "nsIOutputStream.h"
175#include "nsIProtocolHandler.h"
176#include "nsIRunnable.h"
177#include "nsISupports.h"
178#include "nsISupportsPriority.h"
179#include "nsISupportsUtils.h"
180#include "nsIThread.h"
181#include "nsIThreadInternal.h"
182#include "nsITimer.h"
183#include "nsIURIMutator.h"
184#include "nsIVariant.h"
185#include "nsLiteralString.h"
186#include "nsNetCID.h"
187#include "nsPrintfCString.h"
188#include "nsProxyRelease.h"
189#include "nsServiceManagerUtils.h"
190#include "nsStreamUtils.h"
191#include "nsString.h"
192#include "nsStringFlags.h"
193#include "nsStringFwd.h"
194#include "nsTArray.h"
195#include "nsTHashMap.h"
196#include "nsTHashSet.h"
197#include "nsTHashtable.h"
198#include "nsTLiteralString.h"
199#include "nsTStringRepr.h"
200#include "nsThreadPool.h"
201#include "nsThreadUtils.h"
202#include "nscore.h"
203#include "prinrval.h"
204#include "prio.h"
205#include "prsystem.h"
206#include "prthread.h"
207#include "prtime.h"
208#include "prtypes.h"
209#include "snappy/snappy.h"
210
211struct JSContext;
212class JSObject;
213template <class T>
214class nsPtrHashKey;
215
216#define IDB_DEBUG_LOG(_args) \
217 MOZ_LOG(IndexedDatabaseManager::GetLoggingModule(), LogLevel::Debug, _args)do { const ::mozilla::LogModule* moz_real_module = IndexedDatabaseManager
::GetLoggingModule(); if ((__builtin_expect(!!(mozilla::detail
::log_test(moz_real_module, LogLevel::Debug)), 0))) { mozilla
::detail::log_print(moz_real_module, LogLevel::Debug, MOZ_LOG_EXPAND_ARGS
_args); } } while (0)
218
219#if defined(MOZ_WIDGET_ANDROID)
220# define IDB_MOBILE
221#endif
222
223// Helper macros to reduce assertion verbosity
224// AUUF == ASSERT_UNREACHABLE_UNLESS_FUZZING
225#ifdef DEBUG1
226# ifdef FUZZING
227# define NS_AUUF_OR_WARN(...)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(false)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("false" " (" ... ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 227); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
... ")"); do { MOZ_CrashSequence(__null, 227); __attribute__
((nomerge)) ::abort(); } while (false); } } while (false)
NS_WARNING(__VA_ARGS__)NS_DebugBreak(NS_DEBUG_WARNING, __VA_ARGS__, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 227)
228# else
229# define NS_AUUF_OR_WARN(...)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(false)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("false" " (" ... ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 229); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
... ")"); do { MOZ_CrashSequence(__null, 229); __attribute__
((nomerge)) ::abort(); } while (false); } } while (false)
MOZ_ASSERT(false, __VA_ARGS__)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(false)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("false" " (" __VA_ARGS__ ")"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 229);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" __VA_ARGS__
")"); do { MOZ_CrashSequence(__null, 229); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
230# endif
231# define NS_AUUF_OR_WARN_IF(cond)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "cond" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 231); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"cond" ")"); do { MOZ_CrashSequence(__null, 231); __attribute__
((nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((cond))
\
232 [](bool aCond) { \
233 if (MOZ_UNLIKELY(aCond)(__builtin_expect(!!(aCond), 0))) { \
234 NS_AUUF_OR_WARN(#cond)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(false)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("false" " (" #cond ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 234); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
#cond ")"); do { MOZ_CrashSequence(__null, 234); __attribute__
((nomerge)) ::abort(); } while (false); } } while (false)
; \
235 } \
236 return aCond; \
237 }((cond))
238#else
239# define NS_AUUF_OR_WARN(...)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(false)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("false" " (" ... ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 239); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
... ")"); do { MOZ_CrashSequence(__null, 239); __attribute__
((nomerge)) ::abort(); } while (false); } } while (false)
\
240 do { \
241 } while (false)
242# define NS_AUUF_OR_WARN_IF(cond)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "cond" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 242); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"cond" ")"); do { MOZ_CrashSequence(__null, 242); __attribute__
((nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((cond))
static_cast<bool>(cond)
243#endif
244
245namespace mozilla {
246
247namespace dom::indexedDB {
248
249using namespace mozilla::dom::quota;
250using namespace mozilla::ipc;
251using mozilla::dom::quota::Client;
252
253namespace {
254
255class ConnectionPool;
256class Database;
257struct DatabaseActorInfo;
258class DatabaseFile;
259class DatabaseLoggingInfo;
260class DatabaseMaintenance;
261class Factory;
262class Maintenance;
263class OpenDatabaseOp;
264class TransactionBase;
265class TransactionDatabaseOperationBase;
266class VersionChangeTransaction;
267template <bool StatementHasIndexKeyBindings>
268struct ValuePopulateResponseHelper;
269
270/*******************************************************************************
271 * Constants
272 ******************************************************************************/
273
274const int32_t kStorageProgressGranularity = 1000;
275
276// Changing the value here will override the page size of new databases only.
277// A journal mode change and VACUUM are needed to change existing databases, so
278// the best way to do that is to use the schema version upgrade mechanism.
279const uint32_t kSQLitePageSizeOverride =
280#ifdef IDB_MOBILE
281 2048;
282#else
283 4096;
284#endif
285
286static_assert(kSQLitePageSizeOverride == /* mozStorage default */ 0 ||
287 (kSQLitePageSizeOverride % 2 == 0 &&
288 kSQLitePageSizeOverride >= 512 &&
289 kSQLitePageSizeOverride <= 65536),
290 "Must be 0 (disabled) or a power of 2 between 512 and 65536!");
291
292// Set to -1 to use SQLite's default, 0 to disable, or some positive number to
293// enforce a custom limit.
294const int32_t kMaxWALPages = 5000; // 20MB on desktop, 10MB on mobile.
295
296// Set to some multiple of the page size to grow the database in larger chunks.
297const uint32_t kSQLiteGrowthIncrement = kSQLitePageSizeOverride * 2;
298
299static_assert(kSQLiteGrowthIncrement >= 0 &&
300 kSQLiteGrowthIncrement % kSQLitePageSizeOverride == 0 &&
301 kSQLiteGrowthIncrement < uint32_t(INT32_MAX(2147483647)),
302 "Must be 0 (disabled) or a positive multiple of the page size!");
303
304// The maximum number of threads that can be used for database activity at a
305// single time. Please keep in sync with the constants in
306// test_connection_idle_maintenance*.js tests
307const uint32_t kMaxConnectionThreadCount = 20;
308
309static_assert(kMaxConnectionThreadCount, "Must have at least one thread!");
310
311// The maximum number of threads to keep when idle. Until we switch to the STS
312// pool, we can reduce the number of idle threads kept around thanks to the
313// grace timeout.
314const uint32_t kMaxIdleConnectionThreadCount = 1;
315
316static_assert(kMaxConnectionThreadCount >= kMaxIdleConnectionThreadCount,
317 "Idle thread limit must be less than total thread limit!");
318
319// The length of time that wanted idle threads will stay alive before being shut
320// down.
321const uint32_t kConnectionThreadMaxIdleMS = 30 * 1000; // 30 seconds
322
323// The length of time that excess idle threads will stay alive before being shut
324// down.
325const uint32_t kConnectionThreadGraceIdleMS = 500; // 0.5 seconds
326
327// The length of time that database connections will be held open after all
328// transactions have completed before doing idle maintenance. Please keep in
329// sync with the timeouts in test_connection_idle_maintenance*.js tests
330const uint32_t kConnectionIdleMaintenanceMS = 2 * 1000; // 2 seconds
331
332// The length of time that database connections will be held open after all
333// transactions and maintenance have completed.
334const uint32_t kConnectionIdleCloseMS = 10 * 1000; // 10 seconds
335
336#define SAVEPOINT_CLAUSE"SAVEPOINT sp;"_ns "SAVEPOINT sp;"_ns
337
338// For efficiency reasons, kEncryptedStreamBlockSize must be a multiple of large
339// 4k disk sectors.
340static_assert(kEncryptedStreamBlockSize % 4096 == 0);
341// Similarly, the file copy buffer size must be a multiple of the encrypted
342// block size.
343static_assert(kFileCopyBufferSize % kEncryptedStreamBlockSize == 0);
344
345constexpr auto kFileManagerDirectoryNameSuffix = u".files"_ns;
346constexpr auto kSQLiteSuffix = u".sqlite"_ns;
347constexpr auto kSQLiteJournalSuffix = u".sqlite-journal"_ns;
348constexpr auto kSQLiteSHMSuffix = u".sqlite-shm"_ns;
349constexpr auto kSQLiteWALSuffix = u".sqlite-wal"_ns;
350
351// The following constants define all names of binding parameters in statements,
352// where they are bound by name. This should include all parameter names which
353// are bound by name. Binding may be done by index when the statement definition
354// and binding are done in the same local scope, and no other reasons prevent
355// using the indexes (e.g. multiple statement variants with differing number or
356// order of parameters). Neither the styles of specifying parameter names
357// (literally vs. via these constants) nor the binding styles (by index vs. by
358// name) should not be mixed for the same statement. The decision must be made
359// for each statement based on the proximity of statement and binding calls.
360constexpr auto kStmtParamNameCurrentKey = "current_key"_ns;
361constexpr auto kStmtParamNameRangeBound = "range_bound"_ns;
362constexpr auto kStmtParamNameObjectStorePosition = "object_store_position"_ns;
363constexpr auto kStmtParamNameLowerKey = "lower_key"_ns;
364constexpr auto kStmtParamNameUpperKey = "upper_key"_ns;
365constexpr auto kStmtParamNameKey = "key"_ns;
366constexpr auto kStmtParamNameObjectStoreId = "object_store_id"_ns;
367constexpr auto kStmtParamNameIndexId = "index_id"_ns;
368// TODO: Maybe the uses of kStmtParamNameId should be replaced by more
369// specific constants such as kStmtParamNameObjectStoreId.
370constexpr auto kStmtParamNameId = "id"_ns;
371constexpr auto kStmtParamNameValue = "value"_ns;
372constexpr auto kStmtParamNameObjectDataKey = "object_data_key"_ns;
373constexpr auto kStmtParamNameIndexDataValues = "index_data_values"_ns;
374constexpr auto kStmtParamNameData = "data"_ns;
375constexpr auto kStmtParamNameFileIds = "file_ids"_ns;
376constexpr auto kStmtParamNameValueLocale = "value_locale"_ns;
377constexpr auto kStmtParamNameLimit = "limit"_ns;
378
379// The following constants define some names of columns in tables, which are
380// referred to in remote locations, e.g. in calls to
381// GetBindingClauseForKeyRange.
382constexpr auto kColumnNameKey = "key"_ns;
383constexpr auto kColumnNameValue = "value"_ns;
384constexpr auto kColumnNameAliasSortKey = "sort_column"_ns;
385
386// The deletion marker file is created before RemoveDatabaseFilesAndDirectory
387// begins deleting a database. It is removed as the last step of deletion. If a
388// deletion marker file is found when initializing the origin, the deletion
389// routine is run again to ensure that the database and all of its related files
390// are removed. The primary goal of this mechanism is to avoid situations where
391// a database has been partially deleted, leading to inconsistent state for the
392// origin.
393constexpr auto kIdbDeletionMarkerFilePrefix = u"idb-deleting-"_ns;
394
395const uint32_t kDeleteTimeoutMs = 1000;
396
397#ifdef DEBUG1
398
399const int32_t kDEBUGThreadPriority = nsISupportsPriority::PRIORITY_NORMAL;
400const uint32_t kDEBUGThreadSleepMS = 0;
401
402// Set to a non-zero number to enable debugging of transaction event targets.
403// It will cause sleeping after every transaction runnable!
404//
405// This can be useful for discovering race conditions related to switching to
406// another thread. Such races are usually avoided by using MozPromise or
407// RunAfterProcessingCurrentEvent. Chaos mode doesn't always help with
408// uncovering these issues, and only a precisely targeted sleep call can
409// simulate the problem.
410const uint32_t kDEBUGTransactionThreadSleepMS = 0;
411
412// Make sure that we notice if we ever accidentally check in a non-zero value.
413# ifdef MOZILLA_OFFICIAL
414static_assert(kDEBUGTransactionThreadSleepMS == 0);
415# endif
416
417#endif
418
419/*******************************************************************************
420 * Metadata classes
421 ******************************************************************************/
422
423// Can be instantiated either on the QuotaManager IO thread or on a
424// versionchange transaction thread. These threads can never race so this is
425// totally safe.
426struct FullIndexMetadata {
427 IndexMetadata mCommonMetadata = {0, nsString(), KeyPath(0), nsCString(),
428 false, false, false};
429
430 FlippedOnce<false> mDeleted;
431
432 NS_INLINE_DECL_THREADSAFE_REFCOUNTING(FullIndexMetadata)public: MozExternalRefCountType AddRef(void) { static_assert(
!std::is_destructible_v<FullIndexMetadata>, "Reference-counted class "
"FullIndexMetadata" " should not have a public destructor. "
"Make this class's destructor non-public"); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(int32_t
(mRefCnt) >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0"
" (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 432); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 432
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); nsrefcnt count = ++mRefCnt; NS_LogAddRef((this), (count
), ("FullIndexMetadata"), (uint32_t)(sizeof(*this))); return (
nsrefcnt)count; } MozExternalRefCountType Release(void) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0"
" (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 432); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 432
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); nsrefcnt count = --mRefCnt; NS_LogRelease((this), (
count), ("FullIndexMetadata")); if (count == 0) { delete (this
); return 0; } return count; } using HasThreadSafeRefCnt = std
::true_type; protected: ::mozilla::ThreadSafeAutoRefCnt mRefCnt
; public:
433
434 private:
435 ~FullIndexMetadata() = default;
436};
437
438using IndexTable = nsTHashMap<nsUint64HashKey, SafeRefPtr<FullIndexMetadata>>;
439
440// Can be instantiated either on the QuotaManager IO thread or on a
441// versionchange transaction thread. These threads can never race so this is
442// totally safe.
443struct FullObjectStoreMetadata {
444 ObjectStoreMetadata mCommonMetadata;
445 IndexTable mIndexes;
446
447 // The auto increment ids are touched on both the background thread and the
448 // transaction I/O thread, and they must be kept in sync, so we need a mutex
449 // to protect them.
450 struct AutoIncrementIds {
451 int64_t next;
452 int64_t committed;
453 };
454 DataMutex<AutoIncrementIds> mAutoIncrementIds;
455
456 FlippedOnce<false> mDeleted;
457
458 NS_INLINE_DECL_THREADSAFE_REFCOUNTING(FullObjectStoreMetadata)public: MozExternalRefCountType AddRef(void) { static_assert(
!std::is_destructible_v<FullObjectStoreMetadata>, "Reference-counted class "
"FullObjectStoreMetadata" " should not have a public destructor. "
"Make this class's destructor non-public"); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(int32_t
(mRefCnt) >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0"
" (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 458); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 458
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); nsrefcnt count = ++mRefCnt; NS_LogAddRef((this), (count
), ("FullObjectStoreMetadata"), (uint32_t)(sizeof(*this))); return
(nsrefcnt)count; } MozExternalRefCountType Release(void) { do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0"
" (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 458); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 458
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); nsrefcnt count = --mRefCnt; NS_LogRelease((this), (
count), ("FullObjectStoreMetadata")); if (count == 0) { delete
(this); return 0; } return count; } using HasThreadSafeRefCnt
= std::true_type; protected: ::mozilla::ThreadSafeAutoRefCnt
mRefCnt; public:
;
459
460 bool HasLiveIndexes() const;
461
462 FullObjectStoreMetadata(ObjectStoreMetadata aCommonMetadata,
463 const AutoIncrementIds& aAutoIncrementIds)
464 : mCommonMetadata{std::move(aCommonMetadata)},
465 mAutoIncrementIds{AutoIncrementIds{aAutoIncrementIds},
466 "FullObjectStoreMetadata"} {}
467
468 private:
469 ~FullObjectStoreMetadata() = default;
470};
471
472using ObjectStoreTable =
473 nsTHashMap<nsUint64HashKey, SafeRefPtr<FullObjectStoreMetadata>>;
474
475static_assert(
476 std::is_same_v<
477 IndexOrObjectStoreId,
478 std::remove_cvref_t<decltype(std::declval<const ObjectStoreGetParams&>()
479 .objectStoreId())>>);
480static_assert(std::is_same_v<
481 IndexOrObjectStoreId,
482 std::remove_cvref_t<decltype(std::declval<const IndexGetParams&>()
483 .objectStoreId())>>);
484
485struct FullDatabaseMetadata final : AtomicSafeRefCounted<FullDatabaseMetadata> {
486 DatabaseMetadata mCommonMetadata;
487 nsCString mDatabaseId;
488 nsString mFilePath;
489 ObjectStoreTable mObjectStores;
490
491 IndexOrObjectStoreId mNextObjectStoreId = 0;
492 IndexOrObjectStoreId mNextIndexId = 0;
493
494 public:
495 explicit FullDatabaseMetadata(const DatabaseMetadata& aCommonMetadata)
496 : mCommonMetadata(aCommonMetadata) {
497 AssertIsOnBackgroundThread();
498 }
499
500 [[nodiscard]] SafeRefPtr<FullDatabaseMetadata> Duplicate() const;
501
502 MOZ_DECLARE_REFCOUNTED_TYPENAME(FullDatabaseMetadata)const char* typeName() const { return "FullDatabaseMetadata";
} size_t typeSize() const { return sizeof(*this); }
503};
504
505template <class Enumerable>
506auto MatchMetadataNameOrId(const Enumerable& aEnumerable,
507 IndexOrObjectStoreId aId,
508 Maybe<const nsAString&> aName = Nothing()) {
509 AssertIsOnBackgroundThread();
510 MOZ_ASSERT(aId)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aId)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(aId))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("aId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 510); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aId" ")"); do
{ MOZ_CrashSequence(__null, 510); __attribute__((nomerge)) ::
abort(); } while (false); } } while (false)
;
511
512 const auto it = std::find_if(
513 aEnumerable.cbegin(), aEnumerable.cend(),
514 [aId, aName](const auto& entry) {
515 MOZ_ASSERT(entry.GetKey() != 0)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey() != 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey() != 0))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("entry.GetKey() != 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 515);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey() != 0"
")"); do { MOZ_CrashSequence(__null, 515); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
516
517 const auto& value = entry.GetData();
518 MOZ_ASSERT(value)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(value)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(value))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("value", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 518); AnnotateMozCrashReason("MOZ_ASSERT" "(" "value" ")");
do { MOZ_CrashSequence(__null, 518); __attribute__((nomerge)
) ::abort(); } while (false); } } while (false)
;
519
520 return !value->mDeleted &&
521 (aId == value->mCommonMetadata.id() ||
522 (aName && *aName == value->mCommonMetadata.name()));
523 });
524
525 return ToMaybeRef(it != aEnumerable.cend() ? it->GetData().unsafeGetRawPtr()
526 : nullptr);
527}
528
529/*******************************************************************************
530 * SQLite functions
531 ******************************************************************************/
532
533// WARNING: the hash function used for the database name must not change.
534// That's why this function exists separately from mozilla::HashString(), even
535// though it is (at the time of writing) equivalent. See bug 780408 and bug
536// 940315 for details.
537uint32_t HashName(const nsAString& aName) {
538 struct Helper {
539 static uint32_t RotateBitsLeft32(uint32_t aValue, uint8_t aBits) {
540 MOZ_ASSERT(aBits < 32)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aBits < 32)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aBits < 32))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("aBits < 32",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 540); AnnotateMozCrashReason
("MOZ_ASSERT" "(" "aBits < 32" ")"); do { MOZ_CrashSequence
(__null, 540); __attribute__((nomerge)) ::abort(); } while (false
); } } while (false)
;
541 return (aValue << aBits) | (aValue >> (32 - aBits));
542 }
543 };
544
545 static const uint32_t kGoldenRatioU32 = 0x9e3779b9u;
546
547 return std::accumulate(aName.BeginReading(), aName.EndReading(), uint32_t(0),
548 [](uint32_t hash, char16_t ch) {
549 return kGoldenRatioU32 *
550 (Helper::RotateBitsLeft32(hash, 5) ^ ch);
551 });
552}
553
554Result<nsCOMPtr<nsIFileURL>, nsresult> GetDatabaseFileURL(
555 nsIFile& aDatabaseFile, const int64_t aDirectoryLockId,
556 const Maybe<CipherKey>& aMaybeKey) {
557 MOZ_ASSERT(aDirectoryLockId >= -1)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDirectoryLockId >= -1)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDirectoryLockId >= -1)))
, 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDirectoryLockId >= -1"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 557);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectoryLockId >= -1"
")"); do { MOZ_CrashSequence(__null, 557); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
558
559 QM_TRY_INSPECT(auto tryResult830 = (::mozilla::ToResultGet< nsCOMPtr<nsIProtocolHandler
> >([](auto&&... aArgs) -> decltype(auto) { return
do_GetService(std::forward<decltype(aArgs)>(aArgs)...)
; }, "@mozilla.org/network/protocol;1?name=" "file")); if ((__builtin_expect
(!!(tryResult830.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultGet< nsCOMPtr<nsIProtocolHandler>>([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype(aArgs)>(aArgs)...); }, \"@mozilla.org/network/protocol;1?name=\" \"file\")"
, tryResult830.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 563, mozilla::dom::quota::Severity::Error); return tryResult830
.propagateErr(); } const auto& protocolHandler = tryResult830
.inspect();
560 const auto& protocolHandler,auto tryResult830 = (::mozilla::ToResultGet< nsCOMPtr<nsIProtocolHandler
> >([](auto&&... aArgs) -> decltype(auto) { return
do_GetService(std::forward<decltype(aArgs)>(aArgs)...)
; }, "@mozilla.org/network/protocol;1?name=" "file")); if ((__builtin_expect
(!!(tryResult830.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultGet< nsCOMPtr<nsIProtocolHandler>>([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype(aArgs)>(aArgs)...); }, \"@mozilla.org/network/protocol;1?name=\" \"file\")"
, tryResult830.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 563, mozilla::dom::quota::Severity::Error); return tryResult830
.propagateErr(); } const auto& protocolHandler = tryResult830
.inspect();
561 MOZ_TO_RESULT_GET_TYPED(nsCOMPtr<nsIProtocolHandler>,auto tryResult830 = (::mozilla::ToResultGet< nsCOMPtr<nsIProtocolHandler
> >([](auto&&... aArgs) -> decltype(auto) { return
do_GetService(std::forward<decltype(aArgs)>(aArgs)...)
; }, "@mozilla.org/network/protocol;1?name=" "file")); if ((__builtin_expect
(!!(tryResult830.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultGet< nsCOMPtr<nsIProtocolHandler>>([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype(aArgs)>(aArgs)...); }, \"@mozilla.org/network/protocol;1?name=\" \"file\")"
, tryResult830.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 563, mozilla::dom::quota::Severity::Error); return tryResult830
.propagateErr(); } const auto& protocolHandler = tryResult830
.inspect();
562 MOZ_SELECT_OVERLOAD(do_GetService),auto tryResult830 = (::mozilla::ToResultGet< nsCOMPtr<nsIProtocolHandler
> >([](auto&&... aArgs) -> decltype(auto) { return
do_GetService(std::forward<decltype(aArgs)>(aArgs)...)
; }, "@mozilla.org/network/protocol;1?name=" "file")); if ((__builtin_expect
(!!(tryResult830.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultGet< nsCOMPtr<nsIProtocolHandler>>([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype(aArgs)>(aArgs)...); }, \"@mozilla.org/network/protocol;1?name=\" \"file\")"
, tryResult830.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 563, mozilla::dom::quota::Severity::Error); return tryResult830
.propagateErr(); } const auto& protocolHandler = tryResult830
.inspect();
563 NS_NETWORK_PROTOCOL_CONTRACTID_PREFIX "file"))auto tryResult830 = (::mozilla::ToResultGet< nsCOMPtr<nsIProtocolHandler
> >([](auto&&... aArgs) -> decltype(auto) { return
do_GetService(std::forward<decltype(aArgs)>(aArgs)...)
; }, "@mozilla.org/network/protocol;1?name=" "file")); if ((__builtin_expect
(!!(tryResult830.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultGet< nsCOMPtr<nsIProtocolHandler>>([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype(aArgs)>(aArgs)...); }, \"@mozilla.org/network/protocol;1?name=\" \"file\")"
, tryResult830.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 563, mozilla::dom::quota::Severity::Error); return tryResult830
.propagateErr(); } const auto& protocolHandler = tryResult830
.inspect();
;
564
565 QM_TRY_INSPECT(const auto& fileHandler,auto tryResult831 = (::mozilla::ToResultGet< nsCOMPtr<nsIFileProtocolHandler
> >([](auto&&... aArgs) -> decltype(auto) { return
do_QueryInterface(std::forward<decltype(aArgs)>(aArgs)
...); }, protocolHandler)); if ((__builtin_expect(!!(tryResult831
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultGet< nsCOMPtr<nsIFileProtocolHandler>>([](auto&&... aArgs) -> decltype(auto) { return do_QueryInterface(std::forward<decltype(aArgs)>(aArgs)...); }, protocolHandler)"
, tryResult831.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 568, mozilla::dom::quota::Severity::Error); return tryResult831
.propagateErr(); } const auto& fileHandler = tryResult831
.inspect();
566 MOZ_TO_RESULT_GET_TYPED(nsCOMPtr<nsIFileProtocolHandler>,auto tryResult831 = (::mozilla::ToResultGet< nsCOMPtr<nsIFileProtocolHandler
> >([](auto&&... aArgs) -> decltype(auto) { return
do_QueryInterface(std::forward<decltype(aArgs)>(aArgs)
...); }, protocolHandler)); if ((__builtin_expect(!!(tryResult831
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultGet< nsCOMPtr<nsIFileProtocolHandler>>([](auto&&... aArgs) -> decltype(auto) { return do_QueryInterface(std::forward<decltype(aArgs)>(aArgs)...); }, protocolHandler)"
, tryResult831.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 568, mozilla::dom::quota::Severity::Error); return tryResult831
.propagateErr(); } const auto& fileHandler = tryResult831
.inspect();
567 MOZ_SELECT_OVERLOAD(do_QueryInterface),auto tryResult831 = (::mozilla::ToResultGet< nsCOMPtr<nsIFileProtocolHandler
> >([](auto&&... aArgs) -> decltype(auto) { return
do_QueryInterface(std::forward<decltype(aArgs)>(aArgs)
...); }, protocolHandler)); if ((__builtin_expect(!!(tryResult831
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultGet< nsCOMPtr<nsIFileProtocolHandler>>([](auto&&... aArgs) -> decltype(auto) { return do_QueryInterface(std::forward<decltype(aArgs)>(aArgs)...); }, protocolHandler)"
, tryResult831.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 568, mozilla::dom::quota::Severity::Error); return tryResult831
.propagateErr(); } const auto& fileHandler = tryResult831
.inspect();
568 protocolHandler))auto tryResult831 = (::mozilla::ToResultGet< nsCOMPtr<nsIFileProtocolHandler
> >([](auto&&... aArgs) -> decltype(auto) { return
do_QueryInterface(std::forward<decltype(aArgs)>(aArgs)
...); }, protocolHandler)); if ((__builtin_expect(!!(tryResult831
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultGet< nsCOMPtr<nsIFileProtocolHandler>>([](auto&&... aArgs) -> decltype(auto) { return do_QueryInterface(std::forward<decltype(aArgs)>(aArgs)...); }, protocolHandler)"
, tryResult831.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 568, mozilla::dom::quota::Severity::Error); return tryResult831
.propagateErr(); } const auto& fileHandler = tryResult831
.inspect();
;
569
570 QM_TRY_INSPECT(const auto& mutator, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult832 = (::mozilla::ToResultInvoke< nsCOMPtr<
nsIURIMutator> >( ::std::mem_fn( &::mozilla::detail
::DerefedType<decltype(fileHandler)>::NewFileURIMutator
), (fileHandler), &aDatabaseFile)); if ((__builtin_expect
(!!(tryResult832.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCOMPtr<nsIURIMutator>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(fileHandler)>::NewFileURIMutator), (fileHandler), &aDatabaseFile)"
, tryResult832.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 572, mozilla::dom::quota::Severity::Error); return tryResult832
.propagateErr(); } const auto& mutator = tryResult832.inspect
();
571 nsCOMPtr<nsIURIMutator>, fileHandler,auto tryResult832 = (::mozilla::ToResultInvoke< nsCOMPtr<
nsIURIMutator> >( ::std::mem_fn( &::mozilla::detail
::DerefedType<decltype(fileHandler)>::NewFileURIMutator
), (fileHandler), &aDatabaseFile)); if ((__builtin_expect
(!!(tryResult832.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCOMPtr<nsIURIMutator>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(fileHandler)>::NewFileURIMutator), (fileHandler), &aDatabaseFile)"
, tryResult832.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 572, mozilla::dom::quota::Severity::Error); return tryResult832
.propagateErr(); } const auto& mutator = tryResult832.inspect
();
572 NewFileURIMutator, &aDatabaseFile))auto tryResult832 = (::mozilla::ToResultInvoke< nsCOMPtr<
nsIURIMutator> >( ::std::mem_fn( &::mozilla::detail
::DerefedType<decltype(fileHandler)>::NewFileURIMutator
), (fileHandler), &aDatabaseFile)); if ((__builtin_expect
(!!(tryResult832.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCOMPtr<nsIURIMutator>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(fileHandler)>::NewFileURIMutator), (fileHandler), &aDatabaseFile)"
, tryResult832.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 572, mozilla::dom::quota::Severity::Error); return tryResult832
.propagateErr(); } const auto& mutator = tryResult832.inspect
();
;
573
574 // aDirectoryLockId should only be -1 when we are called
575 // - from DatabaseFileManager::InitDirectory when the temporary storage
576 // hasn't been initialized yet. At that time, the in-memory objects (e.g.
577 // OriginInfo) are only being created so it doesn't make sense to tunnel
578 // quota information to QuotaVFS to get corresponding QuotaObject instances
579 // for SQLite files.
580 // - from DeleteDatabaseOp::LoadPreviousVersion, since this might require
581 // temporarily exceeding the quota limit before the database can be
582 // deleted.
583 const nsCString directoryLockIdClause =
584 "&directoryLockId="_ns + IntToCString(aDirectoryLockId);
585
586 const auto keyClause = [&aMaybeKey] {
587 nsAutoCString keyClause;
588 if (aMaybeKey) {
589 keyClause.AssignLiteral("&key=");
590 for (uint8_t byte : IndexedDBCipherStrategy::SerializeKey(*aMaybeKey)) {
591 keyClause.AppendPrintf("%02x", byte);
592 }
593 }
594 return keyClause;
595 }();
596
597 QM_TRY_UNWRAP(auto result, ([&mutator, &directoryLockIdClause, &keyClause] {auto tryResult833 = (([&mutator, &directoryLockIdClause
, &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult
rv = NS_MutateURI(mutator) .SetQuery("cache=private"_ns + directoryLockIdClause
+ keyClause) .Finalize(result); return ((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL
>, nsresult>{result} : Err(rv); }())); if ((__builtin_expect
(!!(tryResult833.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&mutator, &directoryLockIdClause, &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult rv = NS_MutateURI(mutator) .SetQuery(\"cache=private\"_ns + directoryLockIdClause + keyClause) .Finalize(result); return ((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL>, nsresult>{result} : Err(rv); }())"
, tryResult833.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 606, mozilla::dom::quota::Severity::Error); return tryResult833
.propagateErr(); } auto result = tryResult833.unwrap();
598 nsCOMPtr<nsIFileURL> result;auto tryResult833 = (([&mutator, &directoryLockIdClause
, &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult
rv = NS_MutateURI(mutator) .SetQuery("cache=private"_ns + directoryLockIdClause
+ keyClause) .Finalize(result); return ((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL
>, nsresult>{result} : Err(rv); }())); if ((__builtin_expect
(!!(tryResult833.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&mutator, &directoryLockIdClause, &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult rv = NS_MutateURI(mutator) .SetQuery(\"cache=private\"_ns + directoryLockIdClause + keyClause) .Finalize(result); return ((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL>, nsresult>{result} : Err(rv); }())"
, tryResult833.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 606, mozilla::dom::quota::Severity::Error); return tryResult833
.propagateErr(); } auto result = tryResult833.unwrap();
599 nsresult rv = NS_MutateURI(mutator)auto tryResult833 = (([&mutator, &directoryLockIdClause
, &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult
rv = NS_MutateURI(mutator) .SetQuery("cache=private"_ns + directoryLockIdClause
+ keyClause) .Finalize(result); return ((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL
>, nsresult>{result} : Err(rv); }())); if ((__builtin_expect
(!!(tryResult833.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&mutator, &directoryLockIdClause, &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult rv = NS_MutateURI(mutator) .SetQuery(\"cache=private\"_ns + directoryLockIdClause + keyClause) .Finalize(result); return ((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL>, nsresult>{result} : Err(rv); }())"
, tryResult833.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 606, mozilla::dom::quota::Severity::Error); return tryResult833
.propagateErr(); } auto result = tryResult833.unwrap();
600 .SetQuery("cache=private"_ns +auto tryResult833 = (([&mutator, &directoryLockIdClause
, &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult
rv = NS_MutateURI(mutator) .SetQuery("cache=private"_ns + directoryLockIdClause
+ keyClause) .Finalize(result); return ((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL
>, nsresult>{result} : Err(rv); }())); if ((__builtin_expect
(!!(tryResult833.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&mutator, &directoryLockIdClause, &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult rv = NS_MutateURI(mutator) .SetQuery(\"cache=private\"_ns + directoryLockIdClause + keyClause) .Finalize(result); return ((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL>, nsresult>{result} : Err(rv); }())"
, tryResult833.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 606, mozilla::dom::quota::Severity::Error); return tryResult833
.propagateErr(); } auto result = tryResult833.unwrap();
601 directoryLockIdClause + keyClause)auto tryResult833 = (([&mutator, &directoryLockIdClause
, &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult
rv = NS_MutateURI(mutator) .SetQuery("cache=private"_ns + directoryLockIdClause
+ keyClause) .Finalize(result); return ((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL
>, nsresult>{result} : Err(rv); }())); if ((__builtin_expect
(!!(tryResult833.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&mutator, &directoryLockIdClause, &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult rv = NS_MutateURI(mutator) .SetQuery(\"cache=private\"_ns + directoryLockIdClause + keyClause) .Finalize(result); return ((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL>, nsresult>{result} : Err(rv); }())"
, tryResult833.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 606, mozilla::dom::quota::Severity::Error); return tryResult833
.propagateErr(); } auto result = tryResult833.unwrap();
602 .Finalize(result);auto tryResult833 = (([&mutator, &directoryLockIdClause
, &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult
rv = NS_MutateURI(mutator) .SetQuery("cache=private"_ns + directoryLockIdClause
+ keyClause) .Finalize(result); return ((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL
>, nsresult>{result} : Err(rv); }())); if ((__builtin_expect
(!!(tryResult833.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&mutator, &directoryLockIdClause, &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult rv = NS_MutateURI(mutator) .SetQuery(\"cache=private\"_ns + directoryLockIdClause + keyClause) .Finalize(result); return ((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL>, nsresult>{result} : Err(rv); }())"
, tryResult833.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 606, mozilla::dom::quota::Severity::Error); return tryResult833
.propagateErr(); } auto result = tryResult833.unwrap();
603 return NS_SUCCEEDED(rv)auto tryResult833 = (([&mutator, &directoryLockIdClause
, &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult
rv = NS_MutateURI(mutator) .SetQuery("cache=private"_ns + directoryLockIdClause
+ keyClause) .Finalize(result); return ((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL
>, nsresult>{result} : Err(rv); }())); if ((__builtin_expect
(!!(tryResult833.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&mutator, &directoryLockIdClause, &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult rv = NS_MutateURI(mutator) .SetQuery(\"cache=private\"_ns + directoryLockIdClause + keyClause) .Finalize(result); return ((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL>, nsresult>{result} : Err(rv); }())"
, tryResult833.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 606, mozilla::dom::quota::Severity::Error); return tryResult833
.propagateErr(); } auto result = tryResult833.unwrap();
604 ? Result<nsCOMPtr<nsIFileURL>, nsresult>{result}auto tryResult833 = (([&mutator, &directoryLockIdClause
, &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult
rv = NS_MutateURI(mutator) .SetQuery("cache=private"_ns + directoryLockIdClause
+ keyClause) .Finalize(result); return ((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL
>, nsresult>{result} : Err(rv); }())); if ((__builtin_expect
(!!(tryResult833.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&mutator, &directoryLockIdClause, &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult rv = NS_MutateURI(mutator) .SetQuery(\"cache=private\"_ns + directoryLockIdClause + keyClause) .Finalize(result); return ((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL>, nsresult>{result} : Err(rv); }())"
, tryResult833.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 606, mozilla::dom::quota::Severity::Error); return tryResult833
.propagateErr(); } auto result = tryResult833.unwrap();
605 : Err(rv);auto tryResult833 = (([&mutator, &directoryLockIdClause
, &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult
rv = NS_MutateURI(mutator) .SetQuery("cache=private"_ns + directoryLockIdClause
+ keyClause) .Finalize(result); return ((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL
>, nsresult>{result} : Err(rv); }())); if ((__builtin_expect
(!!(tryResult833.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&mutator, &directoryLockIdClause, &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult rv = NS_MutateURI(mutator) .SetQuery(\"cache=private\"_ns + directoryLockIdClause + keyClause) .Finalize(result); return ((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL>, nsresult>{result} : Err(rv); }())"
, tryResult833.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 606, mozilla::dom::quota::Severity::Error); return tryResult833
.propagateErr(); } auto result = tryResult833.unwrap();
606 }()))auto tryResult833 = (([&mutator, &directoryLockIdClause
, &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult
rv = NS_MutateURI(mutator) .SetQuery("cache=private"_ns + directoryLockIdClause
+ keyClause) .Finalize(result); return ((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL
>, nsresult>{result} : Err(rv); }())); if ((__builtin_expect
(!!(tryResult833.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&mutator, &directoryLockIdClause, &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult rv = NS_MutateURI(mutator) .SetQuery(\"cache=private\"_ns + directoryLockIdClause + keyClause) .Finalize(result); return ((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL>, nsresult>{result} : Err(rv); }())"
, tryResult833.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 606, mozilla::dom::quota::Severity::Error); return tryResult833
.propagateErr(); } auto result = tryResult833.unwrap();
;
607
608 return result;
609}
610
611nsLiteralCString GetDefaultSynchronousMode() {
612 return IndexedDatabaseManager::FullSynchronous() ? "FULL"_ns : "NORMAL"_ns;
613}
614
615nsresult SetDefaultPragmas(mozIStorageConnection& aConnection) {
616 MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 616);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { MOZ_CrashSequence(__null, 616); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
617
618 static constexpr auto kBuiltInPragmas =
619 // We use foreign keys in DEBUG builds only because there is a performance
620 // cost to using them.
621 "PRAGMA foreign_keys = "
622#ifdef DEBUG1
623 "ON"
624#else
625 "OFF"
626#endif
627 ";"
628
629 // The "INSERT OR REPLACE" statement doesn't fire the update trigger,
630 // instead it fires only the insert trigger. This confuses the update
631 // refcount function. This behavior changes with enabled recursive
632 // triggers, so the statement fires the delete trigger first and then the
633 // insert trigger.
634 "PRAGMA recursive_triggers = ON;"
635
636 // We aggressively truncate the database file when idle so don't bother
637 // overwriting the WAL with 0 during active periods.
638 "PRAGMA secure_delete = OFF;"_ns;
639
640 QM_TRY(MOZ_TO_RESULT(aConnection.ExecuteSimpleSQL(kBuiltInPragmas))){auto tryResult834 = (ToResult(aConnection.ExecuteSimpleSQL(kBuiltInPragmas
))); static_assert(std::is_empty_v<typename decltype(tryResult834
)::ok_type>); if ((__builtin_expect(!!(tryResult834.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(kBuiltInPragmas))"
, tryResult834.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 640, mozilla::dom::quota::Severity::Error); return tryResult834
.propagateErr(); }}
;
641
642 QM_TRY(MOZ_TO_RESULT(aConnection.ExecuteSimpleSQL(nsAutoCString{{auto tryResult835 = (ToResult(aConnection.ExecuteSimpleSQL(nsAutoCString
{ "PRAGMA synchronous = "_ns + GetDefaultSynchronousMode() + ";"_ns
}))); static_assert(std::is_empty_v<typename decltype(tryResult835
)::ok_type>); if ((__builtin_expect(!!(tryResult835.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(nsAutoCString{ \"PRAGMA synchronous = \"_ns + GetDefaultSynchronousMode() + \";\"_ns}))"
, tryResult835.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 643, mozilla::dom::quota::Severity::Error); return tryResult835
.propagateErr(); }}
643 "PRAGMA synchronous = "_ns + GetDefaultSynchronousMode() + ";"_ns}))){auto tryResult835 = (ToResult(aConnection.ExecuteSimpleSQL(nsAutoCString
{ "PRAGMA synchronous = "_ns + GetDefaultSynchronousMode() + ";"_ns
}))); static_assert(std::is_empty_v<typename decltype(tryResult835
)::ok_type>); if ((__builtin_expect(!!(tryResult835.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(nsAutoCString{ \"PRAGMA synchronous = \"_ns + GetDefaultSynchronousMode() + \";\"_ns}))"
, tryResult835.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 643, mozilla::dom::quota::Severity::Error); return tryResult835
.propagateErr(); }}
;
644
645#ifndef IDB_MOBILE
646 if (kSQLiteGrowthIncrement) {
647 // This is just an optimization so ignore the failure if the disk is
648 // currently too full.
649 QM_TRY(QM_OR_ELSE_WARN_IF({auto tryResult836 = (mozilla::dom::quota::OrElseIf( (ToResult
(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, ""_ns
))), [&](const auto& firstRes) { bool res = IsSpecificError
<NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota::
HandleError("\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\"\\\"_ns))\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 656, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult836)::ok_type>); if ((__builtin_expect(!!(tryResult836
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \"\"_ns))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\\\\\"\\\\\\\"_ns))\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 656, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult836.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 656, mozilla::dom::quota::Severity::Error); return tryResult836
.propagateErr(); }}
650 // Expression.{auto tryResult836 = (mozilla::dom::quota::OrElseIf( (ToResult
(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, ""_ns
))), [&](const auto& firstRes) { bool res = IsSpecificError
<NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota::
HandleError("\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\"\\\"_ns))\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 656, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult836)::ok_type>); if ((__builtin_expect(!!(tryResult836
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \"\"_ns))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\\\\\"\\\\\\\"_ns))\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 656, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult836.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 656, mozilla::dom::quota::Severity::Error); return tryResult836
.propagateErr(); }}
651 MOZ_TO_RESULT({auto tryResult836 = (mozilla::dom::quota::OrElseIf( (ToResult
(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, ""_ns
))), [&](const auto& firstRes) { bool res = IsSpecificError
<NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota::
HandleError("\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\"\\\"_ns))\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 656, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult836)::ok_type>); if ((__builtin_expect(!!(tryResult836
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \"\"_ns))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\\\\\"\\\\\\\"_ns))\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 656, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult836.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 656, mozilla::dom::quota::Severity::Error); return tryResult836
.propagateErr(); }}
652 aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, ""_ns)),{auto tryResult836 = (mozilla::dom::quota::OrElseIf( (ToResult
(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, ""_ns
))), [&](const auto& firstRes) { bool res = IsSpecificError
<NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota::
HandleError("\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\"\\\"_ns))\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 656, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult836)::ok_type>); if ((__builtin_expect(!!(tryResult836
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \"\"_ns))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\\\\\"\\\\\\\"_ns))\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 656, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult836.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 656, mozilla::dom::quota::Severity::Error); return tryResult836
.propagateErr(); }}
653 // Predicate.{auto tryResult836 = (mozilla::dom::quota::OrElseIf( (ToResult
(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, ""_ns
))), [&](const auto& firstRes) { bool res = IsSpecificError
<NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota::
HandleError("\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\"\\\"_ns))\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 656, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult836)::ok_type>); if ((__builtin_expect(!!(tryResult836
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \"\"_ns))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\\\\\"\\\\\\\"_ns))\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 656, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult836.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 656, mozilla::dom::quota::Severity::Error); return tryResult836
.propagateErr(); }}
654 IsSpecificError<NS_ERROR_FILE_TOO_BIG>,{auto tryResult836 = (mozilla::dom::quota::OrElseIf( (ToResult
(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, ""_ns
))), [&](const auto& firstRes) { bool res = IsSpecificError
<NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota::
HandleError("\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\"\\\"_ns))\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 656, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult836)::ok_type>); if ((__builtin_expect(!!(tryResult836
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \"\"_ns))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\\\\\"\\\\\\\"_ns))\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 656, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult836.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 656, mozilla::dom::quota::Severity::Error); return tryResult836
.propagateErr(); }}
655 // Fallback.{auto tryResult836 = (mozilla::dom::quota::OrElseIf( (ToResult
(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, ""_ns
))), [&](const auto& firstRes) { bool res = IsSpecificError
<NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota::
HandleError("\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\"\\\"_ns))\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 656, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult836)::ok_type>); if ((__builtin_expect(!!(tryResult836
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \"\"_ns))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\\\\\"\\\\\\\"_ns))\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 656, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult836.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 656, mozilla::dom::quota::Severity::Error); return tryResult836
.propagateErr(); }}
656 ErrToDefaultOk<>)){auto tryResult836 = (mozilla::dom::quota::OrElseIf( (ToResult
(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, ""_ns
))), [&](const auto& firstRes) { bool res = IsSpecificError
<NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota::
HandleError("\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\"\\\"_ns))\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 656, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult836)::ok_type>); if ((__builtin_expect(!!(tryResult836
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \"\"_ns))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\\\\\"\\\\\\\"_ns))\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 656, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult836.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 656, mozilla::dom::quota::Severity::Error); return tryResult836
.propagateErr(); }}
;
657 }
658#endif // IDB_MOBILE
659
660 return NS_OK;
661}
662
663nsresult SetJournalMode(mozIStorageConnection& aConnection) {
664 MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 664);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { MOZ_CrashSequence(__null, 664); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
665
666 // Try enabling WAL mode. This can fail in various circumstances so we have to
667 // check the results here.
668 constexpr auto journalModeQueryStart = "PRAGMA journal_mode = "_ns;
669 constexpr auto journalModeWAL = "wal"_ns;
670
671 QM_TRY_INSPECT(const auto& stmt,auto tryResult837 = (CreateAndExecuteSingleStepStatement( aConnection
, journalModeQueryStart + journalModeWAL)); if ((__builtin_expect
(!!(tryResult837.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateAndExecuteSingleStepStatement( aConnection, journalModeQueryStart + journalModeWAL)"
, tryResult837.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 673, mozilla::dom::quota::Severity::Error); return tryResult837
.propagateErr(); } const auto& stmt = tryResult837.inspect
();
672 CreateAndExecuteSingleStepStatement(auto tryResult837 = (CreateAndExecuteSingleStepStatement( aConnection
, journalModeQueryStart + journalModeWAL)); if ((__builtin_expect
(!!(tryResult837.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateAndExecuteSingleStepStatement( aConnection, journalModeQueryStart + journalModeWAL)"
, tryResult837.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 673, mozilla::dom::quota::Severity::Error); return tryResult837
.propagateErr(); } const auto& stmt = tryResult837.inspect
();
673 aConnection, journalModeQueryStart + journalModeWAL))auto tryResult837 = (CreateAndExecuteSingleStepStatement( aConnection
, journalModeQueryStart + journalModeWAL)); if ((__builtin_expect
(!!(tryResult837.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateAndExecuteSingleStepStatement( aConnection, journalModeQueryStart + journalModeWAL)"
, tryResult837.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 673, mozilla::dom::quota::Severity::Error); return tryResult837
.propagateErr(); } const auto& stmt = tryResult837.inspect
();
;
674
675 QM_TRY_INSPECT(auto tryResult838 = (::mozilla::ToResultInvoke< nsCString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(*stmt)>::GetUTF8String), (*stmt), 0)); if ((__builtin_expect
(!!(tryResult838.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*stmt)>::GetUTF8String), (*stmt), 0)"
, tryResult838.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 677, mozilla::dom::quota::Severity::Error); return tryResult838
.propagateErr(); } const auto& journalMode = tryResult838
.inspect();
676 const auto& journalMode,auto tryResult838 = (::mozilla::ToResultInvoke< nsCString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(*stmt)>::GetUTF8String), (*stmt), 0)); if ((__builtin_expect
(!!(tryResult838.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*stmt)>::GetUTF8String), (*stmt), 0)"
, tryResult838.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 677, mozilla::dom::quota::Severity::Error); return tryResult838
.propagateErr(); } const auto& journalMode = tryResult838
.inspect();
677 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsCString, *stmt, GetUTF8String, 0))auto tryResult838 = (::mozilla::ToResultInvoke< nsCString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(*stmt)>::GetUTF8String), (*stmt), 0)); if ((__builtin_expect
(!!(tryResult838.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*stmt)>::GetUTF8String), (*stmt), 0)"
, tryResult838.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 677, mozilla::dom::quota::Severity::Error); return tryResult838
.propagateErr(); } const auto& journalMode = tryResult838
.inspect();
;
678
679 if (journalMode.Equals(journalModeWAL)) {
680 // WAL mode successfully enabled. Maybe set limits on its size here.
681 if (kMaxWALPages >= 0) {
682 QM_TRY(MOZ_TO_RESULT(aConnection.ExecuteSimpleSQL({auto tryResult839 = (ToResult(aConnection.ExecuteSimpleSQL( "PRAGMA wal_autocheckpoint = "_ns
+ IntToCString(kMaxWALPages)))); static_assert(std::is_empty_v
<typename decltype(tryResult839)::ok_type>); if ((__builtin_expect
(!!(tryResult839.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection.ExecuteSimpleSQL( \"PRAGMA wal_autocheckpoint = \"_ns + IntToCString(kMaxWALPages)))"
, tryResult839.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 683, mozilla::dom::quota::Severity::Error); return tryResult839
.propagateErr(); }}
683 "PRAGMA wal_autocheckpoint = "_ns + IntToCString(kMaxWALPages)))){auto tryResult839 = (ToResult(aConnection.ExecuteSimpleSQL( "PRAGMA wal_autocheckpoint = "_ns
+ IntToCString(kMaxWALPages)))); static_assert(std::is_empty_v
<typename decltype(tryResult839)::ok_type>); if ((__builtin_expect
(!!(tryResult839.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection.ExecuteSimpleSQL( \"PRAGMA wal_autocheckpoint = \"_ns + IntToCString(kMaxWALPages)))"
, tryResult839.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 683, mozilla::dom::quota::Severity::Error); return tryResult839
.propagateErr(); }}
;
684 }
685 } else {
686 NS_WARNING("Failed to set WAL mode, falling back to normal journal mode.")NS_DebugBreak(NS_DEBUG_WARNING, "Failed to set WAL mode, falling back to normal journal mode."
, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 686)
;
687#ifdef IDB_MOBILE
688 QM_TRY(MOZ_TO_RESULT({auto tryResult840 = (ToResult(aConnection.ExecuteSimpleSQL(journalModeQueryStart
+ "truncate"_ns))); static_assert(std::is_empty_v<typename
decltype(tryResult840)::ok_type>); if ((__builtin_expect(
!!(tryResult840.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection.ExecuteSimpleSQL(journalModeQueryStart + \"truncate\"_ns))"
, tryResult840.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 689, mozilla::dom::quota::Severity::Error); return tryResult840
.propagateErr(); }}
689 aConnection.ExecuteSimpleSQL(journalModeQueryStart + "truncate"_ns))){auto tryResult840 = (ToResult(aConnection.ExecuteSimpleSQL(journalModeQueryStart
+ "truncate"_ns))); static_assert(std::is_empty_v<typename
decltype(tryResult840)::ok_type>); if ((__builtin_expect(
!!(tryResult840.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection.ExecuteSimpleSQL(journalModeQueryStart + \"truncate\"_ns))"
, tryResult840.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 689, mozilla::dom::quota::Severity::Error); return tryResult840
.propagateErr(); }}
;
690#endif
691 }
692
693 return NS_OK;
694}
695
696Result<MovingNotNull<nsCOMPtr<mozIStorageConnection>>, nsresult> OpenDatabase(
697 mozIStorageService& aStorageService, nsIFileURL& aFileURL,
698 const uint32_t aTelemetryId = 0) {
699 const nsAutoCString telemetryFilename =
700 aTelemetryId ? "indexedDB-"_ns + IntToCString(aTelemetryId) +
701 NS_ConvertUTF16toUTF8(kSQLiteSuffix)
702 : nsAutoCString();
703
704 QM_TRY_UNWRAP(auto connection,auto tryResult841 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageConnection> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aStorageService)>::OpenDatabaseWithFileURL
), (aStorageService), &aFileURL, telemetryFilename, mozIStorageService
::CONNECTION_INTERRUPTIBLE)); if ((__builtin_expect(!!(tryResult841
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageConnection>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aStorageService)>::OpenDatabaseWithFileURL), (aStorageService), &aFileURL, telemetryFilename, mozIStorageService::CONNECTION_INTERRUPTIBLE)"
, tryResult841.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 708, mozilla::dom::quota::Severity::Error); return tryResult841
.propagateErr(); } auto connection = tryResult841.unwrap();
705 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult841 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageConnection> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aStorageService)>::OpenDatabaseWithFileURL
), (aStorageService), &aFileURL, telemetryFilename, mozIStorageService
::CONNECTION_INTERRUPTIBLE)); if ((__builtin_expect(!!(tryResult841
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageConnection>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aStorageService)>::OpenDatabaseWithFileURL), (aStorageService), &aFileURL, telemetryFilename, mozIStorageService::CONNECTION_INTERRUPTIBLE)"
, tryResult841.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 708, mozilla::dom::quota::Severity::Error); return tryResult841
.propagateErr(); } auto connection = tryResult841.unwrap();
706 nsCOMPtr<mozIStorageConnection>, aStorageService,auto tryResult841 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageConnection> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aStorageService)>::OpenDatabaseWithFileURL
), (aStorageService), &aFileURL, telemetryFilename, mozIStorageService
::CONNECTION_INTERRUPTIBLE)); if ((__builtin_expect(!!(tryResult841
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageConnection>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aStorageService)>::OpenDatabaseWithFileURL), (aStorageService), &aFileURL, telemetryFilename, mozIStorageService::CONNECTION_INTERRUPTIBLE)"
, tryResult841.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 708, mozilla::dom::quota::Severity::Error); return tryResult841
.propagateErr(); } auto connection = tryResult841.unwrap();
707 OpenDatabaseWithFileURL, &aFileURL, telemetryFilename,auto tryResult841 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageConnection> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aStorageService)>::OpenDatabaseWithFileURL
), (aStorageService), &aFileURL, telemetryFilename, mozIStorageService
::CONNECTION_INTERRUPTIBLE)); if ((__builtin_expect(!!(tryResult841
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageConnection>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aStorageService)>::OpenDatabaseWithFileURL), (aStorageService), &aFileURL, telemetryFilename, mozIStorageService::CONNECTION_INTERRUPTIBLE)"
, tryResult841.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 708, mozilla::dom::quota::Severity::Error); return tryResult841
.propagateErr(); } auto connection = tryResult841.unwrap();
708 mozIStorageService::CONNECTION_INTERRUPTIBLE))auto tryResult841 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageConnection> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aStorageService)>::OpenDatabaseWithFileURL
), (aStorageService), &aFileURL, telemetryFilename, mozIStorageService
::CONNECTION_INTERRUPTIBLE)); if ((__builtin_expect(!!(tryResult841
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageConnection>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aStorageService)>::OpenDatabaseWithFileURL), (aStorageService), &aFileURL, telemetryFilename, mozIStorageService::CONNECTION_INTERRUPTIBLE)"
, tryResult841.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 708, mozilla::dom::quota::Severity::Error); return tryResult841
.propagateErr(); } auto connection = tryResult841.unwrap();
;
709
710 return WrapMovingNotNull(std::move(connection));
711}
712
713Result<MovingNotNull<nsCOMPtr<mozIStorageConnection>>, nsresult>
714OpenDatabaseAndHandleBusy(mozIStorageService& aStorageService,
715 nsIFileURL& aFileURL,
716 const uint32_t aTelemetryId = 0) {
717 MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 717);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { MOZ_CrashSequence(__null, 717); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
718 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 718);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 718); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
719
720 using ConnectionType = Maybe<MovingNotNull<nsCOMPtr<mozIStorageConnection>>>;
721
722 QM_TRY_UNWRAP(auto connection,auto tryResult842 = (mozilla::dom::quota::OrElseIf( (OpenDatabase
(aStorageService, aFileURL, aTelemetryId) .map([](auto connection
) -> ConnectionType { return Some(std::move(connection)); }
)), [&](const auto& firstRes) { bool res = IsSpecificError
<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::
HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 732, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult842
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 732, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult842.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 732, mozilla::dom::quota::Severity::Error); return tryResult842
.propagateErr(); } auto connection = tryResult842.unwrap();
723 QM_OR_ELSE_WARN_IF(auto tryResult842 = (mozilla::dom::quota::OrElseIf( (OpenDatabase
(aStorageService, aFileURL, aTelemetryId) .map([](auto connection
) -> ConnectionType { return Some(std::move(connection)); }
)), [&](const auto& firstRes) { bool res = IsSpecificError
<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::
HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 732, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult842
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 732, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult842.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 732, mozilla::dom::quota::Severity::Error); return tryResult842
.propagateErr(); } auto connection = tryResult842.unwrap();
724 // Expressionauto tryResult842 = (mozilla::dom::quota::OrElseIf( (OpenDatabase
(aStorageService, aFileURL, aTelemetryId) .map([](auto connection
) -> ConnectionType { return Some(std::move(connection)); }
)), [&](const auto& firstRes) { bool res = IsSpecificError
<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::
HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 732, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult842
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 732, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult842.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 732, mozilla::dom::quota::Severity::Error); return tryResult842
.propagateErr(); } auto connection = tryResult842.unwrap();
725 OpenDatabase(aStorageService, aFileURL, aTelemetryId)auto tryResult842 = (mozilla::dom::quota::OrElseIf( (OpenDatabase
(aStorageService, aFileURL, aTelemetryId) .map([](auto connection
) -> ConnectionType { return Some(std::move(connection)); }
)), [&](const auto& firstRes) { bool res = IsSpecificError
<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::
HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 732, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult842
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 732, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult842.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 732, mozilla::dom::quota::Severity::Error); return tryResult842
.propagateErr(); } auto connection = tryResult842.unwrap();
726 .map([](auto connection) -> ConnectionType {auto tryResult842 = (mozilla::dom::quota::OrElseIf( (OpenDatabase
(aStorageService, aFileURL, aTelemetryId) .map([](auto connection
) -> ConnectionType { return Some(std::move(connection)); }
)), [&](const auto& firstRes) { bool res = IsSpecificError
<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::
HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 732, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult842
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 732, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult842.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 732, mozilla::dom::quota::Severity::Error); return tryResult842
.propagateErr(); } auto connection = tryResult842.unwrap();
727 return Some(std::move(connection));auto tryResult842 = (mozilla::dom::quota::OrElseIf( (OpenDatabase
(aStorageService, aFileURL, aTelemetryId) .map([](auto connection
) -> ConnectionType { return Some(std::move(connection)); }
)), [&](const auto& firstRes) { bool res = IsSpecificError
<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::
HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 732, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult842
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 732, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult842.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 732, mozilla::dom::quota::Severity::Error); return tryResult842
.propagateErr(); } auto connection = tryResult842.unwrap();
728 }),auto tryResult842 = (mozilla::dom::quota::OrElseIf( (OpenDatabase
(aStorageService, aFileURL, aTelemetryId) .map([](auto connection
) -> ConnectionType { return Some(std::move(connection)); }
)), [&](const auto& firstRes) { bool res = IsSpecificError
<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::
HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 732, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult842
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 732, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult842.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 732, mozilla::dom::quota::Severity::Error); return tryResult842
.propagateErr(); } auto connection = tryResult842.unwrap();
729 // Predicate.auto tryResult842 = (mozilla::dom::quota::OrElseIf( (OpenDatabase
(aStorageService, aFileURL, aTelemetryId) .map([](auto connection
) -> ConnectionType { return Some(std::move(connection)); }
)), [&](const auto& firstRes) { bool res = IsSpecificError
<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::
HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 732, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult842
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 732, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult842.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 732, mozilla::dom::quota::Severity::Error); return tryResult842
.propagateErr(); } auto connection = tryResult842.unwrap();
730 IsSpecificError<NS_ERROR_STORAGE_BUSY>,auto tryResult842 = (mozilla::dom::quota::OrElseIf( (OpenDatabase
(aStorageService, aFileURL, aTelemetryId) .map([](auto connection
) -> ConnectionType { return Some(std::move(connection)); }
)), [&](const auto& firstRes) { bool res = IsSpecificError
<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::
HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 732, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult842
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 732, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult842.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 732, mozilla::dom::quota::Severity::Error); return tryResult842
.propagateErr(); } auto connection = tryResult842.unwrap();
731 // Fallback.auto tryResult842 = (mozilla::dom::quota::OrElseIf( (OpenDatabase
(aStorageService, aFileURL, aTelemetryId) .map([](auto connection
) -> ConnectionType { return Some(std::move(connection)); }
)), [&](const auto& firstRes) { bool res = IsSpecificError
<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::
HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 732, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult842
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 732, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult842.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 732, mozilla::dom::quota::Severity::Error); return tryResult842
.propagateErr(); } auto connection = tryResult842.unwrap();
732 ErrToDefaultOk<ConnectionType>))auto tryResult842 = (mozilla::dom::quota::OrElseIf( (OpenDatabase
(aStorageService, aFileURL, aTelemetryId) .map([](auto connection
) -> ConnectionType { return Some(std::move(connection)); }
)), [&](const auto& firstRes) { bool res = IsSpecificError
<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::
HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 732, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult842
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 732, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult842.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 732, mozilla::dom::quota::Severity::Error); return tryResult842
.propagateErr(); } auto connection = tryResult842.unwrap();
;
733
734 if (connection.isNothing()) {
735#ifdef DEBUG1
736 {
737 nsCString path;
738 MOZ_ALWAYS_SUCCEEDS(aFileURL.GetFileName(path))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(aFileURL.GetFileName(path))), 1)))), 1))) { } else { do { do
{ } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(aFileURL.GetFileName(path))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 738);
AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aFileURL.GetFileName(path))"
")"); do { MOZ_CrashSequence(__null, 738); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
739
740 nsPrintfCString message(
741 "Received NS_ERROR_STORAGE_BUSY when attempting to open database "
742 "'%s', retrying for up to 10 seconds",
743 path.get());
744 NS_WARNING(message.get())NS_DebugBreak(NS_DEBUG_WARNING, message.get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 744)
;
745 }
746#endif
747
748 // Another thread must be checkpointing the WAL. Wait up to 10 seconds for
749 // that to complete.
750 const TimeStamp start = TimeStamp::NowLoRes();
751
752 // Use exponential backoff: start at 1ms, double up to 100ms max
753 uint32_t sleepMs = 1;
754 constexpr uint32_t kMaxSleepMs = 100;
755
756 do {
757 PR_Sleep(PR_MillisecondsToInterval(sleepMs));
758
759 // Exponential backoff with cap
760 sleepMs = std::min(sleepMs * 2, kMaxSleepMs);
761
762 QM_TRY_UNWRAP(connection,auto tryResult843 = (mozilla::dom::quota::OrElseIf( (OpenDatabase
(aStorageService, aFileURL, aTelemetryId) .map([](auto connection
) -> ConnectionType { return Some(std::move(connection)); }
)), [&](const auto& firstRes) { bool res = ([&start
](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY &&
TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds
(10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 776, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult843
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 776, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult843.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 776, mozilla::dom::quota::Severity::Error); return tryResult843
.propagateErr(); } connection = tryResult843.unwrap();
763 QM_OR_ELSE_WARN_IF(auto tryResult843 = (mozilla::dom::quota::OrElseIf( (OpenDatabase
(aStorageService, aFileURL, aTelemetryId) .map([](auto connection
) -> ConnectionType { return Some(std::move(connection)); }
)), [&](const auto& firstRes) { bool res = ([&start
](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY &&
TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds
(10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 776, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult843
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 776, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult843.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 776, mozilla::dom::quota::Severity::Error); return tryResult843
.propagateErr(); } connection = tryResult843.unwrap();
764 // Expression.auto tryResult843 = (mozilla::dom::quota::OrElseIf( (OpenDatabase
(aStorageService, aFileURL, aTelemetryId) .map([](auto connection
) -> ConnectionType { return Some(std::move(connection)); }
)), [&](const auto& firstRes) { bool res = ([&start
](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY &&
TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds
(10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 776, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult843
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 776, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult843.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 776, mozilla::dom::quota::Severity::Error); return tryResult843
.propagateErr(); } connection = tryResult843.unwrap();
765 OpenDatabase(aStorageService, aFileURL, aTelemetryId)auto tryResult843 = (mozilla::dom::quota::OrElseIf( (OpenDatabase
(aStorageService, aFileURL, aTelemetryId) .map([](auto connection
) -> ConnectionType { return Some(std::move(connection)); }
)), [&](const auto& firstRes) { bool res = ([&start
](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY &&
TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds
(10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 776, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult843
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 776, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult843.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 776, mozilla::dom::quota::Severity::Error); return tryResult843
.propagateErr(); } connection = tryResult843.unwrap();
766 .map([](auto connection) -> ConnectionType {auto tryResult843 = (mozilla::dom::quota::OrElseIf( (OpenDatabase
(aStorageService, aFileURL, aTelemetryId) .map([](auto connection
) -> ConnectionType { return Some(std::move(connection)); }
)), [&](const auto& firstRes) { bool res = ([&start
](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY &&
TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds
(10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 776, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult843
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 776, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult843.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 776, mozilla::dom::quota::Severity::Error); return tryResult843
.propagateErr(); } connection = tryResult843.unwrap();
767 return Some(std::move(connection));auto tryResult843 = (mozilla::dom::quota::OrElseIf( (OpenDatabase
(aStorageService, aFileURL, aTelemetryId) .map([](auto connection
) -> ConnectionType { return Some(std::move(connection)); }
)), [&](const auto& firstRes) { bool res = ([&start
](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY &&
TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds
(10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 776, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult843
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 776, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult843.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 776, mozilla::dom::quota::Severity::Error); return tryResult843
.propagateErr(); } connection = tryResult843.unwrap();
768 }),auto tryResult843 = (mozilla::dom::quota::OrElseIf( (OpenDatabase
(aStorageService, aFileURL, aTelemetryId) .map([](auto connection
) -> ConnectionType { return Some(std::move(connection)); }
)), [&](const auto& firstRes) { bool res = ([&start
](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY &&
TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds
(10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 776, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult843
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 776, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult843.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 776, mozilla::dom::quota::Severity::Error); return tryResult843
.propagateErr(); } connection = tryResult843.unwrap();
769 // Predicate.auto tryResult843 = (mozilla::dom::quota::OrElseIf( (OpenDatabase
(aStorageService, aFileURL, aTelemetryId) .map([](auto connection
) -> ConnectionType { return Some(std::move(connection)); }
)), [&](const auto& firstRes) { bool res = ([&start
](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY &&
TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds
(10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 776, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult843
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 776, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult843.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 776, mozilla::dom::quota::Severity::Error); return tryResult843
.propagateErr(); } connection = tryResult843.unwrap();
770 ([&start](nsresult aValue) {auto tryResult843 = (mozilla::dom::quota::OrElseIf( (OpenDatabase
(aStorageService, aFileURL, aTelemetryId) .map([](auto connection
) -> ConnectionType { return Some(std::move(connection)); }
)), [&](const auto& firstRes) { bool res = ([&start
](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY &&
TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds
(10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 776, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult843
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 776, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult843.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 776, mozilla::dom::quota::Severity::Error); return tryResult843
.propagateErr(); } connection = tryResult843.unwrap();
771 return aValue == NS_ERROR_STORAGE_BUSY &&auto tryResult843 = (mozilla::dom::quota::OrElseIf( (OpenDatabase
(aStorageService, aFileURL, aTelemetryId) .map([](auto connection
) -> ConnectionType { return Some(std::move(connection)); }
)), [&](const auto& firstRes) { bool res = ([&start
](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY &&
TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds
(10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 776, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult843
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 776, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult843.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 776, mozilla::dom::quota::Severity::Error); return tryResult843
.propagateErr(); } connection = tryResult843.unwrap();
772 TimeStamp::NowLoRes() - start <=auto tryResult843 = (mozilla::dom::quota::OrElseIf( (OpenDatabase
(aStorageService, aFileURL, aTelemetryId) .map([](auto connection
) -> ConnectionType { return Some(std::move(connection)); }
)), [&](const auto& firstRes) { bool res = ([&start
](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY &&
TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds
(10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 776, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult843
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 776, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult843.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 776, mozilla::dom::quota::Severity::Error); return tryResult843
.propagateErr(); } connection = tryResult843.unwrap();
773 TimeDuration::FromSeconds(10);auto tryResult843 = (mozilla::dom::quota::OrElseIf( (OpenDatabase
(aStorageService, aFileURL, aTelemetryId) .map([](auto connection
) -> ConnectionType { return Some(std::move(connection)); }
)), [&](const auto& firstRes) { bool res = ([&start
](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY &&
TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds
(10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 776, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult843
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 776, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult843.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 776, mozilla::dom::quota::Severity::Error); return tryResult843
.propagateErr(); } connection = tryResult843.unwrap();
774 }),auto tryResult843 = (mozilla::dom::quota::OrElseIf( (OpenDatabase
(aStorageService, aFileURL, aTelemetryId) .map([](auto connection
) -> ConnectionType { return Some(std::move(connection)); }
)), [&](const auto& firstRes) { bool res = ([&start
](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY &&
TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds
(10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 776, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult843
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 776, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult843.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 776, mozilla::dom::quota::Severity::Error); return tryResult843
.propagateErr(); } connection = tryResult843.unwrap();
775 // Fallback.auto tryResult843 = (mozilla::dom::quota::OrElseIf( (OpenDatabase
(aStorageService, aFileURL, aTelemetryId) .map([](auto connection
) -> ConnectionType { return Some(std::move(connection)); }
)), [&](const auto& firstRes) { bool res = ([&start
](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY &&
TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds
(10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 776, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult843
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 776, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult843.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 776, mozilla::dom::quota::Severity::Error); return tryResult843
.propagateErr(); } connection = tryResult843.unwrap();
776 ErrToDefaultOk<ConnectionType>))auto tryResult843 = (mozilla::dom::quota::OrElseIf( (OpenDatabase
(aStorageService, aFileURL, aTelemetryId) .map([](auto connection
) -> ConnectionType { return Some(std::move(connection)); }
)), [&](const auto& firstRes) { bool res = ([&start
](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY &&
TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds
(10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 776, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult843
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 776, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult843.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 776, mozilla::dom::quota::Severity::Error); return tryResult843
.propagateErr(); } connection = tryResult843.unwrap();
;
777 } while (connection.isNothing());
778 }
779
780 return connection.extract();
781}
782
783// Returns true if a given nsIFile exists and is a directory. Returns false if
784// it doesn't exist. Returns an error if it exists, but is not a directory, or
785// any other error occurs.
786Result<bool, nsresult> ExistsAsDirectory(nsIFile& aDirectory) {
787 QM_TRY_INSPECT(const bool& exists,auto tryResult844 = (::mozilla::ToResultInvokeMember( (aDirectory
), &::mozilla::detail::DerefedType<decltype(aDirectory
)>::Exists )); if ((__builtin_expect(!!(tryResult844.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDirectory), &::mozilla::detail::DerefedType<decltype(aDirectory)>::Exists )"
, tryResult844.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 788, mozilla::dom::quota::Severity::Error); return tryResult844
.propagateErr(); } const bool& exists = tryResult844.inspect
();
788 MOZ_TO_RESULT_INVOKE_MEMBER(aDirectory, Exists))auto tryResult844 = (::mozilla::ToResultInvokeMember( (aDirectory
), &::mozilla::detail::DerefedType<decltype(aDirectory
)>::Exists )); if ((__builtin_expect(!!(tryResult844.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDirectory), &::mozilla::detail::DerefedType<decltype(aDirectory)>::Exists )"
, tryResult844.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 788, mozilla::dom::quota::Severity::Error); return tryResult844
.propagateErr(); } const bool& exists = tryResult844.inspect
();
;
789
790 if (exists) {
791 QM_TRY_INSPECT(const bool& isDirectory,auto tryResult845 = (::mozilla::ToResultInvokeMember( (aDirectory
), &::mozilla::detail::DerefedType<decltype(aDirectory
)>::IsDirectory )); if ((__builtin_expect(!!(tryResult845.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDirectory), &::mozilla::detail::DerefedType<decltype(aDirectory)>::IsDirectory )"
, tryResult845.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 792, mozilla::dom::quota::Severity::Error); return tryResult845
.propagateErr(); } const bool& isDirectory = tryResult845
.inspect();
792 MOZ_TO_RESULT_INVOKE_MEMBER(aDirectory, IsDirectory))auto tryResult845 = (::mozilla::ToResultInvokeMember( (aDirectory
), &::mozilla::detail::DerefedType<decltype(aDirectory
)>::IsDirectory )); if ((__builtin_expect(!!(tryResult845.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDirectory), &::mozilla::detail::DerefedType<decltype(aDirectory)>::IsDirectory )"
, tryResult845.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 792, mozilla::dom::quota::Severity::Error); return tryResult845
.propagateErr(); } const bool& isDirectory = tryResult845
.inspect();
;
793
794 QM_TRY(OkIf(isDirectory), Err(NS_ERROR_FAILURE)){auto tryResult846 = (OkIf(isDirectory)); static_assert(std::
is_empty_v<typename decltype(tryResult846)::ok_type>); if
((__builtin_expect(!!(tryResult846.isErr()), 0))) { [[maybe_unused
]] auto tryTempError = tryResult846.unwrapErr(); mozilla::dom
::quota::HandleError("OkIf(isDirectory)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 794, mozilla::dom::quota::Severity::Error); [[maybe_unused]
] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError
, Err(NS_ERROR_FAILURE)); }}
;
795 }
796
797 return exists;
798}
799
800constexpr nsresult mapNoDeviceSpaceError(nsresult aRv) {
801 if (aRv == NS_ERROR_FILE_NO_DEVICE_SPACE) {
802 // mozstorage translates SQLITE_FULL to
803 // NS_ERROR_FILE_NO_DEVICE_SPACE, which we know better as
804 // NS_ERROR_DOM_INDEXEDDB_QUOTA_ERR.
805 return NS_ERROR_DOM_INDEXEDDB_QUOTA_ERR;
806 }
807 return aRv;
808}
809
810Result<MovingNotNull<nsCOMPtr<mozIStorageConnection>>, nsresult>
811CreateStorageConnection(nsIFile& aDBFile, nsIFile& aFMDirectory,
812 const nsAString& aName, const nsACString& aOrigin,
813 const int64_t aDirectoryLockId,
814 const uint32_t aTelemetryId,
815 const Maybe<CipherKey>& aMaybeKey) {
816 AssertIsOnIOThread();
817 MOZ_ASSERT(aDirectoryLockId >= -1)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDirectoryLockId >= -1)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDirectoryLockId >= -1)))
, 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDirectoryLockId >= -1"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 817);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectoryLockId >= -1"
")"); do { MOZ_CrashSequence(__null, 817); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
818
819 AUTO_PROFILER_LABEL("CreateStorageConnection", DOM)mozilla::AutoProfilerLabel raiiObject819( "CreateStorageConnection"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
820
821 QM_TRY_INSPECT(const auto& dbFileUrl,auto tryResult847 = (GetDatabaseFileURL(aDBFile, aDirectoryLockId
, aMaybeKey)); if ((__builtin_expect(!!(tryResult847.isErr())
, 0))) { mozilla::dom::quota::HandleError("GetDatabaseFileURL(aDBFile, aDirectoryLockId, aMaybeKey)"
, tryResult847.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 822, mozilla::dom::quota::Severity::Error); return tryResult847
.propagateErr(); } const auto& dbFileUrl = tryResult847.inspect
();
822 GetDatabaseFileURL(aDBFile, aDirectoryLockId, aMaybeKey))auto tryResult847 = (GetDatabaseFileURL(aDBFile, aDirectoryLockId
, aMaybeKey)); if ((__builtin_expect(!!(tryResult847.isErr())
, 0))) { mozilla::dom::quota::HandleError("GetDatabaseFileURL(aDBFile, aDirectoryLockId, aMaybeKey)"
, tryResult847.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 822, mozilla::dom::quota::Severity::Error); return tryResult847
.propagateErr(); } const auto& dbFileUrl = tryResult847.inspect
();
;
823
824 QM_TRY_INSPECT(const auto& storageService,auto tryResult848 = (::mozilla::ToResultGet< nsCOMPtr<mozIStorageService
> >([](auto&&... aArgs) -> decltype(auto) { return
do_GetService(std::forward<decltype(aArgs)>(aArgs)...)
; }, "@mozilla.org/storage/service;1")); if ((__builtin_expect
(!!(tryResult848.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultGet< nsCOMPtr<mozIStorageService>>([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype(aArgs)>(aArgs)...); }, \"@mozilla.org/storage/service;1\")"
, tryResult848.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 827, mozilla::dom::quota::Severity::Error); return tryResult848
.propagateErr(); } const auto& storageService = tryResult848
.inspect();
825 MOZ_TO_RESULT_GET_TYPED(nsCOMPtr<mozIStorageService>,auto tryResult848 = (::mozilla::ToResultGet< nsCOMPtr<mozIStorageService
> >([](auto&&... aArgs) -> decltype(auto) { return
do_GetService(std::forward<decltype(aArgs)>(aArgs)...)
; }, "@mozilla.org/storage/service;1")); if ((__builtin_expect
(!!(tryResult848.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultGet< nsCOMPtr<mozIStorageService>>([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype(aArgs)>(aArgs)...); }, \"@mozilla.org/storage/service;1\")"
, tryResult848.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 827, mozilla::dom::quota::Severity::Error); return tryResult848
.propagateErr(); } const auto& storageService = tryResult848
.inspect();
826 MOZ_SELECT_OVERLOAD(do_GetService),auto tryResult848 = (::mozilla::ToResultGet< nsCOMPtr<mozIStorageService
> >([](auto&&... aArgs) -> decltype(auto) { return
do_GetService(std::forward<decltype(aArgs)>(aArgs)...)
; }, "@mozilla.org/storage/service;1")); if ((__builtin_expect
(!!(tryResult848.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultGet< nsCOMPtr<mozIStorageService>>([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype(aArgs)>(aArgs)...); }, \"@mozilla.org/storage/service;1\")"
, tryResult848.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 827, mozilla::dom::quota::Severity::Error); return tryResult848
.propagateErr(); } const auto& storageService = tryResult848
.inspect();
827 MOZ_STORAGE_SERVICE_CONTRACTID))auto tryResult848 = (::mozilla::ToResultGet< nsCOMPtr<mozIStorageService
> >([](auto&&... aArgs) -> decltype(auto) { return
do_GetService(std::forward<decltype(aArgs)>(aArgs)...)
; }, "@mozilla.org/storage/service;1")); if ((__builtin_expect
(!!(tryResult848.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultGet< nsCOMPtr<mozIStorageService>>([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype(aArgs)>(aArgs)...); }, \"@mozilla.org/storage/service;1\")"
, tryResult848.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 827, mozilla::dom::quota::Severity::Error); return tryResult848
.propagateErr(); } const auto& storageService = tryResult848
.inspect();
;
828
829 QM_TRY_UNWRAP(auto tryResult849 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy
(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection
) -> nsCOMPtr<mozIStorageConnection> { return std::move
(connection).unwrapBasePtr(); })), [&](const auto& firstRes
) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError
(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom
::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 845, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult849.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 845, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult849.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 845, mozilla::dom::quota::Severity::Error); return tryResult849
.propagateErr(); } auto connection = tryResult849.unwrap();
830 auto connection,auto tryResult849 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy
(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection
) -> nsCOMPtr<mozIStorageConnection> { return std::move
(connection).unwrapBasePtr(); })), [&](const auto& firstRes
) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError
(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom
::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 845, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult849.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 845, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult849.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 845, mozilla::dom::quota::Severity::Error); return tryResult849
.propagateErr(); } auto connection = tryResult849.unwrap();
831 QM_OR_ELSE_WARN_IF(auto tryResult849 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy
(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection
) -> nsCOMPtr<mozIStorageConnection> { return std::move
(connection).unwrapBasePtr(); })), [&](const auto& firstRes
) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError
(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom
::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 845, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult849.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 845, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult849.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 845, mozilla::dom::quota::Severity::Error); return tryResult849
.propagateErr(); } auto connection = tryResult849.unwrap();
832 // Expression.auto tryResult849 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy
(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection
) -> nsCOMPtr<mozIStorageConnection> { return std::move
(connection).unwrapBasePtr(); })), [&](const auto& firstRes
) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError
(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom
::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 845, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult849.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 845, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult849.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 845, mozilla::dom::quota::Severity::Error); return tryResult849
.propagateErr(); } auto connection = tryResult849.unwrap();
833 OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId)auto tryResult849 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy
(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection
) -> nsCOMPtr<mozIStorageConnection> { return std::move
(connection).unwrapBasePtr(); })), [&](const auto& firstRes
) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError
(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom
::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 845, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult849.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 845, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult849.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 845, mozilla::dom::quota::Severity::Error); return tryResult849
.propagateErr(); } auto connection = tryResult849.unwrap();
834 .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> {auto tryResult849 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy
(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection
) -> nsCOMPtr<mozIStorageConnection> { return std::move
(connection).unwrapBasePtr(); })), [&](const auto& firstRes
) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError
(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom
::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 845, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult849.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 845, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult849.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 845, mozilla::dom::quota::Severity::Error); return tryResult849
.propagateErr(); } auto connection = tryResult849.unwrap();
835 return std::move(connection).unwrapBasePtr();auto tryResult849 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy
(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection
) -> nsCOMPtr<mozIStorageConnection> { return std::move
(connection).unwrapBasePtr(); })), [&](const auto& firstRes
) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError
(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom
::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 845, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult849.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 845, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult849.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 845, mozilla::dom::quota::Severity::Error); return tryResult849
.propagateErr(); } auto connection = tryResult849.unwrap();
836 }),auto tryResult849 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy
(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection
) -> nsCOMPtr<mozIStorageConnection> { return std::move
(connection).unwrapBasePtr(); })), [&](const auto& firstRes
) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError
(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom
::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 845, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult849.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 845, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult849.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 845, mozilla::dom::quota::Severity::Error); return tryResult849
.propagateErr(); } auto connection = tryResult849.unwrap();
837 // Predicate.auto tryResult849 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy
(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection
) -> nsCOMPtr<mozIStorageConnection> { return std::move
(connection).unwrapBasePtr(); })), [&](const auto& firstRes
) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError
(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom
::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 845, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult849.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 845, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult849.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 845, mozilla::dom::quota::Severity::Error); return tryResult849
.propagateErr(); } auto connection = tryResult849.unwrap();
838 ([&aName](nsresult aValue) {auto tryResult849 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy
(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection
) -> nsCOMPtr<mozIStorageConnection> { return std::move
(connection).unwrapBasePtr(); })), [&](const auto& firstRes
) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError
(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom
::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 845, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult849.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 845, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult849.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 845, mozilla::dom::quota::Severity::Error); return tryResult849
.propagateErr(); } auto connection = tryResult849.unwrap();
839 // If we're just opening the database during origin initialization,auto tryResult849 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy
(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection
) -> nsCOMPtr<mozIStorageConnection> { return std::move
(connection).unwrapBasePtr(); })), [&](const auto& firstRes
) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError
(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom
::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 845, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult849.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 845, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult849.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 845, mozilla::dom::quota::Severity::Error); return tryResult849
.propagateErr(); } auto connection = tryResult849.unwrap();
840 // then we don't want to erase any files. The failure here will failauto tryResult849 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy
(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection
) -> nsCOMPtr<mozIStorageConnection> { return std::move
(connection).unwrapBasePtr(); })), [&](const auto& firstRes
) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError
(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom
::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 845, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult849.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 845, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult849.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 845, mozilla::dom::quota::Severity::Error); return tryResult849
.propagateErr(); } auto connection = tryResult849.unwrap();
841 // origin initialization too.auto tryResult849 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy
(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection
) -> nsCOMPtr<mozIStorageConnection> { return std::move
(connection).unwrapBasePtr(); })), [&](const auto& firstRes
) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError
(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom
::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 845, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult849.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 845, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult849.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 845, mozilla::dom::quota::Severity::Error); return tryResult849
.propagateErr(); } auto connection = tryResult849.unwrap();
842 return IsDatabaseCorruptionError(aValue) && !aName.IsVoid();auto tryResult849 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy
(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection
) -> nsCOMPtr<mozIStorageConnection> { return std::move
(connection).unwrapBasePtr(); })), [&](const auto& firstRes
) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError
(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom
::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 845, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult849.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 845, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult849.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 845, mozilla::dom::quota::Severity::Error); return tryResult849
.propagateErr(); } auto connection = tryResult849.unwrap();
843 }),auto tryResult849 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy
(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection
) -> nsCOMPtr<mozIStorageConnection> { return std::move
(connection).unwrapBasePtr(); })), [&](const auto& firstRes
) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError
(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom
::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 845, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult849.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 845, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult849.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 845, mozilla::dom::quota::Severity::Error); return tryResult849
.propagateErr(); } auto connection = tryResult849.unwrap();
844 // Fallback.auto tryResult849 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy
(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection
) -> nsCOMPtr<mozIStorageConnection> { return std::move
(connection).unwrapBasePtr(); })), [&](const auto& firstRes
) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError
(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom
::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 845, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult849.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 845, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult849.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 845, mozilla::dom::quota::Severity::Error); return tryResult849
.propagateErr(); } auto connection = tryResult849.unwrap();
845 ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>))auto tryResult849 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy
(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection
) -> nsCOMPtr<mozIStorageConnection> { return std::move
(connection).unwrapBasePtr(); })), [&](const auto& firstRes
) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError
(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom
::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 845, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult849.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 845, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult849.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 845, mozilla::dom::quota::Severity::Error); return tryResult849
.propagateErr(); } auto connection = tryResult849.unwrap();
;
846
847 if (!connection) {
848 // XXX Shouldn't we also update quota usage?
849
850 // Nuke the database file.
851 QM_TRY(MOZ_TO_RESULT(aDBFile.Remove(false))){auto tryResult850 = (ToResult(aDBFile.Remove(false))); static_assert
(std::is_empty_v<typename decltype(tryResult850)::ok_type>
); if ((__builtin_expect(!!(tryResult850.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aDBFile.Remove(false))", tryResult850
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 851, mozilla::dom::quota::Severity::Error); return tryResult850
.propagateErr(); }}
;
852 QM_TRY_INSPECT(const bool& existsAsDirectory,auto tryResult851 = (ExistsAsDirectory(aFMDirectory)); if ((__builtin_expect
(!!(tryResult851.isErr()), 0))) { mozilla::dom::quota::HandleError
("ExistsAsDirectory(aFMDirectory)", tryResult851.inspectErr()
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 853, mozilla
::dom::quota::Severity::Error); return tryResult851.propagateErr
(); } const bool& existsAsDirectory = tryResult851.inspect
();
853 ExistsAsDirectory(aFMDirectory))auto tryResult851 = (ExistsAsDirectory(aFMDirectory)); if ((__builtin_expect
(!!(tryResult851.isErr()), 0))) { mozilla::dom::quota::HandleError
("ExistsAsDirectory(aFMDirectory)", tryResult851.inspectErr()
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 853, mozilla
::dom::quota::Severity::Error); return tryResult851.propagateErr
(); } const bool& existsAsDirectory = tryResult851.inspect
();
;
854
855 if (existsAsDirectory) {
856 QM_TRY(MOZ_TO_RESULT(aFMDirectory.Remove(true))){auto tryResult852 = (ToResult(aFMDirectory.Remove(true))); static_assert
(std::is_empty_v<typename decltype(tryResult852)::ok_type>
); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aFMDirectory.Remove(true))"
, tryResult852.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 856, mozilla::dom::quota::Severity::Error); return tryResult852
.propagateErr(); }}
;
857 }
858
859 QM_TRY_UNWRAP(connection, OpenDatabaseAndHandleBusy(auto tryResult853 = (OpenDatabaseAndHandleBusy( *storageService
, *dbFileUrl, aTelemetryId)); if ((__builtin_expect(!!(tryResult853
.isErr()), 0))) { mozilla::dom::quota::HandleError("OpenDatabaseAndHandleBusy( *storageService, *dbFileUrl, aTelemetryId)"
, tryResult853.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 860, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); } connection = tryResult853.unwrap();
860 *storageService, *dbFileUrl, aTelemetryId))auto tryResult853 = (OpenDatabaseAndHandleBusy( *storageService
, *dbFileUrl, aTelemetryId)); if ((__builtin_expect(!!(tryResult853
.isErr()), 0))) { mozilla::dom::quota::HandleError("OpenDatabaseAndHandleBusy( *storageService, *dbFileUrl, aTelemetryId)"
, tryResult853.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 860, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); } connection = tryResult853.unwrap();
;
861 }
862
863 QM_TRY(MOZ_TO_RESULT(SetDefaultPragmas(*connection))){auto tryResult854 = (ToResult(SetDefaultPragmas(*connection)
)); static_assert(std::is_empty_v<typename decltype(tryResult854
)::ok_type>); if ((__builtin_expect(!!(tryResult854.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(SetDefaultPragmas(*connection))"
, tryResult854.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 863, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); }}
;
864 QM_TRY(MOZ_TO_RESULT(connection->EnableModule("filesystem"_ns))){auto tryResult855 = (ToResult(connection->EnableModule("filesystem"_ns
))); static_assert(std::is_empty_v<typename decltype(tryResult855
)::ok_type>); if ((__builtin_expect(!!(tryResult855.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->EnableModule(\"filesystem\"_ns))"
, tryResult855.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 864, mozilla::dom::quota::Severity::Error); return tryResult855
.propagateErr(); }}
;
865
866 // Check to make sure that the database schema is correct.
867 QM_TRY_INSPECT(const int32_t& schemaVersion,auto tryResult856 = (::mozilla::ToResultInvokeMember( (connection
), &::mozilla::detail::DerefedType<decltype(connection
)>::GetSchemaVersion )); if ((__builtin_expect(!!(tryResult856
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion )"
, tryResult856.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 868, mozilla::dom::quota::Severity::Error); return tryResult856
.propagateErr(); } const int32_t& schemaVersion = tryResult856
.inspect();
868 MOZ_TO_RESULT_INVOKE_MEMBER(connection, GetSchemaVersion))auto tryResult856 = (::mozilla::ToResultInvokeMember( (connection
), &::mozilla::detail::DerefedType<decltype(connection
)>::GetSchemaVersion )); if ((__builtin_expect(!!(tryResult856
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion )"
, tryResult856.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 868, mozilla::dom::quota::Severity::Error); return tryResult856
.propagateErr(); } const int32_t& schemaVersion = tryResult856
.inspect();
;
869
870 // Unknown schema will fail origin initialization too.
871 QM_TRY(OkIf(schemaVersion || !aName.IsVoid()),{auto tryResult857 = (OkIf(schemaVersion || !aName.IsVoid()))
; static_assert(std::is_empty_v<typename decltype(tryResult857
)::ok_type>); if ((__builtin_expect(!!(tryResult857.isErr(
)), 0))) { auto tryTempError = tryResult857.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(schemaVersion || !aName.IsVoid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 874, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString s("Unable to open IndexedDB database, schema is not set!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 873, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 873);
} while (0); }(tryTempError); [[maybe_unused]] constexpr const
auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "OkIf(schemaVersion || !aName.IsVoid())", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}
872 Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR), [](const auto&) {{auto tryResult857 = (OkIf(schemaVersion || !aName.IsVoid()))
; static_assert(std::is_empty_v<typename decltype(tryResult857
)::ok_type>); if ((__builtin_expect(!!(tryResult857.isErr(
)), 0))) { auto tryTempError = tryResult857.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(schemaVersion || !aName.IsVoid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 874, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString s("Unable to open IndexedDB database, schema is not set!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 873, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 873);
} while (0); }(tryTempError); [[maybe_unused]] constexpr const
auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "OkIf(schemaVersion || !aName.IsVoid())", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}
873 IDB_WARNING("Unable to open IndexedDB database, schema is not set!");{auto tryResult857 = (OkIf(schemaVersion || !aName.IsVoid()))
; static_assert(std::is_empty_v<typename decltype(tryResult857
)::ok_type>); if ((__builtin_expect(!!(tryResult857.isErr(
)), 0))) { auto tryTempError = tryResult857.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(schemaVersion || !aName.IsVoid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 874, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString s("Unable to open IndexedDB database, schema is not set!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 873, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 873);
} while (0); }(tryTempError); [[maybe_unused]] constexpr const
auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "OkIf(schemaVersion || !aName.IsVoid())", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}
874 }){auto tryResult857 = (OkIf(schemaVersion || !aName.IsVoid()))
; static_assert(std::is_empty_v<typename decltype(tryResult857
)::ok_type>); if ((__builtin_expect(!!(tryResult857.isErr(
)), 0))) { auto tryTempError = tryResult857.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(schemaVersion || !aName.IsVoid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 874, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString s("Unable to open IndexedDB database, schema is not set!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 873, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 873);
} while (0); }(tryTempError); [[maybe_unused]] constexpr const
auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "OkIf(schemaVersion || !aName.IsVoid())", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}
;
875
876 QM_TRY({auto tryResult858 = (OkIf(schemaVersion <= kSQLiteSchemaVersion
)); static_assert(std::is_empty_v<typename decltype(tryResult858
)::ok_type>); if ((__builtin_expect(!!(tryResult858.isErr(
)), 0))) { auto tryTempError = tryResult858.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(schemaVersion <= kSQLiteSchemaVersion)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 880, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString s("Unable to open IndexedDB database, schema is too high!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 879, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 879);
} while (0); }(tryTempError); [[maybe_unused]] constexpr const
auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "OkIf(schemaVersion <= kSQLiteSchemaVersion)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}
877 OkIf(schemaVersion <= kSQLiteSchemaVersion),{auto tryResult858 = (OkIf(schemaVersion <= kSQLiteSchemaVersion
)); static_assert(std::is_empty_v<typename decltype(tryResult858
)::ok_type>); if ((__builtin_expect(!!(tryResult858.isErr(
)), 0))) { auto tryTempError = tryResult858.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(schemaVersion <= kSQLiteSchemaVersion)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 880, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString s("Unable to open IndexedDB database, schema is too high!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 879, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 879);
} while (0); }(tryTempError); [[maybe_unused]] constexpr const
auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "OkIf(schemaVersion <= kSQLiteSchemaVersion)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}
878 Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR), [](const auto&) {{auto tryResult858 = (OkIf(schemaVersion <= kSQLiteSchemaVersion
)); static_assert(std::is_empty_v<typename decltype(tryResult858
)::ok_type>); if ((__builtin_expect(!!(tryResult858.isErr(
)), 0))) { auto tryTempError = tryResult858.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(schemaVersion <= kSQLiteSchemaVersion)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 880, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString s("Unable to open IndexedDB database, schema is too high!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 879, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 879);
} while (0); }(tryTempError); [[maybe_unused]] constexpr const
auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "OkIf(schemaVersion <= kSQLiteSchemaVersion)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}
879 IDB_WARNING("Unable to open IndexedDB database, schema is too high!");{auto tryResult858 = (OkIf(schemaVersion <= kSQLiteSchemaVersion
)); static_assert(std::is_empty_v<typename decltype(tryResult858
)::ok_type>); if ((__builtin_expect(!!(tryResult858.isErr(
)), 0))) { auto tryTempError = tryResult858.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(schemaVersion <= kSQLiteSchemaVersion)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 880, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString s("Unable to open IndexedDB database, schema is too high!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 879, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 879);
} while (0); }(tryTempError); [[maybe_unused]] constexpr const
auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "OkIf(schemaVersion <= kSQLiteSchemaVersion)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}
880 }){auto tryResult858 = (OkIf(schemaVersion <= kSQLiteSchemaVersion
)); static_assert(std::is_empty_v<typename decltype(tryResult858
)::ok_type>); if ((__builtin_expect(!!(tryResult858.isErr(
)), 0))) { auto tryTempError = tryResult858.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(schemaVersion <= kSQLiteSchemaVersion)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 880, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString s("Unable to open IndexedDB database, schema is too high!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 879, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 879);
} while (0); }(tryTempError); [[maybe_unused]] constexpr const
auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "OkIf(schemaVersion <= kSQLiteSchemaVersion)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}
;
881
882 bool journalModeSet = false;
883
884 if (schemaVersion != kSQLiteSchemaVersion) {
885 const bool newDatabase = !schemaVersion;
886
887 if (newDatabase) {
888 // Set the page size first.
889 const auto sqlitePageSizeOverride =
890 aMaybeKey ? 8192 : kSQLitePageSizeOverride;
891 if (sqlitePageSizeOverride) {
892 QM_TRY(MOZ_TO_RESULT(connection->ExecuteSimpleSQL(nsPrintfCString({auto tryResult859 = (ToResult(connection->ExecuteSimpleSQL
(nsPrintfCString( "PRAGMA page_size = %" "u" ";", sqlitePageSizeOverride
)))); static_assert(std::is_empty_v<typename decltype(tryResult859
)::ok_type>); if ((__builtin_expect(!!(tryResult859.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->ExecuteSimpleSQL(nsPrintfCString( \"PRAGMA page_size = %\" \"u\" \";\", sqlitePageSizeOverride)))"
, tryResult859.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 893, mozilla::dom::quota::Severity::Error); return tryResult859
.propagateErr(); }}
893 "PRAGMA page_size = %" PRIu32 ";", sqlitePageSizeOverride)))){auto tryResult859 = (ToResult(connection->ExecuteSimpleSQL
(nsPrintfCString( "PRAGMA page_size = %" "u" ";", sqlitePageSizeOverride
)))); static_assert(std::is_empty_v<typename decltype(tryResult859
)::ok_type>); if ((__builtin_expect(!!(tryResult859.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->ExecuteSimpleSQL(nsPrintfCString( \"PRAGMA page_size = %\" \"u\" \";\", sqlitePageSizeOverride)))"
, tryResult859.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 893, mozilla::dom::quota::Severity::Error); return tryResult859
.propagateErr(); }}
;
894 }
895
896 // We have to set the auto_vacuum mode before opening a transaction.
897 QM_TRY((MOZ_TO_RESULT_INVOKE_MEMBER({auto tryResult860 = ((::mozilla::ToResultInvokeMember( (connection
), &::mozilla::detail::DerefedType<decltype(connection
)>::ExecuteSimpleSQL , ifdef IDB_MOBILE "PRAGMA auto_vacuum = FULL;"_ns
else "PRAGMA auto_vacuum = INCREMENTAL;"_ns endif) .mapErr(mapNoDeviceSpaceError
))); static_assert(std::is_empty_v<typename decltype(tryResult860
)::ok_type>); if ((__builtin_expect(!!(tryResult860.isErr(
)), 0))) { mozilla::dom::quota::HandleError("(::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::ExecuteSimpleSQL , ifdef IDB_MOBILE \"PRAGMA auto_vacuum = FULL;\"_nselse \"PRAGMA auto_vacuum = INCREMENTAL;\"_nsendif) .mapErr(mapNoDeviceSpaceError))"
, tryResult860.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 908, mozilla::dom::quota::Severity::Error); return tryResult860
.propagateErr(); }}
898 connection, ExecuteSimpleSQL,{auto tryResult860 = ((::mozilla::ToResultInvokeMember( (connection
), &::mozilla::detail::DerefedType<decltype(connection
)>::ExecuteSimpleSQL , ifdef IDB_MOBILE "PRAGMA auto_vacuum = FULL;"_ns
else "PRAGMA auto_vacuum = INCREMENTAL;"_ns endif) .mapErr(mapNoDeviceSpaceError
))); static_assert(std::is_empty_v<typename decltype(tryResult860
)::ok_type>); if ((__builtin_expect(!!(tryResult860.isErr(
)), 0))) { mozilla::dom::quota::HandleError("(::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::ExecuteSimpleSQL , ifdef IDB_MOBILE \"PRAGMA auto_vacuum = FULL;\"_nselse \"PRAGMA auto_vacuum = INCREMENTAL;\"_nsendif) .mapErr(mapNoDeviceSpaceError))"
, tryResult860.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 908, mozilla::dom::quota::Severity::Error); return tryResult860
.propagateErr(); }}
899#ifdef IDB_MOBILE{auto tryResult860 = ((::mozilla::ToResultInvokeMember( (connection
), &::mozilla::detail::DerefedType<decltype(connection
)>::ExecuteSimpleSQL , ifdef IDB_MOBILE "PRAGMA auto_vacuum = FULL;"_ns
else "PRAGMA auto_vacuum = INCREMENTAL;"_ns endif) .mapErr(mapNoDeviceSpaceError
))); static_assert(std::is_empty_v<typename decltype(tryResult860
)::ok_type>); if ((__builtin_expect(!!(tryResult860.isErr(
)), 0))) { mozilla::dom::quota::HandleError("(::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::ExecuteSimpleSQL , ifdef IDB_MOBILE \"PRAGMA auto_vacuum = FULL;\"_nselse \"PRAGMA auto_vacuum = INCREMENTAL;\"_nsendif) .mapErr(mapNoDeviceSpaceError))"
, tryResult860.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 908, mozilla::dom::quota::Severity::Error); return tryResult860
.propagateErr(); }}
900 // Turn on full auto_vacuum mode to reclaim disk space on{auto tryResult860 = ((::mozilla::ToResultInvokeMember( (connection
), &::mozilla::detail::DerefedType<decltype(connection
)>::ExecuteSimpleSQL , ifdef IDB_MOBILE "PRAGMA auto_vacuum = FULL;"_ns
else "PRAGMA auto_vacuum = INCREMENTAL;"_ns endif) .mapErr(mapNoDeviceSpaceError
))); static_assert(std::is_empty_v<typename decltype(tryResult860
)::ok_type>); if ((__builtin_expect(!!(tryResult860.isErr(
)), 0))) { mozilla::dom::quota::HandleError("(::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::ExecuteSimpleSQL , ifdef IDB_MOBILE \"PRAGMA auto_vacuum = FULL;\"_nselse \"PRAGMA auto_vacuum = INCREMENTAL;\"_nsendif) .mapErr(mapNoDeviceSpaceError))"
, tryResult860.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 908, mozilla::dom::quota::Severity::Error); return tryResult860
.propagateErr(); }}
901 // mobile devices (at the cost of some COMMIT speed).{auto tryResult860 = ((::mozilla::ToResultInvokeMember( (connection
), &::mozilla::detail::DerefedType<decltype(connection
)>::ExecuteSimpleSQL , ifdef IDB_MOBILE "PRAGMA auto_vacuum = FULL;"_ns
else "PRAGMA auto_vacuum = INCREMENTAL;"_ns endif) .mapErr(mapNoDeviceSpaceError
))); static_assert(std::is_empty_v<typename decltype(tryResult860
)::ok_type>); if ((__builtin_expect(!!(tryResult860.isErr(
)), 0))) { mozilla::dom::quota::HandleError("(::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::ExecuteSimpleSQL , ifdef IDB_MOBILE \"PRAGMA auto_vacuum = FULL;\"_nselse \"PRAGMA auto_vacuum = INCREMENTAL;\"_nsendif) .mapErr(mapNoDeviceSpaceError))"
, tryResult860.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 908, mozilla::dom::quota::Severity::Error); return tryResult860
.propagateErr(); }}
902 "PRAGMA auto_vacuum = FULL;"_ns{auto tryResult860 = ((::mozilla::ToResultInvokeMember( (connection
), &::mozilla::detail::DerefedType<decltype(connection
)>::ExecuteSimpleSQL , ifdef IDB_MOBILE "PRAGMA auto_vacuum = FULL;"_ns
else "PRAGMA auto_vacuum = INCREMENTAL;"_ns endif) .mapErr(mapNoDeviceSpaceError
))); static_assert(std::is_empty_v<typename decltype(tryResult860
)::ok_type>); if ((__builtin_expect(!!(tryResult860.isErr(
)), 0))) { mozilla::dom::quota::HandleError("(::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::ExecuteSimpleSQL , ifdef IDB_MOBILE \"PRAGMA auto_vacuum = FULL;\"_nselse \"PRAGMA auto_vacuum = INCREMENTAL;\"_nsendif) .mapErr(mapNoDeviceSpaceError))"
, tryResult860.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 908, mozilla::dom::quota::Severity::Error); return tryResult860
.propagateErr(); }}
903#else{auto tryResult860 = ((::mozilla::ToResultInvokeMember( (connection
), &::mozilla::detail::DerefedType<decltype(connection
)>::ExecuteSimpleSQL , ifdef IDB_MOBILE "PRAGMA auto_vacuum = FULL;"_ns
else "PRAGMA auto_vacuum = INCREMENTAL;"_ns endif) .mapErr(mapNoDeviceSpaceError
))); static_assert(std::is_empty_v<typename decltype(tryResult860
)::ok_type>); if ((__builtin_expect(!!(tryResult860.isErr(
)), 0))) { mozilla::dom::quota::HandleError("(::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::ExecuteSimpleSQL , ifdef IDB_MOBILE \"PRAGMA auto_vacuum = FULL;\"_nselse \"PRAGMA auto_vacuum = INCREMENTAL;\"_nsendif) .mapErr(mapNoDeviceSpaceError))"
, tryResult860.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 908, mozilla::dom::quota::Severity::Error); return tryResult860
.propagateErr(); }}
904 // Turn on incremental auto_vacuum mode on desktop builds.{auto tryResult860 = ((::mozilla::ToResultInvokeMember( (connection
), &::mozilla::detail::DerefedType<decltype(connection
)>::ExecuteSimpleSQL , ifdef IDB_MOBILE "PRAGMA auto_vacuum = FULL;"_ns
else "PRAGMA auto_vacuum = INCREMENTAL;"_ns endif) .mapErr(mapNoDeviceSpaceError
))); static_assert(std::is_empty_v<typename decltype(tryResult860
)::ok_type>); if ((__builtin_expect(!!(tryResult860.isErr(
)), 0))) { mozilla::dom::quota::HandleError("(::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::ExecuteSimpleSQL , ifdef IDB_MOBILE \"PRAGMA auto_vacuum = FULL;\"_nselse \"PRAGMA auto_vacuum = INCREMENTAL;\"_nsendif) .mapErr(mapNoDeviceSpaceError))"
, tryResult860.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 908, mozilla::dom::quota::Severity::Error); return tryResult860
.propagateErr(); }}
905 "PRAGMA auto_vacuum = INCREMENTAL;"_ns{auto tryResult860 = ((::mozilla::ToResultInvokeMember( (connection
), &::mozilla::detail::DerefedType<decltype(connection
)>::ExecuteSimpleSQL , ifdef IDB_MOBILE "PRAGMA auto_vacuum = FULL;"_ns
else "PRAGMA auto_vacuum = INCREMENTAL;"_ns endif) .mapErr(mapNoDeviceSpaceError
))); static_assert(std::is_empty_v<typename decltype(tryResult860
)::ok_type>); if ((__builtin_expect(!!(tryResult860.isErr(
)), 0))) { mozilla::dom::quota::HandleError("(::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::ExecuteSimpleSQL , ifdef IDB_MOBILE \"PRAGMA auto_vacuum = FULL;\"_nselse \"PRAGMA auto_vacuum = INCREMENTAL;\"_nsendif) .mapErr(mapNoDeviceSpaceError))"
, tryResult860.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 908, mozilla::dom::quota::Severity::Error); return tryResult860
.propagateErr(); }}
906#endif{auto tryResult860 = ((::mozilla::ToResultInvokeMember( (connection
), &::mozilla::detail::DerefedType<decltype(connection
)>::ExecuteSimpleSQL , ifdef IDB_MOBILE "PRAGMA auto_vacuum = FULL;"_ns
else "PRAGMA auto_vacuum = INCREMENTAL;"_ns endif) .mapErr(mapNoDeviceSpaceError
))); static_assert(std::is_empty_v<typename decltype(tryResult860
)::ok_type>); if ((__builtin_expect(!!(tryResult860.isErr(
)), 0))) { mozilla::dom::quota::HandleError("(::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::ExecuteSimpleSQL , ifdef IDB_MOBILE \"PRAGMA auto_vacuum = FULL;\"_nselse \"PRAGMA auto_vacuum = INCREMENTAL;\"_nsendif) .mapErr(mapNoDeviceSpaceError))"
, tryResult860.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 908, mozilla::dom::quota::Severity::Error); return tryResult860
.propagateErr(); }}
907 ){auto tryResult860 = ((::mozilla::ToResultInvokeMember( (connection
), &::mozilla::detail::DerefedType<decltype(connection
)>::ExecuteSimpleSQL , ifdef IDB_MOBILE "PRAGMA auto_vacuum = FULL;"_ns
else "PRAGMA auto_vacuum = INCREMENTAL;"_ns endif) .mapErr(mapNoDeviceSpaceError
))); static_assert(std::is_empty_v<typename decltype(tryResult860
)::ok_type>); if ((__builtin_expect(!!(tryResult860.isErr(
)), 0))) { mozilla::dom::quota::HandleError("(::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::ExecuteSimpleSQL , ifdef IDB_MOBILE \"PRAGMA auto_vacuum = FULL;\"_nselse \"PRAGMA auto_vacuum = INCREMENTAL;\"_nsendif) .mapErr(mapNoDeviceSpaceError))"
, tryResult860.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 908, mozilla::dom::quota::Severity::Error); return tryResult860
.propagateErr(); }}
908 .mapErr(mapNoDeviceSpaceError))){auto tryResult860 = ((::mozilla::ToResultInvokeMember( (connection
), &::mozilla::detail::DerefedType<decltype(connection
)>::ExecuteSimpleSQL , ifdef IDB_MOBILE "PRAGMA auto_vacuum = FULL;"_ns
else "PRAGMA auto_vacuum = INCREMENTAL;"_ns endif) .mapErr(mapNoDeviceSpaceError
))); static_assert(std::is_empty_v<typename decltype(tryResult860
)::ok_type>); if ((__builtin_expect(!!(tryResult860.isErr(
)), 0))) { mozilla::dom::quota::HandleError("(::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::ExecuteSimpleSQL , ifdef IDB_MOBILE \"PRAGMA auto_vacuum = FULL;\"_nselse \"PRAGMA auto_vacuum = INCREMENTAL;\"_nsendif) .mapErr(mapNoDeviceSpaceError))"
, tryResult860.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 908, mozilla::dom::quota::Severity::Error); return tryResult860
.propagateErr(); }}
;
909
910 QM_TRY(MOZ_TO_RESULT(SetJournalMode(*connection))){auto tryResult861 = (ToResult(SetJournalMode(*connection)));
static_assert(std::is_empty_v<typename decltype(tryResult861
)::ok_type>); if ((__builtin_expect(!!(tryResult861.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(SetJournalMode(*connection))"
, tryResult861.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 910, mozilla::dom::quota::Severity::Error); return tryResult861
.propagateErr(); }}
;
911
912 journalModeSet = true;
913 } else {
914#ifdef DEBUG1
915 // Disable foreign key support while upgrading. This has to be done before
916 // starting a transaction.
917 MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(connection->ExecuteSimpleSQL("PRAGMA foreign_keys = OFF;"_ns
))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(connection->ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 918);
AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(connection->ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))"
")"); do { MOZ_CrashSequence(__null, 918); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
918 connection->ExecuteSimpleSQL("PRAGMA foreign_keys = OFF;"_ns))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(connection->ExecuteSimpleSQL("PRAGMA foreign_keys = OFF;"_ns
))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(connection->ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 918);
AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(connection->ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))"
")"); do { MOZ_CrashSequence(__null, 918); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
919#endif
920 }
921
922 bool vacuumNeeded = false;
923
924 mozStorageTransaction transaction(
925 connection.get(), false, mozIStorageConnection::TRANSACTION_IMMEDIATE);
926
927 QM_TRY(MOZ_TO_RESULT(transaction.Start())){auto tryResult862 = (ToResult(transaction.Start())); static_assert
(std::is_empty_v<typename decltype(tryResult862)::ok_type>
); if ((__builtin_expect(!!(tryResult862.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(transaction.Start())", tryResult862
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 927, mozilla::dom::quota::Severity::Error); return tryResult862
.propagateErr(); }}
;
928
929 if (newDatabase) {
930 QM_TRY(MOZ_TO_RESULT(CreateTables(*connection))){auto tryResult863 = (ToResult(CreateTables(*connection))); static_assert
(std::is_empty_v<typename decltype(tryResult863)::ok_type>
); if ((__builtin_expect(!!(tryResult863.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(CreateTables(*connection))"
, tryResult863.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 930, mozilla::dom::quota::Severity::Error); return tryResult863
.propagateErr(); }}
;
931
932#ifdef DEBUG1
933 {
934 QM_TRY_INSPECT(auto tryResult864 = (::mozilla::ToResultInvokeMember( (connection
), &::mozilla::detail::DerefedType<decltype(connection
)>::GetSchemaVersion )); if ((__builtin_expect(!!(tryResult864
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult864
.unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion )"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 937, mozilla::dom::quota::Severity::Error); [[maybe_unused]
] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion )"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 937); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 937); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const int32_t
& schemaVersion = tryResult864.inspect();
935 const int32_t& schemaVersion,auto tryResult864 = (::mozilla::ToResultInvokeMember( (connection
), &::mozilla::detail::DerefedType<decltype(connection
)>::GetSchemaVersion )); if ((__builtin_expect(!!(tryResult864
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult864
.unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion )"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 937, mozilla::dom::quota::Severity::Error); [[maybe_unused]
] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion )"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 937); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 937); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const int32_t
& schemaVersion = tryResult864.inspect();
936 MOZ_TO_RESULT_INVOKE_MEMBER(connection, GetSchemaVersion),auto tryResult864 = (::mozilla::ToResultInvokeMember( (connection
), &::mozilla::detail::DerefedType<decltype(connection
)>::GetSchemaVersion )); if ((__builtin_expect(!!(tryResult864
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult864
.unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion )"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 937, mozilla::dom::quota::Severity::Error); [[maybe_unused]
] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion )"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 937); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 937); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const int32_t
& schemaVersion = tryResult864.inspect();
937 QM_ASSERT_UNREACHABLE)auto tryResult864 = (::mozilla::ToResultInvokeMember( (connection
), &::mozilla::detail::DerefedType<decltype(connection
)>::GetSchemaVersion )); if ((__builtin_expect(!!(tryResult864
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult864
.unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion )"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 937, mozilla::dom::quota::Severity::Error); [[maybe_unused]
] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion )"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 937); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 937); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const int32_t
& schemaVersion = tryResult864.inspect();
;
938 MOZ_ASSERT(schemaVersion == kSQLiteSchemaVersion)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(schemaVersion == kSQLiteSchemaVersion)>::isValid,
"invalid assertion condition"); if ((__builtin_expect(!!(!(!
!(schemaVersion == kSQLiteSchemaVersion))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("schemaVersion == kSQLiteSchemaVersion"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 938);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "schemaVersion == kSQLiteSchemaVersion"
")"); do { MOZ_CrashSequence(__null, 938); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
939 }
940#endif
941
942 // The parameter names are not used, parameters are bound by index only
943 // locally in the same function.
944 QM_TRY_INSPECT(auto tryResult865 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(connection)>::CreateStatement
), (connection), "INSERT INTO database (name, origin) " "VALUES (:name, :origin)"_ns
)); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(connection)>::CreateStatement), (connection), \"INSERT INTO database (name, origin) \" \"VALUES (:name, :origin)\"_ns)"
, tryResult865.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 949, mozilla::dom::quota::Severity::Error); return tryResult865
.propagateErr(); } const auto& stmt = tryResult865.inspect
();
945 const auto& stmt,auto tryResult865 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(connection)>::CreateStatement
), (connection), "INSERT INTO database (name, origin) " "VALUES (:name, :origin)"_ns
)); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(connection)>::CreateStatement), (connection), \"INSERT INTO database (name, origin) \" \"VALUES (:name, :origin)\"_ns)"
, tryResult865.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 949, mozilla::dom::quota::Severity::Error); return tryResult865
.propagateErr(); } const auto& stmt = tryResult865.inspect
();
946 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult865 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(connection)>::CreateStatement
), (connection), "INSERT INTO database (name, origin) " "VALUES (:name, :origin)"_ns
)); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(connection)>::CreateStatement), (connection), \"INSERT INTO database (name, origin) \" \"VALUES (:name, :origin)\"_ns)"
, tryResult865.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 949, mozilla::dom::quota::Severity::Error); return tryResult865
.propagateErr(); } const auto& stmt = tryResult865.inspect
();
947 nsCOMPtr<mozIStorageStatement>, connection, CreateStatement,auto tryResult865 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(connection)>::CreateStatement
), (connection), "INSERT INTO database (name, origin) " "VALUES (:name, :origin)"_ns
)); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(connection)>::CreateStatement), (connection), \"INSERT INTO database (name, origin) \" \"VALUES (:name, :origin)\"_ns)"
, tryResult865.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 949, mozilla::dom::quota::Severity::Error); return tryResult865
.propagateErr(); } const auto& stmt = tryResult865.inspect
();
948 "INSERT INTO database (name, origin) "auto tryResult865 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(connection)>::CreateStatement
), (connection), "INSERT INTO database (name, origin) " "VALUES (:name, :origin)"_ns
)); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(connection)>::CreateStatement), (connection), \"INSERT INTO database (name, origin) \" \"VALUES (:name, :origin)\"_ns)"
, tryResult865.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 949, mozilla::dom::quota::Severity::Error); return tryResult865
.propagateErr(); } const auto& stmt = tryResult865.inspect
();
949 "VALUES (:name, :origin)"_ns))auto tryResult865 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(connection)>::CreateStatement
), (connection), "INSERT INTO database (name, origin) " "VALUES (:name, :origin)"_ns
)); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(connection)>::CreateStatement), (connection), \"INSERT INTO database (name, origin) \" \"VALUES (:name, :origin)\"_ns)"
, tryResult865.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 949, mozilla::dom::quota::Severity::Error); return tryResult865
.propagateErr(); } const auto& stmt = tryResult865.inspect
();
;
950
951 QM_TRY(MOZ_TO_RESULT(stmt->BindStringByIndex(0, aName))){auto tryResult866 = (ToResult(stmt->BindStringByIndex(0, aName
))); static_assert(std::is_empty_v<typename decltype(tryResult866
)::ok_type>); if ((__builtin_expect(!!(tryResult866.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindStringByIndex(0, aName))"
, tryResult866.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 951, mozilla::dom::quota::Severity::Error); return tryResult866
.propagateErr(); }}
;
952 QM_TRY(MOZ_TO_RESULT(stmt->BindUTF8StringByIndex(1, aOrigin))){auto tryResult867 = (ToResult(stmt->BindUTF8StringByIndex
(1, aOrigin))); static_assert(std::is_empty_v<typename decltype
(tryResult867)::ok_type>); if ((__builtin_expect(!!(tryResult867
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindUTF8StringByIndex(1, aOrigin))"
, tryResult867.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 952, mozilla::dom::quota::Severity::Error); return tryResult867
.propagateErr(); }}
;
953 QM_TRY(MOZ_TO_RESULT(stmt->Execute())){auto tryResult868 = (ToResult(stmt->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult868)::ok_type>
); if ((__builtin_expect(!!(tryResult868.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt->Execute())", tryResult868
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 953, mozilla::dom::quota::Severity::Error); return tryResult868
.propagateErr(); }}
;
954 } else {
955 QM_TRY_UNWRAP(vacuumNeeded, MaybeUpgradeSchema(*connection, schemaVersion,auto tryResult869 = (MaybeUpgradeSchema(*connection, schemaVersion
, aFMDirectory, aOrigin)); if ((__builtin_expect(!!(tryResult869
.isErr()), 0))) { mozilla::dom::quota::HandleError("MaybeUpgradeSchema(*connection, schemaVersion, aFMDirectory, aOrigin)"
, tryResult869.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 956, mozilla::dom::quota::Severity::Error); return tryResult869
.propagateErr(); } vacuumNeeded = tryResult869.unwrap();
956 aFMDirectory, aOrigin))auto tryResult869 = (MaybeUpgradeSchema(*connection, schemaVersion
, aFMDirectory, aOrigin)); if ((__builtin_expect(!!(tryResult869
.isErr()), 0))) { mozilla::dom::quota::HandleError("MaybeUpgradeSchema(*connection, schemaVersion, aFMDirectory, aOrigin)"
, tryResult869.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 956, mozilla::dom::quota::Severity::Error); return tryResult869
.propagateErr(); } vacuumNeeded = tryResult869.unwrap();
;
957 }
958
959 QM_TRY(MOZ_TO_RESULT_INVOKE_MEMBER(transaction, Commit){auto tryResult870 = (::mozilla::ToResultInvokeMember( (transaction
), &::mozilla::detail::DerefedType<decltype(transaction
)>::Commit ) .mapErr(mapNoDeviceSpaceError)); static_assert
(std::is_empty_v<typename decltype(tryResult870)::ok_type>
); if ((__builtin_expect(!!(tryResult870.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (transaction), &::mozilla::detail::DerefedType<decltype(transaction)>::Commit ) .mapErr(mapNoDeviceSpaceError)"
, tryResult870.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 960, mozilla::dom::quota::Severity::Error); return tryResult870
.propagateErr(); }}
960 .mapErr(mapNoDeviceSpaceError)){auto tryResult870 = (::mozilla::ToResultInvokeMember( (transaction
), &::mozilla::detail::DerefedType<decltype(transaction
)>::Commit ) .mapErr(mapNoDeviceSpaceError)); static_assert
(std::is_empty_v<typename decltype(tryResult870)::ok_type>
); if ((__builtin_expect(!!(tryResult870.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (transaction), &::mozilla::detail::DerefedType<decltype(transaction)>::Commit ) .mapErr(mapNoDeviceSpaceError)"
, tryResult870.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 960, mozilla::dom::quota::Severity::Error); return tryResult870
.propagateErr(); }}
;
961
962#ifdef DEBUG1
963 if (!newDatabase) {
964 // Re-enable foreign key support after doing a foreign key check.
965 QM_TRY_INSPECT(const bool& foreignKeyError,auto tryResult871 = (CreateAndExecuteSingleStepStatement< SingleStepResult
::ReturnNullIfNoResult>( *connection, "PRAGMA foreign_key_check;"_ns
)); if ((__builtin_expect(!!(tryResult871.isErr()), 0))) { [[
maybe_unused]] auto tryTempError = tryResult871.unwrapErr(); mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"PRAGMA foreign_key_check;\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 969, mozilla::dom::quota::Severity::Error); [[maybe_unused]
] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"PRAGMA foreign_key_check;\"_ns)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 969); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 969); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const bool
& foreignKeyError = tryResult871.inspect();
966 CreateAndExecuteSingleStepStatement<auto tryResult871 = (CreateAndExecuteSingleStepStatement< SingleStepResult
::ReturnNullIfNoResult>( *connection, "PRAGMA foreign_key_check;"_ns
)); if ((__builtin_expect(!!(tryResult871.isErr()), 0))) { [[
maybe_unused]] auto tryTempError = tryResult871.unwrapErr(); mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"PRAGMA foreign_key_check;\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 969, mozilla::dom::quota::Severity::Error); [[maybe_unused]
] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"PRAGMA foreign_key_check;\"_ns)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 969); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 969); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const bool
& foreignKeyError = tryResult871.inspect();
967 SingleStepResult::ReturnNullIfNoResult>(auto tryResult871 = (CreateAndExecuteSingleStepStatement< SingleStepResult
::ReturnNullIfNoResult>( *connection, "PRAGMA foreign_key_check;"_ns
)); if ((__builtin_expect(!!(tryResult871.isErr()), 0))) { [[
maybe_unused]] auto tryTempError = tryResult871.unwrapErr(); mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"PRAGMA foreign_key_check;\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 969, mozilla::dom::quota::Severity::Error); [[maybe_unused]
] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"PRAGMA foreign_key_check;\"_ns)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 969); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 969); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const bool
& foreignKeyError = tryResult871.inspect();
968 *connection, "PRAGMA foreign_key_check;"_ns),auto tryResult871 = (CreateAndExecuteSingleStepStatement< SingleStepResult
::ReturnNullIfNoResult>( *connection, "PRAGMA foreign_key_check;"_ns
)); if ((__builtin_expect(!!(tryResult871.isErr()), 0))) { [[
maybe_unused]] auto tryTempError = tryResult871.unwrapErr(); mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"PRAGMA foreign_key_check;\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 969, mozilla::dom::quota::Severity::Error); [[maybe_unused]
] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"PRAGMA foreign_key_check;\"_ns)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 969); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 969); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const bool
& foreignKeyError = tryResult871.inspect();
969 QM_ASSERT_UNREACHABLE)auto tryResult871 = (CreateAndExecuteSingleStepStatement< SingleStepResult
::ReturnNullIfNoResult>( *connection, "PRAGMA foreign_key_check;"_ns
)); if ((__builtin_expect(!!(tryResult871.isErr()), 0))) { [[
maybe_unused]] auto tryTempError = tryResult871.unwrapErr(); mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"PRAGMA foreign_key_check;\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 969, mozilla::dom::quota::Severity::Error); [[maybe_unused]
] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"PRAGMA foreign_key_check;\"_ns)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 969); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 969); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const bool
& foreignKeyError = tryResult871.inspect();
;
970
971 MOZ_ASSERT(!foreignKeyError, "Database has inconsisistent foreign keys!")do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!foreignKeyError)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!foreignKeyError))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!foreignKeyError"
" (" "Database has inconsisistent foreign keys!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 971); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!foreignKeyError"
") (" "Database has inconsisistent foreign keys!" ")"); do {
MOZ_CrashSequence(__null, 971); __attribute__((nomerge)) ::abort
(); } while (false); } } while (false)
;
972
973 MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(connection->ExecuteSimpleSQL("PRAGMA foreign_keys = OFF;"_ns
))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(connection->ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 974);
AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(connection->ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))"
")"); do { MOZ_CrashSequence(__null, 974); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
974 connection->ExecuteSimpleSQL("PRAGMA foreign_keys = OFF;"_ns))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(connection->ExecuteSimpleSQL("PRAGMA foreign_keys = OFF;"_ns
))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(connection->ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 974);
AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(connection->ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))"
")"); do { MOZ_CrashSequence(__null, 974); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
975 }
976#endif
977
978 if (kSQLitePageSizeOverride && !newDatabase) {
979 QM_TRY_INSPECT(const auto& stmt,auto tryResult872 = (CreateAndExecuteSingleStepStatement( *connection
, "PRAGMA page_size;"_ns)); if ((__builtin_expect(!!(tryResult872
.isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( *connection, \"PRAGMA page_size;\"_ns)"
, tryResult872.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 981, mozilla::dom::quota::Severity::Error); return tryResult872
.propagateErr(); } const auto& stmt = tryResult872.inspect
();
980 CreateAndExecuteSingleStepStatement(auto tryResult872 = (CreateAndExecuteSingleStepStatement( *connection
, "PRAGMA page_size;"_ns)); if ((__builtin_expect(!!(tryResult872
.isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( *connection, \"PRAGMA page_size;\"_ns)"
, tryResult872.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 981, mozilla::dom::quota::Severity::Error); return tryResult872
.propagateErr(); } const auto& stmt = tryResult872.inspect
();
981 *connection, "PRAGMA page_size;"_ns))auto tryResult872 = (CreateAndExecuteSingleStepStatement( *connection
, "PRAGMA page_size;"_ns)); if ((__builtin_expect(!!(tryResult872
.isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( *connection, \"PRAGMA page_size;\"_ns)"
, tryResult872.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 981, mozilla::dom::quota::Severity::Error); return tryResult872
.propagateErr(); } const auto& stmt = tryResult872.inspect
();
;
982
983 QM_TRY_INSPECT(const int32_t& pageSize,auto tryResult873 = (::mozilla::ToResultInvokeMember( (*stmt)
, &::mozilla::detail::DerefedType<decltype(*stmt)>::
GetInt32 , 0)); if ((__builtin_expect(!!(tryResult873.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)"
, tryResult873.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 984, mozilla::dom::quota::Severity::Error); return tryResult873
.propagateErr(); } const int32_t& pageSize = tryResult873
.inspect();
984 MOZ_TO_RESULT_INVOKE_MEMBER(*stmt, GetInt32, 0))auto tryResult873 = (::mozilla::ToResultInvokeMember( (*stmt)
, &::mozilla::detail::DerefedType<decltype(*stmt)>::
GetInt32 , 0)); if ((__builtin_expect(!!(tryResult873.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)"
, tryResult873.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 984, mozilla::dom::quota::Severity::Error); return tryResult873
.propagateErr(); } const int32_t& pageSize = tryResult873
.inspect();
;
985 MOZ_ASSERT(pageSize >= 512 && pageSize <= 65536)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(pageSize >= 512 && pageSize <= 65536)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(pageSize >= 512 && pageSize <= 65536))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("pageSize >= 512 && pageSize <= 65536"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 985);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "pageSize >= 512 && pageSize <= 65536"
")"); do { MOZ_CrashSequence(__null, 985); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
986
987 if (kSQLitePageSizeOverride != uint32_t(pageSize)) {
988 // We must not be in WAL journal mode to change the page size.
989 QM_TRY(MOZ_TO_RESULT({auto tryResult874 = (ToResult(connection->ExecuteSimpleSQL
("PRAGMA journal_mode = DELETE;"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect
(!!(tryResult874.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(connection->ExecuteSimpleSQL(\"PRAGMA journal_mode = DELETE;\"_ns))"
, tryResult874.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 990, mozilla::dom::quota::Severity::Error); return tryResult874
.propagateErr(); }}
990 connection->ExecuteSimpleSQL("PRAGMA journal_mode = DELETE;"_ns))){auto tryResult874 = (ToResult(connection->ExecuteSimpleSQL
("PRAGMA journal_mode = DELETE;"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult874)::ok_type>); if ((__builtin_expect
(!!(tryResult874.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(connection->ExecuteSimpleSQL(\"PRAGMA journal_mode = DELETE;\"_ns))"
, tryResult874.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 990, mozilla::dom::quota::Severity::Error); return tryResult874
.propagateErr(); }}
;
991
992 QM_TRY_INSPECT(const auto& stmt,auto tryResult875 = (CreateAndExecuteSingleStepStatement( *connection
, "PRAGMA journal_mode;"_ns)); if ((__builtin_expect(!!(tryResult875
.isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( *connection, \"PRAGMA journal_mode;\"_ns)"
, tryResult875.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 994, mozilla::dom::quota::Severity::Error); return tryResult875
.propagateErr(); } const auto& stmt = tryResult875.inspect
();
993 CreateAndExecuteSingleStepStatement(auto tryResult875 = (CreateAndExecuteSingleStepStatement( *connection
, "PRAGMA journal_mode;"_ns)); if ((__builtin_expect(!!(tryResult875
.isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( *connection, \"PRAGMA journal_mode;\"_ns)"
, tryResult875.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 994, mozilla::dom::quota::Severity::Error); return tryResult875
.propagateErr(); } const auto& stmt = tryResult875.inspect
();
994 *connection, "PRAGMA journal_mode;"_ns))auto tryResult875 = (CreateAndExecuteSingleStepStatement( *connection
, "PRAGMA journal_mode;"_ns)); if ((__builtin_expect(!!(tryResult875
.isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( *connection, \"PRAGMA journal_mode;\"_ns)"
, tryResult875.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 994, mozilla::dom::quota::Severity::Error); return tryResult875
.propagateErr(); } const auto& stmt = tryResult875.inspect
();
;
995
996 QM_TRY_INSPECT(const auto& journalMode,auto tryResult876 = (::mozilla::ToResultInvoke< nsCString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(*stmt)>::GetUTF8String), (*stmt), 0)); if ((__builtin_expect
(!!(tryResult876.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*stmt)>::GetUTF8String), (*stmt), 0)"
, tryResult876.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 998, mozilla::dom::quota::Severity::Error); return tryResult876
.propagateErr(); } const auto& journalMode = tryResult876
.inspect();
997 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsCString, *stmt,auto tryResult876 = (::mozilla::ToResultInvoke< nsCString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(*stmt)>::GetUTF8String), (*stmt), 0)); if ((__builtin_expect
(!!(tryResult876.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*stmt)>::GetUTF8String), (*stmt), 0)"
, tryResult876.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 998, mozilla::dom::quota::Severity::Error); return tryResult876
.propagateErr(); } const auto& journalMode = tryResult876
.inspect();
998 GetUTF8String, 0))auto tryResult876 = (::mozilla::ToResultInvoke< nsCString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(*stmt)>::GetUTF8String), (*stmt), 0)); if ((__builtin_expect
(!!(tryResult876.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*stmt)>::GetUTF8String), (*stmt), 0)"
, tryResult876.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 998, mozilla::dom::quota::Severity::Error); return tryResult876
.propagateErr(); } const auto& journalMode = tryResult876
.inspect();
;
999
1000 if (journalMode.EqualsLiteral("delete")) {
1001 // Successfully set to rollback journal mode so changing the page size
1002 // is possible with a VACUUM.
1003 QM_TRY(MOZ_TO_RESULT(connection->ExecuteSimpleSQL(nsPrintfCString({auto tryResult877 = (ToResult(connection->ExecuteSimpleSQL
(nsPrintfCString( "PRAGMA page_size = %" "u" ";", kSQLitePageSizeOverride
)))); static_assert(std::is_empty_v<typename decltype(tryResult877
)::ok_type>); if ((__builtin_expect(!!(tryResult877.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->ExecuteSimpleSQL(nsPrintfCString( \"PRAGMA page_size = %\" \"u\" \";\", kSQLitePageSizeOverride)))"
, tryResult877.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1004, mozilla::dom::quota::Severity::Error); return tryResult877
.propagateErr(); }}
1004 "PRAGMA page_size = %" PRIu32 ";", kSQLitePageSizeOverride)))){auto tryResult877 = (ToResult(connection->ExecuteSimpleSQL
(nsPrintfCString( "PRAGMA page_size = %" "u" ";", kSQLitePageSizeOverride
)))); static_assert(std::is_empty_v<typename decltype(tryResult877
)::ok_type>); if ((__builtin_expect(!!(tryResult877.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->ExecuteSimpleSQL(nsPrintfCString( \"PRAGMA page_size = %\" \"u\" \";\", kSQLitePageSizeOverride)))"
, tryResult877.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1004, mozilla::dom::quota::Severity::Error); return tryResult877
.propagateErr(); }}
;
1005
1006 // We will need to VACUUM in order to change the page size.
1007 vacuumNeeded = true;
1008 } else {
1009 NS_WARNING(NS_DebugBreak(NS_DEBUG_WARNING, "Failed to set journal_mode for database, unable to "
"change the page size!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1011)
1010 "Failed to set journal_mode for database, unable to "NS_DebugBreak(NS_DEBUG_WARNING, "Failed to set journal_mode for database, unable to "
"change the page size!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1011)
1011 "change the page size!")NS_DebugBreak(NS_DEBUG_WARNING, "Failed to set journal_mode for database, unable to "
"change the page size!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1011)
;
1012 }
1013 }
1014 }
1015
1016 if (vacuumNeeded) {
1017 QM_TRY(MOZ_TO_RESULT(connection->ExecuteSimpleSQL("VACUUM;"_ns))){auto tryResult878 = (ToResult(connection->ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult878)::ok_type>); if ((__builtin_expect(!!(tryResult878
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult878.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1017, mozilla::dom::quota::Severity::Error); return tryResult878
.propagateErr(); }}
;
1018 }
1019
1020 if (newDatabase || vacuumNeeded) {
1021 if (journalModeSet) {
1022 // Make sure we checkpoint to get an accurate file size.
1023 QM_TRY(MOZ_TO_RESULT({auto tryResult879 = (ToResult(connection->ExecuteSimpleSQL
("PRAGMA wal_checkpoint(FULL);"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult879)::ok_type>); if ((__builtin_expect
(!!(tryResult879.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(connection->ExecuteSimpleSQL(\"PRAGMA wal_checkpoint(FULL);\"_ns))"
, tryResult879.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1024, mozilla::dom::quota::Severity::Error); return tryResult879
.propagateErr(); }}
1024 connection->ExecuteSimpleSQL("PRAGMA wal_checkpoint(FULL);"_ns))){auto tryResult879 = (ToResult(connection->ExecuteSimpleSQL
("PRAGMA wal_checkpoint(FULL);"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult879)::ok_type>); if ((__builtin_expect
(!!(tryResult879.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(connection->ExecuteSimpleSQL(\"PRAGMA wal_checkpoint(FULL);\"_ns))"
, tryResult879.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1024, mozilla::dom::quota::Severity::Error); return tryResult879
.propagateErr(); }}
;
1025 }
1026
1027 QM_TRY_INSPECT(const int64_t& fileSize,auto tryResult880 = (::mozilla::ToResultInvokeMember( (aDBFile
), &::mozilla::detail::DerefedType<decltype(aDBFile)>
::GetFileSize )); if ((__builtin_expect(!!(tryResult880.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDBFile), &::mozilla::detail::DerefedType<decltype(aDBFile)>::GetFileSize )"
, tryResult880.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1028, mozilla::dom::quota::Severity::Error); return tryResult880
.propagateErr(); } const int64_t& fileSize = tryResult880
.inspect();
1028 MOZ_TO_RESULT_INVOKE_MEMBER(aDBFile, GetFileSize))auto tryResult880 = (::mozilla::ToResultInvokeMember( (aDBFile
), &::mozilla::detail::DerefedType<decltype(aDBFile)>
::GetFileSize )); if ((__builtin_expect(!!(tryResult880.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDBFile), &::mozilla::detail::DerefedType<decltype(aDBFile)>::GetFileSize )"
, tryResult880.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1028, mozilla::dom::quota::Severity::Error); return tryResult880
.propagateErr(); } const int64_t& fileSize = tryResult880
.inspect();
;
1029 MOZ_ASSERT(fileSize > 0)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileSize > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("fileSize > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1029)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"
); do { MOZ_CrashSequence(__null, 1029); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1030
1031 PRTime vacuumTime = PR_Now();
1032 MOZ_ASSERT(vacuumTime)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(vacuumTime)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(vacuumTime))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("vacuumTime", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1032); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime"
")"); do { MOZ_CrashSequence(__null, 1032); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1033
1034 // The parameter names are not used, parameters are bound by index only
1035 // locally in the same function.
1036 QM_TRY_INSPECT(auto tryResult881 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(connection)>::CreateStatement
), (connection), "UPDATE database " "SET last_vacuum_time = :time"
", last_vacuum_size = :size;"_ns)); if ((__builtin_expect(!!
(tryResult881.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(connection)>::CreateStatement), (connection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)"
, tryResult881.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1042, mozilla::dom::quota::Severity::Error); return tryResult881
.propagateErr(); } const auto& vacuumTimeStmt = tryResult881
.inspect();
1037 const auto& vacuumTimeStmt,auto tryResult881 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(connection)>::CreateStatement
), (connection), "UPDATE database " "SET last_vacuum_time = :time"
", last_vacuum_size = :size;"_ns)); if ((__builtin_expect(!!
(tryResult881.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(connection)>::CreateStatement), (connection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)"
, tryResult881.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1042, mozilla::dom::quota::Severity::Error); return tryResult881
.propagateErr(); } const auto& vacuumTimeStmt = tryResult881
.inspect();
1038 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsCOMPtr<mozIStorageStatement>,auto tryResult881 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(connection)>::CreateStatement
), (connection), "UPDATE database " "SET last_vacuum_time = :time"
", last_vacuum_size = :size;"_ns)); if ((__builtin_expect(!!
(tryResult881.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(connection)>::CreateStatement), (connection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)"
, tryResult881.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1042, mozilla::dom::quota::Severity::Error); return tryResult881
.propagateErr(); } const auto& vacuumTimeStmt = tryResult881
.inspect();
1039 connection, CreateStatement,auto tryResult881 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(connection)>::CreateStatement
), (connection), "UPDATE database " "SET last_vacuum_time = :time"
", last_vacuum_size = :size;"_ns)); if ((__builtin_expect(!!
(tryResult881.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(connection)>::CreateStatement), (connection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)"
, tryResult881.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1042, mozilla::dom::quota::Severity::Error); return tryResult881
.propagateErr(); } const auto& vacuumTimeStmt = tryResult881
.inspect();
1040 "UPDATE database "auto tryResult881 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(connection)>::CreateStatement
), (connection), "UPDATE database " "SET last_vacuum_time = :time"
", last_vacuum_size = :size;"_ns)); if ((__builtin_expect(!!
(tryResult881.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(connection)>::CreateStatement), (connection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)"
, tryResult881.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1042, mozilla::dom::quota::Severity::Error); return tryResult881
.propagateErr(); } const auto& vacuumTimeStmt = tryResult881
.inspect();
1041 "SET last_vacuum_time = :time"auto tryResult881 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(connection)>::CreateStatement
), (connection), "UPDATE database " "SET last_vacuum_time = :time"
", last_vacuum_size = :size;"_ns)); if ((__builtin_expect(!!
(tryResult881.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(connection)>::CreateStatement), (connection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)"
, tryResult881.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1042, mozilla::dom::quota::Severity::Error); return tryResult881
.propagateErr(); } const auto& vacuumTimeStmt = tryResult881
.inspect();
1042 ", last_vacuum_size = :size;"_ns))auto tryResult881 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(connection)>::CreateStatement
), (connection), "UPDATE database " "SET last_vacuum_time = :time"
", last_vacuum_size = :size;"_ns)); if ((__builtin_expect(!!
(tryResult881.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(connection)>::CreateStatement), (connection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)"
, tryResult881.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1042, mozilla::dom::quota::Severity::Error); return tryResult881
.propagateErr(); } const auto& vacuumTimeStmt = tryResult881
.inspect();
;
1043
1044 QM_TRY(MOZ_TO_RESULT(vacuumTimeStmt->BindInt64ByIndex(0, vacuumTime))){auto tryResult882 = (ToResult(vacuumTimeStmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult882)::ok_type>); if ((__builtin_expect(!!(tryResult882
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(vacuumTimeStmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult882.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1044, mozilla::dom::quota::Severity::Error); return tryResult882
.propagateErr(); }}
;
1045 QM_TRY(MOZ_TO_RESULT(vacuumTimeStmt->BindInt64ByIndex(1, fileSize))){auto tryResult883 = (ToResult(vacuumTimeStmt->BindInt64ByIndex
(1, fileSize))); static_assert(std::is_empty_v<typename decltype
(tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(vacuumTimeStmt->BindInt64ByIndex(1, fileSize))"
, tryResult883.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1045, mozilla::dom::quota::Severity::Error); return tryResult883
.propagateErr(); }}
;
1046 QM_TRY(MOZ_TO_RESULT(vacuumTimeStmt->Execute())){auto tryResult884 = (ToResult(vacuumTimeStmt->Execute()))
; static_assert(std::is_empty_v<typename decltype(tryResult884
)::ok_type>); if ((__builtin_expect(!!(tryResult884.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(vacuumTimeStmt->Execute())"
, tryResult884.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1046, mozilla::dom::quota::Severity::Error); return tryResult884
.propagateErr(); }}
;
1047 }
1048 }
1049
1050 if (!journalModeSet) {
1051 QM_TRY(MOZ_TO_RESULT(SetJournalMode(*connection))){auto tryResult885 = (ToResult(SetJournalMode(*connection)));
static_assert(std::is_empty_v<typename decltype(tryResult885
)::ok_type>); if ((__builtin_expect(!!(tryResult885.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(SetJournalMode(*connection))"
, tryResult885.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1051, mozilla::dom::quota::Severity::Error); return tryResult885
.propagateErr(); }}
;
1052 }
1053
1054 return WrapMovingNotNullUnchecked(std::move(connection));
1055}
1056
1057nsCOMPtr<nsIFile> GetFileForPath(const nsAString& aPath) {
1058 MOZ_ASSERT(!aPath.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aPath.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!aPath.IsEmpty()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!aPath.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1058)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aPath.IsEmpty()" ")"
); do { MOZ_CrashSequence(__null, 1058); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1059
1060 QM_TRY_RETURN(QM_NewLocalFile(aPath), nullptr){auto tryResult886 = (QM_NewLocalFile(aPath)); if ((__builtin_expect
(!!(tryResult886.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult886.unwrapErr(); mozilla::dom::quota::HandleError
("QM_NewLocalFile(aPath)", tryResult886.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1060, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "QM_NewLocalFile(aPath)"
, tryTempError, nullptr); } return tryResult886.unwrap();}
;
1061}
1062
1063Result<MovingNotNull<nsCOMPtr<mozIStorageConnection>>, nsresult>
1064GetStorageConnection(nsIFile& aDatabaseFile, const int64_t aDirectoryLockId,
1065 const uint32_t aTelemetryId,
1066 const Maybe<CipherKey>& aMaybeKey) {
1067 MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1067)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { MOZ_CrashSequence(__null, 1067); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1068 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1068)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 1068); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1069 MOZ_ASSERT(aDirectoryLockId >= 0)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDirectoryLockId >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDirectoryLockId >= 0))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("aDirectoryLockId >= 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1069)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectoryLockId >= 0"
")"); do { MOZ_CrashSequence(__null, 1069); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1070
1071 AUTO_PROFILER_LABEL("GetStorageConnection", DOM)mozilla::AutoProfilerLabel raiiObject1071( "GetStorageConnection"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
1072
1073 QM_TRY_INSPECT(const bool& exists,auto tryResult887 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::Exists )); if ((__builtin_expect(!!(tryResult887.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::Exists )"
, tryResult887.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1074, mozilla::dom::quota::Severity::Error); return tryResult887
.propagateErr(); } const bool& exists = tryResult887.inspect
();
1074 MOZ_TO_RESULT_INVOKE_MEMBER(aDatabaseFile, Exists))auto tryResult887 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::Exists )); if ((__builtin_expect(!!(tryResult887.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::Exists )"
, tryResult887.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1074, mozilla::dom::quota::Severity::Error); return tryResult887
.propagateErr(); } const bool& exists = tryResult887.inspect
();
;
1075
1076 QM_TRY(OkIf(exists), Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR),{auto tryResult888 = (OkIf(exists)); static_assert(std::is_empty_v
<typename decltype(tryResult888)::ok_type>); if ((__builtin_expect
(!!(tryResult888.isErr()), 0))) { auto tryTempError = tryResult888
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(exists)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1077, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1077, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(exists)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}
1077 IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult888 = (OkIf(exists)); static_assert(std::is_empty_v
<typename decltype(tryResult888)::ok_type>); if ((__builtin_expect
(!!(tryResult888.isErr()), 0))) { auto tryTempError = tryResult888
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(exists)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1077, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1077, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(exists)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}
;
1078
1079 QM_TRY_INSPECT(auto tryResult889 = (GetDatabaseFileURL(aDatabaseFile, aDirectoryLockId
, aMaybeKey)); if ((__builtin_expect(!!(tryResult889.isErr())
, 0))) { mozilla::dom::quota::HandleError("GetDatabaseFileURL(aDatabaseFile, aDirectoryLockId, aMaybeKey)"
, tryResult889.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1081, mozilla::dom::quota::Severity::Error); return tryResult889
.propagateErr(); } const auto& dbFileUrl = tryResult889.inspect
();
1080 const auto& dbFileUrl,auto tryResult889 = (GetDatabaseFileURL(aDatabaseFile, aDirectoryLockId
, aMaybeKey)); if ((__builtin_expect(!!(tryResult889.isErr())
, 0))) { mozilla::dom::quota::HandleError("GetDatabaseFileURL(aDatabaseFile, aDirectoryLockId, aMaybeKey)"
, tryResult889.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1081, mozilla::dom::quota::Severity::Error); return tryResult889
.propagateErr(); } const auto& dbFileUrl = tryResult889.inspect
();
1081 GetDatabaseFileURL(aDatabaseFile, aDirectoryLockId, aMaybeKey))auto tryResult889 = (GetDatabaseFileURL(aDatabaseFile, aDirectoryLockId
, aMaybeKey)); if ((__builtin_expect(!!(tryResult889.isErr())
, 0))) { mozilla::dom::quota::HandleError("GetDatabaseFileURL(aDatabaseFile, aDirectoryLockId, aMaybeKey)"
, tryResult889.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1081, mozilla::dom::quota::Severity::Error); return tryResult889
.propagateErr(); } const auto& dbFileUrl = tryResult889.inspect
();
;
1082
1083 QM_TRY_INSPECT(const auto& storageService,auto tryResult890 = (::mozilla::ToResultGet< nsCOMPtr<mozIStorageService
> >([](auto&&... aArgs) -> decltype(auto) { return
do_GetService(std::forward<decltype(aArgs)>(aArgs)...)
; }, "@mozilla.org/storage/service;1")); if ((__builtin_expect
(!!(tryResult890.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultGet< nsCOMPtr<mozIStorageService>>([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype(aArgs)>(aArgs)...); }, \"@mozilla.org/storage/service;1\")"
, tryResult890.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1086, mozilla::dom::quota::Severity::Error); return tryResult890
.propagateErr(); } const auto& storageService = tryResult890
.inspect();
1084 MOZ_TO_RESULT_GET_TYPED(nsCOMPtr<mozIStorageService>,auto tryResult890 = (::mozilla::ToResultGet< nsCOMPtr<mozIStorageService
> >([](auto&&... aArgs) -> decltype(auto) { return
do_GetService(std::forward<decltype(aArgs)>(aArgs)...)
; }, "@mozilla.org/storage/service;1")); if ((__builtin_expect
(!!(tryResult890.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultGet< nsCOMPtr<mozIStorageService>>([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype(aArgs)>(aArgs)...); }, \"@mozilla.org/storage/service;1\")"
, tryResult890.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1086, mozilla::dom::quota::Severity::Error); return tryResult890
.propagateErr(); } const auto& storageService = tryResult890
.inspect();
1085 MOZ_SELECT_OVERLOAD(do_GetService),auto tryResult890 = (::mozilla::ToResultGet< nsCOMPtr<mozIStorageService
> >([](auto&&... aArgs) -> decltype(auto) { return
do_GetService(std::forward<decltype(aArgs)>(aArgs)...)
; }, "@mozilla.org/storage/service;1")); if ((__builtin_expect
(!!(tryResult890.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultGet< nsCOMPtr<mozIStorageService>>([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype(aArgs)>(aArgs)...); }, \"@mozilla.org/storage/service;1\")"
, tryResult890.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1086, mozilla::dom::quota::Severity::Error); return tryResult890
.propagateErr(); } const auto& storageService = tryResult890
.inspect();
1086 MOZ_STORAGE_SERVICE_CONTRACTID))auto tryResult890 = (::mozilla::ToResultGet< nsCOMPtr<mozIStorageService
> >([](auto&&... aArgs) -> decltype(auto) { return
do_GetService(std::forward<decltype(aArgs)>(aArgs)...)
; }, "@mozilla.org/storage/service;1")); if ((__builtin_expect
(!!(tryResult890.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultGet< nsCOMPtr<mozIStorageService>>([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype(aArgs)>(aArgs)...); }, \"@mozilla.org/storage/service;1\")"
, tryResult890.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1086, mozilla::dom::quota::Severity::Error); return tryResult890
.propagateErr(); } const auto& storageService = tryResult890
.inspect();
;
1087
1088 QM_TRY_UNWRAP(auto tryResult891 = (OpenDatabaseAndHandleBusy(*storageService
, *dbFileUrl, aTelemetryId)); if ((__builtin_expect(!!(tryResult891
.isErr()), 0))) { mozilla::dom::quota::HandleError("OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId)"
, tryResult891.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1090, mozilla::dom::quota::Severity::Error); return tryResult891
.propagateErr(); } nsCOMPtr<mozIStorageConnection> connection
= tryResult891.unwrap();
1089 nsCOMPtr<mozIStorageConnection> connection,auto tryResult891 = (OpenDatabaseAndHandleBusy(*storageService
, *dbFileUrl, aTelemetryId)); if ((__builtin_expect(!!(tryResult891
.isErr()), 0))) { mozilla::dom::quota::HandleError("OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId)"
, tryResult891.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1090, mozilla::dom::quota::Severity::Error); return tryResult891
.propagateErr(); } nsCOMPtr<mozIStorageConnection> connection
= tryResult891.unwrap();
1090 OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId))auto tryResult891 = (OpenDatabaseAndHandleBusy(*storageService
, *dbFileUrl, aTelemetryId)); if ((__builtin_expect(!!(tryResult891
.isErr()), 0))) { mozilla::dom::quota::HandleError("OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId)"
, tryResult891.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1090, mozilla::dom::quota::Severity::Error); return tryResult891
.propagateErr(); } nsCOMPtr<mozIStorageConnection> connection
= tryResult891.unwrap();
;
1091
1092 QM_TRY(MOZ_TO_RESULT(SetDefaultPragmas(*connection))){auto tryResult892 = (ToResult(SetDefaultPragmas(*connection)
)); static_assert(std::is_empty_v<typename decltype(tryResult892
)::ok_type>); if ((__builtin_expect(!!(tryResult892.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(SetDefaultPragmas(*connection))"
, tryResult892.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1092, mozilla::dom::quota::Severity::Error); return tryResult892
.propagateErr(); }}
;
1093
1094 QM_TRY(MOZ_TO_RESULT(SetJournalMode(*connection))){auto tryResult893 = (ToResult(SetJournalMode(*connection)));
static_assert(std::is_empty_v<typename decltype(tryResult893
)::ok_type>); if ((__builtin_expect(!!(tryResult893.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(SetJournalMode(*connection))"
, tryResult893.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1094, mozilla::dom::quota::Severity::Error); return tryResult893
.propagateErr(); }}
;
1095
1096 return WrapMovingNotNullUnchecked(std::move(connection));
1097}
1098
1099Result<MovingNotNull<nsCOMPtr<mozIStorageConnection>>, nsresult>
1100GetStorageConnection(const nsAString& aDatabaseFilePath,
1101 const int64_t aDirectoryLockId,
1102 const uint32_t aTelemetryId,
1103 const Maybe<CipherKey>& aMaybeKey) {
1104 MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1104)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { MOZ_CrashSequence(__null, 1104); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1105 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1105)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 1105); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1106 MOZ_ASSERT(!aDatabaseFilePath.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aDatabaseFilePath.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!aDatabaseFilePath.IsEmpty()
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"!aDatabaseFilePath.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1106); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseFilePath.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 1106); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1107 MOZ_ASSERT(StringEndsWith(aDatabaseFilePath, kSQLiteSuffix))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(StringEndsWith(aDatabaseFilePath, kSQLiteSuffix))>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(StringEndsWith(aDatabaseFilePath, kSQLiteSuffix)))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("StringEndsWith(aDatabaseFilePath, kSQLiteSuffix)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1107)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "StringEndsWith(aDatabaseFilePath, kSQLiteSuffix)"
")"); do { MOZ_CrashSequence(__null, 1107); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1108 MOZ_ASSERT(aDirectoryLockId >= 0)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDirectoryLockId >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDirectoryLockId >= 0))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("aDirectoryLockId >= 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1108)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectoryLockId >= 0"
")"); do { MOZ_CrashSequence(__null, 1108); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1109
1110 nsCOMPtr<nsIFile> dbFile = GetFileForPath(aDatabaseFilePath);
1111
1112 QM_TRY(OkIf(dbFile), Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR),{auto tryResult894 = (OkIf(dbFile)); static_assert(std::is_empty_v
<typename decltype(tryResult894)::ok_type>); if ((__builtin_expect
(!!(tryResult894.isErr()), 0))) { auto tryTempError = tryResult894
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(dbFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1113, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1113, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(dbFile)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}
1113 IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult894 = (OkIf(dbFile)); static_assert(std::is_empty_v
<typename decltype(tryResult894)::ok_type>); if ((__builtin_expect
(!!(tryResult894.isErr()), 0))) { auto tryTempError = tryResult894
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(dbFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1113, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1113, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(dbFile)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}
;
1114
1115 return GetStorageConnection(*dbFile, aDirectoryLockId, aTelemetryId,
1116 aMaybeKey);
1117}
1118
1119/*******************************************************************************
1120 * ConnectionPool declarations
1121 ******************************************************************************/
1122
1123class DatabaseConnection final : public CachingDatabaseConnection {
1124 friend class ConnectionPool;
1125
1126 enum class CheckpointMode { Full, Restart, Truncate };
1127
1128 public:
1129 class AutoSavepoint;
1130 class UpdateRefcountFunction;
1131
1132 private:
1133 InitializedOnce<const NotNull<SafeRefPtr<DatabaseFileManager>>> mFileManager;
1134 RefPtr<UpdateRefcountFunction> mUpdateRefcountFunction;
1135 RefPtr<QuotaObject> mQuotaObject;
1136 RefPtr<QuotaObject> mJournalQuotaObject;
1137 IDBTransaction::Durability mLastDurability;
1138 bool mInReadTransaction;
1139 bool mInWriteTransaction;
1140
1141#ifdef DEBUG1
1142 uint32_t mDEBUGSavepointCount;
1143#endif
1144
1145 public:
1146 NS_INLINE_DECL_THREADSAFE_REFCOUNTING(DatabaseConnection)public: MozExternalRefCountType AddRef(void) { static_assert(
!std::is_destructible_v<DatabaseConnection>, "Reference-counted class "
"DatabaseConnection" " should not have a public destructor. "
"Make this class's destructor non-public"); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(int32_t
(mRefCnt) >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0"
" (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1146); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 1146
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); nsrefcnt count = ++mRefCnt; NS_LogAddRef((this), (count
), ("DatabaseConnection"), (uint32_t)(sizeof(*this))); return
(nsrefcnt)count; } MozExternalRefCountType Release(void) { do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0"
" (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1146); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 1146
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); nsrefcnt count = --mRefCnt; NS_LogRelease((this), (
count), ("DatabaseConnection")); if (count == 0) { delete (this
); return 0; } return count; } using HasThreadSafeRefCnt = std
::true_type; protected: ::mozilla::ThreadSafeAutoRefCnt mRefCnt
; public:
1147
1148 UpdateRefcountFunction* GetUpdateRefcountFunction() const {
1149 AssertIsOnConnectionThread();
1150
1151 return mUpdateRefcountFunction;
1152 }
1153
1154 nsresult BeginWriteTransaction(const IDBTransaction::Durability aDurability);
1155
1156 nsresult CommitWriteTransaction();
1157
1158 void RollbackWriteTransaction();
1159
1160 void FinishWriteTransaction();
1161
1162 nsresult StartSavepoint();
1163
1164 nsresult ReleaseSavepoint();
1165
1166 nsresult RollbackSavepoint();
1167
1168 nsresult Checkpoint() {
1169 AssertIsOnConnectionThread();
1170
1171 return CheckpointInternal(CheckpointMode::Full);
1172 }
1173
1174 void DoIdleProcessing(bool aNeedsCheckpoint,
1175 const Atomic<bool>& aInterrupted);
1176
1177 void Close();
1178
1179 nsresult DisableQuotaChecks();
1180
1181 void EnableQuotaChecks();
1182
1183 private:
1184 DatabaseConnection(
1185 MovingNotNull<nsCOMPtr<mozIStorageConnection>> aStorageConnection,
1186 MovingNotNull<SafeRefPtr<DatabaseFileManager>> aFileManager);
1187
1188 ~DatabaseConnection();
1189
1190 nsresult Init();
1191
1192 nsresult CheckpointInternal(CheckpointMode aMode);
1193
1194 Result<uint32_t, nsresult> GetFreelistCount(
1195 CachedStatement& aCachedStatement);
1196
1197 /**
1198 * On success, returns whether some pages were freed.
1199 */
1200 Result<bool, nsresult> ReclaimFreePagesWhileIdle(
1201 CachedStatement& aFreelistStatement, CachedStatement& aRollbackStatement,
1202 uint32_t aFreelistCount, bool aNeedsCheckpoint,
1203 const Atomic<bool>& aInterrupted);
1204
1205 Result<int64_t, nsresult> GetFileSize(const nsAString& aPath);
1206};
1207
1208class MOZ_STACK_CLASS DatabaseConnection::AutoSavepoint final {
1209 DatabaseConnection* mConnection;
1210#ifdef DEBUG1
1211 const TransactionBase* mDEBUGTransaction;
1212#endif
1213
1214 public:
1215 AutoSavepoint();
1216 ~AutoSavepoint();
1217
1218 nsresult Start(const TransactionBase& aTransaction);
1219
1220 nsresult Commit();
1221};
1222
1223class DatabaseConnection::UpdateRefcountFunction final
1224 : public mozIStorageFunction {
1225 class FileInfoEntry;
1226
1227 enum class UpdateType { Increment, Decrement };
1228
1229 DatabaseConnection* const mConnection;
1230 DatabaseFileManager& mFileManager;
1231 nsClassHashtable<nsUint64HashKey, FileInfoEntry> mFileInfoEntries;
1232 nsTHashMap<nsUint64HashKey, NotNull<FileInfoEntry*>> mSavepointEntriesIndex;
1233
1234 nsTArray<int64_t> mJournalsToCreateBeforeCommit;
1235 nsTArray<int64_t> mJournalsToRemoveAfterCommit;
1236 nsTArray<int64_t> mJournalsToRemoveAfterAbort;
1237
1238 bool mInSavepoint;
1239
1240 public:
1241 NS_DECL_ISUPPORTS_ONEVENTTARGETpublic: virtual nsresult QueryInterface(const nsIID& aIID
, void** aInstancePtr) override; virtual MozExternalRefCountType
AddRef(void) override; virtual MozExternalRefCountType Release
(void) override; using HasThreadSafeRefCnt = std::false_type;
protected: nsAutoRefCnt mRefCnt; nsAutoOwningEventTarget _mOwningThread
; public:
1242 NS_DECL_MOZISTORAGEFUNCTIONvirtual nsresult OnFunctionCall(mozIStorageValueArray *aFunctionArguments
, nsIVariant **_retval) override;
1243
1244 UpdateRefcountFunction(DatabaseConnection* aConnection,
1245 DatabaseFileManager& aFileManager);
1246
1247 nsresult WillCommit();
1248
1249 void DidCommit();
1250
1251 void DidAbort();
1252
1253 void StartSavepoint();
1254
1255 void ReleaseSavepoint();
1256
1257 void RollbackSavepoint();
1258
1259 void Reset();
1260
1261 private:
1262 ~UpdateRefcountFunction() = default;
1263
1264 nsresult ProcessValue(mozIStorageValueArray* aValues, int32_t aIndex,
1265 UpdateType aUpdateType);
1266
1267 nsresult CreateJournals();
1268
1269 nsresult RemoveJournals(const nsTArray<int64_t>& aJournals);
1270};
1271
1272class DatabaseConnection::UpdateRefcountFunction::FileInfoEntry final {
1273 SafeRefPtr<DatabaseFileInfo> mFileInfo;
1274 int32_t mDelta;
1275 int32_t mSavepointDelta;
1276
1277 public:
1278 explicit FileInfoEntry(SafeRefPtr<DatabaseFileInfo> aFileInfo)
1279 : mFileInfo(std::move(aFileInfo)), mDelta(0), mSavepointDelta(0) {
1280 MOZ_COUNT_CTOR(DatabaseConnection::UpdateRefcountFunction::FileInfoEntry)do { static_assert(std::is_class_v<DatabaseConnection::UpdateRefcountFunction
::FileInfoEntry>, "Token '" "DatabaseConnection::UpdateRefcountFunction::FileInfoEntry"
"' is not a class type."); static_assert(!std::is_base_of_v<
nsISupports, DatabaseConnection::UpdateRefcountFunction::FileInfoEntry
>, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "DatabaseConnection::UpdateRefcountFunction::FileInfoEntry"
, sizeof(*this)); } while (0)
;
1281 }
1282
1283 void IncDeltas(bool aUpdateSavepointDelta) {
1284 ++mDelta;
1285 if (aUpdateSavepointDelta) {
1286 ++mSavepointDelta;
1287 }
1288 }
1289 void DecDeltas(bool aUpdateSavepointDelta) {
1290 --mDelta;
1291 if (aUpdateSavepointDelta) {
1292 --mSavepointDelta;
1293 }
1294 }
1295 void DecBySavepointDelta() { mDelta -= mSavepointDelta; }
1296 void ResetSavepointDelta() { mSavepointDelta = 0; }
1297 SafeRefPtr<DatabaseFileInfo> ReleaseFileInfo() {
1298 return std::move(mFileInfo);
1299 }
1300 void MaybeUpdateDBRefs() {
1301 if (mDelta) {
1302 mFileInfo->UpdateDBRefs(mDelta);
1303 }
1304 }
1305
1306 int32_t Delta() const { return mDelta; }
1307 int32_t SavepointDelta() const { return mSavepointDelta; }
1308
1309 ~FileInfoEntry() {
1310 MOZ_COUNT_DTOR(DatabaseConnection::UpdateRefcountFunction::FileInfoEntry)do { static_assert(std::is_class_v<DatabaseConnection::UpdateRefcountFunction
::FileInfoEntry>, "Token '" "DatabaseConnection::UpdateRefcountFunction::FileInfoEntry"
"' is not a class type."); static_assert(!std::is_base_of_v<
nsISupports, DatabaseConnection::UpdateRefcountFunction::FileInfoEntry
>, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "DatabaseConnection::UpdateRefcountFunction::FileInfoEntry"
, sizeof(*this)); } while (0)
;
1311 }
1312};
1313
1314class ConnectionPool final {
1315 public:
1316 class FinishCallback;
1317
1318 private:
1319 class ConnectionRunnable;
1320 class CloseConnectionRunnable;
1321 struct DatabaseInfo;
1322 struct DatabaseCompleteCallback;
1323 class FinishCallbackWrapper;
1324 class IdleConnectionRunnable;
1325
1326#ifdef DEBUG1
1327 class TransactionRunnable;
1328#endif
1329 class TransactionInfo;
1330 struct TransactionInfoPair;
1331
1332 struct IdleResource {
1333 TimeStamp mIdleTime;
1334
1335 IdleResource(const IdleResource& aOther) = delete;
1336 IdleResource(IdleResource&& aOther) noexcept
1337 : IdleResource(aOther.mIdleTime) {}
1338 IdleResource& operator=(const IdleResource& aOther) = delete;
1339 IdleResource& operator=(IdleResource&& aOther) = delete;
1340
1341 protected:
1342 explicit IdleResource(const TimeStamp& aIdleTime);
1343
1344 ~IdleResource();
1345 };
1346
1347 struct IdleDatabaseInfo final : public IdleResource {
1348 InitializedOnce<const NotNull<DatabaseInfo*>> mDatabaseInfo;
1349
1350 public:
1351 explicit IdleDatabaseInfo(DatabaseInfo& aDatabaseInfo);
1352
1353 IdleDatabaseInfo(const IdleDatabaseInfo& aOther) = delete;
1354 IdleDatabaseInfo(IdleDatabaseInfo&& aOther) noexcept
1355 : IdleResource(std::move(aOther)),
1356 mDatabaseInfo{std::move(aOther.mDatabaseInfo)} {
1357 MOZ_ASSERT(mDatabaseInfo)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDatabaseInfo)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDatabaseInfo))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mDatabaseInfo",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1357);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabaseInfo" ")")
; do { MOZ_CrashSequence(__null, 1357); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1358
1359 MOZ_COUNT_CTOR(ConnectionPool::IdleDatabaseInfo)do { static_assert(std::is_class_v<ConnectionPool::IdleDatabaseInfo
>, "Token '" "ConnectionPool::IdleDatabaseInfo" "' is not a class type."
); static_assert(!std::is_base_of_v<nsISupports, ConnectionPool
::IdleDatabaseInfo>, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ConnectionPool::IdleDatabaseInfo"
, sizeof(*this)); } while (0)
;
1360 }
1361 IdleDatabaseInfo& operator=(const IdleDatabaseInfo& aOther) = delete;
1362 IdleDatabaseInfo& operator=(IdleDatabaseInfo&& aOther) = delete;
1363
1364 ~IdleDatabaseInfo();
1365
1366 bool operator==(const IdleDatabaseInfo& aOther) const {
1367 return *mDatabaseInfo == *aOther.mDatabaseInfo;
1368 }
1369
1370 bool operator==(const DatabaseInfo* aDatabaseInfo) const {
1371 return *mDatabaseInfo == aDatabaseInfo;
1372 }
1373
1374 bool operator<(const IdleDatabaseInfo& aOther) const {
1375 return mIdleTime < aOther.mIdleTime;
1376 }
1377 };
1378
1379 struct PerformingIdleMaintenanceDatabaseInfo {
1380 const NotNull<DatabaseInfo*> mDatabaseInfo;
1381 RefPtr<IdleConnectionRunnable> mIdleConnectionRunnable;
1382
1383 PerformingIdleMaintenanceDatabaseInfo(
1384 DatabaseInfo& aDatabaseInfo,
1385 RefPtr<IdleConnectionRunnable> aIdleConnectionRunnable);
1386
1387 PerformingIdleMaintenanceDatabaseInfo(
1388 const PerformingIdleMaintenanceDatabaseInfo& aOther) = delete;
1389 PerformingIdleMaintenanceDatabaseInfo(
1390 PerformingIdleMaintenanceDatabaseInfo&& aOther) noexcept
1391 : mDatabaseInfo{aOther.mDatabaseInfo},
1392 mIdleConnectionRunnable{std::move(aOther.mIdleConnectionRunnable)} {
1393 MOZ_COUNT_CTOR(ConnectionPool::PerformingIdleMaintenanceDatabaseInfo)do { static_assert(std::is_class_v<ConnectionPool::PerformingIdleMaintenanceDatabaseInfo
>, "Token '" "ConnectionPool::PerformingIdleMaintenanceDatabaseInfo"
"' is not a class type."); static_assert(!std::is_base_of_v<
nsISupports, ConnectionPool::PerformingIdleMaintenanceDatabaseInfo
>, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ConnectionPool::PerformingIdleMaintenanceDatabaseInfo"
, sizeof(*this)); } while (0)
;
1394 }
1395 PerformingIdleMaintenanceDatabaseInfo& operator=(
1396 const PerformingIdleMaintenanceDatabaseInfo& aOther) = delete;
1397 PerformingIdleMaintenanceDatabaseInfo& operator=(
1398 PerformingIdleMaintenanceDatabaseInfo&& aOther) = delete;
1399
1400 ~PerformingIdleMaintenanceDatabaseInfo();
1401
1402 bool operator==(const DatabaseInfo* aDatabaseInfo) const {
1403 return mDatabaseInfo == aDatabaseInfo;
1404 }
1405 };
1406
1407 // This mutex guards mDatabases, see below.
1408 Mutex mDatabasesMutex MOZ_UNANNOTATED;
1409
1410 nsCOMPtr<nsIThreadPool> mIOTarget;
1411 nsTArray<IdleDatabaseInfo> mIdleDatabases;
1412 nsTArray<PerformingIdleMaintenanceDatabaseInfo>
1413 mDatabasesPerformingIdleMaintenance;
1414 nsCOMPtr<nsITimer> mIdleTimer;
1415 TimeStamp mTargetIdleTime;
1416
1417 // Only modifed on the owning thread, but read on multiple threads. Therefore
1418 // all modifications and all reads off the owning thread must be protected by
1419 // mDatabasesMutex.
1420 nsClassHashtable<nsCStringHashKey, DatabaseInfo> mDatabases;
1421
1422 nsClassHashtable<nsUint64HashKey, TransactionInfo> mTransactions;
1423 nsTArray<NotNull<TransactionInfo*>> mQueuedTransactions;
1424
1425 nsTArray<UniquePtr<DatabaseCompleteCallback>> mCompleteCallbacks;
1426
1427 uint64_t mNextTransactionId;
1428 FlippedOnce<false> mShutdownRequested;
1429 FlippedOnce<false> mShutdownComplete;
1430
1431 public:
1432 ConnectionPool();
1433
1434 void AssertIsOnOwningThread() const {
1435 NS_ASSERT_OWNINGTHREAD(ConnectionPool)_mOwningThread.AssertOwnership("ConnectionPool" " not thread-safe"
)
;
1436 }
1437
1438 Result<RefPtr<DatabaseConnection>, nsresult> GetOrCreateConnection(
1439 const Database& aDatabase);
1440
1441 uint64_t Start(const nsID& aBackgroundChildLoggingId,
1442 const nsACString& aDatabaseId, int64_t aLoggingSerialNumber,
1443 const nsTArray<nsString>& aObjectStoreNames,
1444 bool aIsWriteTransaction,
1445 TransactionDatabaseOperationBase* aTransactionOp);
1446
1447 /**
1448 * Starts a new operation associated with the given transaction.
1449 *
1450 * This method initiates an operation by:
1451 * 1. Dispatching the provided runnable to the task queue created on top of
1452 * the I/O thread pool if the transaction is currently running.
1453 * 2. Queuing the runnable for later execution if the transaction is not yet
1454 * running.
1455 *
1456 * It is mandatory for all operations to call StartOp to ensure proper
1457 * handling and sequencing within the transaction context.
1458 *
1459 * Note:
1460 * - For more complex operations that involve work on other threads or require
1461 * communication with content processes, StartOp should not be called again
1462 * to dispatch to the task queue, as this could disrupt proper queuing and
1463 * execution.
1464 */
1465 void StartOp(uint64_t aTransactionId, nsCOMPtr<nsIRunnable> aRunnable);
1466
1467 /**
1468 * Marks the completion of an operation associated with the given transaction.
1469 *
1470 * This method signals that the current operation has finished, allowing the
1471 * next queued operation (if any) for the transaction to start.
1472 */
1473 void FinishOp(uint64_t aTransactionId);
1474
1475 void Finish(uint64_t aTransactionId, FinishCallback* aCallback);
1476
1477 void CloseDatabaseWhenIdle(const nsACString& aDatabaseId) {
1478 (void)CloseDatabaseWhenIdleInternal(aDatabaseId);
1479 }
1480
1481 void WaitForDatabaseToComplete(const nsCString& aDatabaseId,
1482 nsIRunnable* aCallback);
1483
1484 void Shutdown();
1485
1486 NS_INLINE_DECL_REFCOUNTING(ConnectionPool)public: MozExternalRefCountType AddRef(void) { static_assert(
!std::is_destructible_v<ConnectionPool>, "Reference-counted class "
"ConnectionPool" " should not have a public destructor. " "Make this class's destructor non-public"
); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(int32_t(mRefCnt) >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0"
" (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1486); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 1486
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); _mOwningThread.AssertOwnership("ConnectionPool" " not thread-safe"
); ++mRefCnt; NS_LogAddRef((this), (mRefCnt), ("ConnectionPool"
), (uint32_t)(sizeof(*this))); return mRefCnt; } MozExternalRefCountType
Release(void) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0"
" (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1486); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 1486
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); _mOwningThread.AssertOwnership("ConnectionPool" " not thread-safe"
); --mRefCnt; NS_LogRelease((this), (mRefCnt), ("ConnectionPool"
)); if (mRefCnt == 0) { mRefCnt = 1; delete (this); return 0;
} return mRefCnt; } using HasThreadSafeRefCnt = std::false_type
; protected: nsAutoRefCnt mRefCnt; nsAutoOwningThread _mOwningThread
; public:
1487
1488 private:
1489 ~ConnectionPool();
1490
1491 static void IdleTimerCallback(nsITimer* aTimer, void* aClosure);
1492
1493 void Cleanup();
1494
1495 void AdjustIdleTimer();
1496
1497 void CancelIdleTimer();
1498
1499 void CloseIdleDatabases();
1500
1501 bool ScheduleTransaction(TransactionInfo& aTransactionInfo,
1502 bool aFromQueuedTransactions);
1503
1504 void NoteFinishedTransaction(uint64_t aTransactionId);
1505
1506 void ScheduleQueuedTransactions();
1507
1508 void NoteIdleDatabase(DatabaseInfo& aDatabaseInfo);
1509
1510 void NoteClosedDatabase(DatabaseInfo& aDatabaseInfo);
1511
1512 bool MaybeFireCallback(DatabaseCompleteCallback* aCallback);
1513
1514 void PerformIdleDatabaseMaintenance(DatabaseInfo& aDatabaseInfo);
1515
1516 void CloseDatabase(DatabaseInfo& aDatabaseInfo) const;
1517
1518 bool CloseDatabaseWhenIdleInternal(const nsACString& aDatabaseId);
1519};
1520
1521class ConnectionPool::ConnectionRunnable : public Runnable {
1522 protected:
1523 DatabaseInfo& mDatabaseInfo;
1524 nsCOMPtr<nsIEventTarget> mOwningEventTarget;
1525
1526 explicit ConnectionRunnable(DatabaseInfo& aDatabaseInfo);
1527
1528 ~ConnectionRunnable() override = default;
1529};
1530
1531class ConnectionPool::IdleConnectionRunnable final : public ConnectionRunnable {
1532 const bool mNeedsCheckpoint;
1533 Atomic<bool> mInterrupted;
1534
1535 public:
1536 IdleConnectionRunnable(DatabaseInfo& aDatabaseInfo, bool aNeedsCheckpoint)
1537 : ConnectionRunnable(aDatabaseInfo), mNeedsCheckpoint(aNeedsCheckpoint) {}
1538
1539 NS_INLINE_DECL_REFCOUNTING_INHERITED(IdleConnectionRunnable,virtual MozExternalRefCountType AddRef() override { static_assert
(!std::is_destructible_v<IdleConnectionRunnable>, "Reference-counted class "
"IdleConnectionRunnable" " should not have a public destructor. "
"Make this class's destructor non-public"); nsrefcnt r = ConnectionRunnable
::AddRef(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt
<IdleConnectionRunnable>) { NS_LogAddRef((this), (r), (
"IdleConnectionRunnable"), (uint32_t)(sizeof(*this))); } return
r; } virtual MozExternalRefCountType Release() override { nsrefcnt
r = ConnectionRunnable::Release(); if constexpr (::mozilla::
detail::ShouldLogInheritedRefcnt<IdleConnectionRunnable>
) { NS_LogRelease((this), (r), ("IdleConnectionRunnable")); }
return r; }
1540 ConnectionRunnable)virtual MozExternalRefCountType AddRef() override { static_assert
(!std::is_destructible_v<IdleConnectionRunnable>, "Reference-counted class "
"IdleConnectionRunnable" " should not have a public destructor. "
"Make this class's destructor non-public"); nsrefcnt r = ConnectionRunnable
::AddRef(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt
<IdleConnectionRunnable>) { NS_LogAddRef((this), (r), (
"IdleConnectionRunnable"), (uint32_t)(sizeof(*this))); } return
r; } virtual MozExternalRefCountType Release() override { nsrefcnt
r = ConnectionRunnable::Release(); if constexpr (::mozilla::
detail::ShouldLogInheritedRefcnt<IdleConnectionRunnable>
) { NS_LogRelease((this), (r), ("IdleConnectionRunnable")); }
return r; }
1541
1542 void Interrupt() { mInterrupted = true; }
1543
1544 private:
1545 ~IdleConnectionRunnable() override = default;
1546
1547 NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override;
1548};
1549
1550class ConnectionPool::CloseConnectionRunnable final
1551 : public ConnectionRunnable {
1552 public:
1553 explicit CloseConnectionRunnable(DatabaseInfo& aDatabaseInfo)
1554 : ConnectionRunnable(aDatabaseInfo) {}
1555
1556 NS_INLINE_DECL_REFCOUNTING_INHERITED(CloseConnectionRunnable,virtual MozExternalRefCountType AddRef() override { static_assert
(!std::is_destructible_v<CloseConnectionRunnable>, "Reference-counted class "
"CloseConnectionRunnable" " should not have a public destructor. "
"Make this class's destructor non-public"); nsrefcnt r = ConnectionRunnable
::AddRef(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt
<CloseConnectionRunnable>) { NS_LogAddRef((this), (r), (
"CloseConnectionRunnable"), (uint32_t)(sizeof(*this))); } return
r; } virtual MozExternalRefCountType Release() override { nsrefcnt
r = ConnectionRunnable::Release(); if constexpr (::mozilla::
detail::ShouldLogInheritedRefcnt<CloseConnectionRunnable>
) { NS_LogRelease((this), (r), ("CloseConnectionRunnable")); }
return r; }
1557 ConnectionRunnable)virtual MozExternalRefCountType AddRef() override { static_assert
(!std::is_destructible_v<CloseConnectionRunnable>, "Reference-counted class "
"CloseConnectionRunnable" " should not have a public destructor. "
"Make this class's destructor non-public"); nsrefcnt r = ConnectionRunnable
::AddRef(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt
<CloseConnectionRunnable>) { NS_LogAddRef((this), (r), (
"CloseConnectionRunnable"), (uint32_t)(sizeof(*this))); } return
r; } virtual MozExternalRefCountType Release() override { nsrefcnt
r = ConnectionRunnable::Release(); if constexpr (::mozilla::
detail::ShouldLogInheritedRefcnt<CloseConnectionRunnable>
) { NS_LogRelease((this), (r), ("CloseConnectionRunnable")); }
return r; }
1558
1559 private:
1560 ~CloseConnectionRunnable() override = default;
1561
1562 NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override;
1563};
1564
1565struct ConnectionPool::DatabaseInfo final {
1566 friend mozilla::DefaultDelete<DatabaseInfo>;
1567
1568 RefPtr<ConnectionPool> mConnectionPool;
1569 const nsCString mDatabaseId;
1570 RefPtr<DatabaseConnection> mConnection;
1571 nsClassHashtable<nsStringHashKey, TransactionInfoPair> mBlockingTransactions;
1572 nsTArray<NotNull<TransactionInfo*>> mTransactionsScheduledDuringClose;
1573 nsTArray<NotNull<TransactionInfo*>> mScheduledWriteTransactions;
1574 Maybe<TransactionInfo&> mRunningWriteTransaction;
1575 RefPtr<TaskQueue> mEventTarget;
1576 uint32_t mReadTransactionCount;
1577 uint32_t mWriteTransactionCount;
1578 bool mNeedsCheckpoint;
1579 bool mIdle;
1580 FlippedOnce<false> mCloseOnIdle;
1581 bool mClosing;
1582
1583#ifdef DEBUG1
1584 nsISerialEventTarget* mDEBUGConnectionEventTarget;
1585#endif
1586
1587 DatabaseInfo(ConnectionPool* aConnectionPool, const nsACString& aDatabaseId);
1588
1589 void AssertIsOnConnectionThread() const {
1590 MOZ_ASSERT(mDEBUGConnectionEventTarget)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDEBUGConnectionEventTarget)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDEBUGConnectionEventTarget)
)), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDEBUGConnectionEventTarget"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1590)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGConnectionEventTarget"
")"); do { MOZ_CrashSequence(__null, 1590); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1591 MOZ_ASSERT(GetCurrentSerialEventTarget() == mDEBUGConnectionEventTarget)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(GetCurrentSerialEventTarget() == mDEBUGConnectionEventTarget
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(GetCurrentSerialEventTarget() == mDEBUGConnectionEventTarget
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"GetCurrentSerialEventTarget() == mDEBUGConnectionEventTarget"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1591)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "GetCurrentSerialEventTarget() == mDEBUGConnectionEventTarget"
")"); do { MOZ_CrashSequence(__null, 1591); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1592 }
1593
1594 uint64_t TotalTransactionCount() const {
1595 return mReadTransactionCount + mWriteTransactionCount;
1596 }
1597
1598 nsresult Dispatch(already_AddRefed<nsIRunnable> aRunnable);
1599 DatabaseInfo(const DatabaseInfo&) = delete;
1600 DatabaseInfo& operator=(const DatabaseInfo&) = delete;
1601
1602 private:
1603 ~DatabaseInfo();
1604};
1605
1606struct ConnectionPool::DatabaseCompleteCallback final {
1607 friend DefaultDelete<DatabaseCompleteCallback>;
1608
1609 nsCString mDatabaseId;
1610 nsCOMPtr<nsIRunnable> mCallback;
1611
1612 DatabaseCompleteCallback(const nsCString& aDatabaseIds,
1613 nsIRunnable* aCallback);
1614
1615 private:
1616 ~DatabaseCompleteCallback();
1617};
1618
1619class NS_NO_VTABLE ConnectionPool::FinishCallback : public nsIRunnable {
1620 public:
1621 // Called on the owning thread before any additional transactions are
1622 // unblocked.
1623 virtual void TransactionFinishedBeforeUnblock() = 0;
1624
1625 // Called on the owning thread after additional transactions may have been
1626 // unblocked.
1627 virtual void TransactionFinishedAfterUnblock() = 0;
1628
1629 protected:
1630 FinishCallback() = default;
1631
1632 virtual ~FinishCallback() = default;
1633};
1634
1635class ConnectionPool::FinishCallbackWrapper final : public Runnable {
1636 RefPtr<ConnectionPool> mConnectionPool;
1637 RefPtr<FinishCallback> mCallback;
1638 nsCOMPtr<nsIEventTarget> mOwningEventTarget;
1639 uint64_t mTransactionId;
1640 bool mHasRunOnce;
1641
1642 public:
1643 FinishCallbackWrapper(ConnectionPool* aConnectionPool,
1644 uint64_t aTransactionId, FinishCallback* aCallback);
1645
1646 NS_INLINE_DECL_REFCOUNTING_INHERITED(FinishCallbackWrapper, Runnable)virtual MozExternalRefCountType AddRef() override { static_assert
(!std::is_destructible_v<FinishCallbackWrapper>, "Reference-counted class "
"FinishCallbackWrapper" " should not have a public destructor. "
"Make this class's destructor non-public"); nsrefcnt r = Runnable
::AddRef(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt
<FinishCallbackWrapper>) { NS_LogAddRef((this), (r), ("FinishCallbackWrapper"
), (uint32_t)(sizeof(*this))); } return r; } virtual MozExternalRefCountType
Release() override { nsrefcnt r = Runnable::Release(); if constexpr
(::mozilla::detail::ShouldLogInheritedRefcnt<FinishCallbackWrapper
>) { NS_LogRelease((this), (r), ("FinishCallbackWrapper"))
; } return r; }
1647
1648 private:
1649 ~FinishCallbackWrapper() override;
1650
1651 NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override;
1652};
1653
1654#ifdef DEBUG1
1655
1656class ConnectionPool::TransactionRunnable final : public Runnable {
1657 public:
1658 explicit TransactionRunnable(nsCOMPtr<nsIRunnable> aRunnable);
1659
1660 private:
1661 NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override;
1662
1663 nsCOMPtr<nsIRunnable> mRunnable;
1664};
1665
1666#endif
1667
1668class ConnectionPool::TransactionInfo final {
1669 friend mozilla::DefaultDelete<TransactionInfo>;
1670
1671 nsTHashSet<TransactionInfo*> mBlocking;
1672 nsTArray<NotNull<TransactionInfo*>> mBlockingOrdered;
1673
1674 public:
1675 DatabaseInfo& mDatabaseInfo;
1676 const nsID mBackgroundChildLoggingId;
1677 const nsCString mDatabaseId;
1678 const uint64_t mTransactionId;
1679 const int64_t mLoggingSerialNumber;
1680 const nsTArray<nsString> mObjectStoreNames;
1681 nsTHashSet<TransactionInfo*> mBlockedOn;
1682 mozilla::Queue<nsCOMPtr<nsIRunnable>, 16> mQueuedOps;
1683 const bool mIsWriteTransaction;
1684 bool mRunning;
1685 bool mRunningOp;
1686
1687#ifdef DEBUG1
1688 FlippedOnce<false> mFinished;
1689#endif
1690
1691 TransactionInfo(DatabaseInfo& aDatabaseInfo,
1692 const nsID& aBackgroundChildLoggingId,
1693 const nsACString& aDatabaseId, uint64_t aTransactionId,
1694 int64_t aLoggingSerialNumber,
1695 const nsTArray<nsString>& aObjectStoreNames,
1696 bool aIsWriteTransaction,
1697 TransactionDatabaseOperationBase* aTransactionOp);
1698
1699 void AddBlockingTransaction(TransactionInfo& aTransactionInfo);
1700
1701 void RemoveBlockingTransactions();
1702
1703 void SetRunning();
1704
1705 void StartOp(nsCOMPtr<nsIRunnable> aRunnable);
1706
1707 void FinishOp();
1708
1709 private:
1710 ~TransactionInfo();
1711
1712 void MaybeUnblock(TransactionInfo& aTransactionInfo);
1713};
1714
1715struct ConnectionPool::TransactionInfoPair final {
1716 // Multiple reading transactions can block future writes.
1717 nsTArray<NotNull<TransactionInfo*>> mLastBlockingWrites;
1718 // But only a single writing transaction can block future reads.
1719 Maybe<TransactionInfo&> mLastBlockingReads;
1720
1721#if defined(DEBUG1) || defined(NS_BUILD_REFCNT_LOGGING1)
1722 TransactionInfoPair();
1723 ~TransactionInfoPair();
1724#endif
1725};
1726
1727/*******************************************************************************
1728 * Actor class declarations
1729 ******************************************************************************/
1730
1731template <IDBCursorType CursorType>
1732class CommonOpenOpHelper;
1733template <IDBCursorType CursorType>
1734class IndexOpenOpHelper;
1735template <IDBCursorType CursorType>
1736class ObjectStoreOpenOpHelper;
1737template <IDBCursorType CursorType>
1738class OpenOpHelper;
1739
1740class DatabaseOperationBase : public Runnable,
1741 public mozIStorageProgressHandler {
1742 template <IDBCursorType CursorType>
1743 friend class OpenOpHelper;
1744
1745 protected:
1746 class AutoSetProgressHandler;
1747
1748 using UniqueIndexTable = nsTHashMap<nsUint64HashKey, bool>;
1749
1750 const nsCOMPtr<nsIEventTarget> mOwningEventTarget;
1751 const nsID mBackgroundChildLoggingId;
1752 const uint64_t mLoggingSerialNumber;
1753
1754 private:
1755 nsresult mResultCode = NS_OK;
1756 Atomic<bool> mOperationMayProceed;
1757 FlippedOnce<false> mActorDestroyed;
1758
1759 public:
1760 NS_DECL_ISUPPORTS_INHERITEDpublic: virtual nsresult QueryInterface(const nsIID& aIID
, void** aInstancePtr) override; virtual MozExternalRefCountType
AddRef(void) override; virtual MozExternalRefCountType Release
(void) override;
1761
1762 bool IsOnOwningThread() const {
1763 MOZ_ASSERT(mOwningEventTarget)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mOwningEventTarget)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOwningEventTarget))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("mOwningEventTarget"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1763)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOwningEventTarget"
")"); do { MOZ_CrashSequence(__null, 1763); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1764
1765 bool current;
1766 return NS_SUCCEEDED(mOwningEventTarget->IsOnCurrentThread(&current))((bool)(__builtin_expect(!!(!NS_FAILED_impl(mOwningEventTarget
->IsOnCurrentThread(&current))), 1)))
&&
1767 current;
1768 }
1769
1770 void AssertIsOnOwningThread() const {
1771 MOZ_ASSERT(IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1771)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 1771); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1772 MOZ_ASSERT(IsOnOwningThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(IsOnOwningThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(IsOnOwningThread()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("IsOnOwningThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1772)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "IsOnOwningThread()"
")"); do { MOZ_CrashSequence(__null, 1772); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1773 }
1774
1775 void NoteActorDestroyed() {
1776 AssertIsOnOwningThread();
1777
1778 mActorDestroyed.EnsureFlipped();
1779 mOperationMayProceed = false;
1780 }
1781
1782 bool IsActorDestroyed() const {
1783 AssertIsOnOwningThread();
1784
1785 return mActorDestroyed;
1786 }
1787
1788 // May be called on any thread, but you should call IsActorDestroyed() if
1789 // you know you're on the background thread because it is slightly faster.
1790 bool OperationMayProceed() const { return mOperationMayProceed; }
1791
1792 const nsID& BackgroundChildLoggingId() const {
1793 return mBackgroundChildLoggingId;
1794 }
1795
1796 uint64_t LoggingSerialNumber() const { return mLoggingSerialNumber; }
1797
1798 nsresult ResultCode() const { return mResultCode; }
1799
1800 void SetFailureCode(nsresult aFailureCode) {
1801 MOZ_ASSERT(NS_SUCCEEDED(mResultCode))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode
)), 1))))>::isValid, "invalid assertion condition"); if ((
__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(mResultCode)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1801)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)))"
")"); do { MOZ_CrashSequence(__null, 1801); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1802 OverrideFailureCode(aFailureCode);
1803 }
1804
1805 void SetFailureCodeIfUnset(nsresult aFailureCode) {
1806 if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
) {
1807 OverrideFailureCode(aFailureCode);
1808 }
1809 }
1810
1811 bool HasFailed() const { return NS_FAILED(mResultCode)((bool)(__builtin_expect(!!(NS_FAILED_impl(mResultCode)), 0))
)
; }
1812
1813 protected:
1814 DatabaseOperationBase(const nsID& aBackgroundChildLoggingId,
1815 uint64_t aLoggingSerialNumber)
1816 : Runnable("dom::indexedDB::DatabaseOperationBase"),
1817 mOwningEventTarget(GetCurrentSerialEventTarget()),
1818 mBackgroundChildLoggingId(aBackgroundChildLoggingId),
1819 mLoggingSerialNumber(aLoggingSerialNumber),
1820 mOperationMayProceed(true) {
1821 AssertIsOnOwningThread();
1822 }
1823
1824 ~DatabaseOperationBase() override { MOZ_ASSERT(mActorDestroyed)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mActorDestroyed)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mActorDestroyed))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mActorDestroyed"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1824)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mActorDestroyed" ")"
); do { MOZ_CrashSequence(__null, 1824); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
; }
1825
1826 void OverrideFailureCode(nsresult aFailureCode) {
1827 MOZ_ASSERT(NS_FAILED(aFailureCode))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(((bool)(__builtin_expect(!!(NS_FAILED_impl(aFailureCode
)), 0))))>::isValid, "invalid assertion condition"); if ((
__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(NS_FAILED_impl
(aFailureCode)), 0)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(NS_FAILED_impl(aFailureCode)), 0)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1827)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(NS_FAILED_impl(aFailureCode)), 0)))"
")"); do { MOZ_CrashSequence(__null, 1827); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1828
1829 mResultCode = aFailureCode;
1830 }
1831
1832 static nsAutoCString MaybeGetBindingClauseForKeyRange(
1833 const Maybe<SerializedKeyRange>& aOptionalKeyRange,
1834 const nsACString& aKeyColumnName);
1835
1836 static nsAutoCString GetBindingClauseForKeyRange(
1837 const SerializedKeyRange& aKeyRange, const nsACString& aKeyColumnName);
1838
1839 static uint64_t ReinterpretDoubleAsUInt64(double aDouble);
1840
1841 static nsresult BindKeyRangeToStatement(const SerializedKeyRange& aKeyRange,
1842 mozIStorageStatement* aStatement);
1843
1844 static nsresult BindKeyRangeToStatement(const SerializedKeyRange& aKeyRange,
1845 mozIStorageStatement* aStatement,
1846 const nsCString& aLocale);
1847
1848 static Result<IndexDataValuesAutoArray, nsresult>
1849 IndexDataValuesFromUpdateInfos(const nsTArray<IndexUpdateInfo>& aUpdateInfos,
1850 const UniqueIndexTable& aUniqueIndexTable);
1851
1852 static nsresult InsertIndexTableRows(
1853 DatabaseConnection* aConnection, IndexOrObjectStoreId aObjectStoreId,
1854 const Key& aObjectStoreKey, const nsTArray<IndexDataValue>& aIndexValues);
1855
1856 static nsresult DeleteIndexDataTableRows(
1857 DatabaseConnection* aConnection, const Key& aObjectStoreKey,
1858 const nsTArray<IndexDataValue>& aIndexValues);
1859
1860 static nsresult DeleteObjectStoreDataTableRowsWithIndexes(
1861 DatabaseConnection* aConnection, IndexOrObjectStoreId aObjectStoreId,
1862 const Maybe<SerializedKeyRange>& aKeyRange);
1863
1864 static nsresult UpdateIndexValues(
1865 DatabaseConnection* aConnection, IndexOrObjectStoreId aObjectStoreId,
1866 const Key& aObjectStoreKey, const nsTArray<IndexDataValue>& aIndexValues);
1867
1868 static Result<bool, nsresult> ObjectStoreHasIndexes(
1869 DatabaseConnection& aConnection, IndexOrObjectStoreId aObjectStoreId);
1870
1871 private:
1872 template <typename KeyTransformation>
1873 static nsresult MaybeBindKeyToStatement(
1874 const Key& aKey, mozIStorageStatement* aStatement,
1875 const nsACString& aParameterName,
1876 const KeyTransformation& aKeyTransformation);
1877
1878 template <typename KeyTransformation>
1879 static nsresult BindTransformedKeyRangeToStatement(
1880 const SerializedKeyRange& aKeyRange, mozIStorageStatement* aStatement,
1881 const KeyTransformation& aKeyTransformation);
1882
1883 // Not to be overridden by subclasses.
1884 NS_DECL_MOZISTORAGEPROGRESSHANDLERvirtual nsresult OnProgress(mozIStorageConnection *aConnection
, bool *_retval) override;
1885};
1886
1887class MOZ_STACK_CLASS DatabaseOperationBase::AutoSetProgressHandler final {
1888 Maybe<mozIStorageConnection&> mConnection;
1889#ifdef DEBUG1
1890 DatabaseOperationBase* mDEBUGDatabaseOp;
1891#endif
1892
1893 public:
1894 AutoSetProgressHandler();
1895
1896 ~AutoSetProgressHandler();
1897
1898 nsresult Register(mozIStorageConnection& aConnection,
1899 DatabaseOperationBase* aDatabaseOp);
1900
1901 void Unregister();
1902};
1903
1904class TransactionDatabaseOperationBase : public DatabaseOperationBase {
1905 enum class InternalState {
1906 Initial,
1907 DatabaseWork,
1908 SendingPreprocess,
1909 WaitingForContinue,
1910 SendingResults,
1911 Completed
1912 };
1913
1914 InitializedOnce<const NotNull<SafeRefPtr<TransactionBase>>> mTransaction;
1915 // Unique request id within the context of the transaction, allocated by the
1916 // transaction in the content process starting from 0. Values less than 0 are
1917 // impossible and forbidden. Used to support the explicit commit() request.
1918 const int64_t mRequestId;
1919 InternalState mInternalState = InternalState::Initial;
1920 bool mWaitingForContinue = false;
1921 const bool mTransactionIsAborted;
1922 bool mNotedActiveRequest = false;
1923
1924 protected:
1925 const int64_t mTransactionLoggingSerialNumber;
1926
1927#ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED1
1928 protected:
1929 // A check only enables when the diagnostic assert turns on. It assumes the
1930 // mUpdateRefcountFunction is a nullptr because the previous
1931 // StartTransactionOp failed on the connection thread and the next write
1932 // operation (e.g. ObjectstoreAddOrPutRequestOp) doesn't have enough time to
1933 // catch up the failure information.
1934 bool mAssumingPreviousOperationFail = false;
1935#endif
1936
1937 public:
1938 void AssertIsOnConnectionThread() const
1939#ifdef DEBUG1
1940 ;
1941#else
1942 {
1943 }
1944#endif
1945
1946 uint64_t StartOnConnectionPool(const nsID& aBackgroundChildLoggingId,
1947 const nsACString& aDatabaseId,
1948 int64_t aLoggingSerialNumber,
1949 const nsTArray<nsString>& aObjectStoreNames,
1950 bool aIsWriteTransaction);
1951
1952 void DispatchToConnectionPool();
1953
1954 TransactionBase& Transaction() { return **mTransaction; }
1955
1956 const TransactionBase& Transaction() const { return **mTransaction; }
1957
1958 bool IsWaitingForContinue() const {
1959 AssertIsOnOwningThread();
1960
1961 return mWaitingForContinue;
1962 }
1963
1964 void NoteContinueReceived();
1965
1966 int64_t TransactionLoggingSerialNumber() const {
1967 return mTransactionLoggingSerialNumber;
1968 }
1969
1970 // May be overridden by subclasses if they need to perform work on the
1971 // background thread before being dispatched. Returning false will kill the
1972 // child actors and prevent dispatch.
1973 virtual bool Init(TransactionBase& aTransaction);
1974
1975 // This callback will be called on the background thread before releasing the
1976 // final reference to this request object. Subclasses may perform any
1977 // additional cleanup here but must always call the base class implementation.
1978 virtual void Cleanup();
1979
1980 protected:
1981 TransactionDatabaseOperationBase(SafeRefPtr<TransactionBase> aTransaction,
1982 int64_t aRequestId);
1983
1984 TransactionDatabaseOperationBase(SafeRefPtr<TransactionBase> aTransaction,
1985 const int64_t aRequestId,
1986 uint64_t aLoggingSerialNumber);
1987
1988 ~TransactionDatabaseOperationBase() override;
1989
1990 void NoteTransactionActiveRequest();
1991
1992 virtual void RunOnConnectionThread();
1993
1994 // Must be overridden in subclasses. Called on the target thread to allow the
1995 // subclass to perform necessary database or file operations. A successful
1996 // return value will trigger a SendSuccessResult callback on the background
1997 // thread while a failure value will trigger a SendFailureResult callback.
1998 virtual nsresult DoDatabaseWork(DatabaseConnection* aConnection) = 0;
1999
2000 // May be overriden in subclasses. Called on the background thread to decide
2001 // if the subclass needs to send any preprocess info to the child actor.
2002 virtual bool HasPreprocessInfo();
2003
2004 // May be overriden in subclasses. Called on the background thread to allow
2005 // the subclass to serialize its preprocess info and send it to the child
2006 // actor. A successful return value will trigger a wait for a
2007 // NoteContinueReceived callback on the background thread while a failure
2008 // value will trigger a SendFailureResult callback.
2009 virtual nsresult SendPreprocessInfo();
2010
2011 // Must be overridden in subclasses. Called on the background thread to allow
2012 // the subclass to serialize its results and send them to the child actor. A
2013 // failed return value will trigger a SendFailureResult callback.
2014 virtual TransactionOpResult SendSuccessResult() = 0;
2015
2016 // Must be overridden in subclasses. Called on the background thread to allow
2017 // the subclass to send its failure code. Returning false will cause the
2018 // transaction to be aborted with aResultCode. Returning true will not cause
2019 // the transaction to be aborted.
2020 virtual bool SendFailureResult(const TransactionOpResult& aResult) = 0;
2021
2022#ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED1
2023 auto MakeAutoSavepointCleanupHandler(DatabaseConnection& aConnection) {
2024 return [this, &aConnection](const auto) {
2025 if (!aConnection.GetUpdateRefcountFunction()) {
2026 mAssumingPreviousOperationFail = true;
2027 }
2028 };
2029 }
2030#endif
2031
2032 private:
2033 void SendToConnectionPool();
2034
2035 void SendPreprocess();
2036
2037 void SendResults();
2038
2039 void SendPreprocessInfoOrResults(bool aSendPreprocessInfo);
2040
2041 // Not to be overridden by subclasses.
2042 NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override;
2043};
2044
2045class Factory final : public PBackgroundIDBFactoryParent,
2046 public AtomicSafeRefCounted<Factory> {
2047 nsCString mSystemLocale;
2048 RefPtr<DatabaseLoggingInfo> mLoggingInfo;
2049
2050#ifdef DEBUG1
2051 bool mActorDestroyed;
2052#endif
2053
2054 // Reference counted.
2055 ~Factory() override;
2056
2057 public:
2058 [[nodiscard]] static SafeRefPtr<Factory> Create(
2059 const LoggingInfo& aLoggingInfo, const nsACString& aSystemLocale);
2060
2061 DatabaseLoggingInfo* GetLoggingInfo() const {
2062 AssertIsOnBackgroundThread();
2063 MOZ_ASSERT(mLoggingInfo)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mLoggingInfo)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mLoggingInfo))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mLoggingInfo", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 2063); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLoggingInfo"
")"); do { MOZ_CrashSequence(__null, 2063); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2064
2065 return mLoggingInfo;
2066 }
2067
2068 const nsCString& GetSystemLocale() const { return mSystemLocale; }
2069
2070 MOZ_DECLARE_REFCOUNTED_TYPENAME(mozilla::dom::indexedDB::Factory)const char* typeName() const { return "mozilla::dom::indexedDB::Factory"
; } size_t typeSize() const { return sizeof(*this); }
2071 MOZ_INLINE_DECL_SAFEREFCOUNTING_INHERITED(Factory, AtomicSafeRefCounted)template <typename T, ::mozilla::detail::RefCountAtomicity
Atomicity> friend class ::mozilla::detail::SafeRefCounted
; virtual MozExternalRefCountType AddRef() override { static_assert
(!std::is_destructible_v<Factory>, "Reference-counted class "
"Factory" " should not have a public destructor. " "Make this class's destructor non-public"
); nsrefcnt r = AtomicSafeRefCounted::AddRef(); if constexpr (
::mozilla::detail::ShouldLogInheritedRefcnt<Factory>) {
NS_LogAddRef((this), (r), ("Factory"), (uint32_t)(sizeof(*this
))); } return r; } virtual MozExternalRefCountType Release() override
{ nsrefcnt r = AtomicSafeRefCounted::Release(); if constexpr
(::mozilla::detail::ShouldLogInheritedRefcnt<Factory>)
{ NS_LogRelease((this), (r), ("Factory")); } return r; }
2072
2073 // Only constructed in Create().
2074 Factory(RefPtr<DatabaseLoggingInfo> aLoggingInfo,
2075 const nsACString& aSystemLocale);
2076
2077 // IPDL methods are only called by IPDL.
2078 void ActorDestroy(ActorDestroyReason aWhy) override;
2079
2080 mozilla::ipc::IPCResult RecvDeleteMe() override;
2081
2082 PBackgroundIDBFactoryRequestParent* AllocPBackgroundIDBFactoryRequestParent(
2083 const FactoryRequestParams& aParams) override;
2084
2085 mozilla::ipc::IPCResult RecvPBackgroundIDBFactoryRequestConstructor(
2086 PBackgroundIDBFactoryRequestParent* aActor,
2087 const FactoryRequestParams& aParams) override;
2088
2089 bool DeallocPBackgroundIDBFactoryRequestParent(
2090 PBackgroundIDBFactoryRequestParent* aActor) override;
2091
2092 mozilla::ipc::IPCResult RecvGetDatabases(
2093 const PersistenceType& aPersistenceType,
2094 const PrincipalInfo& aPrincipalInfo,
2095 GetDatabasesResolver&& aResolve) override;
2096
2097 private:
2098 Maybe<ContentParentId> GetContentParentId() const;
2099};
2100
2101class WaitForTransactionsHelper final : public Runnable {
2102 const nsCString mDatabaseId;
2103 nsCOMPtr<nsIRunnable> mCallback;
2104
2105 enum class State { Initial = 0, WaitingForTransactions, Complete } mState;
2106
2107 public:
2108 WaitForTransactionsHelper(const nsACString& aDatabaseId,
2109 nsIRunnable* aCallback)
2110 : Runnable("dom::indexedDB::WaitForTransactionsHelper"),
2111 mDatabaseId(aDatabaseId),
2112 mCallback(aCallback),
2113 mState(State::Initial) {
2114 AssertIsOnBackgroundThread();
2115 MOZ_ASSERT(!aDatabaseId.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aDatabaseId.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!aDatabaseId.IsEmpty()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!aDatabaseId.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 2115)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseId.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 2115); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2116 MOZ_ASSERT(aCallback)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aCallback)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aCallback))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aCallback", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 2116); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aCallback" ")"
); do { MOZ_CrashSequence(__null, 2116); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2117 }
2118
2119 void WaitForTransactions();
2120
2121 NS_INLINE_DECL_REFCOUNTING_INHERITED(WaitForTransactionsHelper, Runnable)virtual MozExternalRefCountType AddRef() override { static_assert
(!std::is_destructible_v<WaitForTransactionsHelper>, "Reference-counted class "
"WaitForTransactionsHelper" " should not have a public destructor. "
"Make this class's destructor non-public"); nsrefcnt r = Runnable
::AddRef(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt
<WaitForTransactionsHelper>) { NS_LogAddRef((this), (r)
, ("WaitForTransactionsHelper"), (uint32_t)(sizeof(*this))); }
return r; } virtual MozExternalRefCountType Release() override
{ nsrefcnt r = Runnable::Release(); if constexpr (::mozilla::
detail::ShouldLogInheritedRefcnt<WaitForTransactionsHelper
>) { NS_LogRelease((this), (r), ("WaitForTransactionsHelper"
)); } return r; }
2122
2123 private:
2124 ~WaitForTransactionsHelper() override {
2125 MOZ_ASSERT(!mCallback)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mCallback)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mCallback))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("!mCallback", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 2125); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCallback"
")"); do { MOZ_CrashSequence(__null, 2125); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2126 MOZ_ASSERT(mState == State::Complete)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::Complete)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::Complete)))
, 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::Complete"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 2126)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Complete"
")"); do { MOZ_CrashSequence(__null, 2126); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2127 }
2128
2129 void MaybeWaitForTransactions();
2130
2131 void CallCallback();
2132
2133 NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override;
2134};
2135
2136class Database final : public PBackgroundIDBDatabaseParent,
2137 public LinkedListElement<Database>,
2138 public AtomicSafeRefCounted<Database> {
2139 friend class VersionChangeTransaction;
2140
2141 class StartTransactionOp;
2142 class UnmapBlobCallback;
2143
2144 private:
2145 SafeRefPtr<Factory> mFactory;
2146 SafeRefPtr<FullDatabaseMetadata> mMetadata;
2147 SafeRefPtr<DatabaseFileManager> mFileManager;
2148 ClientDirectoryLockHandle mDirectoryLockHandle;
2149 nsTHashSet<TransactionBase*> mTransactions;
2150 nsTHashMap<nsIDHashKey, SafeRefPtr<DatabaseFileInfo>> mMappedBlobs;
2151 RefPtr<DatabaseConnection> mConnection;
2152 const PrincipalInfo mPrincipalInfo;
2153 const Maybe<ContentParentId> mOptionalContentParentId;
2154 // XXX Consider changing this to ClientMetadata.
2155 const quota::OriginMetadata mOriginMetadata;
2156 const nsCString mId;
2157 const nsString mFilePath;
2158 const Maybe<const CipherKey> mKey;
2159 int64_t mDirectoryLockId;
2160 const uint32_t mTelemetryId;
2161 const PersistenceType mPersistenceType;
2162 const bool mInPrivateBrowsing;
2163 FlippedOnce<false> mClosed;
2164 FlippedOnce<false> mInvalidated;
2165 FlippedOnce<false> mActorWasAlive;
2166 FlippedOnce<false> mActorDestroyed;
2167 nsCOMPtr<nsIEventTarget> mBackgroundThread;
2168#ifdef DEBUG1
2169 bool mAllBlobsUnmapped;
2170#endif
2171
2172 public:
2173 // Created by OpenDatabaseOp.
2174 Database(SafeRefPtr<Factory> aFactory, const PrincipalInfo& aPrincipalInfo,
2175 const Maybe<ContentParentId>& aOptionalContentParentId,
2176 const quota::OriginMetadata& aOriginMetadata, uint32_t aTelemetryId,
2177 SafeRefPtr<FullDatabaseMetadata> aMetadata,
2178 SafeRefPtr<DatabaseFileManager> aFileManager,
2179 ClientDirectoryLockHandle aDirectoryLockHandle,
2180 bool aInPrivateBrowsing, const Maybe<const CipherKey>& aMaybeKey);
2181
2182 void AssertIsOnConnectionThread() const {
2183#ifdef DEBUG1
2184 // mConnection is used to cache the result from ConnectionPool's
2185 // GetOrCreateConnection method (potentially avoiding a lock and a hash
2186 // lookup). However, once the connection is closed, the task queue for the
2187 // given database is also destroyed, so the connection, which caches the
2188 // event target it was created on, is no longer reliable for asserting that
2189 // the current thread is the connection thread (mConnection might be reset
2190 // when EnsureConnection is called again, but in the meantime, we have to
2191 // fallback to just checking the main thread and the PBackgroud thread).
2192 //
2193 // We cannot additionally assert mInvalidated here: mConnection is only ever
2194 // assigned (never cleared), so it is also left pointing at a closed
2195 // connection after a routine idle-connection close. ConnectionPool's idle
2196 // timer (IdleTimerCallback -> CloseDatabase -> CloseConnectionRunnable)
2197 // closes the connection, and NoteClosedDatabase then drops the
2198 // DatabaseInfo without invalidating the owning Database -- so the Database
2199 // survives with a Closed() mConnection and mInvalidated still false. A
2200 // sibling transaction's CommitOp can then run on the connection thread in
2201 // this closed-but-not-invalidated state -- a window widened whenever an
2202 // in-profile database open is slow (e.g. SQLite at-rest encryption fetching
2203 // a per-database key). The CommitOp path tolerates a closed/absent
2204 // connection, so only the thread identity matters here.
2205 if (mConnection && !mConnection->Closed()) {
2206 mConnection->AssertIsOnConnectionThread();
2207 } else {
2208 MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 2208)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { MOZ_CrashSequence(__null, 2208); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2209 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 2209)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 2209); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2210 }
2211#endif
2212 }
2213
2214 NS_IMETHOD_(MozExternalRefCountType)virtual MozExternalRefCountType AddRef() override {
2215 return AtomicSafeRefCounted<Database>::AddRef();
2216 }
2217 NS_IMETHOD_(MozExternalRefCountType)virtual MozExternalRefCountType Release() override {
2218 return AtomicSafeRefCounted<Database>::Release();
2219 }
2220
2221 MOZ_DECLARE_REFCOUNTED_TYPENAME(mozilla::dom::indexedDB::Database)const char* typeName() const { return "mozilla::dom::indexedDB::Database"
; } size_t typeSize() const { return sizeof(*this); }
2222
2223 void Invalidate();
2224
2225 bool IsOwnedByProcess(ContentParentId aContentParentId) const {
2226 return mOptionalContentParentId &&
2227 mOptionalContentParentId.value() == aContentParentId;
2228 }
2229
2230 const quota::OriginMetadata& OriginMetadata() const {
2231 return mOriginMetadata;
2232 }
2233
2234 const nsCString& Id() const { return mId; }
2235
2236 Maybe<ClientDirectoryLock&> MaybeDirectoryLockRef() const {
2237 AssertIsOnBackgroundThread();
2238
2239 return ToMaybeRef(mDirectoryLockHandle.get());
2240 }
2241
2242 int64_t DirectoryLockId() const { return mDirectoryLockId; }
2243
2244 uint32_t TelemetryId() const { return mTelemetryId; }
2245
2246 PersistenceType Type() const { return mPersistenceType; }
2247
2248 const nsString& FilePath() const { return mFilePath; }
2249
2250 DatabaseFileManager& GetFileManager() const { return *mFileManager; }
2251
2252 MovingNotNull<SafeRefPtr<DatabaseFileManager>> GetFileManagerPtr() const {
2253 return WrapMovingNotNull(mFileManager.clonePtr());
2254 }
2255
2256 const FullDatabaseMetadata& Metadata() const {
2257 MOZ_ASSERT(mMetadata)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMetadata)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mMetadata))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 2257); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata" ")"
); do { MOZ_CrashSequence(__null, 2257); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2258 return *mMetadata;
2259 }
2260
2261 SafeRefPtr<FullDatabaseMetadata> MetadataPtr() const {
2262 MOZ_ASSERT(mMetadata)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMetadata)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mMetadata))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 2262); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata" ")"
); do { MOZ_CrashSequence(__null, 2262); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2263 return mMetadata.clonePtr();
2264 }
2265
2266 PBackgroundParent* GetBackgroundParent() const {
2267 AssertIsOnBackgroundThread();
2268 MOZ_ASSERT(!IsActorDestroyed())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsActorDestroyed())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsActorDestroyed()))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("!IsActorDestroyed()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 2268)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()"
")"); do { MOZ_CrashSequence(__null, 2268); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2269
2270 return Manager()->Manager();
2271 }
2272
2273 DatabaseLoggingInfo* GetLoggingInfo() const {
2274 AssertIsOnBackgroundThread();
2275 MOZ_ASSERT(mFactory)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mFactory)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mFactory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mFactory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 2275); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFactory" ")"
); do { MOZ_CrashSequence(__null, 2275); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2276
2277 return mFactory->GetLoggingInfo();
2278 }
2279
2280 bool RegisterTransaction(TransactionBase& aTransaction);
2281
2282 void UnregisterTransaction(TransactionBase& aTransaction);
2283
2284 void SetActorAlive();
2285
2286 void MapBlob(const IPCBlob& aIPCBlob, SafeRefPtr<DatabaseFileInfo> aFileInfo);
2287
2288 bool IsActorAlive() const {
2289 AssertIsOnBackgroundThread();
2290
2291 return mActorWasAlive && !mActorDestroyed;
2292 }
2293
2294 bool IsActorDestroyed() const {
2295 AssertIsOnBackgroundThread();
2296
2297 return mActorWasAlive && mActorDestroyed;
2298 }
2299
2300 bool IsClosed() const {
2301 AssertIsOnBackgroundThread();
2302
2303 return mClosed;
2304 }
2305
2306 bool IsInvalidated() const {
2307 AssertIsOnBackgroundThread();
2308
2309 return mInvalidated;
2310 }
2311
2312 nsresult EnsureConnection();
2313
2314 DatabaseConnection* GetConnection() const {
2315#ifdef DEBUG1
2316 if (mConnection) {
2317 mConnection->AssertIsOnConnectionThread();
2318 }
2319#endif
2320
2321 return mConnection;
2322 }
2323
2324 void Stringify(nsACString& aResult) const;
2325
2326 bool IsInPrivateBrowsing() const {
2327 AssertIsOnBackgroundThread();
2328 return mInPrivateBrowsing;
2329 }
2330
2331 const Maybe<const CipherKey>& MaybeKeyRef() const {
2332 // This can be called on any thread, as it is const.
2333 MOZ_ASSERT(mKey.isSome() == GetFileManager().UsesEncryption())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mKey.isSome() == GetFileManager().UsesEncryption())>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mKey.isSome() == GetFileManager().UsesEncryption()))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mKey.isSome() == GetFileManager().UsesEncryption()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 2333)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mKey.isSome() == GetFileManager().UsesEncryption()"
")"); do { MOZ_CrashSequence(__null, 2333); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2334 return mKey;
2335 }
2336
2337 ~Database() override {
2338 MOZ_ASSERT(mClosed)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mClosed)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mClosed))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mClosed", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 2338); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mClosed" ")"
); do { MOZ_CrashSequence(__null, 2338); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2339 MOZ_ASSERT_IF(mActorWasAlive, mActorDestroyed)do { if (mActorWasAlive) { do { static_assert( mozilla::detail
::AssertionConditionType<decltype(mActorDestroyed)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mActorDestroyed))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mActorDestroyed", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 2339); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mActorDestroyed"
")"); do { MOZ_CrashSequence(__null, 2339); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
2340 MOZ_DIAGNOSTIC_ASSERT(!isInList())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!isInList())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!isInList()))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("!isInList()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 2340); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "!isInList()"
")"); do { MOZ_CrashSequence(__null, 2340); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2341
2342 NS_ProxyRelease("ReleaseIDBFactory", mBackgroundThread.get(),
2343 mFactory.forget());
2344 }
2345
2346 private:
2347 [[nodiscard]] SafeRefPtr<DatabaseFileInfo> GetBlob(const IPCBlob& aIPCBlob);
2348
2349 void UnmapBlob(const nsID& aID);
2350
2351 void UnmapAllBlobs();
2352
2353 bool CloseInternal();
2354
2355 void MaybeCloseConnection();
2356
2357 void ConnectionClosedCallback();
2358
2359 void CleanupMetadata();
2360
2361 // IPDL methods are only called by IPDL.
2362 void ActorDestroy(ActorDestroyReason aWhy) override;
2363
2364 PBackgroundIDBDatabaseFileParent* AllocPBackgroundIDBDatabaseFileParent(
2365 const IPCBlob& aIPCBlob) override;
2366
2367 bool DeallocPBackgroundIDBDatabaseFileParent(
2368 PBackgroundIDBDatabaseFileParent* aActor) override;
2369
2370 already_AddRefed<PBackgroundIDBTransactionParent>
2371 AllocPBackgroundIDBTransactionParent(
2372 const nsTArray<nsString>& aObjectStoreNames, const Mode& aMode,
2373 const Durability& aDurability) override;
2374
2375 mozilla::ipc::IPCResult RecvPBackgroundIDBTransactionConstructor(
2376 PBackgroundIDBTransactionParent* aActor,
2377 nsTArray<nsString>&& aObjectStoreNames, const Mode& aMode,
2378 const Durability& aDurability) override;
2379
2380 mozilla::ipc::IPCResult RecvDeleteMe() override;
2381
2382 mozilla::ipc::IPCResult RecvBlocked() override;
2383
2384 mozilla::ipc::IPCResult RecvClose() override;
2385
2386 template <typename T>
2387 static bool InvalidateAll(const nsTBaseHashSet<nsPtrHashKey<T>>& aTable);
2388};
2389
2390class Database::StartTransactionOp final
2391 : public TransactionDatabaseOperationBase {
2392 friend class Database;
2393
2394 private:
2395 explicit StartTransactionOp(SafeRefPtr<TransactionBase> aTransaction)
2396 : TransactionDatabaseOperationBase(std::move(aTransaction),
2397 /* aRequestId */ 0,
2398 /* aLoggingSerialNumber */ 0) {}
2399
2400 ~StartTransactionOp() override = default;
2401
2402 void RunOnConnectionThread() override;
2403
2404 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
2405
2406 TransactionOpResult SendSuccessResult() override;
2407
2408 bool SendFailureResult(const TransactionOpResult& aResult) override;
2409
2410 void Cleanup() override;
2411};
2412
2413class Database::UnmapBlobCallback final
2414 : public RemoteLazyInputStreamParentCallback {
2415 SafeRefPtr<Database> mDatabase;
2416 nsCOMPtr<nsISerialEventTarget> mBackgroundThread;
2417
2418 public:
2419 explicit UnmapBlobCallback(SafeRefPtr<Database> aDatabase)
2420 : mDatabase(std::move(aDatabase)),
2421 mBackgroundThread(GetCurrentSerialEventTarget()) {
2422 AssertIsOnBackgroundThread();
2423 }
2424
2425 NS_INLINE_DECL_THREADSAFE_REFCOUNTING(Database::UnmapBlobCallback, override)public: MozExternalRefCountType AddRef(void) override { static_assert
(!std::is_destructible_v<Database::UnmapBlobCallback>, "Reference-counted class "
"Database::UnmapBlobCallback" " should not have a public destructor. "
"Make this class's destructor non-public"); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(int32_t
(mRefCnt) >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0"
" (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 2425); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 2425
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); nsrefcnt count = ++mRefCnt; NS_LogAddRef((this), (count
), ("Database::UnmapBlobCallback"), (uint32_t)(sizeof(*this))
); return (nsrefcnt)count; } MozExternalRefCountType Release(
void) override { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0"
" (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 2425); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 2425
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); nsrefcnt count = --mRefCnt; NS_LogRelease((this), (
count), ("Database::UnmapBlobCallback")); if (count == 0) { delete
(this); return 0; } return count; } using HasThreadSafeRefCnt
= std::true_type; protected: ::mozilla::ThreadSafeAutoRefCnt
mRefCnt; public:
2426
2427 void ActorDestroyed(const nsID& aID) override {
2428 MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDatabase)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 2428); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")"
); do { MOZ_CrashSequence(__null, 2428); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2429 mBackgroundThread->Dispatch(NS_NewRunnableFunction(
2430 "UnmapBlobCallback", [aID, database = std::move(mDatabase)] {
2431 AssertIsOnBackgroundThread();
2432 database->UnmapBlob(aID);
2433 }));
2434 }
2435
2436 private:
2437 ~UnmapBlobCallback() = default;
2438};
2439
2440/**
2441 * In coordination with IDBDatabase's mFileActors weak-map on the child side, a
2442 * long-lived mapping from a child process's live Blobs to their corresponding
2443 * DatabaseFileInfo in our owning database. Assists in avoiding redundant IPC
2444 * traffic and disk storage. This includes both:
2445 * - Blobs retrieved from this database and sent to the child that do not need
2446 * to be written to disk because they already exist on disk in this database's
2447 * files directory.
2448 * - Blobs retrieved from other databases or from anywhere else that will need
2449 * to be written to this database's files directory. In this case we will
2450 * hold a reference to its BlobImpl in mBlobImpl until we have successfully
2451 * written the Blob to disk.
2452 *
2453 * Relevant Blob context: Blobs sent from the parent process to child processes
2454 * are automatically linked back to their source BlobImpl when the child process
2455 * references the Blob via IPC. This is done using the internal IPCBlob
2456 * inputStream actor ID to DatabaseFileInfo mapping. However, when getting an
2457 * actor in the child process for sending an in-child-created Blob to the
2458 * parent process, there is (currently) no Blob machinery to automatically
2459 * establish and reuse a long-lived Actor. As a result, without IDB's weak-map
2460 * cleverness, a memory-backed Blob repeatedly sent from the child to the parent
2461 * would appear as a different Blob each time, requiring the Blob data to be
2462 * sent over IPC each time as well as potentially needing to be written to disk
2463 * each time.
2464 *
2465 * This object remains alive as long as there is an active child actor or an
2466 * ObjectStoreAddOrPutRequestOp::StoredFileInfo for a queued or active add/put
2467 * op is holding a reference to us.
2468 */
2469class DatabaseFile final : public PBackgroundIDBDatabaseFileParent {
2470 // mBlobImpl's ownership lifecycle:
2471 // - Initialized on the background thread at creation time. Then
2472 // responsibility is handed off to the connection thread.
2473 // - Checked and used by the connection thread to generate a stream to write
2474 // the blob to disk by an add/put operation.
2475 // - Cleared on the connection thread once the file has successfully been
2476 // written to disk.
2477 InitializedOnce<const RefPtr<BlobImpl>> mBlobImpl;
2478 const SafeRefPtr<DatabaseFileInfo> mFileInfo;
2479
2480 public:
2481 NS_INLINE_DECL_THREADSAFE_REFCOUNTING(mozilla::dom::indexedDB::DatabaseFile)public: MozExternalRefCountType AddRef(void) { static_assert(
!std::is_destructible_v<mozilla::dom::indexedDB::DatabaseFile
>, "Reference-counted class " "mozilla::dom::indexedDB::DatabaseFile"
" should not have a public destructor. " "Make this class's destructor non-public"
); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(int32_t(mRefCnt) >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0"
" (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 2481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 2481
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); nsrefcnt count = ++mRefCnt; NS_LogAddRef((this), (count
), ("mozilla::dom::indexedDB::DatabaseFile"), (uint32_t)(sizeof
(*this))); return (nsrefcnt)count; } MozExternalRefCountType Release
(void) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0"
" (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 2481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 2481
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); nsrefcnt count = --mRefCnt; NS_LogRelease((this), (
count), ("mozilla::dom::indexedDB::DatabaseFile")); if (count
== 0) { delete (this); return 0; } return count; } using HasThreadSafeRefCnt
= std::true_type; protected: ::mozilla::ThreadSafeAutoRefCnt
mRefCnt; public:
;
2482
2483 const DatabaseFileInfo& GetFileInfo() const {
2484 AssertIsOnBackgroundThread();
2485
2486 return *mFileInfo;
2487 }
2488
2489 SafeRefPtr<DatabaseFileInfo> GetFileInfoPtr() const {
2490 AssertIsOnBackgroundThread();
2491
2492 return mFileInfo.clonePtr();
2493 }
2494
2495 /**
2496 * If mBlobImpl is non-null (implying the contents of this file have not yet
2497 * been written to disk), then return an input stream. Otherwise, if mBlobImpl
2498 * is null (because the contents have been written to disk), returns null.
2499 */
2500 [[nodiscard]] nsCOMPtr<nsIInputStream> GetInputStream(ErrorResult& rv) const;
2501
2502 /**
2503 * To be called upon successful copying of the stream GetInputStream()
2504 * returned so that we won't try and redundantly write the file to disk in the
2505 * future. This is a separate step from GetInputStream() because
2506 * the write could fail due to quota errors that happen now but that might
2507 * not happen in a future attempt.
2508 */
2509 void WriteSucceededClearBlobImpl() {
2510 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 2510)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 2510); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2511
2512 MOZ_ASSERT(*mBlobImpl)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(*mBlobImpl)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(*mBlobImpl))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("*mBlobImpl", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 2512); AnnotateMozCrashReason("MOZ_ASSERT" "(" "*mBlobImpl"
")"); do { MOZ_CrashSequence(__null, 2512); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2513 mBlobImpl.destroy();
2514 }
2515
2516 public:
2517 // Called when sending to the child.
2518 explicit DatabaseFile(SafeRefPtr<DatabaseFileInfo> aFileInfo)
2519 : mBlobImpl{nullptr}, mFileInfo(std::move(aFileInfo)) {
2520 AssertIsOnBackgroundThread();
2521 MOZ_ASSERT(mFileInfo)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mFileInfo)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mFileInfo))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mFileInfo", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 2521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileInfo" ")"
); do { MOZ_CrashSequence(__null, 2521); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2522 }
2523
2524 // Called when receiving from the child.
2525 DatabaseFile(RefPtr<BlobImpl> aBlobImpl,
2526 SafeRefPtr<DatabaseFileInfo> aFileInfo)
2527 : mBlobImpl(std::move(aBlobImpl)), mFileInfo(std::move(aFileInfo)) {
2528 AssertIsOnBackgroundThread();
2529 MOZ_ASSERT(*mBlobImpl)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(*mBlobImpl)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(*mBlobImpl))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("*mBlobImpl", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 2529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "*mBlobImpl"
")"); do { MOZ_CrashSequence(__null, 2529); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2530 MOZ_ASSERT(mFileInfo)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mFileInfo)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mFileInfo))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mFileInfo", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 2530); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileInfo" ")"
); do { MOZ_CrashSequence(__null, 2530); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2531 }
2532
2533 private:
2534 ~DatabaseFile() override = default;
2535
2536 void ActorDestroy(ActorDestroyReason aWhy) override {
2537 AssertIsOnBackgroundThread();
2538 }
2539};
2540
2541nsCOMPtr<nsIInputStream> DatabaseFile::GetInputStream(ErrorResult& rv) const {
2542 // We should only be called from our DB connection thread, not the background
2543 // thread.
2544 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 2544)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 2544); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2545
2546 // If we were constructed without a BlobImpl, or WriteSucceededClearBlobImpl
2547 // was already called, return nullptr.
2548 if (!mBlobImpl || !*mBlobImpl) {
2549 return nullptr;
2550 }
2551
2552 nsCOMPtr<nsIInputStream> inputStream;
2553 (*mBlobImpl)->CreateInputStream(getter_AddRefs(inputStream), rv);
2554 if (rv.Failed()) {
2555 return nullptr;
2556 }
2557
2558 return inputStream;
2559}
2560
2561class TransactionBase : public AtomicSafeRefCounted<TransactionBase> {
2562 friend class CursorBase;
2563
2564 template <IDBCursorType CursorType>
2565 friend class Cursor;
2566
2567 class CommitOp;
2568
2569 protected:
2570 using Mode = IDBTransaction::Mode;
2571 using Durability = IDBTransaction::Durability;
2572
2573 private:
2574 const SafeRefPtr<Database> mDatabase;
2575 nsTArray<SafeRefPtr<FullObjectStoreMetadata>>
2576 mModifiedAutoIncrementObjectStoreMetadataArray;
2577 LazyInitializedOnceNotNull<const uint64_t> mTransactionId;
2578 const nsCString mDatabaseId;
2579 const int64_t mLoggingSerialNumber;
2580 uint64_t mActiveRequestCount;
2581 Atomic<bool> mInvalidatedOnAnyThread;
2582 const Mode mMode;
2583 const Durability mDurability;
2584 FlippedOnce<false> mInitialized;
2585 FlippedOnce<false> mHasBeenActiveOnConnectionThread;
2586 FlippedOnce<false> mActorDestroyed;
2587 FlippedOnce<false> mInvalidated;
2588
2589 protected:
2590 nsresult mResultCode;
2591 FlippedOnce<false> mCommitOrAbortReceived;
2592 FlippedOnce<false> mCommittedOrAborted;
2593 FlippedOnce<false> mForceAborted;
2594 LazyInitializedOnce<const Maybe<int64_t>> mLastRequestBeforeCommit;
2595 Maybe<int64_t> mLastFailedRequest;
2596
2597 public:
2598 void AssertIsOnConnectionThread() const {
2599 MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDatabase)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 2599); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")"
); do { MOZ_CrashSequence(__null, 2599); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2600 mDatabase->AssertIsOnConnectionThread();
2601 }
2602
2603 bool IsActorDestroyed() const {
2604 AssertIsOnBackgroundThread();
2605
2606 return mActorDestroyed;
2607 }
2608
2609 // Must be called on the background thread.
2610 bool IsInvalidated() const {
2611 MOZ_ASSERT(IsOnBackgroundThread(), "Use IsInvalidatedOnAnyThread()")do { static_assert( mozilla::detail::AssertionConditionType<
decltype(IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("IsOnBackgroundThread()"
" (" "Use IsInvalidatedOnAnyThread()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 2611); AnnotateMozCrashReason("MOZ_ASSERT" "(" "IsOnBackgroundThread()"
") (" "Use IsInvalidatedOnAnyThread()" ")"); do { MOZ_CrashSequence
(__null, 2611); __attribute__((nomerge)) ::abort(); } while (
false); } } while (false)
;
2612 MOZ_ASSERT_IF(mInvalidated, NS_FAILED(mResultCode))do { if (mInvalidated) { do { static_assert( mozilla::detail::
AssertionConditionType<decltype(((bool)(__builtin_expect(!
!(NS_FAILED_impl(mResultCode)), 0))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
NS_FAILED_impl(mResultCode)), 0)))))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(NS_FAILED_impl(mResultCode)), 0)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 2612)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(NS_FAILED_impl(mResultCode)), 0)))"
")"); do { MOZ_CrashSequence(__null, 2612); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
2613
2614 return mInvalidated;
2615 }
2616
2617 // May be called on any thread, but is more expensive than IsInvalidated().
2618 bool IsInvalidatedOnAnyThread() const { return mInvalidatedOnAnyThread; }
2619
2620 void Init(const uint64_t aTransactionId) {
2621 AssertIsOnBackgroundThread();
2622 MOZ_ASSERT(aTransactionId)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aTransactionId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aTransactionId))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("aTransactionId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 2622)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aTransactionId" ")"
); do { MOZ_CrashSequence(__null, 2622); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2623
2624 mTransactionId.init(aTransactionId);
2625 mInitialized.Flip();
2626 }
2627
2628 void SetActiveOnConnectionThread() {
2629 AssertIsOnConnectionThread();
2630 mHasBeenActiveOnConnectionThread.Flip();
2631 }
2632
2633 MOZ_DECLARE_REFCOUNTED_TYPENAME(mozilla::dom::indexedDB::TransactionBase)const char* typeName() const { return "mozilla::dom::indexedDB::TransactionBase"
; } size_t typeSize() const { return sizeof(*this); }
2634
2635 void Abort(nsresult aResultCode, bool aForce);
2636
2637 uint64_t TransactionId() const { return *mTransactionId; }
2638
2639 const nsACString& DatabaseId() const { return mDatabaseId; }
2640
2641 Mode GetMode() const { return mMode; }
2642
2643 Durability GetDurability() const { return mDurability; }
2644
2645 const Database& GetDatabase() const {
2646 MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDatabase)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 2646); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")"
); do { MOZ_CrashSequence(__null, 2646); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2647
2648 return *mDatabase;
2649 }
2650
2651 Database& GetMutableDatabase() const {
2652 MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDatabase)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 2652); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")"
); do { MOZ_CrashSequence(__null, 2652); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2653
2654 return *mDatabase;
2655 }
2656
2657 SafeRefPtr<Database> GetDatabasePtr() const {
2658 MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDatabase)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 2658); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")"
); do { MOZ_CrashSequence(__null, 2658); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2659
2660 return mDatabase.clonePtr();
2661 }
2662
2663 DatabaseLoggingInfo* GetLoggingInfo() const {
2664 AssertIsOnBackgroundThread();
2665 MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDatabase)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 2665); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")"
); do { MOZ_CrashSequence(__null, 2665); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2666
2667 return mDatabase->GetLoggingInfo();
2668 }
2669
2670 int64_t LoggingSerialNumber() const { return mLoggingSerialNumber; }
2671
2672 bool IsAborted() const {
2673 AssertIsOnBackgroundThread();
2674
2675 return NS_FAILED(mResultCode)((bool)(__builtin_expect(!!(NS_FAILED_impl(mResultCode)), 0))
)
;
2676 }
2677
2678 [[nodiscard]] SafeRefPtr<FullObjectStoreMetadata> GetMetadataForObjectStoreId(
2679 IndexOrObjectStoreId aObjectStoreId) const;
2680
2681 [[nodiscard]] SafeRefPtr<FullIndexMetadata> GetMetadataForIndexId(
2682 FullObjectStoreMetadata& aObjectStoreMetadata,
2683 IndexOrObjectStoreId aIndexId) const;
2684
2685 PBackgroundParent* GetBackgroundParent() const {
2686 AssertIsOnBackgroundThread();
2687 MOZ_ASSERT(!IsActorDestroyed())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsActorDestroyed())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsActorDestroyed()))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("!IsActorDestroyed()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 2687)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()"
")"); do { MOZ_CrashSequence(__null, 2687); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2688
2689 return GetDatabase().GetBackgroundParent();
2690 }
2691
2692 void NoteModifiedAutoIncrementObjectStore(
2693 const SafeRefPtr<FullObjectStoreMetadata>& aMetadata);
2694
2695 void ForgetModifiedAutoIncrementObjectStore(
2696 FullObjectStoreMetadata& aMetadata);
2697
2698 void NoteActiveRequest();
2699
2700 void NoteFinishedRequest(int64_t aRequestId, nsresult aResultCode);
2701
2702 void Invalidate();
2703
2704 virtual ~TransactionBase();
2705
2706 protected:
2707 TransactionBase(SafeRefPtr<Database> aDatabase, Mode aMode,
2708 Durability aDurability);
2709
2710 void NoteActorDestroyed() {
2711 AssertIsOnBackgroundThread();
2712
2713 mActorDestroyed.Flip();
2714 }
2715
2716#ifdef DEBUG1
2717 // Only called by VersionChangeTransaction.
2718 void FakeActorDestroyed() { mActorDestroyed.EnsureFlipped(); }
2719#endif
2720
2721 mozilla::ipc::IPCResult RecvCommit(IProtocol* aActor,
2722 const Maybe<int64_t> aLastRequest);
2723
2724 mozilla::ipc::IPCResult RecvAbort(IProtocol* aActor, nsresult aResultCode);
2725
2726 void MaybeCommitOrAbort() {
2727 AssertIsOnBackgroundThread();
2728
2729 // If we've already committed or aborted then there's nothing else to do.
2730 if (mCommittedOrAborted) {
2731 return;
2732 }
2733
2734 // If there are active requests then we have to wait for those requests to
2735 // complete (see NoteFinishedRequest).
2736 if (mActiveRequestCount) {
2737 return;
2738 }
2739
2740 // If we haven't yet received a commit or abort message then there could be
2741 // additional requests coming so we should wait unless we're being forced to
2742 // abort.
2743 if (!mCommitOrAbortReceived && !mForceAborted) {
2744 return;
2745 }
2746
2747 CommitOrAbort();
2748 }
2749
2750 PBackgroundIDBRequestParent* AllocRequest(const int64_t aRequestId,
2751 RequestParams&& aParams,
2752 bool aTrustParams);
2753
2754 bool StartRequest(PBackgroundIDBRequestParent* aActor);
2755
2756 bool DeallocRequest(PBackgroundIDBRequestParent* aActor);
2757
2758 already_AddRefed<PBackgroundIDBCursorParent> AllocCursor(
2759 const OpenCursorParams& aParams, bool aTrustParams);
2760
2761 bool StartCursor(PBackgroundIDBCursorParent* aActor, const int64_t aRequestId,
2762 const OpenCursorParams& aParams);
2763
2764 virtual void UpdateMetadata(nsresult aResult) {}
2765
2766 virtual void SendCompleteNotification(nsresult aResult) = 0;
2767
2768 private:
2769 bool VerifyRequestParams(const RequestParams& aParams) const;
2770
2771 bool VerifyRequestParams(const SerializedKeyRange& aParams) const;
2772
2773 bool VerifyRequestParams(const ObjectStoreAddPutParams& aParams) const;
2774
2775 bool VerifyRequestParams(const Maybe<SerializedKeyRange>& aParams) const;
2776
2777 void CommitOrAbort();
2778};
2779
2780class TransactionBase::CommitOp final : public DatabaseOperationBase,
2781 public ConnectionPool::FinishCallback {
2782 friend class TransactionBase;
2783
2784 SafeRefPtr<TransactionBase> mTransaction;
2785 nsresult mResultCode; ///< TODO: There is also a mResultCode in
2786 ///< DatabaseOperationBase. Is there a reason not to
2787 ///< use that? At least a more specific name should be
2788 ///< given to this one.
2789
2790 private:
2791 CommitOp(SafeRefPtr<TransactionBase> aTransaction, nsresult aResultCode);
2792
2793 ~CommitOp() override = default;
2794
2795 // Writes new autoIncrement counts to database.
2796 nsresult WriteAutoIncrementCounts();
2797
2798 // Updates counts after a database activity has finished.
2799 void CommitOrRollbackAutoIncrementCounts();
2800
2801 void AssertForeignKeyConsistency(DatabaseConnection* aConnection)
2802#ifdef DEBUG1
2803 ;
2804#else
2805 {
2806 }
2807#endif
2808
2809 NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override;
2810
2811 void TransactionFinishedBeforeUnblock() override;
2812
2813 void TransactionFinishedAfterUnblock() override;
2814
2815 public:
2816 // We need to declare all of nsISupports, because FinishCallback has
2817 // a pure-virtual nsISupports declaration.
2818 NS_DECL_ISUPPORTS_INHERITEDpublic: virtual nsresult QueryInterface(const nsIID& aIID
, void** aInstancePtr) override; virtual MozExternalRefCountType
AddRef(void) override; virtual MozExternalRefCountType Release
(void) override;
2819};
2820
2821class NormalTransaction final : public TransactionBase,
2822 public PBackgroundIDBTransactionParent {
2823 nsTArray<SafeRefPtr<FullObjectStoreMetadata>> mObjectStores;
2824
2825 // Reference counted.
2826 ~NormalTransaction() override = default;
2827
2828 bool IsSameProcessActor();
2829
2830 // Only called by TransactionBase.
2831 void SendCompleteNotification(nsresult aResult) override;
2832
2833 // IPDL methods are only called by IPDL.
2834 void ActorDestroy(ActorDestroyReason aWhy) override;
2835
2836 mozilla::ipc::IPCResult RecvDeleteMe() override;
2837
2838 mozilla::ipc::IPCResult RecvCommit(
2839 const Maybe<int64_t>& aLastRequest) override;
2840
2841 mozilla::ipc::IPCResult RecvAbort(const nsresult& aResultCode) override;
2842
2843 PBackgroundIDBRequestParent* AllocPBackgroundIDBRequestParent(
2844 const int64_t& aRequestId, const RequestParams& aParams) override;
2845
2846 mozilla::ipc::IPCResult RecvPBackgroundIDBRequestConstructor(
2847 PBackgroundIDBRequestParent* aActor, const int64_t& aRequestId,
2848 const RequestParams& aParams) override;
2849
2850 bool DeallocPBackgroundIDBRequestParent(
2851 PBackgroundIDBRequestParent* aActor) override;
2852
2853 already_AddRefed<PBackgroundIDBCursorParent> AllocPBackgroundIDBCursorParent(
2854 const int64_t& aRequestId, const OpenCursorParams& aParams) override;
2855
2856 mozilla::ipc::IPCResult RecvPBackgroundIDBCursorConstructor(
2857 PBackgroundIDBCursorParent* aActor, const int64_t& aRequestId,
2858 const OpenCursorParams& aParams) override;
2859
2860 public:
2861 // This constructor is only called by Database.
2862 NormalTransaction(
2863 SafeRefPtr<Database> aDatabase, TransactionBase::Mode aMode,
2864 TransactionBase::Durability aDurability,
2865 nsTArray<SafeRefPtr<FullObjectStoreMetadata>>&& aObjectStores);
2866
2867 MOZ_INLINE_DECL_SAFEREFCOUNTING_INHERITED(NormalTransaction, TransactionBase)template <typename T, ::mozilla::detail::RefCountAtomicity
Atomicity> friend class ::mozilla::detail::SafeRefCounted
; virtual MozExternalRefCountType AddRef() override { static_assert
(!std::is_destructible_v<NormalTransaction>, "Reference-counted class "
"NormalTransaction" " should not have a public destructor. "
"Make this class's destructor non-public"); nsrefcnt r = TransactionBase
::AddRef(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt
<NormalTransaction>) { NS_LogAddRef((this), (r), ("NormalTransaction"
), (uint32_t)(sizeof(*this))); } return r; } virtual MozExternalRefCountType
Release() override { nsrefcnt r = TransactionBase::Release()
; if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt<
NormalTransaction>) { NS_LogRelease((this), (r), ("NormalTransaction"
)); } return r; }
2868};
2869
2870class VersionChangeTransaction final
2871 : public TransactionBase,
2872 public PBackgroundIDBVersionChangeTransactionParent {
2873 friend class OpenDatabaseOp;
2874
2875 RefPtr<OpenDatabaseOp> mOpenDatabaseOp;
2876 SafeRefPtr<FullDatabaseMetadata> mOldMetadata;
2877
2878 FlippedOnce<false> mActorWasAlive;
2879
2880 public:
2881 // Only called by OpenDatabaseOp.
2882 explicit VersionChangeTransaction(OpenDatabaseOp* aOpenDatabaseOp);
2883
2884 MOZ_INLINE_DECL_SAFEREFCOUNTING_INHERITED(VersionChangeTransaction,template <typename T, ::mozilla::detail::RefCountAtomicity
Atomicity> friend class ::mozilla::detail::SafeRefCounted
; virtual MozExternalRefCountType AddRef() override { static_assert
(!std::is_destructible_v<VersionChangeTransaction>, "Reference-counted class "
"VersionChangeTransaction" " should not have a public destructor. "
"Make this class's destructor non-public"); nsrefcnt r = TransactionBase
::AddRef(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt
<VersionChangeTransaction>) { NS_LogAddRef((this), (r),
("VersionChangeTransaction"), (uint32_t)(sizeof(*this))); } return
r; } virtual MozExternalRefCountType Release() override { nsrefcnt
r = TransactionBase::Release(); if constexpr (::mozilla::detail
::ShouldLogInheritedRefcnt<VersionChangeTransaction>) {
NS_LogRelease((this), (r), ("VersionChangeTransaction")); } return
r; }
2885 TransactionBase)template <typename T, ::mozilla::detail::RefCountAtomicity
Atomicity> friend class ::mozilla::detail::SafeRefCounted
; virtual MozExternalRefCountType AddRef() override { static_assert
(!std::is_destructible_v<VersionChangeTransaction>, "Reference-counted class "
"VersionChangeTransaction" " should not have a public destructor. "
"Make this class's destructor non-public"); nsrefcnt r = TransactionBase
::AddRef(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt
<VersionChangeTransaction>) { NS_LogAddRef((this), (r),
("VersionChangeTransaction"), (uint32_t)(sizeof(*this))); } return
r; } virtual MozExternalRefCountType Release() override { nsrefcnt
r = TransactionBase::Release(); if constexpr (::mozilla::detail
::ShouldLogInheritedRefcnt<VersionChangeTransaction>) {
NS_LogRelease((this), (r), ("VersionChangeTransaction")); } return
r; }
2886
2887 private:
2888 // Reference counted.
2889 ~VersionChangeTransaction() override;
2890
2891 bool IsSameProcessActor();
2892
2893 // Only called by OpenDatabaseOp.
2894 bool CopyDatabaseMetadata();
2895
2896 void SetActorAlive();
2897
2898 // Only called by TransactionBase.
2899 void UpdateMetadata(nsresult aResult) override;
2900
2901 // Only called by TransactionBase.
2902 void SendCompleteNotification(nsresult aResult) override;
2903
2904 // IPDL methods are only called by IPDL.
2905 void ActorDestroy(ActorDestroyReason aWhy) override;
2906
2907 mozilla::ipc::IPCResult RecvDeleteMe() override;
2908
2909 mozilla::ipc::IPCResult RecvCommit(
2910 const Maybe<int64_t>& aLastRequest) override;
2911
2912 mozilla::ipc::IPCResult RecvAbort(const nsresult& aResultCode) override;
2913
2914 mozilla::ipc::IPCResult RecvCreateObjectStore(
2915 const ObjectStoreMetadata& aMetadata) override;
2916
2917 mozilla::ipc::IPCResult RecvDeleteObjectStore(
2918 const IndexOrObjectStoreId& aObjectStoreId) override;
2919
2920 mozilla::ipc::IPCResult RecvRenameObjectStore(
2921 const IndexOrObjectStoreId& aObjectStoreId,
2922 const nsAString& aName) override;
2923
2924 mozilla::ipc::IPCResult RecvCreateIndex(
2925 const IndexOrObjectStoreId& aObjectStoreId,
2926 const IndexMetadata& aMetadata) override;
2927
2928 mozilla::ipc::IPCResult RecvDeleteIndex(
2929 const IndexOrObjectStoreId& aObjectStoreId,
2930 const IndexOrObjectStoreId& aIndexId) override;
2931
2932 mozilla::ipc::IPCResult RecvRenameIndex(
2933 const IndexOrObjectStoreId& aObjectStoreId,
2934 const IndexOrObjectStoreId& aIndexId, const nsAString& aName) override;
2935
2936 PBackgroundIDBRequestParent* AllocPBackgroundIDBRequestParent(
2937 const int64_t& aRequestId, const RequestParams& aParams) override;
2938
2939 mozilla::ipc::IPCResult RecvPBackgroundIDBRequestConstructor(
2940 PBackgroundIDBRequestParent* aActor, const int64_t& aRequestId,
2941 const RequestParams& aParams) override;
2942
2943 bool DeallocPBackgroundIDBRequestParent(
2944 PBackgroundIDBRequestParent* aActor) override;
2945
2946 already_AddRefed<PBackgroundIDBCursorParent> AllocPBackgroundIDBCursorParent(
2947 const int64_t& aRequestId, const OpenCursorParams& aParams) override;
2948
2949 mozilla::ipc::IPCResult RecvPBackgroundIDBCursorConstructor(
2950 PBackgroundIDBCursorParent* aActor, const int64_t& aRequestId,
2951 const OpenCursorParams& aParams) override;
2952};
2953
2954class FactoryOp : public DatabaseOperationBase,
2955 public LinkedListElement<FactoryOp> {
2956 public:
2957 struct MaybeBlockedDatabaseInfo final {
2958 SafeRefPtr<Database> mDatabase;
2959 bool mBlocked;
2960
2961 MaybeBlockedDatabaseInfo(MaybeBlockedDatabaseInfo&&) = default;
2962 MaybeBlockedDatabaseInfo& operator=(MaybeBlockedDatabaseInfo&&) = default;
2963
2964 MOZ_IMPLICIT MaybeBlockedDatabaseInfo(SafeRefPtr<Database> aDatabase)
2965 : mDatabase(std::move(aDatabase)), mBlocked(false) {
2966 MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDatabase)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 2966); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")"
); do { MOZ_CrashSequence(__null, 2966); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2967
2968 MOZ_COUNT_CTOR(FactoryOp::MaybeBlockedDatabaseInfo)do { static_assert(std::is_class_v<FactoryOp::MaybeBlockedDatabaseInfo
>, "Token '" "FactoryOp::MaybeBlockedDatabaseInfo" "' is not a class type."
); static_assert(!std::is_base_of_v<nsISupports, FactoryOp
::MaybeBlockedDatabaseInfo>, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "FactoryOp::MaybeBlockedDatabaseInfo"
, sizeof(*this)); } while (0)
;
2969 }
2970
2971 ~MaybeBlockedDatabaseInfo() {
2972 MOZ_COUNT_DTOR(FactoryOp::MaybeBlockedDatabaseInfo)do { static_assert(std::is_class_v<FactoryOp::MaybeBlockedDatabaseInfo
>, "Token '" "FactoryOp::MaybeBlockedDatabaseInfo" "' is not a class type."
); static_assert(!std::is_base_of_v<nsISupports, FactoryOp
::MaybeBlockedDatabaseInfo>, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "FactoryOp::MaybeBlockedDatabaseInfo"
, sizeof(*this)); } while (0)
;
2973 }
2974
2975 bool operator==(const Database* aOther) const {
2976 return mDatabase == aOther;
2977 }
2978
2979 Database* operator->() const& MOZ_NO_ADDREF_RELEASE_ON_RETURN {
2980 return mDatabase.unsafeGetRawPtr();
2981 }
2982 };
2983
2984 protected:
2985 enum class State {
2986 // Just created on the PBackground thread, dispatched to the current thread.
2987 // Next step is either SendingResults if opening initialization failed, or
2988 // DirectoryOpenPending if the opening initialization succeeded.
2989 Initial,
2990
2991 // Waiting for directory open allowed on the PBackground thread. The next
2992 // step is either SendingResults if directory lock failed to acquire, or
2993 // DirectoryWorkOpen if the factory operation is not tied up to a specific
2994 // database, or DatabaseOpenPending otherwise.
2995 DirectoryOpenPending,
2996
2997 // Waiting to do/doing directory work on the QuotaManager IO thread. Its
2998 // next step is DirectoryWorkDone if directory work was successful or
2999 // SendingResults if directory work failed.
3000 DirectoryWorkOpen,
3001
3002 // Checking if database work can be started. If the database is not blocked
3003 // by other factory operations then the next step is DatabaseWorkOpen.
3004 // Otherwise the next step is DatabaseOpenPending.
3005 DirectoryWorkDone,
3006
3007 // Waiting for database open allowed on the PBackground thread. The next
3008 // step is DatabaseWorkOpen.
3009 DatabaseOpenPending,
3010
3011 // Waiting to do/doing work on the QuotaManager IO thread. Its next step is
3012 // either BeginVersionChange if the requested version doesn't match the
3013 // existing database version or SendingResults if the versions match.
3014 DatabaseWorkOpen,
3015
3016 // Starting a version change transaction or deleting a database on the
3017 // PBackground thread. We need to notify other databases that a version
3018 // change is about to happen, and maybe tell the request that a version
3019 // change has been blocked. If databases are notified then the next step is
3020 // WaitingForOtherDatabasesToClose. Otherwise the next step is
3021 // WaitingForTransactionsToComplete.
3022 BeginVersionChange,
3023
3024 // Waiting for other databases to close on the PBackground thread. This
3025 // state may persist until all databases are closed. The next state is
3026 // WaitingForTransactionsToComplete.
3027 WaitingForOtherDatabasesToClose,
3028
3029 // Waiting for all transactions that could interfere with this operation to
3030 // complete on the PBackground thread. Next state is
3031 // DatabaseWorkVersionChange.
3032 WaitingForTransactionsToComplete,
3033
3034 // Waiting to do/doing work on the "work thread". This involves waiting for
3035 // the VersionChangeOp (OpenDatabaseOp and DeleteDatabaseOp each have a
3036 // different implementation) to do its work. If the VersionChangeOp is
3037 // OpenDatabaseOp and it succeeded then the next state is
3038 // DatabaseWorkVersionUpdate. Otherwise the next step is SendingResults.
3039 DatabaseWorkVersionChange,
3040
3041 // Waiting to do/doing finalization work on the QuotaManager IO thread.
3042 // Eventually the state will transition to SendingResults.
3043 DatabaseWorkVersionUpdate,
3044
3045 // Waiting to send/sending results on the PBackground thread. Next step is
3046 // Completed.
3047 SendingResults,
3048
3049 // All done.
3050 Completed
3051 };
3052
3053 // Must be released on the background thread!
3054 SafeRefPtr<Factory> mFactory;
3055
3056 Maybe<ContentParentId> mContentParentId;
3057
3058 // Must be released on the main thread!
3059 ClientDirectoryLockHandle mDirectoryLockHandle;
3060
3061 nsTArray<NotNull<RefPtr<FactoryOp>>> mBlocking;
3062 nsTHashSet<RefPtr<FactoryOp>> mBlockedOn;
3063
3064 nsTArray<MaybeBlockedDatabaseInfo> mMaybeBlockedDatabases;
3065
3066 const PrincipalInfo mPrincipalInfo;
3067 OriginMetadata mOriginMetadata;
3068 Maybe<nsString> mDatabaseName;
3069 Maybe<nsCString> mDatabaseId;
3070 Maybe<nsString> mDatabaseFilePath;
3071 Maybe<nsString> mDatabaseFilenameBase;
3072 int64_t mDirectoryLockId;
3073 const PersistenceType mPersistenceType;
3074 State mState;
3075 bool mWaitingForPermissionRetry;
3076 bool mEnforcingQuota;
3077 const bool mDeleting;
3078 FlippedOnce<false> mInPrivateBrowsing;
3079
3080 public:
3081 const nsACString& Origin() const {
3082 AssertIsOnOwningThread();
3083
3084 return mOriginMetadata.mOrigin;
3085 }
3086
3087 const Maybe<nsString>& DatabaseNameRef() const {
3088 AssertIsOnOwningThread();
3089
3090 return mDatabaseName;
3091 }
3092
3093 bool DatabaseFilePathIsKnown() const {
3094 AssertIsOnOwningThread();
3095
3096 return mDatabaseFilePath.isSome();
3097 }
3098
3099 const nsAString& DatabaseFilePath() const {
3100 AssertIsOnOwningThread();
3101 MOZ_ASSERT(mDatabaseFilePath)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDatabaseFilePath)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDatabaseFilePath))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("mDatabaseFilePath"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3101)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabaseFilePath"
")"); do { MOZ_CrashSequence(__null, 3101); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3102
3103 return mDatabaseFilePath.ref();
3104 }
3105
3106 nsresult DispatchThisAfterProcessingCurrentEvent(
3107 nsCOMPtr<nsIEventTarget> aEventTarget);
3108
3109 void NoteDatabaseBlocked(Database* aDatabase);
3110
3111 void NoteDatabaseClosed(Database* aDatabase);
3112
3113#ifdef DEBUG1
3114 bool HasBlockedDatabases() const { return !mMaybeBlockedDatabases.IsEmpty(); }
3115#endif
3116
3117 void StringifyState(nsACString& aResult) const;
3118
3119 void Stringify(nsACString& aResult) const;
3120
3121 protected:
3122 FactoryOp(SafeRefPtr<Factory> aFactory,
3123 const Maybe<ContentParentId>& aContentParentId,
3124 const PersistenceType aPersistenceType,
3125 const PrincipalInfo& aPrincipalInfo,
3126 const Maybe<nsString>& aDatabaseName, bool aDeleting);
3127
3128 ~FactoryOp() override {
3129 // Normally this would be out-of-line since it is a virtual function but
3130 // MSVC 2010 fails to link for some reason if it is not inlined here...
3131 MOZ_ASSERT_IF(OperationMayProceed(),do { if (OperationMayProceed()) { do { static_assert( mozilla
::detail::AssertionConditionType<decltype(mState == State::
Initial || mState == State::Completed)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::Initial || mState
== State::Completed))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mState == State::Initial || mState == State::Completed", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 3132); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial || mState == State::Completed"
")"); do { MOZ_CrashSequence(__null, 3132); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
3132 mState == State::Initial || mState == State::Completed)do { if (OperationMayProceed()) { do { static_assert( mozilla
::detail::AssertionConditionType<decltype(mState == State::
Initial || mState == State::Completed)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::Initial || mState
== State::Completed))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mState == State::Initial || mState == State::Completed", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 3132); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial || mState == State::Completed"
")"); do { MOZ_CrashSequence(__null, 3132); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
3133 MOZ_DIAGNOSTIC_ASSERT(!isInList())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!isInList())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!isInList()))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("!isInList()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 3133); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "!isInList()"
")"); do { MOZ_CrashSequence(__null, 3133); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3134 }
3135
3136 nsresult Open();
3137
3138 nsresult DirectoryOpen();
3139
3140 nsresult DirectoryWorkDone();
3141
3142 nsresult SendToIOThread();
3143
3144 void WaitForTransactions();
3145
3146 void CleanupMetadata();
3147
3148 void FinishSendResults();
3149
3150 nsresult SendVersionChangeMessages(DatabaseActorInfo* aDatabaseActorInfo,
3151 Maybe<Database&> aOpeningDatabase,
3152 uint64_t aOldVersion,
3153 const Maybe<uint64_t>& aNewVersion);
3154
3155 // Methods that subclasses must implement.
3156 virtual nsresult DoDirectoryWork() = 0;
3157
3158 virtual nsresult DatabaseOpen() = 0;
3159
3160 virtual nsresult DoDatabaseWork() = 0;
3161
3162 virtual nsresult BeginVersionChange() = 0;
3163
3164 virtual bool AreActorsAlive() = 0;
3165
3166 virtual nsresult DispatchToWorkThread() = 0;
3167
3168 virtual nsresult DoVersionUpdate() = 0;
3169
3170 // Should only be called by Run().
3171 virtual void SendResults() = 0;
3172
3173 // Common nsIRunnable implementation that subclasses may not override.
3174 NS_IMETHODvirtual nsresult
3175 Run() final;
3176
3177 void DirectoryLockAcquired(ClientDirectoryLockHandle aLockHandle);
3178
3179 void DirectoryLockFailed();
3180
3181 virtual void SendBlockedNotification() = 0;
3182
3183 private:
3184 static nsAutoString GetDatabaseFilenameBase(const nsAString& aDatabaseName,
3185 bool aIsPrivate);
3186
3187 // Test whether this FactoryOp needs to wait for the given op.
3188 bool MustWaitFor(const FactoryOp& aExistingOp);
3189
3190 void AddBlockingOp(FactoryOp& aOp) {
3191 AssertIsOnOwningThread();
3192
3193 mBlocking.AppendElement(WrapNotNull(&aOp));
3194 }
3195
3196 void AddBlockedOnOp(FactoryOp& aOp) {
3197 AssertIsOnOwningThread();
3198
3199 mBlockedOn.Insert(&aOp);
3200 }
3201
3202 void MaybeUnblock(FactoryOp& aOp) {
3203 AssertIsOnOwningThread();
3204
3205 mBlockedOn.Remove(&aOp);
3206 if (mBlockedOn.IsEmpty()) {
3207 MOZ_ALWAYS_SUCCEEDS(NS_DispatchToCurrentThread(this))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(NS_DispatchToCurrentThread(this))), 1)))), 1))) { } else { do
{ do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(NS_DispatchToCurrentThread(this))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3207)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(NS_DispatchToCurrentThread(this))"
")"); do { MOZ_CrashSequence(__null, 3207); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
3208 }
3209 }
3210};
3211
3212class FactoryRequestOp : public FactoryOp,
3213 public PBackgroundIDBFactoryRequestParent {
3214 protected:
3215 const CommonFactoryRequestParams mCommonParams;
3216
3217 FactoryRequestOp(SafeRefPtr<Factory> aFactory,
3218 const Maybe<ContentParentId>& aContentParentId,
3219 const CommonFactoryRequestParams& aCommonParams,
3220 bool aDeleting)
3221 : FactoryOp(std::move(aFactory), aContentParentId,
3222 aCommonParams.metadata().persistenceType(),
3223 aCommonParams.principalInfo(),
3224 Some(aCommonParams.metadata().name()), aDeleting),
3225 mCommonParams(aCommonParams) {}
3226
3227 nsresult DoDirectoryWork() override;
3228
3229 // IPDL methods.
3230 void ActorDestroy(ActorDestroyReason aWhy) override;
3231};
3232
3233class OpenDatabaseOp final : public FactoryRequestOp {
3234 friend class Database;
3235 friend class VersionChangeTransaction;
3236
3237 class VersionChangeOp;
3238
3239 SafeRefPtr<FullDatabaseMetadata> mMetadata;
3240
3241 uint64_t mRequestedVersion;
3242 SafeRefPtr<DatabaseFileManager> mFileManager;
3243
3244 SafeRefPtr<Database> mDatabase;
3245 SafeRefPtr<VersionChangeTransaction> mVersionChangeTransaction;
3246
3247 // This is only set while a VersionChangeOp is live. It holds a strong
3248 // reference to its OpenDatabaseOp object so this is a weak pointer to avoid
3249 // cycles.
3250 VersionChangeOp* mVersionChangeOp;
3251
3252 MoveOnlyFunction<void()> mCompleteCallback;
3253
3254 uint32_t mTelemetryId;
3255
3256 public:
3257 OpenDatabaseOp(SafeRefPtr<Factory> aFactory,
3258 const Maybe<ContentParentId>& aContentParentId,
3259 const CommonFactoryRequestParams& aParams);
3260
3261 private:
3262 ~OpenDatabaseOp() override { MOZ_ASSERT(!mVersionChangeOp)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mVersionChangeOp)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mVersionChangeOp))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("!mVersionChangeOp"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3262)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mVersionChangeOp"
")"); do { MOZ_CrashSequence(__null, 3262); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
; }
3263
3264 nsresult LoadDatabaseInformation(mozIStorageConnection& aConnection);
3265
3266 nsresult SendUpgradeNeeded();
3267
3268 void EnsureDatabaseActor();
3269
3270 nsresult EnsureDatabaseActorIsAlive();
3271
3272 mozilla::Result<DatabaseSpec, nsresult> MetadataToSpec() const;
3273
3274 void AssertMetadataConsistency(const FullDatabaseMetadata& aMetadata)
3275#ifdef DEBUG1
3276 ;
3277#else
3278 {
3279 }
3280#endif
3281
3282 void ConnectionClosedCallback();
3283
3284 void ActorDestroy(ActorDestroyReason aWhy) override;
3285
3286 nsresult DatabaseOpen() override;
3287
3288 nsresult DoDatabaseWork() override;
3289
3290 nsresult BeginVersionChange() override;
3291
3292 bool AreActorsAlive() override;
3293
3294 void SendBlockedNotification() override;
3295
3296 nsresult DispatchToWorkThread() override;
3297
3298 nsresult DoVersionUpdate() override;
3299
3300 void SendResults() override;
3301
3302 static nsresult UpdateLocaleAwareIndex(mozIStorageConnection& aConnection,
3303 const IndexMetadata& aIndexMetadata,
3304 const nsCString& aLocale);
3305};
3306
3307class OpenDatabaseOp::VersionChangeOp final
3308 : public TransactionDatabaseOperationBase {
3309 friend class OpenDatabaseOp;
3310
3311 RefPtr<OpenDatabaseOp> mOpenDatabaseOp;
3312 const uint64_t mRequestedVersion;
3313 uint64_t mPreviousVersion;
3314
3315 private:
3316 explicit VersionChangeOp(OpenDatabaseOp* aOpenDatabaseOp)
3317 : TransactionDatabaseOperationBase(
3318 aOpenDatabaseOp->mVersionChangeTransaction.clonePtr(),
3319 /* aRequestId */ 0, aOpenDatabaseOp->LoggingSerialNumber()),
3320 mOpenDatabaseOp(aOpenDatabaseOp),
3321 mRequestedVersion(aOpenDatabaseOp->mRequestedVersion),
3322 mPreviousVersion(
3323 aOpenDatabaseOp->mMetadata->mCommonMetadata.version()) {
3324 MOZ_ASSERT(aOpenDatabaseOp)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aOpenDatabaseOp)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aOpenDatabaseOp))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("aOpenDatabaseOp"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3324)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aOpenDatabaseOp" ")"
); do { MOZ_CrashSequence(__null, 3324); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3325 MOZ_ASSERT(mRequestedVersion)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mRequestedVersion)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mRequestedVersion))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("mRequestedVersion"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3325)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mRequestedVersion"
")"); do { MOZ_CrashSequence(__null, 3325); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3326 }
3327
3328 ~VersionChangeOp() override { MOZ_ASSERT(!mOpenDatabaseOp)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mOpenDatabaseOp)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mOpenDatabaseOp))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!mOpenDatabaseOp"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3328)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mOpenDatabaseOp" ")"
); do { MOZ_CrashSequence(__null, 3328); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
; }
3329
3330 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
3331
3332 TransactionOpResult SendSuccessResult() override;
3333
3334 bool SendFailureResult(const TransactionOpResult& aResult) override;
3335
3336 void Cleanup() override;
3337};
3338
3339class DeleteDatabaseOp final : public FactoryRequestOp {
3340 class VersionChangeOp;
3341
3342 nsString mDatabaseDirectoryPath;
3343 uint64_t mPreviousVersion;
3344
3345 public:
3346 DeleteDatabaseOp(SafeRefPtr<Factory> aFactory,
3347 const Maybe<ContentParentId>& aContentParentId,
3348 const CommonFactoryRequestParams& aParams)
3349 : FactoryRequestOp(std::move(aFactory), aContentParentId, aParams,
3350 /* aDeleting */ true),
3351 mPreviousVersion(0) {}
3352
3353 private:
3354 ~DeleteDatabaseOp() override = default;
3355
3356 nsresult LoadPreviousVersion(nsIFile& aDatabaseFile);
3357
3358 nsresult DatabaseOpen() override;
3359
3360 nsresult DoDatabaseWork() override;
3361
3362 nsresult BeginVersionChange() override;
3363
3364 bool AreActorsAlive() override;
3365
3366 void SendBlockedNotification() override;
3367
3368 nsresult DispatchToWorkThread() override;
3369
3370 nsresult DoVersionUpdate() override;
3371
3372 void SendResults() override;
3373};
3374
3375class DeleteDatabaseOp::VersionChangeOp final : public DatabaseOperationBase {
3376 friend class DeleteDatabaseOp;
3377
3378 RefPtr<DeleteDatabaseOp> mDeleteDatabaseOp;
3379
3380 private:
3381 explicit VersionChangeOp(DeleteDatabaseOp* aDeleteDatabaseOp)
3382 : DatabaseOperationBase(aDeleteDatabaseOp->BackgroundChildLoggingId(),
3383 aDeleteDatabaseOp->LoggingSerialNumber()),
3384 mDeleteDatabaseOp(aDeleteDatabaseOp) {
3385 MOZ_ASSERT(aDeleteDatabaseOp)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDeleteDatabaseOp)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDeleteDatabaseOp))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("aDeleteDatabaseOp"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3385)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDeleteDatabaseOp"
")"); do { MOZ_CrashSequence(__null, 3385); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3386 MOZ_ASSERT(!aDeleteDatabaseOp->mDatabaseDirectoryPath.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aDeleteDatabaseOp->mDatabaseDirectoryPath.IsEmpty
())>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!aDeleteDatabaseOp->mDatabaseDirectoryPath.IsEmpty
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!aDeleteDatabaseOp->mDatabaseDirectoryPath.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 3386); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDeleteDatabaseOp->mDatabaseDirectoryPath.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 3386); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3387 }
3388
3389 ~VersionChangeOp() override = default;
3390
3391 nsresult RunOnIOThread();
3392
3393 void RunOnOwningThread();
3394
3395 NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override;
3396};
3397
3398class GetDatabasesOp final : public FactoryOp {
3399 nsTHashMap<nsStringHashKey, DatabaseMetadata> mDatabaseMetadataTable;
3400 nsTArray<DatabaseMetadata> mDatabaseMetadataArray;
3401 Factory::GetDatabasesResolver mResolver;
3402
3403 public:
3404 GetDatabasesOp(SafeRefPtr<Factory> aFactory,
3405 const Maybe<ContentParentId>& aContentParentId,
3406 const PersistenceType aPersistenceType,
3407 const PrincipalInfo& aPrincipalInfo,
3408 Factory::GetDatabasesResolver&& aResolver)
3409 : FactoryOp(std::move(aFactory), aContentParentId, aPersistenceType,
3410 aPrincipalInfo, Nothing(), /* aDeleting */ false),
3411 mResolver(std::move(aResolver)) {}
3412
3413 private:
3414 ~GetDatabasesOp() override = default;
3415
3416 nsresult DatabasesNotAvailable();
3417
3418 nsresult DoDirectoryWork() override;
3419
3420 nsresult DatabaseOpen() override;
3421
3422 nsresult DoDatabaseWork() override;
3423
3424 nsresult BeginVersionChange() override;
3425
3426 bool AreActorsAlive() override;
3427
3428 void SendBlockedNotification() override;
3429
3430 nsresult DispatchToWorkThread() override;
3431
3432 nsresult DoVersionUpdate() override;
3433
3434 void SendResults() override;
3435};
3436
3437class VersionChangeTransactionOp : public TransactionDatabaseOperationBase {
3438 public:
3439 void Cleanup() override;
3440
3441 protected:
3442 explicit VersionChangeTransactionOp(
3443 SafeRefPtr<VersionChangeTransaction> aTransaction)
3444 : TransactionDatabaseOperationBase(std::move(aTransaction),
3445 /* aRequestId */ 0) {}
3446
3447 ~VersionChangeTransactionOp() override = default;
3448
3449 private:
3450 TransactionOpResult SendSuccessResult() override;
3451
3452 bool SendFailureResult(const TransactionOpResult& aResult) override;
3453};
3454
3455class CreateObjectStoreOp final : public VersionChangeTransactionOp {
3456 friend class VersionChangeTransaction;
3457
3458 const ObjectStoreMetadata mMetadata;
3459
3460 private:
3461 // Only created by VersionChangeTransaction.
3462 CreateObjectStoreOp(SafeRefPtr<VersionChangeTransaction> aTransaction,
3463 const ObjectStoreMetadata& aMetadata)
3464 : VersionChangeTransactionOp(std::move(aTransaction)),
3465 mMetadata(aMetadata) {
3466 MOZ_ASSERT(aMetadata.id())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aMetadata.id())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aMetadata.id()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("aMetadata.id()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3466)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMetadata.id()" ")"
); do { MOZ_CrashSequence(__null, 3466); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3467 }
3468
3469 ~CreateObjectStoreOp() override = default;
3470
3471 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
3472};
3473
3474class DeleteObjectStoreOp final : public VersionChangeTransactionOp {
3475 friend class VersionChangeTransaction;
3476
3477 const SafeRefPtr<FullObjectStoreMetadata> mMetadata;
3478 const bool mIsLastObjectStore;
3479
3480 private:
3481 // Only created by VersionChangeTransaction.
3482 DeleteObjectStoreOp(SafeRefPtr<VersionChangeTransaction> aTransaction,
3483 SafeRefPtr<FullObjectStoreMetadata> aMetadata,
3484 const bool aIsLastObjectStore)
3485 : VersionChangeTransactionOp(std::move(aTransaction)),
3486 mMetadata(std::move(aMetadata)),
3487 mIsLastObjectStore(aIsLastObjectStore) {
3488 MOZ_ASSERT(mMetadata->mCommonMetadata.id())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMetadata->mCommonMetadata.id())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mMetadata->mCommonMetadata
.id()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mMetadata->mCommonMetadata.id()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 3488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata->mCommonMetadata.id()"
")"); do { MOZ_CrashSequence(__null, 3488); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3489 }
3490
3491 ~DeleteObjectStoreOp() override = default;
3492
3493 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
3494};
3495
3496class RenameObjectStoreOp final : public VersionChangeTransactionOp {
3497 friend class VersionChangeTransaction;
3498
3499 const int64_t mId;
3500 const nsString mNewName;
3501
3502 private:
3503 // Only created by VersionChangeTransaction.
3504 RenameObjectStoreOp(SafeRefPtr<VersionChangeTransaction> aTransaction,
3505 FullObjectStoreMetadata& aMetadata)
3506 : VersionChangeTransactionOp(std::move(aTransaction)),
3507 mId(aMetadata.mCommonMetadata.id()),
3508 mNewName(aMetadata.mCommonMetadata.name()) {
3509 MOZ_ASSERT(mId)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mId)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(mId))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("mId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 3509); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mId" ")"); do
{ MOZ_CrashSequence(__null, 3509); __attribute__((nomerge)) ::
abort(); } while (false); } } while (false)
;
3510 }
3511
3512 ~RenameObjectStoreOp() override = default;
3513
3514 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
3515};
3516
3517class CreateIndexOp final : public VersionChangeTransactionOp {
3518 friend class VersionChangeTransaction;
3519
3520 class UpdateIndexDataValuesFunction;
3521
3522 const IndexMetadata mMetadata;
3523 Maybe<UniqueIndexTable> mMaybeUniqueIndexTable;
3524 const SafeRefPtr<DatabaseFileManager> mFileManager;
3525 const nsCString mDatabaseId;
3526 const IndexOrObjectStoreId mObjectStoreId;
3527
3528 private:
3529 // Only created by VersionChangeTransaction.
3530 CreateIndexOp(SafeRefPtr<VersionChangeTransaction> aTransaction,
3531 IndexOrObjectStoreId aObjectStoreId,
3532 const IndexMetadata& aMetadata);
3533
3534 ~CreateIndexOp() override = default;
3535
3536 nsresult InsertDataFromObjectStore(DatabaseConnection* aConnection);
3537
3538 nsresult InsertDataFromObjectStoreInternal(
3539 DatabaseConnection* aConnection) const;
3540
3541 bool Init(TransactionBase& aTransaction) override;
3542
3543 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
3544};
3545
3546class CreateIndexOp::UpdateIndexDataValuesFunction final
3547 : public mozIStorageFunction {
3548 RefPtr<CreateIndexOp> mOp;
3549 RefPtr<DatabaseConnection> mConnection;
3550 const NotNull<SafeRefPtr<Database>> mDatabase;
3551
3552 public:
3553 UpdateIndexDataValuesFunction(CreateIndexOp* aOp,
3554 DatabaseConnection* aConnection,
3555 SafeRefPtr<Database> aDatabase)
3556 : mOp(aOp),
3557 mConnection(aConnection),
3558 mDatabase(WrapNotNull(std::move(aDatabase))) {
3559 MOZ_ASSERT(aOp)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aOp)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(aOp))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("aOp", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 3559); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aOp" ")"); do
{ MOZ_CrashSequence(__null, 3559); __attribute__((nomerge)) ::
abort(); } while (false); } } while (false)
;
3560 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 3560); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 3560); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3561 aConnection->AssertIsOnConnectionThread();
3562 }
3563
3564 NS_DECL_ISUPPORTSpublic: virtual nsresult QueryInterface(const nsIID& aIID
, void** aInstancePtr) override; virtual MozExternalRefCountType
AddRef(void) override; virtual MozExternalRefCountType Release
(void) override; using HasThreadSafeRefCnt = std::false_type;
protected: nsAutoRefCnt mRefCnt; nsAutoOwningThread _mOwningThread
; public:
3565
3566 private:
3567 ~UpdateIndexDataValuesFunction() = default;
3568
3569 NS_DECL_MOZISTORAGEFUNCTIONvirtual nsresult OnFunctionCall(mozIStorageValueArray *aFunctionArguments
, nsIVariant **_retval) override;
3570};
3571
3572class DeleteIndexOp final : public VersionChangeTransactionOp {
3573 friend class VersionChangeTransaction;
3574
3575 const IndexOrObjectStoreId mObjectStoreId;
3576 const IndexOrObjectStoreId mIndexId;
3577 const bool mUnique;
3578 const bool mIsLastIndex;
3579
3580 private:
3581 // Only created by VersionChangeTransaction.
3582 DeleteIndexOp(SafeRefPtr<VersionChangeTransaction> aTransaction,
3583 IndexOrObjectStoreId aObjectStoreId,
3584 IndexOrObjectStoreId aIndexId, const bool aUnique,
3585 const bool aIsLastIndex);
3586
3587 ~DeleteIndexOp() override = default;
3588
3589 nsresult RemoveReferencesToIndex(
3590 DatabaseConnection* aConnection, const Key& aObjectDataKey,
3591 nsTArray<IndexDataValue>& aIndexValues) const;
3592
3593 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
3594};
3595
3596class RenameIndexOp final : public VersionChangeTransactionOp {
3597 friend class VersionChangeTransaction;
3598
3599 const IndexOrObjectStoreId mObjectStoreId;
3600 const IndexOrObjectStoreId mIndexId;
3601 const nsString mNewName;
3602
3603 private:
3604 // Only created by VersionChangeTransaction.
3605 RenameIndexOp(SafeRefPtr<VersionChangeTransaction> aTransaction,
3606 FullIndexMetadata& aMetadata,
3607 IndexOrObjectStoreId aObjectStoreId)
3608 : VersionChangeTransactionOp(std::move(aTransaction)),
3609 mObjectStoreId(aObjectStoreId),
3610 mIndexId(aMetadata.mCommonMetadata.id()),
3611 mNewName(aMetadata.mCommonMetadata.name()) {
3612 MOZ_ASSERT(mIndexId)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mIndexId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mIndexId))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mIndexId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 3612); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mIndexId" ")"
); do { MOZ_CrashSequence(__null, 3612); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3613 }
3614
3615 ~RenameIndexOp() override = default;
3616
3617 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
3618};
3619
3620class NormalTransactionOp : public TransactionDatabaseOperationBase,
3621 public PBackgroundIDBRequestParent {
3622#ifdef DEBUG1
3623 bool mResponseSent;
3624#endif
3625
3626 public:
3627 void Cleanup() override;
3628
3629 protected:
3630 NormalTransactionOp(SafeRefPtr<TransactionBase> aTransaction,
3631 const int64_t aRequestId)
3632 : TransactionDatabaseOperationBase(std::move(aTransaction), aRequestId)
3633#ifdef DEBUG1
3634 ,
3635 mResponseSent(false)
3636#endif
3637 {
3638 }
3639
3640 ~NormalTransactionOp() override = default;
3641
3642 // An overload of DatabaseOperationBase's function that can avoid doing extra
3643 // work on non-versionchange transactions.
3644 mozilla::Result<bool, nsresult> ObjectStoreHasIndexes(
3645 DatabaseConnection& aConnection, IndexOrObjectStoreId aObjectStoreId,
3646 bool aMayHaveIndexes);
3647
3648 virtual mozilla::Result<PreprocessParams, nsresult> GetPreprocessParams();
3649
3650 // Subclasses use this override to set the IPDL response value.
3651 virtual void GetResponse(RequestResponse& aResponse,
3652 size_t* aResponseSize) = 0;
3653
3654 private:
3655 nsresult SendPreprocessInfo() override;
3656
3657 TransactionOpResult SendSuccessResult() override;
3658
3659 bool SendFailureResult(const TransactionOpResult& aResult) override;
3660
3661 // IPDL methods.
3662 void ActorDestroy(ActorDestroyReason aWhy) override;
3663
3664 mozilla::ipc::IPCResult RecvContinue(
3665 const PreprocessResponse& aResponse) final;
3666};
3667
3668class ObjectStoreAddOrPutRequestOp final : public NormalTransactionOp {
3669 friend class TransactionBase;
3670
3671 using PersistenceType = mozilla::dom::quota::PersistenceType;
3672
3673 class StoredFileInfo final {
3674 InitializedOnce<const NotNull<SafeRefPtr<DatabaseFileInfo>>> mFileInfo;
3675 // Either nothing, a file actor or a non-Blob-backed inputstream to write to
3676 // disk.
3677 using FileActorOrInputStream =
3678 Variant<Nothing, RefPtr<DatabaseFile>, nsCOMPtr<nsIInputStream>>;
3679 InitializedOnce<const FileActorOrInputStream> mFileActorOrInputStream;
3680#ifdef DEBUG1
3681 const StructuredCloneFileBase::FileType mType;
3682#endif
3683 nsresult EnsureCipherKey();
3684 void AssertInvariants() const;
3685
3686 StoredFileInfo(SafeRefPtr<DatabaseFileInfo> aFileInfo,
3687 RefPtr<DatabaseFile> aFileActor);
3688
3689 StoredFileInfo(SafeRefPtr<DatabaseFileInfo> aFileInfo,
3690 nsCOMPtr<nsIInputStream> aInputStream);
3691
3692 public:
3693#if defined(NS_BUILD_REFCNT_LOGGING1)
3694 // Only for MOZ_COUNT_CTOR.
3695 StoredFileInfo(StoredFileInfo&& aOther)
3696 : mFileInfo{std::move(aOther.mFileInfo)},
3697 mFileActorOrInputStream{std::move(aOther.mFileActorOrInputStream)}
3698# ifdef DEBUG1
3699 ,
3700 mType{aOther.mType}
3701# endif
3702 {
3703 MOZ_COUNT_CTOR(ObjectStoreAddOrPutRequestOp::StoredFileInfo)do { static_assert(std::is_class_v<ObjectStoreAddOrPutRequestOp
::StoredFileInfo>, "Token '" "ObjectStoreAddOrPutRequestOp::StoredFileInfo"
"' is not a class type."); static_assert(!std::is_base_of_v<
nsISupports, ObjectStoreAddOrPutRequestOp::StoredFileInfo>
, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ObjectStoreAddOrPutRequestOp::StoredFileInfo"
, sizeof(*this)); } while (0)
;
3704 }
3705#else
3706 StoredFileInfo(StoredFileInfo&&) = default;
3707#endif
3708
3709 static mozilla::Result<StoredFileInfo, nsresult> CreateForBlob(
3710 SafeRefPtr<DatabaseFileInfo> aFileInfo,
3711 RefPtr<DatabaseFile> aFileActor);
3712 static mozilla::Result<StoredFileInfo, nsresult> CreateForStructuredClone(
3713 SafeRefPtr<DatabaseFileInfo> aFileInfo,
3714 nsCOMPtr<nsIInputStream> aInputStream);
3715
3716#if defined(DEBUG1) || defined(NS_BUILD_REFCNT_LOGGING1)
3717 ~StoredFileInfo() {
3718 AssertIsOnBackgroundThread();
3719 AssertInvariants();
3720
3721 MOZ_COUNT_DTOR(ObjectStoreAddOrPutRequestOp::StoredFileInfo)do { static_assert(std::is_class_v<ObjectStoreAddOrPutRequestOp
::StoredFileInfo>, "Token '" "ObjectStoreAddOrPutRequestOp::StoredFileInfo"
"' is not a class type."); static_assert(!std::is_base_of_v<
nsISupports, ObjectStoreAddOrPutRequestOp::StoredFileInfo>
, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "ObjectStoreAddOrPutRequestOp::StoredFileInfo"
, sizeof(*this)); } while (0)
;
3722 }
3723#endif
3724
3725 bool IsValid() const { return static_cast<bool>(mFileInfo); }
3726
3727 const DatabaseFileInfo& GetFileInfo() const { return **mFileInfo; }
3728
3729 bool ShouldCompress() const;
3730
3731 void NotifyWriteSucceeded() const;
3732
3733 using InputStreamResult =
3734 mozilla::Result<nsCOMPtr<nsIInputStream>, nsresult>;
3735 InputStreamResult GetInputStream();
3736
3737 void Serialize(nsString& aText) const;
3738 };
3739 class SCInputStream;
3740
3741 ObjectStoreAddPutParams mParams;
3742 Maybe<UniqueIndexTable> mUniqueIndexTable;
3743
3744 // This must be non-const so that we can update the mNextAutoIncrementId field
3745 // if we are modifying an autoIncrement objectStore.
3746 SafeRefPtr<FullObjectStoreMetadata> mMetadata;
3747
3748 nsTArray<StoredFileInfo> mStoredFileInfos;
3749
3750 Key mResponse;
3751 const OriginMetadata mOriginMetadata;
3752 const PersistenceType mPersistenceType;
3753 const bool mOverwrite;
3754 bool mObjectStoreMayHaveIndexes;
3755 bool mDataOverThreshold;
3756
3757 private:
3758 // Only created by TransactionBase.
3759 ObjectStoreAddOrPutRequestOp(SafeRefPtr<TransactionBase> aTransaction,
3760 const int64_t aRequestId,
3761 RequestParams&& aParams);
3762
3763 ~ObjectStoreAddOrPutRequestOp() override = default;
3764
3765 nsresult RemoveOldIndexDataValues(DatabaseConnection* aConnection);
3766
3767 bool Init(TransactionBase& aTransaction) override;
3768
3769 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
3770
3771 void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override;
3772
3773 void Cleanup() override;
3774};
3775
3776void ObjectStoreAddOrPutRequestOp::StoredFileInfo::AssertInvariants() const {
3777 // The only allowed types are eStructuredClone, eBlob and eMutableFile.
3778 MOZ_ASSERT(StructuredCloneFileBase::eStructuredClone == mType ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(StructuredCloneFileBase::eStructuredClone == mType ||
StructuredCloneFileBase::eBlob == mType || StructuredCloneFileBase
::eMutableFile == mType)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(StructuredCloneFileBase::eStructuredClone
== mType || StructuredCloneFileBase::eBlob == mType || StructuredCloneFileBase
::eMutableFile == mType))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("StructuredCloneFileBase::eStructuredClone == mType || StructuredCloneFileBase::eBlob == mType || StructuredCloneFileBase::eMutableFile == mType"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3780)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "StructuredCloneFileBase::eStructuredClone == mType || StructuredCloneFileBase::eBlob == mType || StructuredCloneFileBase::eMutableFile == mType"
")"); do { MOZ_CrashSequence(__null, 3780); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
3779 StructuredCloneFileBase::eBlob == mType ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(StructuredCloneFileBase::eStructuredClone == mType ||
StructuredCloneFileBase::eBlob == mType || StructuredCloneFileBase
::eMutableFile == mType)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(StructuredCloneFileBase::eStructuredClone
== mType || StructuredCloneFileBase::eBlob == mType || StructuredCloneFileBase
::eMutableFile == mType))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("StructuredCloneFileBase::eStructuredClone == mType || StructuredCloneFileBase::eBlob == mType || StructuredCloneFileBase::eMutableFile == mType"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3780)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "StructuredCloneFileBase::eStructuredClone == mType || StructuredCloneFileBase::eBlob == mType || StructuredCloneFileBase::eMutableFile == mType"
")"); do { MOZ_CrashSequence(__null, 3780); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
3780 StructuredCloneFileBase::eMutableFile == mType)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(StructuredCloneFileBase::eStructuredClone == mType ||
StructuredCloneFileBase::eBlob == mType || StructuredCloneFileBase
::eMutableFile == mType)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(StructuredCloneFileBase::eStructuredClone
== mType || StructuredCloneFileBase::eBlob == mType || StructuredCloneFileBase
::eMutableFile == mType))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("StructuredCloneFileBase::eStructuredClone == mType || StructuredCloneFileBase::eBlob == mType || StructuredCloneFileBase::eMutableFile == mType"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3780)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "StructuredCloneFileBase::eStructuredClone == mType || StructuredCloneFileBase::eBlob == mType || StructuredCloneFileBase::eMutableFile == mType"
")"); do { MOZ_CrashSequence(__null, 3780); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3781
3782 // mFileInfo and a file actor in mFileActorOrInputStream are present until
3783 // the object is moved away, but an inputStream in mFileActorOrInputStream
3784 // can be released early.
3785 MOZ_ASSERT_IF(static_cast<bool>(mFileActorOrInputStream) &&do { if (static_cast<bool>(mFileActorOrInputStream) &&
mFileActorOrInputStream->is<RefPtr<DatabaseFile>>
()) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(static_cast<bool>(mFileInfo))>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(static_cast<bool>(mFileInfo)))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("static_cast<bool>(mFileInfo)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3787)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "static_cast<bool>(mFileInfo)"
")"); do { MOZ_CrashSequence(__null, 3787); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
3786 mFileActorOrInputStream->is<RefPtr<DatabaseFile>>(),do { if (static_cast<bool>(mFileActorOrInputStream) &&
mFileActorOrInputStream->is<RefPtr<DatabaseFile>>
()) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(static_cast<bool>(mFileInfo))>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(static_cast<bool>(mFileInfo)))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("static_cast<bool>(mFileInfo)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3787)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "static_cast<bool>(mFileInfo)"
")"); do { MOZ_CrashSequence(__null, 3787); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
3787 static_cast<bool>(mFileInfo))do { if (static_cast<bool>(mFileActorOrInputStream) &&
mFileActorOrInputStream->is<RefPtr<DatabaseFile>>
()) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(static_cast<bool>(mFileInfo))>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(static_cast<bool>(mFileInfo)))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("static_cast<bool>(mFileInfo)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3787)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "static_cast<bool>(mFileInfo)"
")"); do { MOZ_CrashSequence(__null, 3787); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
3788
3789 if (mFileInfo) {
3790 // In a non-moved StoredFileInfo, one of the following is true:
3791 // - This was an overflow structured clone (eStructuredClone) and
3792 // storedFileInfo.mFileActorOrInputStream CAN be a non-nullptr input
3793 // stream (but that might have been release by ReleaseInputStream).
3794 MOZ_ASSERT_IF(do { if (StructuredCloneFileBase::eStructuredClone == mType) {
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mFileActorOrInputStream || (mFileActorOrInputStream
->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream
->as<nsCOMPtr<nsIInputStream>>()))>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(!mFileActorOrInputStream || (mFileActorOrInputStream->is
<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream
->as<nsCOMPtr<nsIInputStream>>())))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!mFileActorOrInputStream || (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>())"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3798)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mFileActorOrInputStream || (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>())"
")"); do { MOZ_CrashSequence(__null, 3798); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
3795 StructuredCloneFileBase::eStructuredClone == mType,do { if (StructuredCloneFileBase::eStructuredClone == mType) {
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mFileActorOrInputStream || (mFileActorOrInputStream
->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream
->as<nsCOMPtr<nsIInputStream>>()))>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(!mFileActorOrInputStream || (mFileActorOrInputStream->is
<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream
->as<nsCOMPtr<nsIInputStream>>())))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!mFileActorOrInputStream || (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>())"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3798)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mFileActorOrInputStream || (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>())"
")"); do { MOZ_CrashSequence(__null, 3798); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
3796 !mFileActorOrInputStream ||do { if (StructuredCloneFileBase::eStructuredClone == mType) {
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mFileActorOrInputStream || (mFileActorOrInputStream
->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream
->as<nsCOMPtr<nsIInputStream>>()))>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(!mFileActorOrInputStream || (mFileActorOrInputStream->is
<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream
->as<nsCOMPtr<nsIInputStream>>())))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!mFileActorOrInputStream || (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>())"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3798)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mFileActorOrInputStream || (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>())"
")"); do { MOZ_CrashSequence(__null, 3798); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
3797 (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() &&do { if (StructuredCloneFileBase::eStructuredClone == mType) {
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mFileActorOrInputStream || (mFileActorOrInputStream
->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream
->as<nsCOMPtr<nsIInputStream>>()))>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(!mFileActorOrInputStream || (mFileActorOrInputStream->is
<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream
->as<nsCOMPtr<nsIInputStream>>())))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!mFileActorOrInputStream || (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>())"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3798)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mFileActorOrInputStream || (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>())"
")"); do { MOZ_CrashSequence(__null, 3798); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
3798 mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>()))do { if (StructuredCloneFileBase::eStructuredClone == mType) {
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mFileActorOrInputStream || (mFileActorOrInputStream
->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream
->as<nsCOMPtr<nsIInputStream>>()))>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(!mFileActorOrInputStream || (mFileActorOrInputStream->is
<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream
->as<nsCOMPtr<nsIInputStream>>())))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!mFileActorOrInputStream || (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>())"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3798)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mFileActorOrInputStream || (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>())"
")"); do { MOZ_CrashSequence(__null, 3798); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
3799
3800 // - This is a reference to a Blob (eBlob) that may or may not have
3801 // already been written to disk. storedFileInfo.mFileActorOrInputStream
3802 // MUST be a non-null file actor, but its GetInputStream may return
3803 // nullptr (so don't assert on that).
3804 MOZ_ASSERT_IF(StructuredCloneFileBase::eBlob == mType,do { if (StructuredCloneFileBase::eBlob == mType) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(mFileActorOrInputStream
->is<RefPtr<DatabaseFile>>() && mFileActorOrInputStream
->as<RefPtr<DatabaseFile>>())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mFileActorOrInputStream->
is<RefPtr<DatabaseFile>>() && mFileActorOrInputStream
->as<RefPtr<DatabaseFile>>()))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mFileActorOrInputStream->is<RefPtr<DatabaseFile>>() && mFileActorOrInputStream->as<RefPtr<DatabaseFile>>()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3806)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileActorOrInputStream->is<RefPtr<DatabaseFile>>() && mFileActorOrInputStream->as<RefPtr<DatabaseFile>>()"
")"); do { MOZ_CrashSequence(__null, 3806); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
3805 mFileActorOrInputStream->is<RefPtr<DatabaseFile>>() &&do { if (StructuredCloneFileBase::eBlob == mType) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(mFileActorOrInputStream
->is<RefPtr<DatabaseFile>>() && mFileActorOrInputStream
->as<RefPtr<DatabaseFile>>())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mFileActorOrInputStream->
is<RefPtr<DatabaseFile>>() && mFileActorOrInputStream
->as<RefPtr<DatabaseFile>>()))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mFileActorOrInputStream->is<RefPtr<DatabaseFile>>() && mFileActorOrInputStream->as<RefPtr<DatabaseFile>>()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3806)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileActorOrInputStream->is<RefPtr<DatabaseFile>>() && mFileActorOrInputStream->as<RefPtr<DatabaseFile>>()"
")"); do { MOZ_CrashSequence(__null, 3806); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
3806 mFileActorOrInputStream->as<RefPtr<DatabaseFile>>())do { if (StructuredCloneFileBase::eBlob == mType) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(mFileActorOrInputStream
->is<RefPtr<DatabaseFile>>() && mFileActorOrInputStream
->as<RefPtr<DatabaseFile>>())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mFileActorOrInputStream->
is<RefPtr<DatabaseFile>>() && mFileActorOrInputStream
->as<RefPtr<DatabaseFile>>()))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mFileActorOrInputStream->is<RefPtr<DatabaseFile>>() && mFileActorOrInputStream->as<RefPtr<DatabaseFile>>()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3806)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileActorOrInputStream->is<RefPtr<DatabaseFile>>() && mFileActorOrInputStream->as<RefPtr<DatabaseFile>>()"
")"); do { MOZ_CrashSequence(__null, 3806); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
3807
3808 // - It's a mutable file (eMutableFile). No writing will be performed,
3809 // and storedFileInfo.mFileActorOrInputStream is Nothing.
3810 MOZ_ASSERT_IF(StructuredCloneFileBase::eMutableFile == mType,do { if (StructuredCloneFileBase::eMutableFile == mType) { do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(mFileActorOrInputStream->is<Nothing>())>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mFileActorOrInputStream->is<Nothing>()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("mFileActorOrInputStream->is<Nothing>()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3811)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileActorOrInputStream->is<Nothing>()"
")"); do { MOZ_CrashSequence(__null, 3811); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
3811 mFileActorOrInputStream->is<Nothing>())do { if (StructuredCloneFileBase::eMutableFile == mType) { do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(mFileActorOrInputStream->is<Nothing>())>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mFileActorOrInputStream->is<Nothing>()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("mFileActorOrInputStream->is<Nothing>()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3811)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileActorOrInputStream->is<Nothing>()"
")"); do { MOZ_CrashSequence(__null, 3811); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
3812 }
3813}
3814
3815nsresult ObjectStoreAddOrPutRequestOp::StoredFileInfo::EnsureCipherKey() {
3816 const auto& fileInfo = GetFileInfo();
3817 const auto& fileManager = fileInfo.Manager();
3818
3819 if (!fileManager.UsesEncryption()) {
3820 return NS_OK;
3821 }
3822
3823 QM_TRY_UNWRAP(const auto key,auto tryResult895 = (fileManager.MutableCipherKeyManagerRef()
.Ensure( fileManager.CipherKeyIdForFile(fileInfo.Id()))); if (
(__builtin_expect(!!(tryResult895.isErr()), 0))) { mozilla::dom
::quota::HandleError("fileManager.MutableCipherKeyManagerRef().Ensure( fileManager.CipherKeyIdForFile(fileInfo.Id()))"
, tryResult895.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 3825, mozilla::dom::quota::Severity::Error); return tryResult895
.propagateErr(); } const auto key = tryResult895.unwrap();
3824 fileManager.MutableCipherKeyManagerRef().Ensure(auto tryResult895 = (fileManager.MutableCipherKeyManagerRef()
.Ensure( fileManager.CipherKeyIdForFile(fileInfo.Id()))); if (
(__builtin_expect(!!(tryResult895.isErr()), 0))) { mozilla::dom
::quota::HandleError("fileManager.MutableCipherKeyManagerRef().Ensure( fileManager.CipherKeyIdForFile(fileInfo.Id()))"
, tryResult895.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 3825, mozilla::dom::quota::Severity::Error); return tryResult895
.propagateErr(); } const auto key = tryResult895.unwrap();
3825 fileManager.CipherKeyIdForFile(fileInfo.Id())))auto tryResult895 = (fileManager.MutableCipherKeyManagerRef()
.Ensure( fileManager.CipherKeyIdForFile(fileInfo.Id()))); if (
(__builtin_expect(!!(tryResult895.isErr()), 0))) { mozilla::dom
::quota::HandleError("fileManager.MutableCipherKeyManagerRef().Ensure( fileManager.CipherKeyIdForFile(fileInfo.Id()))"
, tryResult895.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 3825, mozilla::dom::quota::Severity::Error); return tryResult895
.propagateErr(); } const auto key = tryResult895.unwrap();
;
3826 (void)key;
3827 return NS_OK;
3828}
3829
3830ObjectStoreAddOrPutRequestOp::StoredFileInfo::StoredFileInfo(
3831 SafeRefPtr<DatabaseFileInfo> aFileInfo, RefPtr<DatabaseFile> aFileActor)
3832 : mFileInfo{WrapNotNull(std::move(aFileInfo))},
3833 mFileActorOrInputStream{std::move(aFileActor)}
3834#ifdef DEBUG1
3835 ,
3836 mType{StructuredCloneFileBase::eBlob}
3837#endif
3838{
3839 AssertIsOnBackgroundThread();
3840 AssertInvariants();
3841 MOZ_COUNT_CTOR(ObjectStoreAddOrPutRequestOp::StoredFileInfo)do { static_assert(std::is_class_v<ObjectStoreAddOrPutRequestOp
::StoredFileInfo>, "Token '" "ObjectStoreAddOrPutRequestOp::StoredFileInfo"
"' is not a class type."); static_assert(!std::is_base_of_v<
nsISupports, ObjectStoreAddOrPutRequestOp::StoredFileInfo>
, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ObjectStoreAddOrPutRequestOp::StoredFileInfo"
, sizeof(*this)); } while (0)
;
3842}
3843
3844ObjectStoreAddOrPutRequestOp::StoredFileInfo::StoredFileInfo(
3845 SafeRefPtr<DatabaseFileInfo> aFileInfo,
3846 nsCOMPtr<nsIInputStream> aInputStream)
3847 : mFileInfo{WrapNotNull(std::move(aFileInfo))},
3848 mFileActorOrInputStream{std::move(aInputStream)}
3849#ifdef DEBUG1
3850 ,
3851 mType{StructuredCloneFileBase::eStructuredClone}
3852#endif
3853{
3854 AssertIsOnBackgroundThread();
3855 AssertInvariants();
3856 MOZ_COUNT_CTOR(ObjectStoreAddOrPutRequestOp::StoredFileInfo)do { static_assert(std::is_class_v<ObjectStoreAddOrPutRequestOp
::StoredFileInfo>, "Token '" "ObjectStoreAddOrPutRequestOp::StoredFileInfo"
"' is not a class type."); static_assert(!std::is_base_of_v<
nsISupports, ObjectStoreAddOrPutRequestOp::StoredFileInfo>
, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ObjectStoreAddOrPutRequestOp::StoredFileInfo"
, sizeof(*this)); } while (0)
;
3857}
3858
3859mozilla::Result<ObjectStoreAddOrPutRequestOp::StoredFileInfo, nsresult>
3860ObjectStoreAddOrPutRequestOp::StoredFileInfo::CreateForBlob(
3861 SafeRefPtr<DatabaseFileInfo> aFileInfo, RefPtr<DatabaseFile> aFileActor) {
3862 StoredFileInfo info{std::move(aFileInfo), std::move(aFileActor)};
3863 QM_TRY(MOZ_TO_RESULT(info.EnsureCipherKey())){auto tryResult896 = (ToResult(info.EnsureCipherKey())); static_assert
(std::is_empty_v<typename decltype(tryResult896)::ok_type>
); if ((__builtin_expect(!!(tryResult896.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(info.EnsureCipherKey())",
tryResult896.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 3863, mozilla::dom::quota::Severity::Error); return tryResult896
.propagateErr(); }}
;
3864 return info;
3865}
3866
3867mozilla::Result<ObjectStoreAddOrPutRequestOp::StoredFileInfo, nsresult>
3868ObjectStoreAddOrPutRequestOp::StoredFileInfo::CreateForStructuredClone(
3869 SafeRefPtr<DatabaseFileInfo> aFileInfo,
3870 nsCOMPtr<nsIInputStream> aInputStream) {
3871 StoredFileInfo info{std::move(aFileInfo), std::move(aInputStream)};
3872 QM_TRY(MOZ_TO_RESULT(info.EnsureCipherKey())){auto tryResult897 = (ToResult(info.EnsureCipherKey())); static_assert
(std::is_empty_v<typename decltype(tryResult897)::ok_type>
); if ((__builtin_expect(!!(tryResult897.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(info.EnsureCipherKey())",
tryResult897.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 3872, mozilla::dom::quota::Severity::Error); return tryResult897
.propagateErr(); }}
;
3873 return info;
3874}
3875
3876bool ObjectStoreAddOrPutRequestOp::StoredFileInfo::ShouldCompress() const {
3877 // Must not be called after moving.
3878 MOZ_ASSERT(IsValid())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(IsValid())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(IsValid()))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("IsValid()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 3878); AnnotateMozCrashReason("MOZ_ASSERT" "(" "IsValid()" ")"
); do { MOZ_CrashSequence(__null, 3878); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3879
3880 // Compression is only necessary for eStructuredClone, i.e. when
3881 // mFileActorOrInputStream stored an input stream. However, this is only
3882 // called after GetInputStream, when mFileActorOrInputStream has been
3883 // cleared, which is only possible for this type.
3884 const bool res = !mFileActorOrInputStream;
3885 MOZ_ASSERT(res == (StructuredCloneFileBase::eStructuredClone == mType))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(res == (StructuredCloneFileBase::eStructuredClone ==
mType))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(res == (StructuredCloneFileBase::eStructuredClone ==
mType)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("res == (StructuredCloneFileBase::eStructuredClone == mType)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3885)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "res == (StructuredCloneFileBase::eStructuredClone == mType)"
")"); do { MOZ_CrashSequence(__null, 3885); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3886 return res;
3887}
3888
3889void ObjectStoreAddOrPutRequestOp::StoredFileInfo::NotifyWriteSucceeded()
3890 const {
3891 MOZ_ASSERT(IsValid())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(IsValid())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(IsValid()))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("IsValid()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 3891); AnnotateMozCrashReason("MOZ_ASSERT" "(" "IsValid()" ")"
); do { MOZ_CrashSequence(__null, 3891); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3892
3893 // For eBlob, clear the blob implementation.
3894 if (mFileActorOrInputStream &&
3895 mFileActorOrInputStream->is<RefPtr<DatabaseFile>>()) {
3896 mFileActorOrInputStream->as<RefPtr<DatabaseFile>>()
3897 ->WriteSucceededClearBlobImpl();
3898 }
3899
3900 // For the other types, no action is necessary.
3901}
3902
3903ObjectStoreAddOrPutRequestOp::StoredFileInfo::InputStreamResult
3904ObjectStoreAddOrPutRequestOp::StoredFileInfo::GetInputStream() {
3905 if (!mFileActorOrInputStream) {
3906 MOZ_ASSERT(StructuredCloneFileBase::eStructuredClone == mType)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(StructuredCloneFileBase::eStructuredClone == mType)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(StructuredCloneFileBase::eStructuredClone == mType))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("StructuredCloneFileBase::eStructuredClone == mType"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3906)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "StructuredCloneFileBase::eStructuredClone == mType"
")"); do { MOZ_CrashSequence(__null, 3906); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3907 return nsCOMPtr<nsIInputStream>{};
3908 }
3909
3910 // For the different cases, see also the comments in AssertInvariants.
3911 return mFileActorOrInputStream->match(
3912 [](const Nothing&) -> InputStreamResult {
3913 return nsCOMPtr<nsIInputStream>{};
3914 },
3915 [](const RefPtr<DatabaseFile>& databaseActor) -> InputStreamResult {
3916 ErrorResult rv;
3917 auto inputStream = databaseActor->GetInputStream(rv);
3918 if (NS_WARN_IF(rv.Failed())NS_warn_if_impl(rv.Failed(), "rv.Failed()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 3918)
) {
3919 return Err(rv.StealNSResult());
3920 }
3921
3922 return inputStream;
3923 },
3924 [this](const nsCOMPtr<nsIInputStream>& inputStream) -> InputStreamResult {
3925 auto res = inputStream;
3926 // destroy() clears the inputStream parameter, so we needed to make a
3927 // copy before
3928 mFileActorOrInputStream.destroy();
3929 AssertInvariants();
3930 return res;
3931 });
3932}
3933
3934void ObjectStoreAddOrPutRequestOp::StoredFileInfo::Serialize(
3935 nsString& aText) const {
3936 AssertInvariants();
3937 MOZ_ASSERT(IsValid())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(IsValid())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(IsValid()))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("IsValid()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 3937); AnnotateMozCrashReason("MOZ_ASSERT" "(" "IsValid()" ")"
); do { MOZ_CrashSequence(__null, 3937); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3938
3939 const int64_t id = (*mFileInfo)->Id();
3940
3941 auto structuredCloneHandler = [&aText, id](const nsCOMPtr<nsIInputStream>&) {
3942 // eStructuredClone
3943 aText.Append('.');
3944 aText.AppendInt(id);
3945 };
3946
3947 // If mFileActorOrInputStream was moved, we had an inputStream before.
3948 if (!mFileActorOrInputStream) {
3949 structuredCloneHandler(nullptr);
3950 return;
3951 }
3952
3953 // This encoding is parsed in DeserializeStructuredCloneFile.
3954 mFileActorOrInputStream->match(
3955 [&aText, id](const Nothing&) {
3956 // eMutableFile
3957 aText.AppendInt(-id);
3958 },
3959 [&aText, id](const RefPtr<DatabaseFile>&) {
3960 // eBlob
3961 aText.AppendInt(id);
3962 },
3963 structuredCloneHandler);
3964}
3965
3966class ObjectStoreAddOrPutRequestOp::SCInputStream final
3967 : public nsIInputStream {
3968 const JSStructuredCloneData& mData;
3969 JSStructuredCloneData::Iterator mIter;
3970
3971 public:
3972 explicit SCInputStream(const JSStructuredCloneData& aData)
3973 : mData(aData), mIter(aData.Start()) {}
3974
3975 private:
3976 virtual ~SCInputStream() = default;
3977
3978 NS_DECL_THREADSAFE_ISUPPORTSpublic: virtual nsresult QueryInterface(const nsIID& aIID
, void** aInstancePtr) override; virtual MozExternalRefCountType
AddRef(void) override; virtual MozExternalRefCountType Release
(void) override; using HasThreadSafeRefCnt = std::true_type; protected
: ::mozilla::ThreadSafeAutoRefCnt mRefCnt; nsAutoOwningThread
_mOwningThread; public:
3979 NS_DECL_NSIINPUTSTREAMvirtual nsresult Close(void) override; virtual nsresult Available
(uint64_t *_retval) override; virtual nsresult StreamStatus(void
) override; virtual nsresult Read(char * aBuf, uint32_t aCount
, uint32_t *_retval) override; virtual nsresult ReadSegments(
nsWriteSegmentFun aWriter, void * aClosure, uint32_t aCount, uint32_t
*_retval) override; virtual nsresult IsNonBlocking(bool *_retval
) override;
3980};
3981
3982class ObjectStoreGetRequestOp final : public NormalTransactionOp {
3983 friend class TransactionBase;
3984
3985 const IndexOrObjectStoreId mObjectStoreId;
3986 SafeRefPtr<Database> mDatabase;
3987 const Maybe<SerializedKeyRange> mOptionalKeyRange;
3988 AutoTArray<StructuredCloneReadInfoParent, 1> mResponse;
3989 PBackgroundParent* mBackgroundParent;
3990 uint32_t mPreprocessInfoCount;
3991 const uint32_t mLimit;
3992 const IDBCursorDirection mDirection;
3993 const bool mGetAll;
3994
3995 private:
3996 // Only created by TransactionBase.
3997 ObjectStoreGetRequestOp(SafeRefPtr<TransactionBase> aTransaction,
3998 const int64_t aRequestId,
3999 const RequestParams& aParams, bool aGetAll);
4000
4001 ~ObjectStoreGetRequestOp() override = default;
4002
4003 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
4004
4005 bool HasPreprocessInfo() override;
4006
4007 mozilla::Result<PreprocessParams, nsresult> GetPreprocessParams() override;
4008
4009 void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override;
4010};
4011
4012class ObjectStoreGetKeyRequestOp final : public NormalTransactionOp {
4013 friend class TransactionBase;
4014
4015 const IndexOrObjectStoreId mObjectStoreId;
4016 const Maybe<SerializedKeyRange> mOptionalKeyRange;
4017 const uint32_t mLimit;
4018 const IDBCursorDirection mDirection;
4019 const bool mGetAll;
4020 nsTArray<Key> mResponse;
4021
4022 private:
4023 // Only created by TransactionBase.
4024 ObjectStoreGetKeyRequestOp(SafeRefPtr<TransactionBase> aTransaction,
4025 const int64_t aRequestId,
4026 const RequestParams& aParams, bool aGetAll);
4027
4028 ~ObjectStoreGetKeyRequestOp() override = default;
4029
4030 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
4031
4032 void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override;
4033};
4034
4035class ObjectStoreDeleteRequestOp final : public NormalTransactionOp {
4036 friend class TransactionBase;
4037
4038 const ObjectStoreDeleteParams mParams;
4039 ObjectStoreDeleteResponse mResponse;
4040 bool mObjectStoreMayHaveIndexes;
4041
4042 private:
4043 ObjectStoreDeleteRequestOp(SafeRefPtr<TransactionBase> aTransaction,
4044 const int64_t aRequestId,
4045 const ObjectStoreDeleteParams& aParams);
4046
4047 ~ObjectStoreDeleteRequestOp() override = default;
4048
4049 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
4050
4051 void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override {
4052 aResponse = std::move(mResponse);
4053 *aResponseSize = 0;
4054 }
4055};
4056
4057class ObjectStoreClearRequestOp final : public NormalTransactionOp {
4058 friend class TransactionBase;
4059
4060 const ObjectStoreClearParams mParams;
4061 ObjectStoreClearResponse mResponse;
4062 bool mObjectStoreMayHaveIndexes;
4063
4064 private:
4065 ObjectStoreClearRequestOp(SafeRefPtr<TransactionBase> aTransaction,
4066 const int64_t aRequestId,
4067 const ObjectStoreClearParams& aParams);
4068
4069 ~ObjectStoreClearRequestOp() override = default;
4070
4071 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
4072
4073 void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override {
4074 aResponse = std::move(mResponse);
4075 *aResponseSize = 0;
4076 }
4077};
4078
4079class ObjectStoreCountRequestOp final : public NormalTransactionOp {
4080 friend class TransactionBase;
4081
4082 const ObjectStoreCountParams mParams;
4083 ObjectStoreCountResponse mResponse;
4084
4085 private:
4086 ObjectStoreCountRequestOp(SafeRefPtr<TransactionBase> aTransaction,
4087 const int64_t aRequestId,
4088 const ObjectStoreCountParams& aParams)
4089 : NormalTransactionOp(std::move(aTransaction), aRequestId),
4090 mParams(aParams) {}
4091
4092 ~ObjectStoreCountRequestOp() override = default;
4093
4094 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
4095
4096 void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override {
4097 aResponse = std::move(mResponse);
4098 *aResponseSize = sizeof(uint64_t);
4099 }
4100};
4101
4102class IndexRequestOpBase : public NormalTransactionOp {
4103 protected:
4104 const SafeRefPtr<FullIndexMetadata> mMetadata;
4105
4106 protected:
4107 IndexRequestOpBase(SafeRefPtr<TransactionBase> aTransaction,
4108 const int64_t aRequestId, const RequestParams& aParams)
4109 : NormalTransactionOp(std::move(aTransaction), aRequestId),
4110 mMetadata(IndexMetadataForParams(Transaction(), aParams)) {}
4111
4112 ~IndexRequestOpBase() override = default;
4113
4114 private:
4115 static SafeRefPtr<FullIndexMetadata> IndexMetadataForParams(
4116 const TransactionBase& aTransaction, const RequestParams& aParams);
4117};
4118
4119class IndexGetRequestOp final : public IndexRequestOpBase {
4120 friend class TransactionBase;
4121
4122 SafeRefPtr<Database> mDatabase;
4123 const Maybe<SerializedKeyRange> mOptionalKeyRange;
4124 AutoTArray<StructuredCloneReadInfoParent, 1> mResponse;
4125 PBackgroundParent* mBackgroundParent;
4126 const uint32_t mLimit;
4127 const IDBCursorDirection mDirection;
4128 const bool mGetAll;
4129
4130 private:
4131 // Only created by TransactionBase.
4132 IndexGetRequestOp(SafeRefPtr<TransactionBase> aTransaction,
4133 const int64_t aRequestId, const RequestParams& aParams,
4134 bool aGetAll);
4135
4136 ~IndexGetRequestOp() override = default;
4137
4138 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
4139
4140 void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override;
4141
4142 nsCString MakeQuery() const;
4143};
4144
4145class IndexGetKeyRequestOp final : public IndexRequestOpBase {
4146 friend class TransactionBase;
4147
4148 const Maybe<SerializedKeyRange> mOptionalKeyRange;
4149 AutoTArray<Key, 1> mResponse;
4150 const uint32_t mLimit;
4151 const IDBCursorDirection mDirection;
4152 const bool mGetAll;
4153
4154 private:
4155 // Only created by TransactionBase.
4156 IndexGetKeyRequestOp(SafeRefPtr<TransactionBase> aTransaction,
4157 const int64_t aRequestId, const RequestParams& aParams,
4158 bool aGetAll);
4159
4160 ~IndexGetKeyRequestOp() override = default;
4161
4162 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
4163
4164 void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override;
4165
4166 nsCString MakeQuery() const;
4167};
4168
4169class IndexCountRequestOp final : public IndexRequestOpBase {
4170 friend class TransactionBase;
4171
4172 const IndexCountParams mParams;
4173 IndexCountResponse mResponse;
4174
4175 private:
4176 // Only created by TransactionBase.
4177 IndexCountRequestOp(SafeRefPtr<TransactionBase> aTransaction,
4178 const int64_t aRequestId, const RequestParams& aParams)
4179 : IndexRequestOpBase(std::move(aTransaction), aRequestId, aParams),
4180 mParams(aParams.get_IndexCountParams()) {}
4181
4182 ~IndexCountRequestOp() override = default;
4183
4184 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
4185
4186 void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override {
4187 aResponse = std::move(mResponse);
4188 *aResponseSize = sizeof(uint64_t);
4189 }
4190};
4191
4192class ObjectStoreGetAllRecordsRequestOp final : public NormalTransactionOp {
4193 friend class TransactionBase;
4194
4195 const IndexOrObjectStoreId mObjectStoreId;
4196 SafeRefPtr<Database> mDatabase;
4197 const Maybe<SerializedKeyRange> mOptionalKeyRange;
4198 nsTArray<Key> mKeys;
4199 FallibleTArray<StructuredCloneReadInfoParent> mCloneInfos;
4200 PBackgroundParent* mBackgroundParent;
4201 const uint32_t mLimit;
4202 const IDBCursorDirection mDirection;
4203
4204 private:
4205 // Only created by TransactionBase.
4206 ObjectStoreGetAllRecordsRequestOp(SafeRefPtr<TransactionBase> aTransaction,
4207 const int64_t aRequestId,
4208 const RequestParams& aParams);
4209
4210 ~ObjectStoreGetAllRecordsRequestOp() override = default;
4211
4212 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
4213
4214 void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override;
4215};
4216
4217class IndexGetAllRecordsRequestOp final : public IndexRequestOpBase {
4218 friend class TransactionBase;
4219
4220 SafeRefPtr<Database> mDatabase;
4221 const Maybe<SerializedKeyRange> mOptionalKeyRange;
4222 nsTArray<Key> mKeys;
4223 nsTArray<Key> mPrimaryKeys;
4224 FallibleTArray<StructuredCloneReadInfoParent> mCloneInfos;
4225 PBackgroundParent* mBackgroundParent;
4226 const uint32_t mLimit;
4227 const IDBCursorDirection mDirection;
4228
4229 private:
4230 // Only created by TransactionBase.
4231 IndexGetAllRecordsRequestOp(SafeRefPtr<TransactionBase> aTransaction,
4232 const int64_t aRequestId,
4233 const RequestParams& aParams);
4234
4235 ~IndexGetAllRecordsRequestOp() override = default;
4236
4237 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
4238
4239 void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override;
4240
4241 nsCString MakeQuery() const;
4242};
4243
4244template <IDBCursorType CursorType>
4245class Cursor;
4246
4247constexpr IDBCursorType ToKeyOnlyType(const IDBCursorType aType) {
4248 MOZ_ASSERT(aType == IDBCursorType::ObjectStore ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aType == IDBCursorType::ObjectStore || aType == IDBCursorType
::ObjectStoreKey || aType == IDBCursorType::Index || aType ==
IDBCursorType::IndexKey)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aType == IDBCursorType::ObjectStore
|| aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType
::Index || aType == IDBCursorType::IndexKey))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 4250)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey"
")"); do { MOZ_CrashSequence(__null, 4250); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
4249 aType == IDBCursorType::ObjectStoreKey ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aType == IDBCursorType::ObjectStore || aType == IDBCursorType
::ObjectStoreKey || aType == IDBCursorType::Index || aType ==
IDBCursorType::IndexKey)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aType == IDBCursorType::ObjectStore
|| aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType
::Index || aType == IDBCursorType::IndexKey))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 4250)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey"
")"); do { MOZ_CrashSequence(__null, 4250); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
4250 aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aType == IDBCursorType::ObjectStore || aType == IDBCursorType
::ObjectStoreKey || aType == IDBCursorType::Index || aType ==
IDBCursorType::IndexKey)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aType == IDBCursorType::ObjectStore
|| aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType
::Index || aType == IDBCursorType::IndexKey))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 4250)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey"
")"); do { MOZ_CrashSequence(__null, 4250); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4251 switch (aType) {
4252 case IDBCursorType::ObjectStore:
4253 [[fallthrough]];
4254 case IDBCursorType::ObjectStoreKey:
4255 return IDBCursorType::ObjectStoreKey;
4256 case IDBCursorType::Index:
4257 [[fallthrough]];
4258 case IDBCursorType::IndexKey:
4259 return IDBCursorType::IndexKey;
4260 }
4261}
4262
4263template <IDBCursorType CursorType>
4264using CursorPosition = CursorData<ToKeyOnlyType(CursorType)>;
4265
4266#ifdef DEBUG1
4267constexpr indexedDB::OpenCursorParams::Type ToOpenCursorParamsType(
4268 const IDBCursorType aType) {
4269 MOZ_ASSERT(aType == IDBCursorType::ObjectStore ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aType == IDBCursorType::ObjectStore || aType == IDBCursorType
::ObjectStoreKey || aType == IDBCursorType::Index || aType ==
IDBCursorType::IndexKey)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aType == IDBCursorType::ObjectStore
|| aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType
::Index || aType == IDBCursorType::IndexKey))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 4271)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey"
")"); do { MOZ_CrashSequence(__null, 4271); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
4270 aType == IDBCursorType::ObjectStoreKey ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aType == IDBCursorType::ObjectStore || aType == IDBCursorType
::ObjectStoreKey || aType == IDBCursorType::Index || aType ==
IDBCursorType::IndexKey)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aType == IDBCursorType::ObjectStore
|| aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType
::Index || aType == IDBCursorType::IndexKey))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 4271)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey"
")"); do { MOZ_CrashSequence(__null, 4271); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
4271 aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aType == IDBCursorType::ObjectStore || aType == IDBCursorType
::ObjectStoreKey || aType == IDBCursorType::Index || aType ==
IDBCursorType::IndexKey)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aType == IDBCursorType::ObjectStore
|| aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType
::Index || aType == IDBCursorType::IndexKey))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 4271)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey"
")"); do { MOZ_CrashSequence(__null, 4271); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4272 switch (aType) {
4273 case IDBCursorType::ObjectStore:
4274 return indexedDB::OpenCursorParams::TObjectStoreOpenCursorParams;
4275 case IDBCursorType::ObjectStoreKey:
4276 return indexedDB::OpenCursorParams::TObjectStoreOpenKeyCursorParams;
4277 case IDBCursorType::Index:
4278 return indexedDB::OpenCursorParams::TIndexOpenCursorParams;
4279 case IDBCursorType::IndexKey:
4280 return indexedDB::OpenCursorParams::TIndexOpenKeyCursorParams;
4281 }
4282}
4283#endif
4284
4285class CursorBase : public PBackgroundIDBCursorParent {
4286 friend class TransactionBase;
4287 template <IDBCursorType CursorType>
4288 friend class CommonOpenOpHelper;
4289
4290 protected:
4291 const SafeRefPtr<TransactionBase> mTransaction;
4292
4293 // This should only be touched on the PBackground thread to check whether
4294 // the objectStore has been deleted. Holding these saves a hash lookup for
4295 // every call to continue()/advance().
4296 InitializedOnce<const NotNull<SafeRefPtr<FullObjectStoreMetadata>>>
4297 mObjectStoreMetadata;
4298
4299 const IndexOrObjectStoreId mObjectStoreId;
4300
4301 LazyInitializedOnce<const Key>
4302 mLocaleAwareRangeBound; ///< If the cursor is based on a key range, the
4303 ///< bound in the direction of iteration (e.g.
4304 ///< the upper bound in case of mDirection ==
4305 ///< NEXT). If the cursor is based on a key, it
4306 ///< is unset. If mLocale is set, this was
4307 ///< converted to mLocale.
4308
4309 const Direction mDirection;
4310
4311 const int32_t mMaxExtraCount;
4312
4313 const bool mIsSameProcessActor;
4314
4315 struct ConstructFromTransactionBase {};
4316
4317 public:
4318 NS_INLINE_DECL_THREADSAFE_REFCOUNTING(mozilla::dom::indexedDB::CursorBase,public: MozExternalRefCountType AddRef(void) final { static_assert
(!std::is_destructible_v<mozilla::dom::indexedDB::CursorBase
>, "Reference-counted class " "mozilla::dom::indexedDB::CursorBase"
" should not have a public destructor. " "Make this class's destructor non-public"
); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(int32_t(mRefCnt) >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0"
" (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 4319); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 4319
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); nsrefcnt count = ++mRefCnt; NS_LogAddRef((this), (count
), ("mozilla::dom::indexedDB::CursorBase"), (uint32_t)(sizeof
(*this))); return (nsrefcnt)count; } MozExternalRefCountType Release
(void) final { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0"
" (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 4319); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 4319
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); nsrefcnt count = --mRefCnt; NS_LogRelease((this), (
count), ("mozilla::dom::indexedDB::CursorBase")); if (count ==
0) { delete (this); return 0; } return count; } using HasThreadSafeRefCnt
= std::true_type; protected: ::mozilla::ThreadSafeAutoRefCnt
mRefCnt; public:
4319 final)public: MozExternalRefCountType AddRef(void) final { static_assert
(!std::is_destructible_v<mozilla::dom::indexedDB::CursorBase
>, "Reference-counted class " "mozilla::dom::indexedDB::CursorBase"
" should not have a public destructor. " "Make this class's destructor non-public"
); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(int32_t(mRefCnt) >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0"
" (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 4319); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 4319
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); nsrefcnt count = ++mRefCnt; NS_LogAddRef((this), (count
), ("mozilla::dom::indexedDB::CursorBase"), (uint32_t)(sizeof
(*this))); return (nsrefcnt)count; } MozExternalRefCountType Release
(void) final { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0"
" (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 4319); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 4319
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); nsrefcnt count = --mRefCnt; NS_LogRelease((this), (
count), ("mozilla::dom::indexedDB::CursorBase")); if (count ==
0) { delete (this); return 0; } return count; } using HasThreadSafeRefCnt
= std::true_type; protected: ::mozilla::ThreadSafeAutoRefCnt
mRefCnt; public:
4320
4321 CursorBase(SafeRefPtr<TransactionBase> aTransaction,
4322 SafeRefPtr<FullObjectStoreMetadata> aObjectStoreMetadata,
4323 Direction aDirection,
4324 ConstructFromTransactionBase aConstructionTag);
4325
4326 protected:
4327 // Reference counted.
4328 ~CursorBase() override { MOZ_ASSERT(!mObjectStoreMetadata)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mObjectStoreMetadata)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mObjectStoreMetadata))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("!mObjectStoreMetadata"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 4328)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mObjectStoreMetadata"
")"); do { MOZ_CrashSequence(__null, 4328); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
; }
4329
4330 private:
4331 virtual bool Start(const int64_t aRequestId,
4332 const OpenCursorParams& aParams) = 0;
4333};
4334
4335class IndexCursorBase : public CursorBase {
4336 public:
4337 bool IsLocaleAware() const { return !mLocale.IsEmpty(); }
4338
4339 IndexCursorBase(SafeRefPtr<TransactionBase> aTransaction,
4340 SafeRefPtr<FullObjectStoreMetadata> aObjectStoreMetadata,
4341 SafeRefPtr<FullIndexMetadata> aIndexMetadata,
4342 Direction aDirection,
4343 ConstructFromTransactionBase aConstructionTag)
4344 : CursorBase{std::move(aTransaction), std::move(aObjectStoreMetadata),
4345 aDirection, aConstructionTag},
4346 mIndexMetadata(WrapNotNull(std::move(aIndexMetadata))),
4347 mIndexId((*mIndexMetadata)->mCommonMetadata.id()),
4348 mUniqueIndex((*mIndexMetadata)->mCommonMetadata.unique()),
4349 mLocale((*mIndexMetadata)->mCommonMetadata.locale()) {}
4350
4351 protected:
4352 IndexOrObjectStoreId Id() const { return mIndexId; }
4353
4354 // This should only be touched on the PBackground thread to check whether
4355 // the index has been deleted. Holding these saves a hash lookup for every
4356 // call to continue()/advance().
4357 InitializedOnce<const NotNull<SafeRefPtr<FullIndexMetadata>>> mIndexMetadata;
4358 const IndexOrObjectStoreId mIndexId;
4359 const bool mUniqueIndex;
4360 const nsCString
4361 mLocale; ///< The locale if the cursor is locale-aware, otherwise empty.
4362
4363 struct ContinueQueries {
4364 nsCString mContinueQuery;
4365 nsCString mContinueToQuery;
4366 nsCString mContinuePrimaryKeyQuery;
4367
4368 const nsACString& GetContinueQuery(const bool hasContinueKey,
4369 const bool hasContinuePrimaryKey) const {
4370 return hasContinuePrimaryKey ? mContinuePrimaryKeyQuery
4371 : hasContinueKey ? mContinueToQuery
4372 : mContinueQuery;
4373 }
4374 };
4375};
4376
4377class ObjectStoreCursorBase : public CursorBase {
4378 public:
4379 using CursorBase::CursorBase;
4380
4381 static constexpr bool IsLocaleAware() { return false; }
4382
4383 protected:
4384 IndexOrObjectStoreId Id() const { return mObjectStoreId; }
4385
4386 struct ContinueQueries {
4387 nsCString mContinueQuery;
4388 nsCString mContinueToQuery;
4389
4390 const nsACString& GetContinueQuery(const bool hasContinueKey,
4391 const bool hasContinuePrimaryKey) const {
4392 MOZ_ASSERT(!hasContinuePrimaryKey)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!hasContinuePrimaryKey)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!hasContinuePrimaryKey))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!hasContinuePrimaryKey"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 4392)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!hasContinuePrimaryKey"
")"); do { MOZ_CrashSequence(__null, 4392); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4393 return hasContinueKey ? mContinueToQuery : mContinueQuery;
4394 }
4395 };
4396};
4397
4398using FilesArray = nsTArray<nsTArray<StructuredCloneFileParent>>;
4399
4400struct PseudoFilesArray {
4401 static constexpr bool IsEmpty() { return true; }
4402
4403 static constexpr void Clear() {}
4404};
4405
4406template <IDBCursorType CursorType>
4407using FilesArrayT =
4408 std::conditional_t<!CursorTypeTraits<CursorType>::IsKeyOnlyCursor,
4409 FilesArray, PseudoFilesArray>;
4410
4411class ValueCursorBase {
4412 friend struct ValuePopulateResponseHelper<true>;
4413 friend struct ValuePopulateResponseHelper<false>;
4414
4415 protected:
4416 explicit ValueCursorBase(TransactionBase* const aTransaction)
4417 : mDatabase(aTransaction->GetDatabasePtr()),
4418 mFileManager(mDatabase->GetFileManagerPtr()),
4419 mBackgroundParent(WrapNotNull(aTransaction->GetBackgroundParent())) {
4420 MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDatabase)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 4420); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")"
); do { MOZ_CrashSequence(__null, 4420); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4421 }
4422
4423 void ProcessFiles(CursorResponse& aResponse, const FilesArray& aFiles);
4424
4425 ~ValueCursorBase() { MOZ_ASSERT(!mBackgroundParent)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mBackgroundParent)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mBackgroundParent))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("!mBackgroundParent"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 4425)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mBackgroundParent"
")"); do { MOZ_CrashSequence(__null, 4425); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
; }
4426
4427 const SafeRefPtr<Database> mDatabase;
4428 const NotNull<SafeRefPtr<DatabaseFileManager>> mFileManager;
4429
4430 InitializedOnce<const NotNull<PBackgroundParent*>> mBackgroundParent;
4431};
4432
4433class KeyCursorBase {
4434 protected:
4435 explicit KeyCursorBase(TransactionBase* const /*aTransaction*/) {}
4436
4437 static constexpr void ProcessFiles(CursorResponse& aResponse,
4438 const PseudoFilesArray& aFiles) {}
4439};
4440
4441template <IDBCursorType CursorType>
4442class CursorOpBaseHelperBase;
4443
4444template <IDBCursorType CursorType>
4445class Cursor final
4446 : public std::conditional_t<
4447 CursorTypeTraits<CursorType>::IsObjectStoreCursor,
4448 ObjectStoreCursorBase, IndexCursorBase>,
4449 public std::conditional_t<CursorTypeTraits<CursorType>::IsKeyOnlyCursor,
4450 KeyCursorBase, ValueCursorBase> {
4451 using Base =
4452 std::conditional_t<CursorTypeTraits<CursorType>::IsObjectStoreCursor,
4453 ObjectStoreCursorBase, IndexCursorBase>;
4454
4455 using KeyValueBase =
4456 std::conditional_t<CursorTypeTraits<CursorType>::IsKeyOnlyCursor,
4457 KeyCursorBase, ValueCursorBase>;
4458
4459 static constexpr bool IsIndexCursor =
4460 !CursorTypeTraits<CursorType>::IsObjectStoreCursor;
4461
4462 static constexpr bool IsValueCursor =
4463 !CursorTypeTraits<CursorType>::IsKeyOnlyCursor;
4464
4465 class CursorOpBase;
4466 class OpenOp;
4467 class ContinueOp;
4468
4469 using Base::Id;
4470 using CursorBase::Manager;
4471 using CursorBase::mDirection;
4472 using CursorBase::mObjectStoreId;
4473 using CursorBase::mTransaction;
4474 using typename CursorBase::ActorDestroyReason;
4475
4476 using TypedOpenOpHelper =
4477 std::conditional_t<IsIndexCursor, IndexOpenOpHelper<CursorType>,
4478 ObjectStoreOpenOpHelper<CursorType>>;
4479
4480 friend class CursorOpBaseHelperBase<CursorType>;
4481 friend class CommonOpenOpHelper<CursorType>;
4482 friend TypedOpenOpHelper;
4483 friend class OpenOpHelper<CursorType>;
4484
4485 CursorOpBase* mCurrentlyRunningOp = nullptr;
4486
4487 LazyInitializedOnce<const typename Base::ContinueQueries> mContinueQueries;
4488
4489 // Only called by TransactionBase.
4490 bool Start(const int64_t aRequestId, const OpenCursorParams& aParams) final;
4491
4492 void SendResponseInternal(CursorResponse& aResponse,
4493 const FilesArrayT<CursorType>& aFiles);
4494
4495 // IPDL methods.
4496 void ActorDestroy(ActorDestroyReason aWhy) override;
4497
4498 mozilla::ipc::IPCResult RecvDeleteMe() override;
4499
4500 mozilla::ipc::IPCResult RecvContinue(
4501 const int64_t& aRequestId, const CursorRequestParams& aParams,
4502 const Key& aCurrentKey, const Key& aCurrentObjectStoreKey) override;
4503
4504 public:
4505 Cursor(SafeRefPtr<TransactionBase> aTransaction,
4506 SafeRefPtr<FullObjectStoreMetadata> aObjectStoreMetadata,
4507 SafeRefPtr<FullIndexMetadata> aIndexMetadata,
4508 typename Base::Direction aDirection,
4509 typename Base::ConstructFromTransactionBase aConstructionTag)
4510 : Base{std::move(aTransaction), std::move(aObjectStoreMetadata),
4511 std::move(aIndexMetadata), aDirection, aConstructionTag},
4512 KeyValueBase{this->mTransaction.unsafeGetRawPtr()} {}
4513
4514 Cursor(SafeRefPtr<TransactionBase> aTransaction,
4515 SafeRefPtr<FullObjectStoreMetadata> aObjectStoreMetadata,
4516 typename Base::Direction aDirection,
4517 typename Base::ConstructFromTransactionBase aConstructionTag)
4518 : Base{std::move(aTransaction), std::move(aObjectStoreMetadata),
4519 aDirection, aConstructionTag},
4520 KeyValueBase{this->mTransaction.unsafeGetRawPtr()} {}
4521
4522 // Must call SendResponseInternal!
4523 bool SendResponse(const CursorResponse& aResponse) = delete;
4524
4525 private:
4526 void SetOptionalKeyRange(const Maybe<SerializedKeyRange>& aOptionalKeyRange,
4527 bool* aOpen);
4528
4529 bool VerifyRequestParams(const CursorRequestParams& aParams,
4530 const CursorPosition<CursorType>& aPosition) const;
4531
4532 ~Cursor() final = default;
4533};
4534
4535template <IDBCursorType CursorType>
4536class Cursor<CursorType>::CursorOpBase
4537 : public TransactionDatabaseOperationBase {
4538 friend class CursorOpBaseHelperBase<CursorType>;
4539
4540 protected:
4541 RefPtr<Cursor> mCursor;
4542 FilesArrayT<CursorType> mFiles; // TODO: Consider removing this member
4543 // entirely if we are no value cursor.
4544
4545 CursorResponse mResponse;
4546
4547#ifdef DEBUG1
4548 bool mResponseSent;
4549#endif
4550
4551 protected:
4552 explicit CursorOpBase(Cursor* aCursor, const int64_t aRequestId)
4553 : TransactionDatabaseOperationBase(aCursor->mTransaction.clonePtr(),
4554 /* aRequestId */ aRequestId),
4555 mCursor(aCursor)
4556#ifdef DEBUG1
4557 ,
4558 mResponseSent(false)
4559#endif
4560 {
4561 AssertIsOnBackgroundThread();
4562 MOZ_ASSERT(aCursor)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aCursor)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aCursor))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aCursor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 4562); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aCursor" ")"
); do { MOZ_CrashSequence(__null, 4562); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4563 }
4564
4565 ~CursorOpBase() override = default;
4566
4567 bool SendFailureResult(const TransactionOpResult& aResult) final;
4568 TransactionOpResult SendSuccessResult() final;
4569
4570 void Cleanup() override;
4571};
4572
4573template <IDBCursorType CursorType>
4574class OpenOpHelper;
4575
4576using ResponseSizeOrError = Result<size_t, nsresult>;
4577
4578template <IDBCursorType CursorType>
4579class CursorOpBaseHelperBase {
4580 public:
4581 explicit CursorOpBaseHelperBase(
4582 typename Cursor<CursorType>::CursorOpBase& aOp)
4583 : mOp{aOp} {}
4584
4585 ResponseSizeOrError PopulateResponseFromStatement(mozIStorageStatement* aStmt,
4586 bool aInitializeResponse,
4587 Key* const aOptOutSortKey);
4588
4589 void PopulateExtraResponses(mozIStorageStatement* aStmt,
4590 uint32_t aMaxExtraCount,
4591 const size_t aInitialResponseSize,
4592 const nsACString& aOperation,
4593 Key* const aOptPreviousSortKey);
4594
4595 protected:
4596 Cursor<CursorType>& GetCursor() {
4597 MOZ_ASSERT(mOp.mCursor)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mOp.mCursor)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOp.mCursor))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mOp.mCursor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 4597); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOp.mCursor"
")"); do { MOZ_CrashSequence(__null, 4597); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4598 return *mOp.mCursor;
4599 }
4600
4601 void SetResponse(CursorResponse aResponse) {
4602 mOp.mResponse = std::move(aResponse);
4603 }
4604
4605 protected:
4606 typename Cursor<CursorType>::CursorOpBase& mOp;
4607};
4608
4609class CommonOpenOpHelperBase {
4610 protected:
4611 static void AppendConditionClause(const nsACString& aColumnName,
4612 const nsACString& aStatementParameterName,
4613 bool aLessThan, bool aEquals,
4614 nsCString& aResult);
4615};
4616
4617template <IDBCursorType CursorType>
4618class CommonOpenOpHelper : public CursorOpBaseHelperBase<CursorType>,
4619 protected CommonOpenOpHelperBase {
4620 public:
4621 explicit CommonOpenOpHelper(typename Cursor<CursorType>::OpenOp& aOp)
4622 : CursorOpBaseHelperBase<CursorType>{aOp} {}
4623
4624 protected:
4625 using CursorOpBaseHelperBase<CursorType>::GetCursor;
4626 using CursorOpBaseHelperBase<CursorType>::PopulateExtraResponses;
4627 using CursorOpBaseHelperBase<CursorType>::PopulateResponseFromStatement;
4628 using CursorOpBaseHelperBase<CursorType>::SetResponse;
4629
4630 const Maybe<SerializedKeyRange>& GetOptionalKeyRange() const {
4631 // This downcast is safe, since we initialized mOp from an OpenOp in the
4632 // ctor.
4633 return static_cast<typename Cursor<CursorType>::OpenOp&>(this->mOp)
4634 .mOptionalKeyRange;
4635 }
4636
4637 nsresult ProcessStatementSteps(mozIStorageStatement* aStmt);
4638};
4639
4640template <IDBCursorType CursorType>
4641class ObjectStoreOpenOpHelper : protected CommonOpenOpHelper<CursorType> {
4642 public:
4643 using CommonOpenOpHelper<CursorType>::CommonOpenOpHelper;
4644
4645 protected:
4646 using CommonOpenOpHelper<CursorType>::GetCursor;
4647 using CommonOpenOpHelper<CursorType>::GetOptionalKeyRange;
4648 using CommonOpenOpHelper<CursorType>::AppendConditionClause;
4649
4650 void PrepareKeyConditionClauses(const nsACString& aDirectionClause,
4651 const nsACString& aQueryStart);
4652};
4653
4654template <IDBCursorType CursorType>
4655class IndexOpenOpHelper : protected CommonOpenOpHelper<CursorType> {
4656 public:
4657 using CommonOpenOpHelper<CursorType>::CommonOpenOpHelper;
4658
4659 protected:
4660 using CommonOpenOpHelper<CursorType>::GetCursor;
4661 using CommonOpenOpHelper<CursorType>::GetOptionalKeyRange;
4662 using CommonOpenOpHelper<CursorType>::AppendConditionClause;
4663
4664 void PrepareIndexKeyConditionClause(
4665 const nsACString& aDirectionClause,
4666 const nsLiteralCString& aObjectDataKeyPrefix, nsAutoCString aQueryStart);
4667};
4668
4669template <>
4670class OpenOpHelper<IDBCursorType::ObjectStore>
4671 : public ObjectStoreOpenOpHelper<IDBCursorType::ObjectStore> {
4672 public:
4673 using ObjectStoreOpenOpHelper<
4674 IDBCursorType::ObjectStore>::ObjectStoreOpenOpHelper;
4675
4676 nsresult DoDatabaseWork(DatabaseConnection* aConnection);
4677};
4678
4679template <>
4680class OpenOpHelper<IDBCursorType::ObjectStoreKey>
4681 : public ObjectStoreOpenOpHelper<IDBCursorType::ObjectStoreKey> {
4682 public:
4683 using ObjectStoreOpenOpHelper<
4684 IDBCursorType::ObjectStoreKey>::ObjectStoreOpenOpHelper;
4685
4686 nsresult DoDatabaseWork(DatabaseConnection* aConnection);
4687};
4688
4689template <>
4690class OpenOpHelper<IDBCursorType::Index>
4691 : IndexOpenOpHelper<IDBCursorType::Index> {
4692 private:
4693 void PrepareKeyConditionClauses(const nsACString& aDirectionClause,
4694 nsAutoCString aQueryStart) {
4695 PrepareIndexKeyConditionClause(aDirectionClause, "index_table."_ns,
4696 std::move(aQueryStart));
4697 }
4698
4699 public:
4700 using IndexOpenOpHelper<IDBCursorType::Index>::IndexOpenOpHelper;
4701
4702 nsresult DoDatabaseWork(DatabaseConnection* aConnection);
4703};
4704
4705template <>
4706class OpenOpHelper<IDBCursorType::IndexKey>
4707 : IndexOpenOpHelper<IDBCursorType::IndexKey> {
4708 private:
4709 void PrepareKeyConditionClauses(const nsACString& aDirectionClause,
4710 nsAutoCString aQueryStart) {
4711 PrepareIndexKeyConditionClause(aDirectionClause, ""_ns,
4712 std::move(aQueryStart));
4713 }
4714
4715 public:
4716 using IndexOpenOpHelper<IDBCursorType::IndexKey>::IndexOpenOpHelper;
4717
4718 nsresult DoDatabaseWork(DatabaseConnection* aConnection);
4719};
4720
4721template <IDBCursorType CursorType>
4722class Cursor<CursorType>::OpenOp final : public CursorOpBase {
4723 friend class Cursor<CursorType>;
4724 friend class CommonOpenOpHelper<CursorType>;
4725
4726 const Maybe<SerializedKeyRange> mOptionalKeyRange;
4727
4728 using CursorOpBase::mCursor;
4729 using CursorOpBase::mResponse;
4730
4731 // Only created by Cursor.
4732 OpenOp(Cursor* const aCursor, const int64_t aRequestId,
4733 const Maybe<SerializedKeyRange>& aOptionalKeyRange)
4734 : CursorOpBase(aCursor, aRequestId),
4735 mOptionalKeyRange(aOptionalKeyRange) {}
4736
4737 // Reference counted.
4738 ~OpenOp() override = default;
4739
4740 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
4741};
4742
4743template <IDBCursorType CursorType>
4744class Cursor<CursorType>::ContinueOp final
4745 : public Cursor<CursorType>::CursorOpBase {
4746 friend class Cursor<CursorType>;
4747
4748 using CursorOpBase::mCursor;
4749 using CursorOpBase::mResponse;
4750 const CursorRequestParams mParams;
4751
4752 // Only created by Cursor.
4753 ContinueOp(Cursor* const aCursor, int64_t aRequestId,
4754 CursorRequestParams aParams, CursorPosition<CursorType> aPosition)
4755 : CursorOpBase(aCursor, aRequestId),
4756 mParams(std::move(aParams)),
4757 mCurrentPosition{std::move(aPosition)} {
4758 MOZ_ASSERT(mParams.type() != CursorRequestParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mParams.type() != CursorRequestParams::T__None)>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mParams.type() != CursorRequestParams::T__None))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("mParams.type() != CursorRequestParams::T__None"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 4758)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mParams.type() != CursorRequestParams::T__None"
")"); do { MOZ_CrashSequence(__null, 4758); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4759 }
4760
4761 // Reference counted.
4762 ~ContinueOp() override = default;
4763
4764 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
4765
4766 const CursorPosition<CursorType> mCurrentPosition;
4767};
4768
4769class Utils final : public PBackgroundIndexedDBUtilsParent {
4770#ifdef DEBUG1
4771 bool mActorDestroyed;
4772#endif
4773
4774 public:
4775 Utils();
4776
4777 NS_INLINE_DECL_THREADSAFE_REFCOUNTING(mozilla::dom::indexedDB::Utils)public: MozExternalRefCountType AddRef(void) { static_assert(
!std::is_destructible_v<mozilla::dom::indexedDB::Utils>
, "Reference-counted class " "mozilla::dom::indexedDB::Utils"
" should not have a public destructor. " "Make this class's destructor non-public"
); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(int32_t(mRefCnt) >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0"
" (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 4777); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 4777
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); nsrefcnt count = ++mRefCnt; NS_LogAddRef((this), (count
), ("mozilla::dom::indexedDB::Utils"), (uint32_t)(sizeof(*this
))); return (nsrefcnt)count; } MozExternalRefCountType Release
(void) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0"
" (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 4777); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 4777
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); nsrefcnt count = --mRefCnt; NS_LogRelease((this), (
count), ("mozilla::dom::indexedDB::Utils")); if (count == 0) {
delete (this); return 0; } return count; } using HasThreadSafeRefCnt
= std::true_type; protected: ::mozilla::ThreadSafeAutoRefCnt
mRefCnt; public:
4778
4779 private:
4780 // Reference counted.
4781 ~Utils() override;
4782
4783 // IPDL methods are only called by IPDL.
4784 void ActorDestroy(ActorDestroyReason aWhy) override;
4785
4786 mozilla::ipc::IPCResult RecvDeleteMe() override;
4787
4788 mozilla::ipc::IPCResult RecvGetFileReferences(
4789 const PersistenceType& aPersistenceType, const nsACString& aOrigin,
4790 const nsAString& aDatabaseName, const int64_t& aFileId, int32_t* aRefCnt,
4791 int32_t* aDBRefCnt, bool* aResult) override;
4792
4793 mozilla::ipc::IPCResult RecvDoMaintenance(
4794 DoMaintenanceResolver&& aResolver) override;
4795};
4796
4797/*******************************************************************************
4798 * Other class declarations
4799 ******************************************************************************/
4800
4801struct DatabaseActorInfo final {
4802 friend mozilla::DefaultDelete<DatabaseActorInfo>;
4803
4804 SafeRefPtr<FullDatabaseMetadata> mMetadata;
4805 // We don't use LinkedList<CheckedUnsafePtr<Database>> because
4806 // CheckedUnsafePtr is not suitable for use within LinkedList. While it's
4807 // theoretically possible to adapt LinkedList to support it, doing so would
4808 // introduce unnecessary overhead. Instead, we use a simpler and more
4809 // efficient approach. Each Database instance asserts !isInList() in its
4810 // destructor to catch dangling pointer issues.
4811 LinkedList<Database> mLiveDatabases;
4812 RefPtr<FactoryOp> mWaitingFactoryOp;
4813
4814 DatabaseActorInfo(SafeRefPtr<FullDatabaseMetadata> aMetadata,
4815 NotNull<Database*> aDatabase)
4816 : mMetadata(std::move(aMetadata)) {
4817 MOZ_COUNT_CTOR(DatabaseActorInfo)do { static_assert(std::is_class_v<DatabaseActorInfo>, "Token '"
"DatabaseActorInfo" "' is not a class type."); static_assert
(!std::is_base_of_v<nsISupports, DatabaseActorInfo>, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "DatabaseActorInfo"
, sizeof(*this)); } while (0)
;
4818
4819 mLiveDatabases.insertBack(aDatabase);
4820 }
4821
4822 private:
4823 ~DatabaseActorInfo() {
4824 MOZ_ASSERT(mLiveDatabases.isEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mLiveDatabases.isEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mLiveDatabases.isEmpty()))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("mLiveDatabases.isEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 4824)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLiveDatabases.isEmpty()"
")"); do { MOZ_CrashSequence(__null, 4824); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4825 MOZ_ASSERT(!mWaitingFactoryOp || !mWaitingFactoryOp->HasBlockedDatabases())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mWaitingFactoryOp || !mWaitingFactoryOp->HasBlockedDatabases
())>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!mWaitingFactoryOp || !mWaitingFactoryOp->HasBlockedDatabases
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!mWaitingFactoryOp || !mWaitingFactoryOp->HasBlockedDatabases()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 4825)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mWaitingFactoryOp || !mWaitingFactoryOp->HasBlockedDatabases()"
")"); do { MOZ_CrashSequence(__null, 4825); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4826
4827 MOZ_COUNT_DTOR(DatabaseActorInfo)do { static_assert(std::is_class_v<DatabaseActorInfo>, "Token '"
"DatabaseActorInfo" "' is not a class type."); static_assert
(!std::is_base_of_v<nsISupports, DatabaseActorInfo>, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "DatabaseActorInfo"
, sizeof(*this)); } while (0)
;
4828 }
4829};
4830
4831class DatabaseLoggingInfo final {
4832#ifdef DEBUG1
4833 // Just for potential warnings.
4834 friend class Factory;
4835#endif
4836
4837 LoggingInfo mLoggingInfo;
4838
4839 public:
4840 explicit DatabaseLoggingInfo(const LoggingInfo& aLoggingInfo)
4841 : mLoggingInfo(aLoggingInfo) {
4842 AssertIsOnBackgroundThread();
4843 MOZ_ASSERT(aLoggingInfo.nextTransactionSerialNumber())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aLoggingInfo.nextTransactionSerialNumber())>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(aLoggingInfo.nextTransactionSerialNumber()))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("aLoggingInfo.nextTransactionSerialNumber()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 4843)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aLoggingInfo.nextTransactionSerialNumber()"
")"); do { MOZ_CrashSequence(__null, 4843); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4844 MOZ_ASSERT(aLoggingInfo.nextVersionChangeTransactionSerialNumber())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aLoggingInfo.nextVersionChangeTransactionSerialNumber
())>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aLoggingInfo.nextVersionChangeTransactionSerialNumber
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("aLoggingInfo.nextVersionChangeTransactionSerialNumber()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 4844); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aLoggingInfo.nextVersionChangeTransactionSerialNumber()"
")"); do { MOZ_CrashSequence(__null, 4844); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4845 MOZ_ASSERT(aLoggingInfo.nextRequestSerialNumber())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aLoggingInfo.nextRequestSerialNumber())>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(aLoggingInfo.nextRequestSerialNumber()))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aLoggingInfo.nextRequestSerialNumber()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 4845)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aLoggingInfo.nextRequestSerialNumber()"
")"); do { MOZ_CrashSequence(__null, 4845); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4846 }
4847
4848 const nsID& Id() const {
4849 AssertIsOnBackgroundThread();
4850
4851 return mLoggingInfo.backgroundChildLoggingId();
4852 }
4853
4854 int64_t NextTransactionSN(IDBTransaction::Mode aMode) {
4855 AssertIsOnBackgroundThread();
4856 MOZ_ASSERT(mLoggingInfo.nextTransactionSerialNumber() < INT64_MAX)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mLoggingInfo.nextTransactionSerialNumber() < (9223372036854775807L
))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mLoggingInfo.nextTransactionSerialNumber() < (9223372036854775807L
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mLoggingInfo.nextTransactionSerialNumber() < (9223372036854775807L)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 4856)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLoggingInfo.nextTransactionSerialNumber() < (9223372036854775807L)"
")"); do { MOZ_CrashSequence(__null, 4856); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4857 MOZ_ASSERT(mLoggingInfo.nextVersionChangeTransactionSerialNumber() >do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mLoggingInfo.nextVersionChangeTransactionSerialNumber
() > (-9223372036854775807L -1))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mLoggingInfo.nextVersionChangeTransactionSerialNumber
() > (-9223372036854775807L -1)))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("mLoggingInfo.nextVersionChangeTransactionSerialNumber() > (-9223372036854775807L-1)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 4858)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLoggingInfo.nextVersionChangeTransactionSerialNumber() > (-9223372036854775807L-1)"
")"); do { MOZ_CrashSequence(__null, 4858); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
4858 INT64_MIN)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mLoggingInfo.nextVersionChangeTransactionSerialNumber
() > (-9223372036854775807L -1))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mLoggingInfo.nextVersionChangeTransactionSerialNumber
() > (-9223372036854775807L -1)))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("mLoggingInfo.nextVersionChangeTransactionSerialNumber() > (-9223372036854775807L-1)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 4858)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLoggingInfo.nextVersionChangeTransactionSerialNumber() > (-9223372036854775807L-1)"
")"); do { MOZ_CrashSequence(__null, 4858); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4859
4860 if (aMode == IDBTransaction::Mode::VersionChange) {
4861 return mLoggingInfo.nextVersionChangeTransactionSerialNumber()--;
4862 }
4863
4864 return mLoggingInfo.nextTransactionSerialNumber()++;
4865 }
4866
4867 uint64_t NextRequestSN() {
4868 AssertIsOnBackgroundThread();
4869 MOZ_ASSERT(mLoggingInfo.nextRequestSerialNumber() < UINT64_MAX)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mLoggingInfo.nextRequestSerialNumber() < (18446744073709551615UL
))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mLoggingInfo.nextRequestSerialNumber() < (18446744073709551615UL
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mLoggingInfo.nextRequestSerialNumber() < (18446744073709551615UL)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 4869)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLoggingInfo.nextRequestSerialNumber() < (18446744073709551615UL)"
")"); do { MOZ_CrashSequence(__null, 4869); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4870
4871 return mLoggingInfo.nextRequestSerialNumber()++;
4872 }
4873
4874 NS_INLINE_DECL_REFCOUNTING(DatabaseLoggingInfo)public: MozExternalRefCountType AddRef(void) { static_assert(
!std::is_destructible_v<DatabaseLoggingInfo>, "Reference-counted class "
"DatabaseLoggingInfo" " should not have a public destructor. "
"Make this class's destructor non-public"); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(int32_t
(mRefCnt) >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0"
" (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 4874); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 4874
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); _mOwningThread.AssertOwnership("DatabaseLoggingInfo"
" not thread-safe"); ++mRefCnt; NS_LogAddRef((this), (mRefCnt
), ("DatabaseLoggingInfo"), (uint32_t)(sizeof(*this))); return
mRefCnt; } MozExternalRefCountType Release(void) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(int32_t
(mRefCnt) > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0"
" (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 4874); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 4874
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); _mOwningThread.AssertOwnership("DatabaseLoggingInfo"
" not thread-safe"); --mRefCnt; NS_LogRelease((this), (mRefCnt
), ("DatabaseLoggingInfo")); if (mRefCnt == 0) { mRefCnt = 1;
delete (this); return 0; } return mRefCnt; } using HasThreadSafeRefCnt
= std::false_type; protected: nsAutoRefCnt mRefCnt; nsAutoOwningThread
_mOwningThread; public:
4875
4876 private:
4877 ~DatabaseLoggingInfo();
4878};
4879
4880class QuotaClient final : public mozilla::dom::quota::Client {
4881 friend class GetDatabasesOp;
4882
4883 static QuotaClient* sInstance;
4884
4885 nsCOMPtr<nsIEventTarget> mBackgroundThread;
4886 nsCOMPtr<nsITimer> mDeleteTimer;
4887 nsTArray<RefPtr<Maintenance>> mMaintenanceQueue;
4888 RefPtr<Maintenance> mCurrentMaintenance;
4889 RefPtr<nsThreadPool> mMaintenanceThreadPool;
4890 nsClassHashtable<nsRefPtrHashKey<DatabaseFileManager>, nsTArray<int64_t>>
4891 mPendingDeleteInfos;
4892
4893 public:
4894 QuotaClient();
4895
4896 static QuotaClient* GetInstance() {
4897 AssertIsOnBackgroundThread();
4898
4899 return sInstance;
4900 }
4901
4902 nsIEventTarget* BackgroundThread() const {
4903 MOZ_ASSERT(mBackgroundThread)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mBackgroundThread)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mBackgroundThread))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("mBackgroundThread"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 4903)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mBackgroundThread"
")"); do { MOZ_CrashSequence(__null, 4903); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4904 return mBackgroundThread;
4905 }
4906
4907 nsresult AsyncDeleteFile(DatabaseFileManager* aFileManager, int64_t aFileId);
4908
4909 nsresult FlushPendingFileDeletions();
4910
4911 RefPtr<BoolPromise> DoMaintenance();
4912
4913 RefPtr<Maintenance> GetCurrentMaintenance() const {
4914 return mCurrentMaintenance;
4915 }
4916
4917 void NoteFinishedMaintenance(Maintenance* aMaintenance) {
4918 AssertIsOnBackgroundThread();
4919 MOZ_ASSERT(aMaintenance)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aMaintenance)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aMaintenance))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("aMaintenance", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 4919); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMaintenance"
")"); do { MOZ_CrashSequence(__null, 4919); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4920 MOZ_ASSERT(mCurrentMaintenance == aMaintenance)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mCurrentMaintenance == aMaintenance)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mCurrentMaintenance == aMaintenance
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mCurrentMaintenance == aMaintenance", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 4920); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCurrentMaintenance == aMaintenance"
")"); do { MOZ_CrashSequence(__null, 4920); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4921
4922 mCurrentMaintenance = nullptr;
4923
4924 QuotaManager::MaybeRecordQuotaClientShutdownStep(quota::Client::IDB,
4925 "Maintenance finished"_ns);
4926
4927 ProcessMaintenanceQueue();
4928 }
4929
4930 nsThreadPool* GetOrCreateThreadPool();
4931
4932 NS_INLINE_DECL_THREADSAFE_REFCOUNTING(mozilla::dom::indexedDB::QuotaClient,public: MozExternalRefCountType AddRef(void) override { static_assert
(!std::is_destructible_v<mozilla::dom::indexedDB::QuotaClient
>, "Reference-counted class " "mozilla::dom::indexedDB::QuotaClient"
" should not have a public destructor. " "Make this class's destructor non-public"
); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(int32_t(mRefCnt) >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0"
" (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 4933); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 4933
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); nsrefcnt count = ++mRefCnt; NS_LogAddRef((this), (count
), ("mozilla::dom::indexedDB::QuotaClient"), (uint32_t)(sizeof
(*this))); return (nsrefcnt)count; } MozExternalRefCountType Release
(void) override { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0"
" (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 4933); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 4933
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); nsrefcnt count = --mRefCnt; NS_LogRelease((this), (
count), ("mozilla::dom::indexedDB::QuotaClient")); if (count ==
0) { delete (this); return 0; } return count; } using HasThreadSafeRefCnt
= std::true_type; protected: ::mozilla::ThreadSafeAutoRefCnt
mRefCnt; public:
4933 override)public: MozExternalRefCountType AddRef(void) override { static_assert
(!std::is_destructible_v<mozilla::dom::indexedDB::QuotaClient
>, "Reference-counted class " "mozilla::dom::indexedDB::QuotaClient"
" should not have a public destructor. " "Make this class's destructor non-public"
); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(int32_t(mRefCnt) >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0"
" (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 4933); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 4933
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); nsrefcnt count = ++mRefCnt; NS_LogAddRef((this), (count
), ("mozilla::dom::indexedDB::QuotaClient"), (uint32_t)(sizeof
(*this))); return (nsrefcnt)count; } MozExternalRefCountType Release
(void) override { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0"
" (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 4933); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 4933
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); nsrefcnt count = --mRefCnt; NS_LogRelease((this), (
count), ("mozilla::dom::indexedDB::QuotaClient")); if (count ==
0) { delete (this); return 0; } return count; } using HasThreadSafeRefCnt
= std::true_type; protected: ::mozilla::ThreadSafeAutoRefCnt
mRefCnt; public:
4934
4935 mozilla::dom::quota::Client::Type GetType() override;
4936
4937 nsresult UpgradeStorageFrom1_0To2_0(nsIFile* aDirectory) override;
4938
4939 nsresult UpgradeStorageFrom2_1To2_2(nsIFile* aDirectory) override;
4940
4941 Result<UsageInfo, nsresult> InitOrigin(PersistenceType aPersistenceType,
4942 const OriginMetadata& aOriginMetadata,
4943 const AtomicBool& aCanceled) override;
4944
4945 nsresult InitOriginWithoutTracking(PersistenceType aPersistenceType,
4946 const OriginMetadata& aOriginMetadata,
4947 const AtomicBool& aCanceled) override;
4948
4949 Result<UsageInfo, nsresult> GetUsageForOrigin(
4950 PersistenceType aPersistenceType, const OriginMetadata& aOriginMetadata,
4951 const AtomicBool& aCanceled) override;
4952
4953 void OnOriginClearCompleted(const OriginMetadata& aOriginMetadata) override;
4954
4955 void OnRepositoryClearCompleted(PersistenceType aPersistenceType) override;
4956
4957 void ReleaseIOThreadObjects() override;
4958
4959 void AbortOperationsForLocks(
4960 const DirectoryLockIdTable& aDirectoryLockIds) override;
4961
4962 void AbortOperationsForProcess(ContentParentId aContentParentId) override;
4963
4964 void AbortAllOperations() override;
4965
4966 void StartIdleMaintenance() override;
4967
4968 void StopIdleMaintenance() override;
4969
4970 private:
4971 ~QuotaClient() override;
4972
4973 void InitiateShutdown() override;
4974 bool IsShutdownCompleted() const override;
4975 nsCString GetShutdownStatus() const override;
4976 void ForceKillActors() override;
4977 void FinalizeShutdown() override;
4978
4979 static void DeleteTimerCallback(nsITimer* aTimer, void* aClosure);
4980
4981 void AbortAllMaintenances();
4982
4983 Result<nsCOMPtr<nsIFile>, nsresult> GetDirectory(
4984 const OriginMetadata& aOriginMetadata);
4985
4986 struct SubdirectoriesToProcessAndDatabaseFilenames {
4987 AutoTArray<nsString, 20> subdirsToProcess;
4988 nsTHashSet<nsString> databaseFilenames{20};
4989 };
4990
4991 struct SubdirectoriesToProcessAndDatabaseFilenamesAndObsoleteFilenames {
4992 AutoTArray<nsString, 20> subdirsToProcess;
4993 nsTHashSet<nsString> databaseFilenames{20};
4994 nsTHashSet<nsString> obsoleteFilenames{20};
4995 };
4996
4997 enum class ObsoleteFilenamesHandling { Include, Omit };
4998
4999 template <ObsoleteFilenamesHandling ObsoleteFilenames>
5000 using GetDatabaseFilenamesResult = std::conditional_t<
5001 ObsoleteFilenames == ObsoleteFilenamesHandling::Include,
5002 SubdirectoriesToProcessAndDatabaseFilenamesAndObsoleteFilenames,
5003 SubdirectoriesToProcessAndDatabaseFilenames>;
5004
5005 // Returns a two-part or three-part structure:
5006 //
5007 // The first part is an array of subdirectories to process.
5008 //
5009 // The second part is a hashtable of database filenames.
5010 //
5011 // When ObsoleteFilenames is ObsoleteFilenamesHandling::Include, will also
5012 // collect files based on the marker files. For now,
5013 // GetUsageForOriginInternal() is the only consumer of this result because it
5014 // checks those unfinished deletion and clean them up after that.
5015 template <ObsoleteFilenamesHandling ObsoleteFilenames =
5016 ObsoleteFilenamesHandling::Omit>
5017 Result<GetDatabaseFilenamesResult<ObsoleteFilenames>,
5018 nsresult> static GetDatabaseFilenames(nsIFile& aDirectory,
5019 const AtomicBool& aCanceled);
5020
5021 nsresult GetUsageForOriginInternal(PersistenceType aPersistenceType,
5022 const OriginMetadata& aOriginMetadata,
5023 const AtomicBool& aCanceled,
5024 bool aInitializing, UsageInfo* aUsageInfo);
5025
5026 // Runs on the PBackground thread. Checks to see if there's a queued
5027 // Maintenance to run.
5028 void ProcessMaintenanceQueue();
5029};
5030
5031class DeleteFilesRunnable final : public Runnable {
5032 using ClientDirectoryLock = mozilla::dom::quota::ClientDirectoryLock;
5033
5034 enum State {
5035 // Just created on the PBackground thread. Next step is
5036 // State_DirectoryOpenPending.
5037 State_Initial,
5038
5039 // Waiting for directory open allowed on the main thread. The next step is
5040 // State_DatabaseWorkOpen.
5041 State_DirectoryOpenPending,
5042
5043 // Waiting to do/doing work on the QuotaManager IO thread. The next step is
5044 // State_UnblockingOpen.
5045 State_DatabaseWorkOpen,
5046
5047 // Notifying the QuotaManager that it can proceed to the next operation on
5048 // the main thread. Next step is State_Completed.
5049 State_UnblockingOpen,
5050
5051 // All done.
5052 State_Completed
5053 };
5054
5055 nsCOMPtr<nsIEventTarget> mOwningEventTarget;
5056 SafeRefPtr<DatabaseFileManager> mFileManager;
5057 ClientDirectoryLockHandle mDirectoryLockHandle;
5058 nsTArray<int64_t> mFileIds;
5059 State mState;
5060 DEBUGONLY(bool mDEBUGCountsAsPending = false)bool mDEBUGCountsAsPending = false;
5061
5062 static uint64_t sPendingRunnables;
5063
5064 public:
5065 DeleteFilesRunnable(SafeRefPtr<DatabaseFileManager> aFileManager,
5066 nsTArray<int64_t>&& aFileIds);
5067
5068 void RunImmediately();
5069
5070 static bool IsDeletionPending() { return sPendingRunnables > 0; }
5071
5072 private:
5073#ifdef DEBUG1
5074 ~DeleteFilesRunnable();
5075#else
5076 ~DeleteFilesRunnable() = default;
5077#endif
5078
5079 void Open();
5080
5081 void DoDatabaseWork();
5082
5083 void Finish();
5084
5085 void UnblockOpen();
5086
5087 NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override;
5088
5089 void DirectoryLockAcquired(ClientDirectoryLockHandle aLockHandle);
5090
5091 void DirectoryLockFailed();
5092};
5093
5094class Maintenance final : public Runnable {
5095 struct DirectoryInfo final {
5096 InitializedOnce<const OriginMetadata> mOriginMetadata;
5097 InitializedOnce<const nsTArray<nsString>> mDatabasePaths;
5098 const PersistenceType mPersistenceType;
5099
5100 DirectoryInfo(PersistenceType aPersistenceType,
5101 OriginMetadata aOriginMetadata,
5102 nsTArray<nsString>&& aDatabasePaths);
5103
5104 DirectoryInfo(const DirectoryInfo& aOther) = delete;
5105 DirectoryInfo(DirectoryInfo&& aOther) = delete;
5106
5107 ~DirectoryInfo() { MOZ_COUNT_DTOR(Maintenance::DirectoryInfo)do { static_assert(std::is_class_v<Maintenance::DirectoryInfo
>, "Token '" "Maintenance::DirectoryInfo" "' is not a class type."
); static_assert(!std::is_base_of_v<nsISupports, Maintenance
::DirectoryInfo>, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "Maintenance::DirectoryInfo"
, sizeof(*this)); } while (0)
; }
5108 };
5109
5110 enum class State {
5111 // Newly created on the PBackground thread. Will proceed immediately or be
5112 // added to the maintenance queue. The next step is either
5113 // DirectoryOpenPending if IndexedDatabaseManager is running, or
5114 // CreateIndexedDatabaseManager if not.
5115 Initial = 0,
5116
5117 // Create IndexedDatabaseManager on the main thread. The next step is either
5118 // Finishing if IndexedDatabaseManager initialization fails, or
5119 // IndexedDatabaseManagerOpen if initialization succeeds.
5120 CreateIndexedDatabaseManager,
5121
5122 // Call OpenDirectory() on the PBackground thread. The next step is
5123 // DirectoryOpenPending.
5124 IndexedDatabaseManagerOpen,
5125
5126 // Waiting for directory open allowed on the PBackground thread. The next
5127 // step is either Finishing if directory lock failed to acquire, or
5128 // DirectoryWorkOpen if directory lock is acquired.
5129 DirectoryOpenPending,
5130
5131 // Waiting to do/doing work on the QuotaManager IO thread. The next step is
5132 // BeginDatabaseMaintenance.
5133 DirectoryWorkOpen,
5134
5135 // Dispatching a runnable for each database on the PBackground thread. The
5136 // next state is either WaitingForDatabaseMaintenancesToComplete if at least
5137 // one runnable has been dispatched, or Finishing otherwise.
5138 BeginDatabaseMaintenance,
5139
5140 // Waiting for DatabaseMaintenance to finish on maintenance thread pool.
5141 // The next state is Finishing if the last runnable has finished.
5142 WaitingForDatabaseMaintenancesToComplete,
5143
5144 // Waiting to finish/finishing on the PBackground thread. The next step is
5145 // Completed.
5146 Finishing,
5147
5148 // All done.
5149 Complete
5150 };
5151
5152 RefPtr<QuotaClient> mQuotaClient;
5153 MozPromiseHolder<BoolPromise> mPromiseHolder;
5154 PRTime mStartTime;
5155 RefPtr<UniversalDirectoryLock> mPendingDirectoryLock;
5156 // The directory lock is normally dropped by BeginDatabaseMaintenance, but if
5157 // something fails (in any method), the Finish method will do the cleanup.
5158 RefPtr<UniversalDirectoryLock> mDirectoryLock;
5159 nsTArray<nsCOMPtr<nsIRunnable>> mCompleteCallbacks;
5160 nsTArray<DirectoryInfo> mDirectoryInfos;
5161 nsTHashMap<nsStringHashKey, DatabaseMaintenance*> mDatabaseMaintenances;
5162 nsresult mResultCode;
5163 Atomic<bool> mAborted;
5164 bool mOpenStorageForAllRepositoriesFailed;
5165 State mState;
5166
5167 public:
5168 explicit Maintenance(QuotaClient* aQuotaClient)
5169 : Runnable("dom::indexedDB::Maintenance"),
5170 mQuotaClient(aQuotaClient),
5171 mStartTime(PR_Now()),
5172 mResultCode(NS_OK),
5173 mAborted(false),
5174 mOpenStorageForAllRepositoriesFailed(false),
5175 mState(State::Initial) {
5176 AssertIsOnBackgroundThread();
5177 MOZ_ASSERT(aQuotaClient)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aQuotaClient)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aQuotaClient))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("aQuotaClient", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5177); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aQuotaClient"
")"); do { MOZ_CrashSequence(__null, 5177); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5178 MOZ_ASSERT(QuotaClient::GetInstance() == aQuotaClient)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(QuotaClient::GetInstance() == aQuotaClient)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(QuotaClient::GetInstance() == aQuotaClient))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("QuotaClient::GetInstance() == aQuotaClient"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5178)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "QuotaClient::GetInstance() == aQuotaClient"
")"); do { MOZ_CrashSequence(__null, 5178); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5179 MOZ_ASSERT(mStartTime)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mStartTime)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mStartTime))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mStartTime", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5179); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mStartTime"
")"); do { MOZ_CrashSequence(__null, 5179); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5180 }
5181
5182 nsIEventTarget* BackgroundThread() const {
5183 MOZ_ASSERT(mQuotaClient)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mQuotaClient)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mQuotaClient))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mQuotaClient", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5183); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mQuotaClient"
")"); do { MOZ_CrashSequence(__null, 5183); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5184 return mQuotaClient->BackgroundThread();
5185 }
5186
5187 PRTime StartTime() const { return mStartTime; }
5188
5189 bool IsAborted() const { return mAborted; }
5190
5191 void RunImmediately() {
5192 MOZ_ASSERT(mState == State::Initial)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::Initial)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::Initial))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::Initial"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5192)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial"
")"); do { MOZ_CrashSequence(__null, 5192); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5193
5194 (void)this->Run();
5195 }
5196
5197 RefPtr<BoolPromise> OnResults() {
5198 AssertIsOnBackgroundThread();
5199
5200 return mPromiseHolder.Ensure(__func__);
5201 }
5202
5203 void Abort();
5204
5205 void RegisterDatabaseMaintenance(DatabaseMaintenance* aDatabaseMaintenance);
5206
5207 void UnregisterDatabaseMaintenance(DatabaseMaintenance* aDatabaseMaintenance);
5208
5209 bool HasDatabaseMaintenances() const { return mDatabaseMaintenances.Count(); }
5210
5211 RefPtr<DatabaseMaintenance> GetDatabaseMaintenance(
5212 const nsAString& aDatabasePath) const {
5213 AssertIsOnBackgroundThread();
5214
5215 return mDatabaseMaintenances.Get(aDatabasePath);
5216 }
5217
5218 void WaitForCompletion(nsIRunnable* aCallback) {
5219 AssertIsOnBackgroundThread();
5220 MOZ_ASSERT(mDatabaseMaintenances.Count())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDatabaseMaintenances.Count())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDatabaseMaintenances.Count(
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mDatabaseMaintenances.Count()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5220); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabaseMaintenances.Count()"
")"); do { MOZ_CrashSequence(__null, 5220); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5221
5222 mCompleteCallbacks.AppendElement(aCallback);
5223 }
5224
5225 void Stringify(nsACString& aResult) const;
5226
5227 private:
5228 ~Maintenance() override {
5229 MOZ_ASSERT(mState == State::Complete)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::Complete)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::Complete)))
, 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::Complete"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5229)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Complete"
")"); do { MOZ_CrashSequence(__null, 5229); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5230 MOZ_ASSERT(!mDatabaseMaintenances.Count())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDatabaseMaintenances.Count())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDatabaseMaintenances.Count
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!mDatabaseMaintenances.Count()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5230); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabaseMaintenances.Count()"
")"); do { MOZ_CrashSequence(__null, 5230); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5231 }
5232
5233 // Runs on the PBackground thread. Checks if IndexedDatabaseManager is
5234 // running. Calls OpenDirectory() or dispatches to the main thread on which
5235 // CreateIndexedDatabaseManager() is called.
5236 nsresult Start();
5237
5238 // Runs on the main thread. Once IndexedDatabaseManager is created it will
5239 // dispatch to the PBackground thread on which OpenDirectory() is called.
5240 nsresult CreateIndexedDatabaseManager();
5241
5242 RefPtr<UniversalDirectoryLockPromise> OpenStorageDirectory(
5243 const PersistenceScope& aPersistenceScope, bool aInitializeOrigins);
5244
5245 // Runs on the PBackground thread. Once QuotaManager has given a lock it will
5246 // call DirectoryOpen().
5247 nsresult OpenDirectory();
5248
5249 // Runs on the PBackground thread. Dispatches to the QuotaManager I/O thread.
5250 nsresult DirectoryOpen();
5251
5252 // Runs on the QuotaManager I/O thread. Once it finds databases it will
5253 // dispatch to the PBackground thread on which BeginDatabaseMaintenance()
5254 // is called.
5255 nsresult DirectoryWork();
5256
5257 // Runs on the PBackground thread. It dispatches a runnable for each database.
5258 nsresult BeginDatabaseMaintenance();
5259
5260 // Runs on the PBackground thread. Called when the maintenance is finished or
5261 // if any of above methods fails.
5262 void Finish();
5263
5264 NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override;
5265
5266 void DirectoryLockAcquired(UniversalDirectoryLock* aLock);
5267
5268 void DirectoryLockFailed();
5269};
5270
5271Maintenance::DirectoryInfo::DirectoryInfo(PersistenceType aPersistenceType,
5272 OriginMetadata aOriginMetadata,
5273 nsTArray<nsString>&& aDatabasePaths)
5274 : mOriginMetadata(std::move(aOriginMetadata)),
5275 mDatabasePaths(std::move(aDatabasePaths)),
5276 mPersistenceType(aPersistenceType) {
5277 MOZ_ASSERT(aPersistenceType != PERSISTENCE_TYPE_INVALID)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aPersistenceType != PERSISTENCE_TYPE_INVALID)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(aPersistenceType != PERSISTENCE_TYPE_INVALID))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("aPersistenceType != PERSISTENCE_TYPE_INVALID"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5277)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aPersistenceType != PERSISTENCE_TYPE_INVALID"
")"); do { MOZ_CrashSequence(__null, 5277); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5278 MOZ_ASSERT(!mOriginMetadata->mGroup.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mOriginMetadata->mGroup.IsEmpty())>::isValid,
"invalid assertion condition"); if ((__builtin_expect(!!(!(!
!(!mOriginMetadata->mGroup.IsEmpty()))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!mOriginMetadata->mGroup.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5278)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mOriginMetadata->mGroup.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 5278); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5279 MOZ_ASSERT(!mOriginMetadata->mOrigin.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mOriginMetadata->mOrigin.IsEmpty())>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(!mOriginMetadata->mOrigin.IsEmpty()))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!mOriginMetadata->mOrigin.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5279)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mOriginMetadata->mOrigin.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 5279); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5280#ifdef DEBUG1
5281 MOZ_ASSERT(!mDatabasePaths->IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDatabasePaths->IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDatabasePaths->IsEmpty(
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!mDatabasePaths->IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5281); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabasePaths->IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 5281); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5282 for (const nsAString& databasePath : *mDatabasePaths) {
5283 MOZ_ASSERT(!databasePath.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!databasePath.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!databasePath.IsEmpty()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!databasePath.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5283)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePath.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 5283); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5284 }
5285#endif
5286
5287 MOZ_COUNT_CTOR(Maintenance::DirectoryInfo)do { static_assert(std::is_class_v<Maintenance::DirectoryInfo
>, "Token '" "Maintenance::DirectoryInfo" "' is not a class type."
); static_assert(!std::is_base_of_v<nsISupports, Maintenance
::DirectoryInfo>, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "Maintenance::DirectoryInfo"
, sizeof(*this)); } while (0)
;
5288}
5289
5290class DatabaseMaintenance final : public Runnable {
5291 // The minimum amount of time that has passed since the last vacuum before we
5292 // will attempt to analyze the database for fragmentation.
5293 static const PRTime kMinVacuumAge =
5294 PRTime(PR_USEC_PER_SEC1000000L) * 60 * 60 * 24 * 7;
5295
5296 // If the percent of database pages that are not in contiguous order is higher
5297 // than this percentage we will attempt a vacuum.
5298 static const int32_t kPercentUnorderedThreshold = 30;
5299
5300 // If the percent of file size growth since the last vacuum is higher than
5301 // this percentage we will attempt a vacuum.
5302 static const int32_t kPercentFileSizeGrowthThreshold = 10;
5303
5304 // The number of freelist pages beyond which we will favor an incremental
5305 // vacuum over a full vacuum.
5306 static const int32_t kMaxFreelistThreshold = 5;
5307
5308 // If the percent of unused file bytes in the database exceeds this percentage
5309 // then we will attempt a full vacuum.
5310 static const int32_t kPercentUnusedThreshold = 20;
5311
5312 enum class MaintenanceAction { Nothing = 0, IncrementalVacuum, FullVacuum };
5313
5314 RefPtr<Maintenance> mMaintenance;
5315 // The directory lock is dropped in RunOnOwningThread which serves as a
5316 // cleanup method and is always called.
5317 RefPtr<ClientDirectoryLock> mDirectoryLock;
5318 const OriginMetadata mOriginMetadata;
5319 const nsString mDatabasePath;
5320 int64_t mDirectoryLockId;
5321 nsCOMPtr<nsIRunnable> mCompleteCallback;
5322 const PersistenceType mPersistenceType;
5323 const Maybe<CipherKey> mMaybeKey;
5324 Atomic<bool> mAborted;
5325 DataMutex<nsCOMPtr<mozIStorageConnection>> mSharedStorageConnection;
5326
5327 public:
5328 DatabaseMaintenance(Maintenance* aMaintenance,
5329 RefPtr<ClientDirectoryLock> aDirectoryLock,
5330 PersistenceType aPersistenceType,
5331 const OriginMetadata& aOriginMetadata,
5332 const nsAString& aDatabasePath,
5333 const Maybe<CipherKey>& aMaybeKey)
5334 : Runnable("dom::indexedDB::DatabaseMaintenance"),
5335 mMaintenance(aMaintenance),
5336 mDirectoryLock(std::move(aDirectoryLock)),
5337 mOriginMetadata(aOriginMetadata),
5338 mDatabasePath(aDatabasePath),
5339 mPersistenceType(aPersistenceType),
5340 mMaybeKey{aMaybeKey},
5341 mAborted(false),
5342 mSharedStorageConnection("sharedStorageConnection") {
5343 MOZ_ASSERT(mDirectoryLock)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDirectoryLock)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDirectoryLock))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mDirectoryLock"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5343)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLock" ")"
); do { MOZ_CrashSequence(__null, 5343); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5344
5345 MOZ_ASSERT(mDirectoryLock->Id() >= 0)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDirectoryLock->Id() >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDirectoryLock->Id() >=
0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mDirectoryLock->Id() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5345); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLock->Id() >= 0"
")"); do { MOZ_CrashSequence(__null, 5345); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5346 mDirectoryLockId = mDirectoryLock->Id();
5347 }
5348
5349 const nsAString& DatabasePath() const { return mDatabasePath; }
5350
5351 void WaitForCompletion(nsIRunnable* aCallback) {
5352 AssertIsOnBackgroundThread();
5353 MOZ_ASSERT(!mCompleteCallback)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mCompleteCallback)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mCompleteCallback))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("!mCompleteCallback"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5353)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCompleteCallback"
")"); do { MOZ_CrashSequence(__null, 5353); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5354
5355 mCompleteCallback = aCallback;
5356 }
5357
5358 void Stringify(nsACString& aResult) const;
5359
5360 nsresult Abort();
5361
5362 private:
5363 ~DatabaseMaintenance() override = default;
5364
5365 // Runs on maintenance thread pool. Does maintenance on the database.
5366 void PerformMaintenanceOnDatabase();
5367
5368 // Runs on maintenance thread pool as part of PerformMaintenanceOnDatabase.
5369 nsresult CheckIntegrity(mozIStorageConnection& aConnection, bool* aOk);
5370
5371 // Runs on maintenance thread pool as part of PerformMaintenanceOnDatabase.
5372 nsresult DetermineMaintenanceAction(mozIStorageConnection& aConnection,
5373 nsIFile* aDatabaseFile,
5374 MaintenanceAction* aMaintenanceAction);
5375
5376 // Runs on maintenance thread pool as part of PerformMaintenanceOnDatabase.
5377 void IncrementalVacuum(mozIStorageConnection& aConnection);
5378
5379 // Runs on maintenance thread pool as part of PerformMaintenanceOnDatabase.
5380 void FullVacuum(mozIStorageConnection& aConnection, nsIFile* aDatabaseFile);
5381
5382 // Runs on the PBackground thread. It dispatches a complete callback and
5383 // unregisters from Maintenance.
5384 void RunOnOwningThread();
5385
5386 // Runs on maintenance thread pool. Once it performs database maintenance
5387 // it will dispatch to the PBackground thread on which RunOnOwningThread()
5388 // is called.
5389 void RunOnConnectionThread();
5390
5391 // TODO: Could QuotaClient::IsShuttingDownOnNonBackgroundThread() call
5392 // be part of mMaintenance::IsAborted() ?
5393 inline bool IsAborted() const {
5394 return mMaintenance->IsAborted() || mAborted ||
5395 NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5395)
;
5396 }
5397
5398 NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override;
5399};
5400
5401#ifdef DEBUG1
5402
5403class DEBUGThreadSlower final : public nsIThreadObserver {
5404 public:
5405 DEBUGThreadSlower() {
5406 AssertIsOnBackgroundThread();
5407 MOZ_ASSERT(kDEBUGThreadSleepMS)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(kDEBUGThreadSleepMS)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(kDEBUGThreadSleepMS))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("kDEBUGThreadSleepMS"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5407)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "kDEBUGThreadSleepMS"
")"); do { MOZ_CrashSequence(__null, 5407); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5408 }
5409
5410 NS_DECL_ISUPPORTSpublic: virtual nsresult QueryInterface(const nsIID& aIID
, void** aInstancePtr) override; virtual MozExternalRefCountType
AddRef(void) override; virtual MozExternalRefCountType Release
(void) override; using HasThreadSafeRefCnt = std::false_type;
protected: nsAutoRefCnt mRefCnt; nsAutoOwningThread _mOwningThread
; public:
5411
5412 private:
5413 ~DEBUGThreadSlower() { AssertIsOnBackgroundThread(); }
5414
5415 NS_DECL_NSITHREADOBSERVERvirtual nsresult OnDispatchedEvent(void) override; virtual nsresult
OnProcessNextEvent(nsIThreadInternal *thread, bool mayWait) override
; virtual nsresult AfterProcessNextEvent(nsIThreadInternal *thread
, bool eventWasProcessed) override;
5416};
5417
5418#endif // DEBUG
5419
5420/*******************************************************************************
5421 * Helper classes
5422 ******************************************************************************/
5423
5424// XXX Get rid of FileHelper and move the functions into DatabaseFileManager.
5425// Then, DatabaseFileManager::Get(Journal)Directory and
5426// DatabaseFileManager::GetFileForId might eventually be made private.
5427class MOZ_STACK_CLASS FileHelper final {
5428 const SafeRefPtr<DatabaseFileManager> mFileManager;
5429
5430 LazyInitializedOnce<const NotNull<nsCOMPtr<nsIFile>>> mFileDirectory;
5431 LazyInitializedOnce<const NotNull<nsCOMPtr<nsIFile>>> mJournalDirectory;
5432
5433 class ReadCallback;
5434 LazyInitializedOnce<const NotNull<RefPtr<ReadCallback>>> mReadCallback;
5435
5436 public:
5437 explicit FileHelper(SafeRefPtr<DatabaseFileManager>&& aFileManager)
5438 : mFileManager(std::move(aFileManager)) {
5439 MOZ_ASSERT(mFileManager)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mFileManager)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mFileManager))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mFileManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5439); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileManager"
")"); do { MOZ_CrashSequence(__null, 5439); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5440 }
5441
5442 nsresult Init();
5443
5444 [[nodiscard]] nsCOMPtr<nsIFile> GetFile(const DatabaseFileInfo& aFileInfo);
5445
5446 [[nodiscard]] nsCOMPtr<nsIFile> GetJournalFile(
5447 const DatabaseFileInfo& aFileInfo);
5448
5449 nsresult CreateFileFromStream(nsIFile& aFile, nsIFile& aJournalFile,
5450 nsIInputStream& aInputStream, bool aCompress,
5451 const Maybe<CipherKey>& aMaybeKey);
5452
5453 private:
5454 nsresult SyncCopy(nsIInputStream& aInputStream,
5455 nsIOutputStream& aOutputStream, char* aBuffer,
5456 uint32_t aBufferSize);
5457
5458 nsresult SyncRead(nsIInputStream& aInputStream, char* aBuffer,
5459 uint32_t aBufferSize, uint32_t* aRead);
5460};
5461
5462/*******************************************************************************
5463 * Helper Functions
5464 ******************************************************************************/
5465
5466bool GetFilenameBase(const nsAString& aFilename, const nsAString& aSuffix,
5467 nsDependentSubstring& aFilenameBase) {
5468 MOZ_ASSERT(!aFilename.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aFilename.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!aFilename.IsEmpty()))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("!aFilename.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5468)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aFilename.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 5468); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5469 MOZ_ASSERT(aFilenameBase.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aFilenameBase.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aFilenameBase.IsEmpty()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("aFilenameBase.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5469)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFilenameBase.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 5469); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5470
5471 if (!StringEndsWith(aFilename, aSuffix) ||
5472 aFilename.Length() == aSuffix.Length()) {
5473 return false;
5474 }
5475
5476 MOZ_ASSERT(aFilename.Length() > aSuffix.Length())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aFilename.Length() > aSuffix.Length())>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(aFilename.Length() > aSuffix.Length()))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aFilename.Length() > aSuffix.Length()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5476)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFilename.Length() > aSuffix.Length()"
")"); do { MOZ_CrashSequence(__null, 5476); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5477
5478 aFilenameBase.Rebind(aFilename, 0, aFilename.Length() - aSuffix.Length());
5479 return true;
5480}
5481
5482class EncryptedFileBlobImpl final : public FileBlobImpl {
5483 public:
5484 EncryptedFileBlobImpl(const nsCOMPtr<nsIFile>& aNativeFile,
5485 const DatabaseFileInfo::IdType aId,
5486 const CipherKey& aKey)
5487 : FileBlobImpl{aNativeFile}, mKey{aKey} {
5488 SetFileId(aId);
5489 }
5490
5491 // The size of the blob is stored in the metadata where EncryptedFileBlobImpl
5492 // is used, allowing a child process to set the size lazily. Therefore, the
5493 // parent process is allowed to return a dummy value to avoid sync I/O. In a
5494 // child process, the size should already be set beforehand and GetSize should
5495 // only accesses it. And the reason why 0 is returned, even when the size is
5496 // not set in a child process, is is because the spec doesn't allow Blob.size
5497 // to throw.
5498 uint64_t GetSize(ErrorResult& aRv) override {
5499 MOZ_DIAGNOSTIC_ASSERT(XRE_IsParentProcess() || mLength.isSome())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(XRE_IsParentProcess() || mLength.isSome())>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(XRE_IsParentProcess() || mLength.isSome()))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("XRE_IsParentProcess() || mLength.isSome()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5499)
; AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "XRE_IsParentProcess() || mLength.isSome()"
")"); do { MOZ_CrashSequence(__null, 5499); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5500 return mLength.valueOr(0);
5501 }
5502
5503 void CreateInputStream(nsIInputStream** aInputStream,
5504 ErrorResult& aRv) const override {
5505 nsCOMPtr<nsIInputStream> baseInputStream;
5506 FileBlobImpl::CreateInputStream(getter_AddRefs(baseInputStream), aRv);
5507 if (NS_WARN_IF(aRv.Failed())NS_warn_if_impl(aRv.Failed(), "aRv.Failed()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5507)
) {
5508 return;
5509 }
5510
5511 *aInputStream =
5512 MakeAndAddRef<DecryptingInputStream<IndexedDBCipherStrategy>>(
5513 WrapNotNull(std::move(baseInputStream)), kEncryptedStreamBlockSize,
5514 mKey)
5515 .take();
5516 }
5517
5518 void GetBlobImplType(nsAString& aBlobImplType) const override {
5519 aBlobImplType = u"EncryptedFileBlobImpl"_ns;
5520 }
5521
5522 already_AddRefed<BlobImpl> CreateSlice(uint64_t aStart, uint64_t aLength,
5523 const nsAString& aContentType,
5524 ErrorResult& aRv) const override {
5525 MOZ_CRASH("Not implemented because this should be unreachable.")do { do { } while (false); MOZ_ReportCrash("" "Not implemented because this should be unreachable."
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5525)
; AnnotateMozCrashReason("MOZ_CRASH(" "Not implemented because this should be unreachable."
")"); do { MOZ_CrashSequence(__null, 5525); __attribute__((nomerge
)) ::abort(); } while (false); } while (false)
;
5526 }
5527
5528 private:
5529 const CipherKey mKey;
5530};
5531
5532Result<RefPtr<BlobImpl>, nsresult> CreateFileBlobImpl(
5533 const Database& aDatabase, const nsCOMPtr<nsIFile>& aNativeFile,
5534 const DatabaseFileInfo::IdType aId) {
5535 if (aDatabase.GetFileManager().UsesEncryption()) {
5536 QM_TRY_UNWRAP(auto maybeKey,auto tryResult898 = (aDatabase.GetFileManager().MutableCipherKeyManagerRef
().Get( aDatabase.GetFileManager().CipherKeyIdForFile(aId)));
if ((__builtin_expect(!!(tryResult898.isErr()), 0))) { mozilla
::dom::quota::HandleError("aDatabase.GetFileManager().MutableCipherKeyManagerRef().Get( aDatabase.GetFileManager().CipherKeyIdForFile(aId))"
, tryResult898.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5538, mozilla::dom::quota::Severity::Error); return tryResult898
.propagateErr(); } auto maybeKey = tryResult898.unwrap();
5537 aDatabase.GetFileManager().MutableCipherKeyManagerRef().Get(auto tryResult898 = (aDatabase.GetFileManager().MutableCipherKeyManagerRef
().Get( aDatabase.GetFileManager().CipherKeyIdForFile(aId)));
if ((__builtin_expect(!!(tryResult898.isErr()), 0))) { mozilla
::dom::quota::HandleError("aDatabase.GetFileManager().MutableCipherKeyManagerRef().Get( aDatabase.GetFileManager().CipherKeyIdForFile(aId))"
, tryResult898.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5538, mozilla::dom::quota::Severity::Error); return tryResult898
.propagateErr(); } auto maybeKey = tryResult898.unwrap();
5538 aDatabase.GetFileManager().CipherKeyIdForFile(aId)))auto tryResult898 = (aDatabase.GetFileManager().MutableCipherKeyManagerRef
().Get( aDatabase.GetFileManager().CipherKeyIdForFile(aId)));
if ((__builtin_expect(!!(tryResult898.isErr()), 0))) { mozilla
::dom::quota::HandleError("aDatabase.GetFileManager().MutableCipherKeyManagerRef().Get( aDatabase.GetFileManager().CipherKeyIdForFile(aId))"
, tryResult898.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5538, mozilla::dom::quota::Severity::Error); return tryResult898
.propagateErr(); } auto maybeKey = tryResult898.unwrap();
;
5539 QM_TRY(OkIf(maybeKey.isSome()), Err(NS_ERROR_FAILURE)){auto tryResult899 = (OkIf(maybeKey.isSome())); static_assert
(std::is_empty_v<typename decltype(tryResult899)::ok_type>
); if ((__builtin_expect(!!(tryResult899.isErr()), 0))) { [[maybe_unused
]] auto tryTempError = tryResult899.unwrapErr(); mozilla::dom
::quota::HandleError("OkIf(maybeKey.isSome())", tryTempError,
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5539, mozilla
::dom::quota::Severity::Error); [[maybe_unused]] constexpr const
auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "OkIf(maybeKey.isSome())", tryTempError, Err(NS_ERROR_FAILURE
)); }}
;
5540 return RefPtr<BlobImpl>(
5541 MakeRefPtr<EncryptedFileBlobImpl>(aNativeFile, aId, *maybeKey));
5542 }
5543
5544 auto impl = MakeRefPtr<FileBlobImpl>(aNativeFile);
5545 impl->SetFileId(aId);
5546
5547 return RefPtr<BlobImpl>(std::move(impl));
5548}
5549
5550Result<nsTArray<SerializedStructuredCloneFile>, nsresult>
5551SerializeStructuredCloneFiles(const SafeRefPtr<Database>& aDatabase,
5552 const nsTArray<StructuredCloneFileParent>& aFiles,
5553 bool aForPreprocess) {
5554 AssertIsOnBackgroundThread();
5555 MOZ_ASSERT(aDatabase)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDatabase)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDatabase))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5555); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabase" ")"
); do { MOZ_CrashSequence(__null, 5555); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5556
5557 if (aFiles.IsEmpty()) {
5558 return nsTArray<SerializedStructuredCloneFile>{};
5559 }
5560
5561 const nsCOMPtr<nsIFile> directory =
5562 aDatabase->GetFileManager().GetCheckedDirectory();
5563 QM_TRY(OkIf(directory), Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR),{auto tryResult900 = (OkIf(directory)); static_assert(std::is_empty_v
<typename decltype(tryResult900)::ok_type>); if ((__builtin_expect
(!!(tryResult900.isErr()), 0))) { auto tryTempError = tryResult900
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(directory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(directory)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}
5564 IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult900 = (OkIf(directory)); static_assert(std::is_empty_v
<typename decltype(tryResult900)::ok_type>); if ((__builtin_expect
(!!(tryResult900.isErr()), 0))) { auto tryTempError = tryResult900
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(directory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(directory)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}
;
5565
5566 nsTArray<SerializedStructuredCloneFile> serializedStructuredCloneFiles;
5567 QM_TRY(OkIf(serializedStructuredCloneFiles.SetCapacity(aFiles.Length(),{auto tryResult901 = (OkIf(serializedStructuredCloneFiles.SetCapacity
(aFiles.Length(), fallible))); static_assert(std::is_empty_v<
typename decltype(tryResult901)::ok_type>); if ((__builtin_expect
(!!(tryResult901.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult901.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(serializedStructuredCloneFiles.SetCapacity(aFiles.Length(), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5569, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(serializedStructuredCloneFiles.SetCapacity(aFiles.Length(), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}
5568 fallible)),{auto tryResult901 = (OkIf(serializedStructuredCloneFiles.SetCapacity
(aFiles.Length(), fallible))); static_assert(std::is_empty_v<
typename decltype(tryResult901)::ok_type>); if ((__builtin_expect
(!!(tryResult901.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult901.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(serializedStructuredCloneFiles.SetCapacity(aFiles.Length(), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5569, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(serializedStructuredCloneFiles.SetCapacity(aFiles.Length(), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}
5569 Err(NS_ERROR_OUT_OF_MEMORY)){auto tryResult901 = (OkIf(serializedStructuredCloneFiles.SetCapacity
(aFiles.Length(), fallible))); static_assert(std::is_empty_v<
typename decltype(tryResult901)::ok_type>); if ((__builtin_expect
(!!(tryResult901.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult901.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(serializedStructuredCloneFiles.SetCapacity(aFiles.Length(), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5569, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(serializedStructuredCloneFiles.SetCapacity(aFiles.Length(), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}
;
5570
5571 QM_TRY(TransformIfAbortOnErr({auto tryResult905 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5580);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult902
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult902)::ok_type>); if ((__builtin_expect(
!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone
: if (!aForPreprocess) { return SerializedStructuredCloneFile
{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 =
(CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().
Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) {
auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::
quota::HandleError("CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const
auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904
= (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert
(std::is_empty_v<typename decltype(tryResult904)::ok_type>
); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto
tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5629); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult905)::ok_type>
); if ((__builtin_expect(!!(tryResult905.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5580); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult902 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult902)::ok_type>); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 = (CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) { auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::quota::HandleError(\"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult904)::ok_type>); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5629); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult905.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5631, mozilla::dom::quota::Severity::Error); return tryResult905
.propagateErr(); }}
5572 aFiles, MakeBackInserter(serializedStructuredCloneFiles),{auto tryResult905 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5580);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult902
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult902)::ok_type>); if ((__builtin_expect(
!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone
: if (!aForPreprocess) { return SerializedStructuredCloneFile
{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 =
(CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().
Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) {
auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::
quota::HandleError("CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const
auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904
= (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert
(std::is_empty_v<typename decltype(tryResult904)::ok_type>
); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto
tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5629); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult905)::ok_type>
); if ((__builtin_expect(!!(tryResult905.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5580); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult902 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult902)::ok_type>); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 = (CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) { auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::quota::HandleError(\"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult904)::ok_type>); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5629); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult905.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5631, mozilla::dom::quota::Severity::Error); return tryResult905
.propagateErr(); }}
5573 [aForPreprocess](const auto& file) {{auto tryResult905 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5580);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult902
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult902)::ok_type>); if ((__builtin_expect(
!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone
: if (!aForPreprocess) { return SerializedStructuredCloneFile
{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 =
(CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().
Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) {
auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::
quota::HandleError("CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const
auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904
= (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert
(std::is_empty_v<typename decltype(tryResult904)::ok_type>
); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto
tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5629); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult905)::ok_type>
); if ((__builtin_expect(!!(tryResult905.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5580); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult902 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult902)::ok_type>); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 = (CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) { auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::quota::HandleError(\"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult904)::ok_type>); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5629); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult905.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5631, mozilla::dom::quota::Severity::Error); return tryResult905
.propagateErr(); }}
5574 return !aForPreprocess ||{auto tryResult905 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5580);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult902
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult902)::ok_type>); if ((__builtin_expect(
!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone
: if (!aForPreprocess) { return SerializedStructuredCloneFile
{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 =
(CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().
Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) {
auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::
quota::HandleError("CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const
auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904
= (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert
(std::is_empty_v<typename decltype(tryResult904)::ok_type>
); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto
tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5629); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult905)::ok_type>
); if ((__builtin_expect(!!(tryResult905.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5580); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult902 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult902)::ok_type>); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 = (CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) { auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::quota::HandleError(\"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult904)::ok_type>); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5629); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult905.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5631, mozilla::dom::quota::Severity::Error); return tryResult905
.propagateErr(); }}
5575 file.Type() == StructuredCloneFileBase::eStructuredClone;{auto tryResult905 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5580);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult902
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult902)::ok_type>); if ((__builtin_expect(
!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone
: if (!aForPreprocess) { return SerializedStructuredCloneFile
{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 =
(CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().
Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) {
auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::
quota::HandleError("CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const
auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904
= (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert
(std::is_empty_v<typename decltype(tryResult904)::ok_type>
); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto
tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5629); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult905)::ok_type>
); if ((__builtin_expect(!!(tryResult905.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5580); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult902 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult902)::ok_type>); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 = (CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) { auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::quota::HandleError(\"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult904)::ok_type>); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5629); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult905.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5631, mozilla::dom::quota::Severity::Error); return tryResult905
.propagateErr(); }}
5576 },{auto tryResult905 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5580);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult902
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult902)::ok_type>); if ((__builtin_expect(
!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone
: if (!aForPreprocess) { return SerializedStructuredCloneFile
{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 =
(CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().
Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) {
auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::
quota::HandleError("CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const
auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904
= (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert
(std::is_empty_v<typename decltype(tryResult904)::ok_type>
); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto
tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5629); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult905)::ok_type>
); if ((__builtin_expect(!!(tryResult905.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5580); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult902 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult902)::ok_type>); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 = (CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) { auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::quota::HandleError(\"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult904)::ok_type>); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5629); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult905.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5631, mozilla::dom::quota::Severity::Error); return tryResult905
.propagateErr(); }}
5577 [&directory, &aDatabase, aForPreprocess]({auto tryResult905 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5580);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult902
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult902)::ok_type>); if ((__builtin_expect(
!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone
: if (!aForPreprocess) { return SerializedStructuredCloneFile
{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 =
(CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().
Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) {
auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::
quota::HandleError("CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const
auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904
= (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert
(std::is_empty_v<typename decltype(tryResult904)::ok_type>
); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto
tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5629); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult905)::ok_type>
); if ((__builtin_expect(!!(tryResult905.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5580); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult902 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult902)::ok_type>); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 = (CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) { auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::quota::HandleError(\"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult904)::ok_type>); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5629); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult905.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5631, mozilla::dom::quota::Severity::Error); return tryResult905
.propagateErr(); }}
5578 const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> {{auto tryResult905 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5580);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult902
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult902)::ok_type>); if ((__builtin_expect(
!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone
: if (!aForPreprocess) { return SerializedStructuredCloneFile
{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 =
(CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().
Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) {
auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::
quota::HandleError("CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const
auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904
= (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert
(std::is_empty_v<typename decltype(tryResult904)::ok_type>
); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto
tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5629); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult905)::ok_type>
); if ((__builtin_expect(!!(tryResult905.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5580); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult902 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult902)::ok_type>); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 = (CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) { auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::quota::HandleError(\"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult904)::ok_type>); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5629); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult905.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5631, mozilla::dom::quota::Severity::Error); return tryResult905
.propagateErr(); }}
5579 const int64_t fileId = file.FileInfo().Id();{auto tryResult905 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5580);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult902
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult902)::ok_type>); if ((__builtin_expect(
!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone
: if (!aForPreprocess) { return SerializedStructuredCloneFile
{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 =
(CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().
Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) {
auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::
quota::HandleError("CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const
auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904
= (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert
(std::is_empty_v<typename decltype(tryResult904)::ok_type>
); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto
tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5629); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult905)::ok_type>
); if ((__builtin_expect(!!(tryResult905.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5580); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult902 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult902)::ok_type>); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 = (CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) { auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::quota::HandleError(\"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult904)::ok_type>); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5629); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult905.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5631, mozilla::dom::quota::Severity::Error); return tryResult905
.propagateErr(); }}
5580 MOZ_ASSERT(fileId > 0);{auto tryResult905 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5580);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult902
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult902)::ok_type>); if ((__builtin_expect(
!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone
: if (!aForPreprocess) { return SerializedStructuredCloneFile
{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 =
(CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().
Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) {
auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::
quota::HandleError("CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const
auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904
= (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert
(std::is_empty_v<typename decltype(tryResult904)::ok_type>
); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto
tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5629); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult905)::ok_type>
); if ((__builtin_expect(!!(tryResult905.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5580); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult902 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult902)::ok_type>); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 = (CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) { auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::quota::HandleError(\"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult904)::ok_type>); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5629); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult905.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5631, mozilla::dom::quota::Severity::Error); return tryResult905
.propagateErr(); }}
5581
5582 const nsCOMPtr<nsIFile> nativeFile ={auto tryResult905 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5580);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult902
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult902)::ok_type>); if ((__builtin_expect(
!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone
: if (!aForPreprocess) { return SerializedStructuredCloneFile
{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 =
(CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().
Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) {
auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::
quota::HandleError("CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const
auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904
= (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert
(std::is_empty_v<typename decltype(tryResult904)::ok_type>
); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto
tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5629); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult905)::ok_type>
); if ((__builtin_expect(!!(tryResult905.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5580); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult902 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult902)::ok_type>); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 = (CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) { auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::quota::HandleError(\"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult904)::ok_type>); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5629); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult905.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5631, mozilla::dom::quota::Severity::Error); return tryResult905
.propagateErr(); }}
5583 mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId({auto tryResult905 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5580);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult902
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult902)::ok_type>); if ((__builtin_expect(
!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone
: if (!aForPreprocess) { return SerializedStructuredCloneFile
{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 =
(CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().
Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) {
auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::
quota::HandleError("CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const
auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904
= (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert
(std::is_empty_v<typename decltype(tryResult904)::ok_type>
); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto
tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5629); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult905)::ok_type>
); if ((__builtin_expect(!!(tryResult905.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5580); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult902 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult902)::ok_type>); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 = (CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) { auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::quota::HandleError(\"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult904)::ok_type>); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5629); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult905.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5631, mozilla::dom::quota::Severity::Error); return tryResult905
.propagateErr(); }}
5584 directory, fileId);{auto tryResult905 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5580);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult902
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult902)::ok_type>); if ((__builtin_expect(
!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone
: if (!aForPreprocess) { return SerializedStructuredCloneFile
{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 =
(CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().
Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) {
auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::
quota::HandleError("CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const
auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904
= (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert
(std::is_empty_v<typename decltype(tryResult904)::ok_type>
); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto
tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5629); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult905)::ok_type>
); if ((__builtin_expect(!!(tryResult905.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5580); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult902 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult902)::ok_type>); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 = (CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) { auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::quota::HandleError(\"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult904)::ok_type>); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5629); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult905.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5631, mozilla::dom::quota::Severity::Error); return tryResult905
.propagateErr(); }}
5585 QM_TRY(OkIf(nativeFile), Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR),{auto tryResult905 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5580);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult902
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult902)::ok_type>); if ((__builtin_expect(
!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone
: if (!aForPreprocess) { return SerializedStructuredCloneFile
{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 =
(CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().
Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) {
auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::
quota::HandleError("CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const
auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904
= (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert
(std::is_empty_v<typename decltype(tryResult904)::ok_type>
); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto
tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5629); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult905)::ok_type>
); if ((__builtin_expect(!!(tryResult905.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5580); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult902 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult902)::ok_type>); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 = (CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) { auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::quota::HandleError(\"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult904)::ok_type>); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5629); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult905.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5631, mozilla::dom::quota::Severity::Error); return tryResult905
.propagateErr(); }}
5586 IDB_REPORT_INTERNAL_ERR_LAMBDA);{auto tryResult905 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5580);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult902
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult902)::ok_type>); if ((__builtin_expect(
!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone
: if (!aForPreprocess) { return SerializedStructuredCloneFile
{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 =
(CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().
Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) {
auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::
quota::HandleError("CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const
auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904
= (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert
(std::is_empty_v<typename decltype(tryResult904)::ok_type>
); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto
tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5629); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult905)::ok_type>
); if ((__builtin_expect(!!(tryResult905.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5580); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult902 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult902)::ok_type>); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 = (CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) { auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::quota::HandleError(\"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult904)::ok_type>); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5629); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult905.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5631, mozilla::dom::quota::Severity::Error); return tryResult905
.propagateErr(); }}
5587
5588 switch (file.Type()) {{auto tryResult905 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5580);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult902
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult902)::ok_type>); if ((__builtin_expect(
!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone
: if (!aForPreprocess) { return SerializedStructuredCloneFile
{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 =
(CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().
Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) {
auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::
quota::HandleError("CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const
auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904
= (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert
(std::is_empty_v<typename decltype(tryResult904)::ok_type>
); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto
tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5629); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult905)::ok_type>
); if ((__builtin_expect(!!(tryResult905.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5580); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult902 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult902)::ok_type>); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 = (CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) { auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::quota::HandleError(\"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult904)::ok_type>); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5629); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult905.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5631, mozilla::dom::quota::Severity::Error); return tryResult905
.propagateErr(); }}
5589 case StructuredCloneFileBase::eStructuredClone:{auto tryResult905 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5580);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult902
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult902)::ok_type>); if ((__builtin_expect(
!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone
: if (!aForPreprocess) { return SerializedStructuredCloneFile
{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 =
(CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().
Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) {
auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::
quota::HandleError("CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const
auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904
= (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert
(std::is_empty_v<typename decltype(tryResult904)::ok_type>
); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto
tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5629); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult905)::ok_type>
); if ((__builtin_expect(!!(tryResult905.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5580); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult902 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult902)::ok_type>); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 = (CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) { auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::quota::HandleError(\"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult904)::ok_type>); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5629); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult905.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5631, mozilla::dom::quota::Severity::Error); return tryResult905
.propagateErr(); }}
5590 if (!aForPreprocess) {{auto tryResult905 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5580);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult902
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult902)::ok_type>); if ((__builtin_expect(
!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone
: if (!aForPreprocess) { return SerializedStructuredCloneFile
{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 =
(CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().
Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) {
auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::
quota::HandleError("CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const
auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904
= (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert
(std::is_empty_v<typename decltype(tryResult904)::ok_type>
); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto
tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5629); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult905)::ok_type>
); if ((__builtin_expect(!!(tryResult905.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5580); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult902 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult902)::ok_type>); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 = (CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) { auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::quota::HandleError(\"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult904)::ok_type>); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5629); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult905.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5631, mozilla::dom::quota::Severity::Error); return tryResult905
.propagateErr(); }}
5591 return SerializedStructuredCloneFile{{auto tryResult905 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5580);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult902
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult902)::ok_type>); if ((__builtin_expect(
!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone
: if (!aForPreprocess) { return SerializedStructuredCloneFile
{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 =
(CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().
Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) {
auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::
quota::HandleError("CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const
auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904
= (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert
(std::is_empty_v<typename decltype(tryResult904)::ok_type>
); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto
tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5629); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult905)::ok_type>
); if ((__builtin_expect(!!(tryResult905.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5580); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult902 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult902)::ok_type>); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 = (CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) { auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::quota::HandleError(\"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult904)::ok_type>); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5629); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult905.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5631, mozilla::dom::quota::Severity::Error); return tryResult905
.propagateErr(); }}
5592 null_t(), StructuredCloneFileBase::eStructuredClone};{auto tryResult905 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5580);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult902
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult902)::ok_type>); if ((__builtin_expect(
!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone
: if (!aForPreprocess) { return SerializedStructuredCloneFile
{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 =
(CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().
Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) {
auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::
quota::HandleError("CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const
auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904
= (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert
(std::is_empty_v<typename decltype(tryResult904)::ok_type>
); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto
tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5629); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult905)::ok_type>
); if ((__builtin_expect(!!(tryResult905.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5580); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult902 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult902)::ok_type>); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 = (CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) { auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::quota::HandleError(\"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult904)::ok_type>); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5629); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult905.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5631, mozilla::dom::quota::Severity::Error); return tryResult905
.propagateErr(); }}
5593 }{auto tryResult905 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5580);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult902
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult902)::ok_type>); if ((__builtin_expect(
!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone
: if (!aForPreprocess) { return SerializedStructuredCloneFile
{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 =
(CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().
Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) {
auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::
quota::HandleError("CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const
auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904
= (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert
(std::is_empty_v<typename decltype(tryResult904)::ok_type>
); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto
tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5629); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult905)::ok_type>
); if ((__builtin_expect(!!(tryResult905.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5580); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult902 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult902)::ok_type>); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 = (CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) { auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::quota::HandleError(\"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult904)::ok_type>); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5629); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult905.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5631, mozilla::dom::quota::Severity::Error); return tryResult905
.propagateErr(); }}
5594
5595 [[fallthrough]];{auto tryResult905 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5580);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult902
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult902)::ok_type>); if ((__builtin_expect(
!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone
: if (!aForPreprocess) { return SerializedStructuredCloneFile
{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 =
(CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().
Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) {
auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::
quota::HandleError("CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const
auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904
= (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert
(std::is_empty_v<typename decltype(tryResult904)::ok_type>
); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto
tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5629); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult905)::ok_type>
); if ((__builtin_expect(!!(tryResult905.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5580); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult902 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult902)::ok_type>); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 = (CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) { auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::quota::HandleError(\"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult904)::ok_type>); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5629); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult905.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5631, mozilla::dom::quota::Severity::Error); return tryResult905
.propagateErr(); }}
5596
5597 case StructuredCloneFileBase::eBlob: {{auto tryResult905 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5580);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult902
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult902)::ok_type>); if ((__builtin_expect(
!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone
: if (!aForPreprocess) { return SerializedStructuredCloneFile
{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 =
(CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().
Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) {
auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::
quota::HandleError("CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const
auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904
= (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert
(std::is_empty_v<typename decltype(tryResult904)::ok_type>
); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto
tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5629); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult905)::ok_type>
); if ((__builtin_expect(!!(tryResult905.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5580); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult902 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult902)::ok_type>); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 = (CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) { auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::quota::HandleError(\"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult904)::ok_type>); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5629); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult905.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5631, mozilla::dom::quota::Severity::Error); return tryResult905
.propagateErr(); }}
5598 QM_TRY_UNWRAP(const auto impl,{auto tryResult905 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5580);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult902
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult902)::ok_type>); if ((__builtin_expect(
!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone
: if (!aForPreprocess) { return SerializedStructuredCloneFile
{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 =
(CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().
Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) {
auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::
quota::HandleError("CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const
auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904
= (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert
(std::is_empty_v<typename decltype(tryResult904)::ok_type>
); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto
tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5629); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult905)::ok_type>
); if ((__builtin_expect(!!(tryResult905.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5580); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult902 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult902)::ok_type>); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 = (CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) { auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::quota::HandleError(\"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult904)::ok_type>); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5629); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult905.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5631, mozilla::dom::quota::Severity::Error); return tryResult905
.propagateErr(); }}
5599 CreateFileBlobImpl(*aDatabase, nativeFile,{auto tryResult905 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5580);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult902
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult902)::ok_type>); if ((__builtin_expect(
!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone
: if (!aForPreprocess) { return SerializedStructuredCloneFile
{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 =
(CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().
Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) {
auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::
quota::HandleError("CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const
auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904
= (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert
(std::is_empty_v<typename decltype(tryResult904)::ok_type>
); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto
tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5629); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult905)::ok_type>
); if ((__builtin_expect(!!(tryResult905.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5580); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult902 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult902)::ok_type>); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 = (CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) { auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::quota::HandleError(\"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult904)::ok_type>); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5629); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult905.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5631, mozilla::dom::quota::Severity::Error); return tryResult905
.propagateErr(); }}
5600 file.FileInfo().Id()),{auto tryResult905 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5580);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult902
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult902)::ok_type>); if ((__builtin_expect(
!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone
: if (!aForPreprocess) { return SerializedStructuredCloneFile
{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 =
(CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().
Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) {
auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::
quota::HandleError("CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const
auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904
= (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert
(std::is_empty_v<typename decltype(tryResult904)::ok_type>
); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto
tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5629); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult905)::ok_type>
); if ((__builtin_expect(!!(tryResult905.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5580); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult902 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult902)::ok_type>); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 = (CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) { auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::quota::HandleError(\"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult904)::ok_type>); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5629); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult905.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5631, mozilla::dom::quota::Severity::Error); return tryResult905
.propagateErr(); }}
5601 Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR),{auto tryResult905 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5580);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult902
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult902)::ok_type>); if ((__builtin_expect(
!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone
: if (!aForPreprocess) { return SerializedStructuredCloneFile
{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 =
(CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().
Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) {
auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::
quota::HandleError("CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const
auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904
= (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert
(std::is_empty_v<typename decltype(tryResult904)::ok_type>
); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto
tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5629); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult905)::ok_type>
); if ((__builtin_expect(!!(tryResult905.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5580); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult902 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult902)::ok_type>); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 = (CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) { auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::quota::HandleError(\"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult904)::ok_type>); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5629); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult905.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5631, mozilla::dom::quota::Severity::Error); return tryResult905
.propagateErr(); }}
5602 IDB_REPORT_INTERNAL_ERR_LAMBDA);{auto tryResult905 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5580);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult902
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult902)::ok_type>); if ((__builtin_expect(
!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone
: if (!aForPreprocess) { return SerializedStructuredCloneFile
{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 =
(CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().
Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) {
auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::
quota::HandleError("CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const
auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904
= (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert
(std::is_empty_v<typename decltype(tryResult904)::ok_type>
); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto
tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5629); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult905)::ok_type>
); if ((__builtin_expect(!!(tryResult905.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5580); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult902 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult902)::ok_type>); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 = (CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) { auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::quota::HandleError(\"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult904)::ok_type>); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5629); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult905.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5631, mozilla::dom::quota::Severity::Error); return tryResult905
.propagateErr(); }}
5603
5604 IPCBlob ipcBlob;{auto tryResult905 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5580);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult902
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult902)::ok_type>); if ((__builtin_expect(
!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone
: if (!aForPreprocess) { return SerializedStructuredCloneFile
{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 =
(CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().
Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) {
auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::
quota::HandleError("CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const
auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904
= (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert
(std::is_empty_v<typename decltype(tryResult904)::ok_type>
); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto
tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5629); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult905)::ok_type>
); if ((__builtin_expect(!!(tryResult905.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5580); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult902 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult902)::ok_type>); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 = (CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) { auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::quota::HandleError(\"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult904)::ok_type>); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5629); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult905.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5631, mozilla::dom::quota::Severity::Error); return tryResult905
.propagateErr(); }}
5605
5606 // This can only fail if the child has crashed.{auto tryResult905 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5580);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult902
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult902)::ok_type>); if ((__builtin_expect(
!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone
: if (!aForPreprocess) { return SerializedStructuredCloneFile
{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 =
(CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().
Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) {
auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::
quota::HandleError("CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const
auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904
= (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert
(std::is_empty_v<typename decltype(tryResult904)::ok_type>
); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto
tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5629); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult905)::ok_type>
); if ((__builtin_expect(!!(tryResult905.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5580); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult902 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult902)::ok_type>); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 = (CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) { auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::quota::HandleError(\"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult904)::ok_type>); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5629); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult905.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5631, mozilla::dom::quota::Severity::Error); return tryResult905
.propagateErr(); }}
5607 QM_TRY(MOZ_TO_RESULT(IPCBlobUtils::Serialize(impl, ipcBlob)),{auto tryResult905 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5580);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult902
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult902)::ok_type>); if ((__builtin_expect(
!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone
: if (!aForPreprocess) { return SerializedStructuredCloneFile
{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 =
(CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().
Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) {
auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::
quota::HandleError("CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const
auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904
= (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert
(std::is_empty_v<typename decltype(tryResult904)::ok_type>
); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto
tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5629); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult905)::ok_type>
); if ((__builtin_expect(!!(tryResult905.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5580); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult902 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult902)::ok_type>); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 = (CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) { auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::quota::HandleError(\"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult904)::ok_type>); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5629); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult905.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5631, mozilla::dom::quota::Severity::Error); return tryResult905
.propagateErr(); }}
5608 Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR),{auto tryResult905 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5580);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult902
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult902)::ok_type>); if ((__builtin_expect(
!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone
: if (!aForPreprocess) { return SerializedStructuredCloneFile
{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 =
(CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().
Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) {
auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::
quota::HandleError("CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const
auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904
= (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert
(std::is_empty_v<typename decltype(tryResult904)::ok_type>
); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto
tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5629); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult905)::ok_type>
); if ((__builtin_expect(!!(tryResult905.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5580); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult902 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult902)::ok_type>); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 = (CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) { auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::quota::HandleError(\"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult904)::ok_type>); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5629); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult905.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5631, mozilla::dom::quota::Severity::Error); return tryResult905
.propagateErr(); }}
5609 IDB_REPORT_INTERNAL_ERR_LAMBDA);{auto tryResult905 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5580);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult902
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult902)::ok_type>); if ((__builtin_expect(
!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone
: if (!aForPreprocess) { return SerializedStructuredCloneFile
{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 =
(CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().
Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) {
auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::
quota::HandleError("CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const
auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904
= (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert
(std::is_empty_v<typename decltype(tryResult904)::ok_type>
); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto
tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5629); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult905)::ok_type>
); if ((__builtin_expect(!!(tryResult905.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5580); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult902 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult902)::ok_type>); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 = (CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) { auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::quota::HandleError(\"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult904)::ok_type>); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5629); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult905.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5631, mozilla::dom::quota::Severity::Error); return tryResult905
.propagateErr(); }}
5610
5611 aDatabase->MapBlob(ipcBlob, file.FileInfoPtr());{auto tryResult905 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5580);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult902
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult902)::ok_type>); if ((__builtin_expect(
!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone
: if (!aForPreprocess) { return SerializedStructuredCloneFile
{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 =
(CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().
Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) {
auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::
quota::HandleError("CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const
auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904
= (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert
(std::is_empty_v<typename decltype(tryResult904)::ok_type>
); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto
tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5629); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult905)::ok_type>
); if ((__builtin_expect(!!(tryResult905.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5580); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult902 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult902)::ok_type>); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 = (CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) { auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::quota::HandleError(\"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult904)::ok_type>); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5629); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult905.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5631, mozilla::dom::quota::Severity::Error); return tryResult905
.propagateErr(); }}
5612
5613 return SerializedStructuredCloneFile{ipcBlob, file.Type()};{auto tryResult905 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5580);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult902
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult902)::ok_type>); if ((__builtin_expect(
!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone
: if (!aForPreprocess) { return SerializedStructuredCloneFile
{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 =
(CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().
Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) {
auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::
quota::HandleError("CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const
auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904
= (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert
(std::is_empty_v<typename decltype(tryResult904)::ok_type>
); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto
tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5629); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult905)::ok_type>
); if ((__builtin_expect(!!(tryResult905.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5580); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult902 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult902)::ok_type>); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 = (CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) { auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::quota::HandleError(\"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult904)::ok_type>); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5629); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult905.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5631, mozilla::dom::quota::Severity::Error); return tryResult905
.propagateErr(); }}
5614 }{auto tryResult905 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5580);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult902
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult902)::ok_type>); if ((__builtin_expect(
!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone
: if (!aForPreprocess) { return SerializedStructuredCloneFile
{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 =
(CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().
Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) {
auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::
quota::HandleError("CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const
auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904
= (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert
(std::is_empty_v<typename decltype(tryResult904)::ok_type>
); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto
tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5629); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult905)::ok_type>
); if ((__builtin_expect(!!(tryResult905.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5580); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult902 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult902)::ok_type>); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 = (CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) { auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::quota::HandleError(\"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult904)::ok_type>); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5629); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult905.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5631, mozilla::dom::quota::Severity::Error); return tryResult905
.propagateErr(); }}
5615
5616 case StructuredCloneFileBase::eMutableFile:{auto tryResult905 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5580);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult902
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult902)::ok_type>); if ((__builtin_expect(
!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone
: if (!aForPreprocess) { return SerializedStructuredCloneFile
{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 =
(CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().
Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) {
auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::
quota::HandleError("CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const
auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904
= (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert
(std::is_empty_v<typename decltype(tryResult904)::ok_type>
); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto
tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5629); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult905)::ok_type>
); if ((__builtin_expect(!!(tryResult905.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5580); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult902 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult902)::ok_type>); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 = (CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) { auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::quota::HandleError(\"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult904)::ok_type>); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5629); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult905.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5631, mozilla::dom::quota::Severity::Error); return tryResult905
.propagateErr(); }}
5617 case StructuredCloneFileBase::eWasmBytecode:{auto tryResult905 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5580);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult902
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult902)::ok_type>); if ((__builtin_expect(
!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone
: if (!aForPreprocess) { return SerializedStructuredCloneFile
{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 =
(CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().
Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) {
auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::
quota::HandleError("CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const
auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904
= (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert
(std::is_empty_v<typename decltype(tryResult904)::ok_type>
); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto
tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5629); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult905)::ok_type>
); if ((__builtin_expect(!!(tryResult905.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5580); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult902 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult902)::ok_type>); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 = (CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) { auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::quota::HandleError(\"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult904)::ok_type>); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5629); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult905.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5631, mozilla::dom::quota::Severity::Error); return tryResult905
.propagateErr(); }}
5618 case StructuredCloneFileBase::eWasmCompiled: {{auto tryResult905 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5580);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult902
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult902)::ok_type>); if ((__builtin_expect(
!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone
: if (!aForPreprocess) { return SerializedStructuredCloneFile
{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 =
(CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().
Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) {
auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::
quota::HandleError("CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const
auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904
= (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert
(std::is_empty_v<typename decltype(tryResult904)::ok_type>
); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto
tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5629); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult905)::ok_type>
); if ((__builtin_expect(!!(tryResult905.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5580); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult902 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult902)::ok_type>); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 = (CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) { auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::quota::HandleError(\"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult904)::ok_type>); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5629); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult905.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5631, mozilla::dom::quota::Severity::Error); return tryResult905
.propagateErr(); }}
5619 // Set file() to null, support for storing WebAssembly.Modules has{auto tryResult905 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5580);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult902
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult902)::ok_type>); if ((__builtin_expect(
!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone
: if (!aForPreprocess) { return SerializedStructuredCloneFile
{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 =
(CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().
Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) {
auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::
quota::HandleError("CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const
auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904
= (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert
(std::is_empty_v<typename decltype(tryResult904)::ok_type>
); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto
tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5629); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult905)::ok_type>
); if ((__builtin_expect(!!(tryResult905.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5580); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult902 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult902)::ok_type>); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 = (CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) { auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::quota::HandleError(\"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult904)::ok_type>); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5629); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult905.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5631, mozilla::dom::quota::Severity::Error); return tryResult905
.propagateErr(); }}
5620 // been removed in bug 1469395. Support for de-serialization of{auto tryResult905 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5580);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult902
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult902)::ok_type>); if ((__builtin_expect(
!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone
: if (!aForPreprocess) { return SerializedStructuredCloneFile
{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 =
(CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().
Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) {
auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::
quota::HandleError("CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const
auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904
= (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert
(std::is_empty_v<typename decltype(tryResult904)::ok_type>
); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto
tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5629); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult905)::ok_type>
); if ((__builtin_expect(!!(tryResult905.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5580); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult902 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult902)::ok_type>); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 = (CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) { auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::quota::HandleError(\"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult904)::ok_type>); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5629); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult905.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5631, mozilla::dom::quota::Severity::Error); return tryResult905
.propagateErr(); }}
5621 // WebAssembly.Modules modules has been removed in bug 1561876.{auto tryResult905 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5580);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult902
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult902)::ok_type>); if ((__builtin_expect(
!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone
: if (!aForPreprocess) { return SerializedStructuredCloneFile
{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 =
(CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().
Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) {
auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::
quota::HandleError("CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const
auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904
= (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert
(std::is_empty_v<typename decltype(tryResult904)::ok_type>
); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto
tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5629); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult905)::ok_type>
); if ((__builtin_expect(!!(tryResult905.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5580); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult902 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult902)::ok_type>); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 = (CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) { auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::quota::HandleError(\"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult904)::ok_type>); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5629); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult905.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5631, mozilla::dom::quota::Severity::Error); return tryResult905
.propagateErr(); }}
5622 // Support for MutableFile has been removed in bug 1500343. Full{auto tryResult905 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5580);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult902
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult902)::ok_type>); if ((__builtin_expect(
!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone
: if (!aForPreprocess) { return SerializedStructuredCloneFile
{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 =
(CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().
Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) {
auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::
quota::HandleError("CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const
auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904
= (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert
(std::is_empty_v<typename decltype(tryResult904)::ok_type>
); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto
tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5629); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult905)::ok_type>
); if ((__builtin_expect(!!(tryResult905.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5580); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult902 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult902)::ok_type>); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 = (CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) { auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::quota::HandleError(\"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult904)::ok_type>); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5629); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult905.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5631, mozilla::dom::quota::Severity::Error); return tryResult905
.propagateErr(); }}
5623 // removal is tracked in bug 1487479.{auto tryResult905 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5580);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult902
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult902)::ok_type>); if ((__builtin_expect(
!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone
: if (!aForPreprocess) { return SerializedStructuredCloneFile
{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 =
(CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().
Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) {
auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::
quota::HandleError("CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const
auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904
= (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert
(std::is_empty_v<typename decltype(tryResult904)::ok_type>
); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto
tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5629); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult905)::ok_type>
); if ((__builtin_expect(!!(tryResult905.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5580); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult902 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult902)::ok_type>); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 = (CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) { auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::quota::HandleError(\"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult904)::ok_type>); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5629); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult905.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5631, mozilla::dom::quota::Severity::Error); return tryResult905
.propagateErr(); }}
5624
5625 return SerializedStructuredCloneFile{null_t(), file.Type()};{auto tryResult905 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5580);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult902
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult902)::ok_type>); if ((__builtin_expect(
!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone
: if (!aForPreprocess) { return SerializedStructuredCloneFile
{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 =
(CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().
Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) {
auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::
quota::HandleError("CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const
auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904
= (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert
(std::is_empty_v<typename decltype(tryResult904)::ok_type>
); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto
tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5629); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult905)::ok_type>
); if ((__builtin_expect(!!(tryResult905.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5580); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult902 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult902)::ok_type>); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 = (CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) { auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::quota::HandleError(\"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult904)::ok_type>); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5629); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult905.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5631, mozilla::dom::quota::Severity::Error); return tryResult905
.propagateErr(); }}
5626 }{auto tryResult905 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5580);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult902
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult902)::ok_type>); if ((__builtin_expect(
!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone
: if (!aForPreprocess) { return SerializedStructuredCloneFile
{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 =
(CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().
Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) {
auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::
quota::HandleError("CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const
auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904
= (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert
(std::is_empty_v<typename decltype(tryResult904)::ok_type>
); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto
tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5629); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult905)::ok_type>
); if ((__builtin_expect(!!(tryResult905.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5580); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult902 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult902)::ok_type>); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 = (CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) { auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::quota::HandleError(\"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult904)::ok_type>); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5629); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult905.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5631, mozilla::dom::quota::Severity::Error); return tryResult905
.propagateErr(); }}
5627
5628 default:{auto tryResult905 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5580);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult902
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult902)::ok_type>); if ((__builtin_expect(
!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone
: if (!aForPreprocess) { return SerializedStructuredCloneFile
{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 =
(CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().
Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) {
auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::
quota::HandleError("CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const
auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904
= (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert
(std::is_empty_v<typename decltype(tryResult904)::ok_type>
); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto
tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5629); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult905)::ok_type>
); if ((__builtin_expect(!!(tryResult905.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5580); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult902 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult902)::ok_type>); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 = (CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) { auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::quota::HandleError(\"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult904)::ok_type>); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5629); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult905.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5631, mozilla::dom::quota::Severity::Error); return tryResult905
.propagateErr(); }}
5629 MOZ_CRASH("Should never get here!");{auto tryResult905 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5580);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult902
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult902)::ok_type>); if ((__builtin_expect(
!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone
: if (!aForPreprocess) { return SerializedStructuredCloneFile
{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 =
(CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().
Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) {
auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::
quota::HandleError("CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const
auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904
= (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert
(std::is_empty_v<typename decltype(tryResult904)::ok_type>
); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto
tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5629); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult905)::ok_type>
); if ((__builtin_expect(!!(tryResult905.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5580); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult902 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult902)::ok_type>); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 = (CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) { auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::quota::HandleError(\"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult904)::ok_type>); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5629); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult905.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5631, mozilla::dom::quota::Severity::Error); return tryResult905
.propagateErr(); }}
5630 }{auto tryResult905 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5580);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult902
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult902)::ok_type>); if ((__builtin_expect(
!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone
: if (!aForPreprocess) { return SerializedStructuredCloneFile
{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 =
(CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().
Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) {
auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::
quota::HandleError("CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const
auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904
= (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert
(std::is_empty_v<typename decltype(tryResult904)::ok_type>
); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto
tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5629); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult905)::ok_type>
); if ((__builtin_expect(!!(tryResult905.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5580); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult902 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult902)::ok_type>); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 = (CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) { auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::quota::HandleError(\"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult904)::ok_type>); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5629); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult905.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5631, mozilla::dom::quota::Severity::Error); return tryResult905
.propagateErr(); }}
5631 })){auto tryResult905 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5580);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult902
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult902)::ok_type>); if ((__builtin_expect(
!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone
: if (!aForPreprocess) { return SerializedStructuredCloneFile
{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 =
(CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().
Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) {
auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::
quota::HandleError("CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const
auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904
= (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert
(std::is_empty_v<typename decltype(tryResult904)::ok_type>
); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto
tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5629); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult905)::ok_type>
); if ((__builtin_expect(!!(tryResult905.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5580); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5580); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult902 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult902)::ok_type>); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { auto tryTempError = tryResult902.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5586, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { auto tryResult903 = (CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) { auto tryTempError = tryResult903.unwrapErr(); mozilla::dom::quota::HandleError(\"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5602, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id())\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); } const auto impl = tryResult903.unwrap();; IPCBlob ipcBlob; {auto tryResult904 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult904)::ok_type>); if ((__builtin_expect(!!(tryResult904.isErr()), 0))) { auto tryTempError = tryResult904.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5609, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5629); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5629); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult905.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5631, mozilla::dom::quota::Severity::Error); return tryResult905
.propagateErr(); }}
;
5632
5633 return std::move(serializedStructuredCloneFiles);
5634}
5635
5636bool IsFileNotFoundError(const nsresult aRv) {
5637 return aRv == NS_ERROR_FILE_NOT_FOUND;
5638}
5639
5640enum struct Idempotency { Yes, No };
5641
5642// Delete a file, decreasing the quota usage as appropriate. If the file no
5643// longer exists but aIdempotency is Idempotency::Yes, success is returned,
5644// although quota usage can't be decreased. (With the assumption being that the
5645// file was already deleted prior to this logic running, and the non-existent
5646// file was no longer tracked by quota because it didn't exist at
5647// initialization time or a previous deletion call updated the usage.)
5648nsresult DeleteFile(nsIFile& aFile, QuotaManager* const aQuotaManager,
5649 const PersistenceType aPersistenceType,
5650 const OriginMetadata& aOriginMetadata,
5651 const Idempotency aIdempotency) {
5652 MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5652)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { MOZ_CrashSequence(__null, 5652); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5653 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5653)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 5653); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5654
5655 // Callers which pass Idempotency::Yes call this function without checking if
5656 // the file already exists (idempotent usage). QM_OR_ELSE_WARN_IF is not used
5657 // here since we just want to log NS_ERROR_FILE_NOT_FOUND results and not spam
5658 // the reports.
5659 // Theoretically, there should be no QM_OR_ELSE_(WARN|LOG_VERBOSE)_IF when a
5660 // caller passes Idempotency::No, but it's simpler when the predicate just
5661 // always returns false in that case.
5662
5663 const auto isIgnorableError = [&aIdempotency]() -> bool (*)(nsresult) {
5664 if (aIdempotency == Idempotency::Yes) {
5665 return IsFileNotFoundError;
5666 }
5667
5668 return [](const nsresult rv) { return false; };
5669 }();
5670
5671 QM_TRY_INSPECT(auto tryResult907 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult906 = (mozilla::dom::quota::OrElseIf
( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::
detail::DerefedType<decltype(aFile)>::GetFileSize ) .map
([](const int64_t val) { return Some(val); })), [&](const
auto& firstRes) { bool res = isIgnorableError(firstRes);
mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult906
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult906.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5685, mozilla::dom::quota::Severity::Error); return tryResult906
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult906.inspect();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!fileSize || fileSize.value
() >= 0)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >=
0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5690); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { MOZ_CrashSequence(__null, 5690); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult907.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult906 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult906.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult906.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, mozilla::dom::quota::Severity::Error); return tryResult906.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult906.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5690); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5690); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult907.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5696, mozilla::dom::quota::Severity::Error); return tryResult907
.propagateErr(); } const auto& fileSize = tryResult907.inspect
();
5672 const auto& fileSize,auto tryResult907 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult906 = (mozilla::dom::quota::OrElseIf
( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::
detail::DerefedType<decltype(aFile)>::GetFileSize ) .map
([](const int64_t val) { return Some(val); })), [&](const
auto& firstRes) { bool res = isIgnorableError(firstRes);
mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult906
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult906.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5685, mozilla::dom::quota::Severity::Error); return tryResult906
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult906.inspect();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!fileSize || fileSize.value
() >= 0)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >=
0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5690); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { MOZ_CrashSequence(__null, 5690); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult907.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult906 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult906.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult906.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, mozilla::dom::quota::Severity::Error); return tryResult906.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult906.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5690); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5690); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult907.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5696, mozilla::dom::quota::Severity::Error); return tryResult907
.propagateErr(); } const auto& fileSize = tryResult907.inspect
();
5673 ([aQuotaManager, &aFile,auto tryResult907 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult906 = (mozilla::dom::quota::OrElseIf
( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::
detail::DerefedType<decltype(aFile)>::GetFileSize ) .map
([](const int64_t val) { return Some(val); })), [&](const
auto& firstRes) { bool res = isIgnorableError(firstRes);
mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult906
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult906.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5685, mozilla::dom::quota::Severity::Error); return tryResult906
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult906.inspect();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!fileSize || fileSize.value
() >= 0)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >=
0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5690); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { MOZ_CrashSequence(__null, 5690); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult907.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult906 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult906.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult906.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, mozilla::dom::quota::Severity::Error); return tryResult906.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult906.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5690); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5690); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult907.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5696, mozilla::dom::quota::Severity::Error); return tryResult907
.propagateErr(); } const auto& fileSize = tryResult907.inspect
();
5674 isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> {auto tryResult907 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult906 = (mozilla::dom::quota::OrElseIf
( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::
detail::DerefedType<decltype(aFile)>::GetFileSize ) .map
([](const int64_t val) { return Some(val); })), [&](const
auto& firstRes) { bool res = isIgnorableError(firstRes);
mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult906
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult906.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5685, mozilla::dom::quota::Severity::Error); return tryResult906
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult906.inspect();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!fileSize || fileSize.value
() >= 0)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >=
0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5690); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { MOZ_CrashSequence(__null, 5690); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult907.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult906 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult906.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult906.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, mozilla::dom::quota::Severity::Error); return tryResult906.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult906.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5690); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5690); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult907.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5696, mozilla::dom::quota::Severity::Error); return tryResult907
.propagateErr(); } const auto& fileSize = tryResult907.inspect
();
5675 if (aQuotaManager) {auto tryResult907 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult906 = (mozilla::dom::quota::OrElseIf
( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::
detail::DerefedType<decltype(aFile)>::GetFileSize ) .map
([](const int64_t val) { return Some(val); })), [&](const
auto& firstRes) { bool res = isIgnorableError(firstRes);
mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult906
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult906.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5685, mozilla::dom::quota::Severity::Error); return tryResult906
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult906.inspect();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!fileSize || fileSize.value
() >= 0)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >=
0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5690); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { MOZ_CrashSequence(__null, 5690); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult907.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult906 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult906.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult906.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, mozilla::dom::quota::Severity::Error); return tryResult906.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult906.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5690); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5690); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult907.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5696, mozilla::dom::quota::Severity::Error); return tryResult907
.propagateErr(); } const auto& fileSize = tryResult907.inspect
();
5676 QM_TRY_INSPECT(auto tryResult907 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult906 = (mozilla::dom::quota::OrElseIf
( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::
detail::DerefedType<decltype(aFile)>::GetFileSize ) .map
([](const int64_t val) { return Some(val); })), [&](const
auto& firstRes) { bool res = isIgnorableError(firstRes);
mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult906
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult906.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5685, mozilla::dom::quota::Severity::Error); return tryResult906
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult906.inspect();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!fileSize || fileSize.value
() >= 0)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >=
0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5690); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { MOZ_CrashSequence(__null, 5690); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult907.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult906 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult906.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult906.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, mozilla::dom::quota::Severity::Error); return tryResult906.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult906.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5690); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5690); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult907.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5696, mozilla::dom::quota::Severity::Error); return tryResult907
.propagateErr(); } const auto& fileSize = tryResult907.inspect
();
5677 const Maybe<int64_t>& fileSize,auto tryResult907 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult906 = (mozilla::dom::quota::OrElseIf
( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::
detail::DerefedType<decltype(aFile)>::GetFileSize ) .map
([](const int64_t val) { return Some(val); })), [&](const
auto& firstRes) { bool res = isIgnorableError(firstRes);
mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult906
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult906.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5685, mozilla::dom::quota::Severity::Error); return tryResult906
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult906.inspect();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!fileSize || fileSize.value
() >= 0)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >=
0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5690); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { MOZ_CrashSequence(__null, 5690); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult907.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult906 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult906.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult906.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, mozilla::dom::quota::Severity::Error); return tryResult906.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult906.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5690); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5690); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult907.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5696, mozilla::dom::quota::Severity::Error); return tryResult907
.propagateErr(); } const auto& fileSize = tryResult907.inspect
();
5678 QM_OR_ELSE_LOG_VERBOSE_IF(auto tryResult907 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult906 = (mozilla::dom::quota::OrElseIf
( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::
detail::DerefedType<decltype(aFile)>::GetFileSize ) .map
([](const int64_t val) { return Some(val); })), [&](const
auto& firstRes) { bool res = isIgnorableError(firstRes);
mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult906
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult906.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5685, mozilla::dom::quota::Severity::Error); return tryResult906
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult906.inspect();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!fileSize || fileSize.value
() >= 0)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >=
0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5690); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { MOZ_CrashSequence(__null, 5690); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult907.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult906 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult906.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult906.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, mozilla::dom::quota::Severity::Error); return tryResult906.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult906.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5690); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5690); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult907.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5696, mozilla::dom::quota::Severity::Error); return tryResult907
.propagateErr(); } const auto& fileSize = tryResult907.inspect
();
5679 // Expression.auto tryResult907 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult906 = (mozilla::dom::quota::OrElseIf
( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::
detail::DerefedType<decltype(aFile)>::GetFileSize ) .map
([](const int64_t val) { return Some(val); })), [&](const
auto& firstRes) { bool res = isIgnorableError(firstRes);
mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult906
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult906.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5685, mozilla::dom::quota::Severity::Error); return tryResult906
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult906.inspect();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!fileSize || fileSize.value
() >= 0)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >=
0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5690); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { MOZ_CrashSequence(__null, 5690); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult907.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult906 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult906.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult906.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, mozilla::dom::quota::Severity::Error); return tryResult906.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult906.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5690); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5690); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult907.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5696, mozilla::dom::quota::Severity::Error); return tryResult907
.propagateErr(); } const auto& fileSize = tryResult907.inspect
();
5680 MOZ_TO_RESULT_INVOKE_MEMBER(aFile, GetFileSize)auto tryResult907 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult906 = (mozilla::dom::quota::OrElseIf
( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::
detail::DerefedType<decltype(aFile)>::GetFileSize ) .map
([](const int64_t val) { return Some(val); })), [&](const
auto& firstRes) { bool res = isIgnorableError(firstRes);
mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult906
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult906.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5685, mozilla::dom::quota::Severity::Error); return tryResult906
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult906.inspect();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!fileSize || fileSize.value
() >= 0)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >=
0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5690); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { MOZ_CrashSequence(__null, 5690); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult907.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult906 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult906.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult906.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, mozilla::dom::quota::Severity::Error); return tryResult906.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult906.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5690); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5690); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult907.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5696, mozilla::dom::quota::Severity::Error); return tryResult907
.propagateErr(); } const auto& fileSize = tryResult907.inspect
();
5681 .map([](const int64_t val) { return Some(val); }),auto tryResult907 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult906 = (mozilla::dom::quota::OrElseIf
( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::
detail::DerefedType<decltype(aFile)>::GetFileSize ) .map
([](const int64_t val) { return Some(val); })), [&](const
auto& firstRes) { bool res = isIgnorableError(firstRes);
mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult906
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult906.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5685, mozilla::dom::quota::Severity::Error); return tryResult906
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult906.inspect();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!fileSize || fileSize.value
() >= 0)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >=
0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5690); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { MOZ_CrashSequence(__null, 5690); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult907.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult906 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult906.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult906.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, mozilla::dom::quota::Severity::Error); return tryResult906.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult906.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5690); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5690); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult907.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5696, mozilla::dom::quota::Severity::Error); return tryResult907
.propagateErr(); } const auto& fileSize = tryResult907.inspect
();
5682 // Predicate.auto tryResult907 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult906 = (mozilla::dom::quota::OrElseIf
( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::
detail::DerefedType<decltype(aFile)>::GetFileSize ) .map
([](const int64_t val) { return Some(val); })), [&](const
auto& firstRes) { bool res = isIgnorableError(firstRes);
mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult906
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult906.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5685, mozilla::dom::quota::Severity::Error); return tryResult906
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult906.inspect();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!fileSize || fileSize.value
() >= 0)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >=
0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5690); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { MOZ_CrashSequence(__null, 5690); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult907.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult906 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult906.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult906.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, mozilla::dom::quota::Severity::Error); return tryResult906.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult906.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5690); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5690); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult907.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5696, mozilla::dom::quota::Severity::Error); return tryResult907
.propagateErr(); } const auto& fileSize = tryResult907.inspect
();
5683 isIgnorableError,auto tryResult907 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult906 = (mozilla::dom::quota::OrElseIf
( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::
detail::DerefedType<decltype(aFile)>::GetFileSize ) .map
([](const int64_t val) { return Some(val); })), [&](const
auto& firstRes) { bool res = isIgnorableError(firstRes);
mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult906
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult906.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5685, mozilla::dom::quota::Severity::Error); return tryResult906
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult906.inspect();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!fileSize || fileSize.value
() >= 0)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >=
0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5690); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { MOZ_CrashSequence(__null, 5690); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult907.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult906 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult906.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult906.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, mozilla::dom::quota::Severity::Error); return tryResult906.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult906.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5690); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5690); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult907.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5696, mozilla::dom::quota::Severity::Error); return tryResult907
.propagateErr(); } const auto& fileSize = tryResult907.inspect
();
5684 // Fallback.auto tryResult907 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult906 = (mozilla::dom::quota::OrElseIf
( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::
detail::DerefedType<decltype(aFile)>::GetFileSize ) .map
([](const int64_t val) { return Some(val); })), [&](const
auto& firstRes) { bool res = isIgnorableError(firstRes);
mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult906
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult906.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5685, mozilla::dom::quota::Severity::Error); return tryResult906
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult906.inspect();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!fileSize || fileSize.value
() >= 0)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >=
0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5690); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { MOZ_CrashSequence(__null, 5690); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult907.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult906 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult906.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult906.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, mozilla::dom::quota::Severity::Error); return tryResult906.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult906.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5690); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5690); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult907.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5696, mozilla::dom::quota::Severity::Error); return tryResult907
.propagateErr(); } const auto& fileSize = tryResult907.inspect
();
5685 ErrToDefaultOk<Maybe<int64_t>>));auto tryResult907 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult906 = (mozilla::dom::quota::OrElseIf
( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::
detail::DerefedType<decltype(aFile)>::GetFileSize ) .map
([](const int64_t val) { return Some(val); })), [&](const
auto& firstRes) { bool res = isIgnorableError(firstRes);
mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult906
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult906.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5685, mozilla::dom::quota::Severity::Error); return tryResult906
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult906.inspect();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!fileSize || fileSize.value
() >= 0)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >=
0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5690); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { MOZ_CrashSequence(__null, 5690); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult907.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult906 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult906.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult906.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, mozilla::dom::quota::Severity::Error); return tryResult906.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult906.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5690); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5690); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult907.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5696, mozilla::dom::quota::Severity::Error); return tryResult907
.propagateErr(); } const auto& fileSize = tryResult907.inspect
();
5686
5687 // XXX Can we really assert that the file size is not 0 ifauto tryResult907 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult906 = (mozilla::dom::quota::OrElseIf
( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::
detail::DerefedType<decltype(aFile)>::GetFileSize ) .map
([](const int64_t val) { return Some(val); })), [&](const
auto& firstRes) { bool res = isIgnorableError(firstRes);
mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult906
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult906.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5685, mozilla::dom::quota::Severity::Error); return tryResult906
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult906.inspect();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!fileSize || fileSize.value
() >= 0)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >=
0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5690); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { MOZ_CrashSequence(__null, 5690); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult907.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult906 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult906.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult906.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, mozilla::dom::quota::Severity::Error); return tryResult906.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult906.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5690); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5690); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult907.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5696, mozilla::dom::quota::Severity::Error); return tryResult907
.propagateErr(); } const auto& fileSize = tryResult907.inspect
();
5688 // it existed? This might be violated by externalauto tryResult907 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult906 = (mozilla::dom::quota::OrElseIf
( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::
detail::DerefedType<decltype(aFile)>::GetFileSize ) .map
([](const int64_t val) { return Some(val); })), [&](const
auto& firstRes) { bool res = isIgnorableError(firstRes);
mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult906
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult906.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5685, mozilla::dom::quota::Severity::Error); return tryResult906
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult906.inspect();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!fileSize || fileSize.value
() >= 0)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >=
0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5690); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { MOZ_CrashSequence(__null, 5690); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult907.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult906 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult906.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult906.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, mozilla::dom::quota::Severity::Error); return tryResult906.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult906.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5690); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5690); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult907.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5696, mozilla::dom::quota::Severity::Error); return tryResult907
.propagateErr(); } const auto& fileSize = tryResult907.inspect
();
5689 // influences.auto tryResult907 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult906 = (mozilla::dom::quota::OrElseIf
( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::
detail::DerefedType<decltype(aFile)>::GetFileSize ) .map
([](const int64_t val) { return Some(val); })), [&](const
auto& firstRes) { bool res = isIgnorableError(firstRes);
mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult906
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult906.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5685, mozilla::dom::quota::Severity::Error); return tryResult906
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult906.inspect();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!fileSize || fileSize.value
() >= 0)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >=
0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5690); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { MOZ_CrashSequence(__null, 5690); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult907.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult906 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult906.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult906.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, mozilla::dom::quota::Severity::Error); return tryResult906.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult906.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5690); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5690); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult907.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5696, mozilla::dom::quota::Severity::Error); return tryResult907
.propagateErr(); } const auto& fileSize = tryResult907.inspect
();
5690 MOZ_ASSERT(!fileSize || fileSize.value() >= 0);auto tryResult907 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult906 = (mozilla::dom::quota::OrElseIf
( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::
detail::DerefedType<decltype(aFile)>::GetFileSize ) .map
([](const int64_t val) { return Some(val); })), [&](const
auto& firstRes) { bool res = isIgnorableError(firstRes);
mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult906
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult906.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5685, mozilla::dom::quota::Severity::Error); return tryResult906
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult906.inspect();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!fileSize || fileSize.value
() >= 0)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >=
0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5690); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { MOZ_CrashSequence(__null, 5690); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult907.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult906 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult906.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult906.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, mozilla::dom::quota::Severity::Error); return tryResult906.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult906.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5690); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5690); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult907.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5696, mozilla::dom::quota::Severity::Error); return tryResult907
.propagateErr(); } const auto& fileSize = tryResult907.inspect
();
5691
5692 return fileSize;auto tryResult907 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult906 = (mozilla::dom::quota::OrElseIf
( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::
detail::DerefedType<decltype(aFile)>::GetFileSize ) .map
([](const int64_t val) { return Some(val); })), [&](const
auto& firstRes) { bool res = isIgnorableError(firstRes);
mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult906
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult906.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5685, mozilla::dom::quota::Severity::Error); return tryResult906
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult906.inspect();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!fileSize || fileSize.value
() >= 0)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >=
0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5690); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { MOZ_CrashSequence(__null, 5690); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult907.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult906 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult906.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult906.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, mozilla::dom::quota::Severity::Error); return tryResult906.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult906.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5690); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5690); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult907.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5696, mozilla::dom::quota::Severity::Error); return tryResult907
.propagateErr(); } const auto& fileSize = tryResult907.inspect
();
5693 }auto tryResult907 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult906 = (mozilla::dom::quota::OrElseIf
( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::
detail::DerefedType<decltype(aFile)>::GetFileSize ) .map
([](const int64_t val) { return Some(val); })), [&](const
auto& firstRes) { bool res = isIgnorableError(firstRes);
mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult906
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult906.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5685, mozilla::dom::quota::Severity::Error); return tryResult906
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult906.inspect();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!fileSize || fileSize.value
() >= 0)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >=
0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5690); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { MOZ_CrashSequence(__null, 5690); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult907.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult906 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult906.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult906.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, mozilla::dom::quota::Severity::Error); return tryResult906.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult906.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5690); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5690); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult907.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5696, mozilla::dom::quota::Severity::Error); return tryResult907
.propagateErr(); } const auto& fileSize = tryResult907.inspect
();
5694
5695 return Some(int64_t(0));auto tryResult907 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult906 = (mozilla::dom::quota::OrElseIf
( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::
detail::DerefedType<decltype(aFile)>::GetFileSize ) .map
([](const int64_t val) { return Some(val); })), [&](const
auto& firstRes) { bool res = isIgnorableError(firstRes);
mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult906
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult906.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5685, mozilla::dom::quota::Severity::Error); return tryResult906
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult906.inspect();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!fileSize || fileSize.value
() >= 0)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >=
0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5690); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { MOZ_CrashSequence(__null, 5690); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult907.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult906 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult906.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult906.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, mozilla::dom::quota::Severity::Error); return tryResult906.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult906.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5690); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5690); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult907.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5696, mozilla::dom::quota::Severity::Error); return tryResult907
.propagateErr(); } const auto& fileSize = tryResult907.inspect
();
5696 }()))auto tryResult907 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult906 = (mozilla::dom::quota::OrElseIf
( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::
detail::DerefedType<decltype(aFile)>::GetFileSize ) .map
([](const int64_t val) { return Some(val); })), [&](const
auto& firstRes) { bool res = isIgnorableError(firstRes);
mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult906
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult906.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5685, mozilla::dom::quota::Severity::Error); return tryResult906
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult906.inspect();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!fileSize || fileSize.value
() >= 0)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >=
0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5690); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { MOZ_CrashSequence(__null, 5690); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult907.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult906 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult906.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5685, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult906.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5685, mozilla::dom::quota::Severity::Error); return tryResult906.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult906.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5690); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5690); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult907.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5696, mozilla::dom::quota::Severity::Error); return tryResult907
.propagateErr(); } const auto& fileSize = tryResult907.inspect
();
;
5697
5698 if (!fileSize) {
5699 return NS_OK;
5700 }
5701
5702 QM_TRY_INSPECT(const auto& didExist,auto tryResult908 = (mozilla::dom::quota::OrElseIf( (ToResult
(aFile.Remove(false)).map(Some<Ok>)), [&](const auto
& firstRes) { bool res = isIgnorableError(firstRes); mozilla
::dom::quota::HandleError("\"ToResult(aFile.Remove(false)).map(Some<Ok>)\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5709, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult908
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(false)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(false)).map(Some<Ok>)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5709, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult908.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5709, mozilla::dom::quota::Severity::Error); return tryResult908
.propagateErr(); } const auto& didExist = tryResult908.inspect
();
5703 QM_OR_ELSE_LOG_VERBOSE_IF(auto tryResult908 = (mozilla::dom::quota::OrElseIf( (ToResult
(aFile.Remove(false)).map(Some<Ok>)), [&](const auto
& firstRes) { bool res = isIgnorableError(firstRes); mozilla
::dom::quota::HandleError("\"ToResult(aFile.Remove(false)).map(Some<Ok>)\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5709, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult908
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(false)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(false)).map(Some<Ok>)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5709, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult908.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5709, mozilla::dom::quota::Severity::Error); return tryResult908
.propagateErr(); } const auto& didExist = tryResult908.inspect
();
5704 // Expression.auto tryResult908 = (mozilla::dom::quota::OrElseIf( (ToResult
(aFile.Remove(false)).map(Some<Ok>)), [&](const auto
& firstRes) { bool res = isIgnorableError(firstRes); mozilla
::dom::quota::HandleError("\"ToResult(aFile.Remove(false)).map(Some<Ok>)\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5709, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult908
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(false)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(false)).map(Some<Ok>)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5709, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult908.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5709, mozilla::dom::quota::Severity::Error); return tryResult908
.propagateErr(); } const auto& didExist = tryResult908.inspect
();
5705 MOZ_TO_RESULT(aFile.Remove(false)).map(Some<Ok>),auto tryResult908 = (mozilla::dom::quota::OrElseIf( (ToResult
(aFile.Remove(false)).map(Some<Ok>)), [&](const auto
& firstRes) { bool res = isIgnorableError(firstRes); mozilla
::dom::quota::HandleError("\"ToResult(aFile.Remove(false)).map(Some<Ok>)\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5709, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult908
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(false)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(false)).map(Some<Ok>)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5709, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult908.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5709, mozilla::dom::quota::Severity::Error); return tryResult908
.propagateErr(); } const auto& didExist = tryResult908.inspect
();
5706 // Predicate.auto tryResult908 = (mozilla::dom::quota::OrElseIf( (ToResult
(aFile.Remove(false)).map(Some<Ok>)), [&](const auto
& firstRes) { bool res = isIgnorableError(firstRes); mozilla
::dom::quota::HandleError("\"ToResult(aFile.Remove(false)).map(Some<Ok>)\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5709, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult908
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(false)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(false)).map(Some<Ok>)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5709, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult908.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5709, mozilla::dom::quota::Severity::Error); return tryResult908
.propagateErr(); } const auto& didExist = tryResult908.inspect
();
5707 isIgnorableError,auto tryResult908 = (mozilla::dom::quota::OrElseIf( (ToResult
(aFile.Remove(false)).map(Some<Ok>)), [&](const auto
& firstRes) { bool res = isIgnorableError(firstRes); mozilla
::dom::quota::HandleError("\"ToResult(aFile.Remove(false)).map(Some<Ok>)\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5709, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult908
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(false)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(false)).map(Some<Ok>)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5709, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult908.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5709, mozilla::dom::quota::Severity::Error); return tryResult908
.propagateErr(); } const auto& didExist = tryResult908.inspect
();
5708 // Fallback.auto tryResult908 = (mozilla::dom::quota::OrElseIf( (ToResult
(aFile.Remove(false)).map(Some<Ok>)), [&](const auto
& firstRes) { bool res = isIgnorableError(firstRes); mozilla
::dom::quota::HandleError("\"ToResult(aFile.Remove(false)).map(Some<Ok>)\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5709, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult908
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(false)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(false)).map(Some<Ok>)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5709, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult908.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5709, mozilla::dom::quota::Severity::Error); return tryResult908
.propagateErr(); } const auto& didExist = tryResult908.inspect
();
5709 ErrToDefaultOk<Maybe<Ok>>))auto tryResult908 = (mozilla::dom::quota::OrElseIf( (ToResult
(aFile.Remove(false)).map(Some<Ok>)), [&](const auto
& firstRes) { bool res = isIgnorableError(firstRes); mozilla
::dom::quota::HandleError("\"ToResult(aFile.Remove(false)).map(Some<Ok>)\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5709, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult908
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(false)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(false)).map(Some<Ok>)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5709, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult908.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5709, mozilla::dom::quota::Severity::Error); return tryResult908
.propagateErr(); } const auto& didExist = tryResult908.inspect
();
;
5710
5711 if (!didExist) {
5712 // XXX If we get here, this means that the file still existed when we
5713 // queried its size, but no longer when we tried to remove it. Not sure if
5714 // this should really be silently accepted in idempotent mode.
5715 return NS_OK;
5716 }
5717
5718 if (fileSize.value() > 0) {
5719 MOZ_ASSERT(aQuotaManager)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aQuotaManager)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aQuotaManager))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("aQuotaManager",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5719);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "aQuotaManager" ")")
; do { MOZ_CrashSequence(__null, 5719); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5720
5721 aQuotaManager->DecreaseUsageForClient(
5722 ClientMetadata{aOriginMetadata, Client::IDB}, fileSize.value());
5723 }
5724
5725 return NS_OK;
5726}
5727
5728nsresult DeleteFile(nsIFile& aDirectory, const nsAString& aFilename,
5729 QuotaManager* const aQuotaManager,
5730 const PersistenceType aPersistenceType,
5731 const OriginMetadata& aOriginMetadata,
5732 const Idempotency aIdempotent) {
5733 AssertIsOnIOThread();
5734 MOZ_ASSERT(!aFilename.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aFilename.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!aFilename.IsEmpty()))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("!aFilename.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5734)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aFilename.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 5734); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5735
5736 QM_TRY_INSPECT(const auto& file, CloneFileAndAppend(aDirectory, aFilename))auto tryResult909 = (CloneFileAndAppend(aDirectory, aFilename
)); if ((__builtin_expect(!!(tryResult909.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(aDirectory, aFilename)"
, tryResult909.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5736, mozilla::dom::quota::Severity::Error); return tryResult909
.propagateErr(); } const auto& file = tryResult909.inspect
();
;
5737
5738 return DeleteFile(*file, aQuotaManager, aPersistenceType, aOriginMetadata,
5739 aIdempotent);
5740}
5741
5742// Delete files in a directory that you think exists. If the directory doesn't
5743// exist, an error will not be returned, but warning telemetry will be
5744// generated! So only call this on directories that you know exist (idempotent
5745// usage, but it's not recommended).
5746nsresult DeleteFilesNoQuota(nsIFile& aFile) {
5747 AssertIsOnIOThread();
5748
5749 QM_TRY_INSPECT(const auto& didExist,auto tryResult910 = (mozilla::dom::quota::OrElseIf( (ToResult
(aFile.Remove(true)).map(Some<Ok>)), [&](const auto
& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla
::dom::quota::HandleError("\"ToResult(aFile.Remove(true)).map(Some<Ok>)\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5756, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult910
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(true)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(true)).map(Some<Ok>)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5756, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult910.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5756, mozilla::dom::quota::Severity::Error); return tryResult910
.propagateErr(); } const auto& didExist = tryResult910.inspect
();
5750 QM_OR_ELSE_WARN_IF(auto tryResult910 = (mozilla::dom::quota::OrElseIf( (ToResult
(aFile.Remove(true)).map(Some<Ok>)), [&](const auto
& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla
::dom::quota::HandleError("\"ToResult(aFile.Remove(true)).map(Some<Ok>)\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5756, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult910
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(true)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(true)).map(Some<Ok>)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5756, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult910.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5756, mozilla::dom::quota::Severity::Error); return tryResult910
.propagateErr(); } const auto& didExist = tryResult910.inspect
();
5751 // Expression.auto tryResult910 = (mozilla::dom::quota::OrElseIf( (ToResult
(aFile.Remove(true)).map(Some<Ok>)), [&](const auto
& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla
::dom::quota::HandleError("\"ToResult(aFile.Remove(true)).map(Some<Ok>)\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5756, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult910
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(true)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(true)).map(Some<Ok>)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5756, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult910.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5756, mozilla::dom::quota::Severity::Error); return tryResult910
.propagateErr(); } const auto& didExist = tryResult910.inspect
();
5752 MOZ_TO_RESULT(aFile.Remove(true)).map(Some<Ok>),auto tryResult910 = (mozilla::dom::quota::OrElseIf( (ToResult
(aFile.Remove(true)).map(Some<Ok>)), [&](const auto
& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla
::dom::quota::HandleError("\"ToResult(aFile.Remove(true)).map(Some<Ok>)\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5756, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult910
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(true)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(true)).map(Some<Ok>)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5756, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult910.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5756, mozilla::dom::quota::Severity::Error); return tryResult910
.propagateErr(); } const auto& didExist = tryResult910.inspect
();
5753 // Predicate.auto tryResult910 = (mozilla::dom::quota::OrElseIf( (ToResult
(aFile.Remove(true)).map(Some<Ok>)), [&](const auto
& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla
::dom::quota::HandleError("\"ToResult(aFile.Remove(true)).map(Some<Ok>)\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5756, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult910
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(true)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(true)).map(Some<Ok>)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5756, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult910.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5756, mozilla::dom::quota::Severity::Error); return tryResult910
.propagateErr(); } const auto& didExist = tryResult910.inspect
();
5754 IsFileNotFoundError,auto tryResult910 = (mozilla::dom::quota::OrElseIf( (ToResult
(aFile.Remove(true)).map(Some<Ok>)), [&](const auto
& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla
::dom::quota::HandleError("\"ToResult(aFile.Remove(true)).map(Some<Ok>)\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5756, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult910
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(true)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(true)).map(Some<Ok>)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5756, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult910.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5756, mozilla::dom::quota::Severity::Error); return tryResult910
.propagateErr(); } const auto& didExist = tryResult910.inspect
();
5755 // Fallback.auto tryResult910 = (mozilla::dom::quota::OrElseIf( (ToResult
(aFile.Remove(true)).map(Some<Ok>)), [&](const auto
& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla
::dom::quota::HandleError("\"ToResult(aFile.Remove(true)).map(Some<Ok>)\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5756, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult910
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(true)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(true)).map(Some<Ok>)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5756, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult910.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5756, mozilla::dom::quota::Severity::Error); return tryResult910
.propagateErr(); } const auto& didExist = tryResult910.inspect
();
5756 ErrToDefaultOk<Maybe<Ok>>))auto tryResult910 = (mozilla::dom::quota::OrElseIf( (ToResult
(aFile.Remove(true)).map(Some<Ok>)), [&](const auto
& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla
::dom::quota::HandleError("\"ToResult(aFile.Remove(true)).map(Some<Ok>)\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5756, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult910
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(true)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(true)).map(Some<Ok>)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5756, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult910.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5756, mozilla::dom::quota::Severity::Error); return tryResult910
.propagateErr(); } const auto& didExist = tryResult910.inspect
();
;
5757
5758 (void)didExist;
5759
5760 return NS_OK;
5761}
5762
5763nsresult DeleteFilesNoQuota(nsIFile* aDirectory, const nsAString& aFilename) {
5764 AssertIsOnIOThread();
5765 MOZ_ASSERT(aDirectory)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDirectory)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDirectory))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5765); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectory"
")"); do { MOZ_CrashSequence(__null, 5765); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5766 MOZ_ASSERT(!aFilename.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aFilename.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!aFilename.IsEmpty()))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("!aFilename.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5766)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aFilename.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 5766); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5767
5768 // The current using function hasn't initialized the origin, so in here we
5769 // don't update the size of origin. Adding this assertion for preventing from
5770 // misusing.
5771 DebugOnly<QuotaManager*> quotaManager = QuotaManager::Get();
5772 MOZ_ASSERT(!quotaManager->IsTemporaryStorageInitializedInternal())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!quotaManager->IsTemporaryStorageInitializedInternal
())>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!quotaManager->IsTemporaryStorageInitializedInternal
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!quotaManager->IsTemporaryStorageInitializedInternal()",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5772);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "!quotaManager->IsTemporaryStorageInitializedInternal()"
")"); do { MOZ_CrashSequence(__null, 5772); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5773
5774 QM_TRY_INSPECT(const auto& file, CloneFileAndAppend(*aDirectory, aFilename))auto tryResult911 = (CloneFileAndAppend(*aDirectory, aFilename
)); if ((__builtin_expect(!!(tryResult911.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, aFilename)"
, tryResult911.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5774, mozilla::dom::quota::Severity::Error); return tryResult911
.propagateErr(); } const auto& file = tryResult911.inspect
();
;
5775
5776 QM_TRY(MOZ_TO_RESULT(DeleteFilesNoQuota(*file))){auto tryResult912 = (ToResult(DeleteFilesNoQuota(*file))); static_assert
(std::is_empty_v<typename decltype(tryResult912)::ok_type>
); if ((__builtin_expect(!!(tryResult912.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(*file))"
, tryResult912.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5776, mozilla::dom::quota::Severity::Error); return tryResult912
.propagateErr(); }}
;
5777
5778 return NS_OK;
5779}
5780
5781// CreateMarkerFile and RemoveMarkerFile are a pair of functions to indicate
5782// whether having removed all the files successfully. The marker file should
5783// be checked before executing the next operation or initialization.
5784Result<nsCOMPtr<nsIFile>, nsresult> CreateMarkerFile(
5785 nsIFile& aBaseDirectory, const nsAString& aDatabaseNameBase) {
5786 AssertIsOnIOThread();
5787 MOZ_ASSERT(!aDatabaseNameBase.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aDatabaseNameBase.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!aDatabaseNameBase.IsEmpty()
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"!aDatabaseNameBase.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5787); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseNameBase.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 5787); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5788
5789 QM_TRY_INSPECT(auto tryResult913 = (CloneFileAndAppend(aBaseDirectory, kIdbDeletionMarkerFilePrefix
+ aDatabaseNameBase)); if ((__builtin_expect(!!(tryResult913
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(aBaseDirectory, kIdbDeletionMarkerFilePrefix + aDatabaseNameBase)"
, tryResult913.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5792, mozilla::dom::quota::Severity::Error); return tryResult913
.propagateErr(); } const auto& markerFile = tryResult913.
inspect();
5790 const auto& markerFile,auto tryResult913 = (CloneFileAndAppend(aBaseDirectory, kIdbDeletionMarkerFilePrefix
+ aDatabaseNameBase)); if ((__builtin_expect(!!(tryResult913
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(aBaseDirectory, kIdbDeletionMarkerFilePrefix + aDatabaseNameBase)"
, tryResult913.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5792, mozilla::dom::quota::Severity::Error); return tryResult913
.propagateErr(); } const auto& markerFile = tryResult913.
inspect();
5791 CloneFileAndAppend(aBaseDirectory,auto tryResult913 = (CloneFileAndAppend(aBaseDirectory, kIdbDeletionMarkerFilePrefix
+ aDatabaseNameBase)); if ((__builtin_expect(!!(tryResult913
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(aBaseDirectory, kIdbDeletionMarkerFilePrefix + aDatabaseNameBase)"
, tryResult913.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5792, mozilla::dom::quota::Severity::Error); return tryResult913
.propagateErr(); } const auto& markerFile = tryResult913.
inspect();
5792 kIdbDeletionMarkerFilePrefix + aDatabaseNameBase))auto tryResult913 = (CloneFileAndAppend(aBaseDirectory, kIdbDeletionMarkerFilePrefix
+ aDatabaseNameBase)); if ((__builtin_expect(!!(tryResult913
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(aBaseDirectory, kIdbDeletionMarkerFilePrefix + aDatabaseNameBase)"
, tryResult913.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5792, mozilla::dom::quota::Severity::Error); return tryResult913
.propagateErr(); } const auto& markerFile = tryResult913.
inspect();
;
5793
5794 // Callers call this function without checking if the file already exists
5795 // (idempotent usage). QM_OR_ELSE_WARN_IF is not used here since we just want
5796 // to log NS_ERROR_FILE_ALREADY_EXISTS result and not spam the reports.
5797 //
5798 // TODO: In theory if this file exists, then RemoveDatabaseFilesAndDirectory
5799 // should have cleaned it up, but obviously we can crash and not clean it up,
5800 // which is the whole point of the marker file. In that case, we'll realize
5801 // the marker file exists in OpenDatabaseOp::DoDatabaseWork or
5802 // GetUsageForOriginInternal and resume the removal by calling
5803 // RemoveDatabaseFilesAndDirectory again, but we will also try to create the
5804 // marker file again, so if we see this marker file, it is part
5805 // of our standard operating procedure to redundantly try and create the
5806 // marker here. We currently treat this as idempotent usage, but we could
5807 // add an additional argument to RemoveDatabaseFilesAndDirectory which would
5808 // indicate that we are resuming an unfinished removal, so the marker already
5809 // exists and doesn't have to be created, and change
5810 // QM_OR_ELSE_LOG_VERBOSE_IF to QM_OR_ELSE_WARN_IF in the end.
5811 QM_TRY(QM_OR_ELSE_LOG_VERBOSE_IF({auto tryResult914 = (mozilla::dom::quota::OrElseIf( (ToResult
(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))), [&
](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS
>(firstRes); mozilla::dom::quota::HandleError("\"ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5817, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult914)::ok_type>); if ((__builtin_expect(!!(tryResult914
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5817, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult914.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5817, mozilla::dom::quota::Severity::Error); return tryResult914
.propagateErr(); }}
5812 // Expression.{auto tryResult914 = (mozilla::dom::quota::OrElseIf( (ToResult
(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))), [&
](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS
>(firstRes); mozilla::dom::quota::HandleError("\"ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5817, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult914)::ok_type>); if ((__builtin_expect(!!(tryResult914
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5817, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult914.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5817, mozilla::dom::quota::Severity::Error); return tryResult914
.propagateErr(); }}
5813 MOZ_TO_RESULT(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644)),{auto tryResult914 = (mozilla::dom::quota::OrElseIf( (ToResult
(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))), [&
](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS
>(firstRes); mozilla::dom::quota::HandleError("\"ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5817, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult914)::ok_type>); if ((__builtin_expect(!!(tryResult914
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5817, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult914.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5817, mozilla::dom::quota::Severity::Error); return tryResult914
.propagateErr(); }}
5814 // Predicate.{auto tryResult914 = (mozilla::dom::quota::OrElseIf( (ToResult
(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))), [&
](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS
>(firstRes); mozilla::dom::quota::HandleError("\"ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5817, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult914)::ok_type>); if ((__builtin_expect(!!(tryResult914
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5817, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult914.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5817, mozilla::dom::quota::Severity::Error); return tryResult914
.propagateErr(); }}
5815 IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS>,{auto tryResult914 = (mozilla::dom::quota::OrElseIf( (ToResult
(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))), [&
](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS
>(firstRes); mozilla::dom::quota::HandleError("\"ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5817, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult914)::ok_type>); if ((__builtin_expect(!!(tryResult914
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5817, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult914.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5817, mozilla::dom::quota::Severity::Error); return tryResult914
.propagateErr(); }}
5816 // Fallback.{auto tryResult914 = (mozilla::dom::quota::OrElseIf( (ToResult
(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))), [&
](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS
>(firstRes); mozilla::dom::quota::HandleError("\"ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5817, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult914)::ok_type>); if ((__builtin_expect(!!(tryResult914
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5817, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult914.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5817, mozilla::dom::quota::Severity::Error); return tryResult914
.propagateErr(); }}
5817 ErrToDefaultOk<>)){auto tryResult914 = (mozilla::dom::quota::OrElseIf( (ToResult
(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))), [&
](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS
>(firstRes); mozilla::dom::quota::HandleError("\"ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5817, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult914)::ok_type>); if ((__builtin_expect(!!(tryResult914
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5817, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult914.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5817, mozilla::dom::quota::Severity::Error); return tryResult914
.propagateErr(); }}
;
5818
5819 return markerFile;
5820}
5821
5822nsresult RemoveMarkerFile(nsIFile* aMarkerFile) {
5823 AssertIsOnIOThread();
5824 MOZ_ASSERT(aMarkerFile)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aMarkerFile)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aMarkerFile))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aMarkerFile", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5824); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMarkerFile"
")"); do { MOZ_CrashSequence(__null, 5824); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5825
5826 DebugOnly<bool> exists;
5827 MOZ_ASSERT(NS_SUCCEEDED(aMarkerFile->Exists(&exists)))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(aMarkerFile
->Exists(&exists))), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(aMarkerFile->Exists(&exists))), 1)))))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(aMarkerFile->Exists(&exists))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5827)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(aMarkerFile->Exists(&exists))), 1)))"
")"); do { MOZ_CrashSequence(__null, 5827); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5828 MOZ_ASSERT(exists)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(exists)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(exists))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("exists", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5828); AnnotateMozCrashReason("MOZ_ASSERT" "(" "exists" ")"
); do { MOZ_CrashSequence(__null, 5828); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5829
5830 QM_TRY(MOZ_TO_RESULT(aMarkerFile->Remove(false))){auto tryResult915 = (ToResult(aMarkerFile->Remove(false))
); static_assert(std::is_empty_v<typename decltype(tryResult915
)::ok_type>); if ((__builtin_expect(!!(tryResult915.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(aMarkerFile->Remove(false))"
, tryResult915.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5830, mozilla::dom::quota::Severity::Error); return tryResult915
.propagateErr(); }}
;
5831
5832 return NS_OK;
5833}
5834
5835Result<Ok, nsresult> DeleteFileManagerDirectory(
5836 nsIFile& aFileManagerDirectory, QuotaManager* aQuotaManager,
5837 const PersistenceType aPersistenceType,
5838 const OriginMetadata& aOriginMetadata) {
5839 GECKO_TRACE_SCOPE("dom::indexedDB", "DeleteFileManagerDirectory")auto GECKO_TRACE_SCOPE___COUNTER__ = mozilla::gecko_trace::TracerProvider
::GetTracer("dom::indexedDB") ->StartSpan("DeleteFileManagerDirectory"
) ->Enter();
;
5840
5841 // XXX In theory, deleting can continue for other files in case of a failure,
5842 // leaving only those files behind that cause the problem actually. However,
5843 // the current architecture doesn't allow having more databases (for the same
5844 // name) on disk, so trying to delete as much as possible won't help much
5845 // because we need to delete entire .files directory in the end anyway.
5846 QM_TRY(DatabaseFileManager::TraverseFiles({auto tryResult920 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult916 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult916
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult916.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5853, mozilla::dom::quota::Severity::Error); } return tryResult916
;}; } {auto tryResult917 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult917.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5859, mozilla::dom::quota::Severity::Error); } return tryResult917
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult918 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult918.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult918.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5867, mozilla::dom::quota::Severity::Error); } return tryResult918
;}; } {auto tryResult919 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult919.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5872, mozilla::dom::quota::Severity::Error); } return tryResult919
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult920
)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult916 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult916.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult916.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5853, mozilla::dom::quota::Severity::Error); } return tryResult916;}; } {auto tryResult917 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult917.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5859, mozilla::dom::quota::Severity::Error); } return tryResult917;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult918 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult918.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5867, mozilla::dom::quota::Severity::Error); } return tryResult918;}; } {auto tryResult919 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult919.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5872, mozilla::dom::quota::Severity::Error); } return tryResult919;}; })"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5873, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}
5847 aFileManagerDirectory,{auto tryResult920 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult916 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult916
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult916.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5853, mozilla::dom::quota::Severity::Error); } return tryResult916
;}; } {auto tryResult917 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult917.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5859, mozilla::dom::quota::Severity::Error); } return tryResult917
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult918 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult918.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult918.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5867, mozilla::dom::quota::Severity::Error); } return tryResult918
;}; } {auto tryResult919 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult919.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5872, mozilla::dom::quota::Severity::Error); } return tryResult919
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult920
)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult916 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult916.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult916.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5853, mozilla::dom::quota::Severity::Error); } return tryResult916;}; } {auto tryResult917 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult917.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5859, mozilla::dom::quota::Severity::Error); } return tryResult917;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult918 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult918.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5867, mozilla::dom::quota::Severity::Error); } return tryResult918;}; } {auto tryResult919 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult919.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5872, mozilla::dom::quota::Severity::Error); } return tryResult919;}; })"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5873, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}
5848 // KnownDirEntryOp{auto tryResult920 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult916 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult916
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult916.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5853, mozilla::dom::quota::Severity::Error); } return tryResult916
;}; } {auto tryResult917 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult917.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5859, mozilla::dom::quota::Severity::Error); } return tryResult917
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult918 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult918.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult918.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5867, mozilla::dom::quota::Severity::Error); } return tryResult918
;}; } {auto tryResult919 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult919.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5872, mozilla::dom::quota::Severity::Error); } return tryResult919
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult920
)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult916 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult916.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult916.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5853, mozilla::dom::quota::Severity::Error); } return tryResult916;}; } {auto tryResult917 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult917.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5859, mozilla::dom::quota::Severity::Error); } return tryResult917;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult918 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult918.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5867, mozilla::dom::quota::Severity::Error); } return tryResult918;}; } {auto tryResult919 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult919.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5872, mozilla::dom::quota::Severity::Error); } return tryResult919;}; })"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5873, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}
5849 [&aQuotaManager, aPersistenceType, &aOriginMetadata]({auto tryResult920 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult916 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult916
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult916.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5853, mozilla::dom::quota::Severity::Error); } return tryResult916
;}; } {auto tryResult917 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult917.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5859, mozilla::dom::quota::Severity::Error); } return tryResult917
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult918 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult918.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult918.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5867, mozilla::dom::quota::Severity::Error); } return tryResult918
;}; } {auto tryResult919 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult919.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5872, mozilla::dom::quota::Severity::Error); } return tryResult919
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult920
)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult916 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult916.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult916.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5853, mozilla::dom::quota::Severity::Error); } return tryResult916;}; } {auto tryResult917 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult917.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5859, mozilla::dom::quota::Severity::Error); } return tryResult917;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult918 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult918.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5867, mozilla::dom::quota::Severity::Error); } return tryResult918;}; } {auto tryResult919 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult919.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5872, mozilla::dom::quota::Severity::Error); } return tryResult919;}; })"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5873, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}
5850 nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> {{auto tryResult920 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult916 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult916
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult916.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5853, mozilla::dom::quota::Severity::Error); } return tryResult916
;}; } {auto tryResult917 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult917.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5859, mozilla::dom::quota::Severity::Error); } return tryResult917
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult918 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult918.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult918.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5867, mozilla::dom::quota::Severity::Error); } return tryResult918
;}; } {auto tryResult919 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult919.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5872, mozilla::dom::quota::Severity::Error); } return tryResult919
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult920
)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult916 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult916.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult916.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5853, mozilla::dom::quota::Severity::Error); } return tryResult916;}; } {auto tryResult917 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult917.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5859, mozilla::dom::quota::Severity::Error); } return tryResult917;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult918 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult918.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5867, mozilla::dom::quota::Severity::Error); } return tryResult918;}; } {auto tryResult919 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult919.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5872, mozilla::dom::quota::Severity::Error); } return tryResult919;}; })"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5873, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}
5851 if (isDirectory) {{auto tryResult920 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult916 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult916
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult916.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5853, mozilla::dom::quota::Severity::Error); } return tryResult916
;}; } {auto tryResult917 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult917.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5859, mozilla::dom::quota::Severity::Error); } return tryResult917
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult918 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult918.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult918.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5867, mozilla::dom::quota::Severity::Error); } return tryResult918
;}; } {auto tryResult919 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult919.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5872, mozilla::dom::quota::Severity::Error); } return tryResult919
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult920
)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult916 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult916.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult916.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5853, mozilla::dom::quota::Severity::Error); } return tryResult916;}; } {auto tryResult917 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult917.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5859, mozilla::dom::quota::Severity::Error); } return tryResult917;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult918 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult918.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5867, mozilla::dom::quota::Severity::Error); } return tryResult918;}; } {auto tryResult919 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult919.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5872, mozilla::dom::quota::Severity::Error); } return tryResult919;}; })"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5873, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}
5852 // The journal directory doesn't count towards quota.{auto tryResult920 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult916 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult916
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult916.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5853, mozilla::dom::quota::Severity::Error); } return tryResult916
;}; } {auto tryResult917 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult917.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5859, mozilla::dom::quota::Severity::Error); } return tryResult917
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult918 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult918.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult918.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5867, mozilla::dom::quota::Severity::Error); } return tryResult918
;}; } {auto tryResult919 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult919.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5872, mozilla::dom::quota::Severity::Error); } return tryResult919
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult920
)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult916 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult916.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult916.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5853, mozilla::dom::quota::Severity::Error); } return tryResult916;}; } {auto tryResult917 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult917.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5859, mozilla::dom::quota::Severity::Error); } return tryResult917;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult918 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult918.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5867, mozilla::dom::quota::Severity::Error); } return tryResult918;}; } {auto tryResult919 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult919.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5872, mozilla::dom::quota::Severity::Error); } return tryResult919;}; })"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5873, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}
5853 QM_TRY_RETURN(MOZ_TO_RESULT(DeleteFilesNoQuota(file)));{auto tryResult920 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult916 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult916
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult916.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5853, mozilla::dom::quota::Severity::Error); } return tryResult916
;}; } {auto tryResult917 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult917.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5859, mozilla::dom::quota::Severity::Error); } return tryResult917
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult918 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult918.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult918.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5867, mozilla::dom::quota::Severity::Error); } return tryResult918
;}; } {auto tryResult919 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult919.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5872, mozilla::dom::quota::Severity::Error); } return tryResult919
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult920
)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult916 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult916.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult916.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5853, mozilla::dom::quota::Severity::Error); } return tryResult916;}; } {auto tryResult917 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult917.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5859, mozilla::dom::quota::Severity::Error); } return tryResult917;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult918 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult918.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5867, mozilla::dom::quota::Severity::Error); } return tryResult918;}; } {auto tryResult919 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult919.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5872, mozilla::dom::quota::Severity::Error); } return tryResult919;}; })"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5873, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}
5854 }{auto tryResult920 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult916 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult916
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult916.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5853, mozilla::dom::quota::Severity::Error); } return tryResult916
;}; } {auto tryResult917 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult917.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5859, mozilla::dom::quota::Severity::Error); } return tryResult917
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult918 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult918.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult918.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5867, mozilla::dom::quota::Severity::Error); } return tryResult918
;}; } {auto tryResult919 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult919.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5872, mozilla::dom::quota::Severity::Error); } return tryResult919
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult920
)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult916 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult916.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult916.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5853, mozilla::dom::quota::Severity::Error); } return tryResult916;}; } {auto tryResult917 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult917.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5859, mozilla::dom::quota::Severity::Error); } return tryResult917;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult918 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult918.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5867, mozilla::dom::quota::Severity::Error); } return tryResult918;}; } {auto tryResult919 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult919.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5872, mozilla::dom::quota::Severity::Error); } return tryResult919;}; })"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5873, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}
5855
5856 // Stored files do count towards quota.{auto tryResult920 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult916 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult916
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult916.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5853, mozilla::dom::quota::Severity::Error); } return tryResult916
;}; } {auto tryResult917 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult917.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5859, mozilla::dom::quota::Severity::Error); } return tryResult917
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult918 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult918.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult918.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5867, mozilla::dom::quota::Severity::Error); } return tryResult918
;}; } {auto tryResult919 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult919.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5872, mozilla::dom::quota::Severity::Error); } return tryResult919
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult920
)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult916 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult916.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult916.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5853, mozilla::dom::quota::Severity::Error); } return tryResult916;}; } {auto tryResult917 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult917.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5859, mozilla::dom::quota::Severity::Error); } return tryResult917;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult918 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult918.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5867, mozilla::dom::quota::Severity::Error); } return tryResult918;}; } {auto tryResult919 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult919.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5872, mozilla::dom::quota::Severity::Error); } return tryResult919;}; })"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5873, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}
5857 QM_TRY_RETURN({auto tryResult920 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult916 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult916
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult916.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5853, mozilla::dom::quota::Severity::Error); } return tryResult916
;}; } {auto tryResult917 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult917.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5859, mozilla::dom::quota::Severity::Error); } return tryResult917
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult918 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult918.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult918.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5867, mozilla::dom::quota::Severity::Error); } return tryResult918
;}; } {auto tryResult919 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult919.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5872, mozilla::dom::quota::Severity::Error); } return tryResult919
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult920
)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult916 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult916.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult916.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5853, mozilla::dom::quota::Severity::Error); } return tryResult916;}; } {auto tryResult917 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult917.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5859, mozilla::dom::quota::Severity::Error); } return tryResult917;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult918 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult918.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5867, mozilla::dom::quota::Severity::Error); } return tryResult918;}; } {auto tryResult919 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult919.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5872, mozilla::dom::quota::Severity::Error); } return tryResult919;}; })"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5873, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}
5858 MOZ_TO_RESULT(DeleteFile(file, aQuotaManager, aPersistenceType,{auto tryResult920 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult916 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult916
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult916.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5853, mozilla::dom::quota::Severity::Error); } return tryResult916
;}; } {auto tryResult917 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult917.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5859, mozilla::dom::quota::Severity::Error); } return tryResult917
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult918 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult918.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult918.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5867, mozilla::dom::quota::Severity::Error); } return tryResult918
;}; } {auto tryResult919 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult919.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5872, mozilla::dom::quota::Severity::Error); } return tryResult919
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult920
)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult916 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult916.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult916.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5853, mozilla::dom::quota::Severity::Error); } return tryResult916;}; } {auto tryResult917 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult917.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5859, mozilla::dom::quota::Severity::Error); } return tryResult917;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult918 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult918.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5867, mozilla::dom::quota::Severity::Error); } return tryResult918;}; } {auto tryResult919 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult919.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5872, mozilla::dom::quota::Severity::Error); } return tryResult919;}; })"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5873, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}
5859 aOriginMetadata, Idempotency::Yes)));{auto tryResult920 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult916 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult916
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult916.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5853, mozilla::dom::quota::Severity::Error); } return tryResult916
;}; } {auto tryResult917 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult917.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5859, mozilla::dom::quota::Severity::Error); } return tryResult917
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult918 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult918.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult918.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5867, mozilla::dom::quota::Severity::Error); } return tryResult918
;}; } {auto tryResult919 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult919.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5872, mozilla::dom::quota::Severity::Error); } return tryResult919
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult920
)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult916 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult916.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult916.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5853, mozilla::dom::quota::Severity::Error); } return tryResult916;}; } {auto tryResult917 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult917.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5859, mozilla::dom::quota::Severity::Error); } return tryResult917;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult918 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult918.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5867, mozilla::dom::quota::Severity::Error); } return tryResult918;}; } {auto tryResult919 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult919.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5872, mozilla::dom::quota::Severity::Error); } return tryResult919;}; })"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5873, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}
5860 },{auto tryResult920 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult916 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult916
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult916.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5853, mozilla::dom::quota::Severity::Error); } return tryResult916
;}; } {auto tryResult917 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult917.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5859, mozilla::dom::quota::Severity::Error); } return tryResult917
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult918 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult918.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult918.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5867, mozilla::dom::quota::Severity::Error); } return tryResult918
;}; } {auto tryResult919 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult919.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5872, mozilla::dom::quota::Severity::Error); } return tryResult919
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult920
)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult916 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult916.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult916.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5853, mozilla::dom::quota::Severity::Error); } return tryResult916;}; } {auto tryResult917 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult917.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5859, mozilla::dom::quota::Severity::Error); } return tryResult917;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult918 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult918.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5867, mozilla::dom::quota::Severity::Error); } return tryResult918;}; } {auto tryResult919 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult919.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5872, mozilla::dom::quota::Severity::Error); } return tryResult919;}; })"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5873, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}
5861 // UnknownDirEntryOp{auto tryResult920 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult916 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult916
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult916.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5853, mozilla::dom::quota::Severity::Error); } return tryResult916
;}; } {auto tryResult917 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult917.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5859, mozilla::dom::quota::Severity::Error); } return tryResult917
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult918 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult918.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult918.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5867, mozilla::dom::quota::Severity::Error); } return tryResult918
;}; } {auto tryResult919 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult919.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5872, mozilla::dom::quota::Severity::Error); } return tryResult919
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult920
)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult916 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult916.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult916.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5853, mozilla::dom::quota::Severity::Error); } return tryResult916;}; } {auto tryResult917 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult917.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5859, mozilla::dom::quota::Severity::Error); } return tryResult917;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult918 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult918.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5867, mozilla::dom::quota::Severity::Error); } return tryResult918;}; } {auto tryResult919 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult919.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5872, mozilla::dom::quota::Severity::Error); } return tryResult919;}; })"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5873, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}
5862 [aPersistenceType, &aOriginMetadata]({auto tryResult920 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult916 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult916
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult916.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5853, mozilla::dom::quota::Severity::Error); } return tryResult916
;}; } {auto tryResult917 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult917.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5859, mozilla::dom::quota::Severity::Error); } return tryResult917
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult918 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult918.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult918.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5867, mozilla::dom::quota::Severity::Error); } return tryResult918
;}; } {auto tryResult919 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult919.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5872, mozilla::dom::quota::Severity::Error); } return tryResult919
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult920
)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult916 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult916.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult916.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5853, mozilla::dom::quota::Severity::Error); } return tryResult916;}; } {auto tryResult917 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult917.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5859, mozilla::dom::quota::Severity::Error); } return tryResult917;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult918 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult918.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5867, mozilla::dom::quota::Severity::Error); } return tryResult918;}; } {auto tryResult919 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult919.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5872, mozilla::dom::quota::Severity::Error); } return tryResult919;}; })"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5873, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}
5863 nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> {{auto tryResult920 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult916 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult916
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult916.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5853, mozilla::dom::quota::Severity::Error); } return tryResult916
;}; } {auto tryResult917 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult917.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5859, mozilla::dom::quota::Severity::Error); } return tryResult917
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult918 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult918.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult918.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5867, mozilla::dom::quota::Severity::Error); } return tryResult918
;}; } {auto tryResult919 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult919.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5872, mozilla::dom::quota::Severity::Error); } return tryResult919
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult920
)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult916 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult916.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult916.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5853, mozilla::dom::quota::Severity::Error); } return tryResult916;}; } {auto tryResult917 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult917.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5859, mozilla::dom::quota::Severity::Error); } return tryResult917;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult918 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult918.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5867, mozilla::dom::quota::Severity::Error); } return tryResult918;}; } {auto tryResult919 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult919.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5872, mozilla::dom::quota::Severity::Error); } return tryResult919;}; })"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5873, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}
5864 // Unknown files and directories don't count towards quota.{auto tryResult920 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult916 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult916
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult916.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5853, mozilla::dom::quota::Severity::Error); } return tryResult916
;}; } {auto tryResult917 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult917.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5859, mozilla::dom::quota::Severity::Error); } return tryResult917
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult918 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult918.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult918.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5867, mozilla::dom::quota::Severity::Error); } return tryResult918
;}; } {auto tryResult919 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult919.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5872, mozilla::dom::quota::Severity::Error); } return tryResult919
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult920
)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult916 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult916.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult916.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5853, mozilla::dom::quota::Severity::Error); } return tryResult916;}; } {auto tryResult917 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult917.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5859, mozilla::dom::quota::Severity::Error); } return tryResult917;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult918 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult918.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5867, mozilla::dom::quota::Severity::Error); } return tryResult918;}; } {auto tryResult919 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult919.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5872, mozilla::dom::quota::Severity::Error); } return tryResult919;}; })"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5873, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}
5865
5866 if (isDirectory) {{auto tryResult920 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult916 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult916
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult916.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5853, mozilla::dom::quota::Severity::Error); } return tryResult916
;}; } {auto tryResult917 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult917.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5859, mozilla::dom::quota::Severity::Error); } return tryResult917
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult918 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult918.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult918.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5867, mozilla::dom::quota::Severity::Error); } return tryResult918
;}; } {auto tryResult919 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult919.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5872, mozilla::dom::quota::Severity::Error); } return tryResult919
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult920
)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult916 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult916.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult916.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5853, mozilla::dom::quota::Severity::Error); } return tryResult916;}; } {auto tryResult917 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult917.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5859, mozilla::dom::quota::Severity::Error); } return tryResult917;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult918 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult918.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5867, mozilla::dom::quota::Severity::Error); } return tryResult918;}; } {auto tryResult919 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult919.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5872, mozilla::dom::quota::Severity::Error); } return tryResult919;}; })"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5873, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}
5867 QM_TRY_RETURN(MOZ_TO_RESULT(DeleteFilesNoQuota(file)));{auto tryResult920 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult916 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult916
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult916.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5853, mozilla::dom::quota::Severity::Error); } return tryResult916
;}; } {auto tryResult917 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult917.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5859, mozilla::dom::quota::Severity::Error); } return tryResult917
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult918 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult918.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult918.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5867, mozilla::dom::quota::Severity::Error); } return tryResult918
;}; } {auto tryResult919 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult919.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5872, mozilla::dom::quota::Severity::Error); } return tryResult919
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult920
)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult916 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult916.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult916.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5853, mozilla::dom::quota::Severity::Error); } return tryResult916;}; } {auto tryResult917 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult917.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5859, mozilla::dom::quota::Severity::Error); } return tryResult917;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult918 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult918.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5867, mozilla::dom::quota::Severity::Error); } return tryResult918;}; } {auto tryResult919 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult919.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5872, mozilla::dom::quota::Severity::Error); } return tryResult919;}; })"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5873, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}
5868 }{auto tryResult920 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult916 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult916
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult916.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5853, mozilla::dom::quota::Severity::Error); } return tryResult916
;}; } {auto tryResult917 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult917.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5859, mozilla::dom::quota::Severity::Error); } return tryResult917
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult918 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult918.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult918.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5867, mozilla::dom::quota::Severity::Error); } return tryResult918
;}; } {auto tryResult919 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult919.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5872, mozilla::dom::quota::Severity::Error); } return tryResult919
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult920
)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult916 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult916.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult916.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5853, mozilla::dom::quota::Severity::Error); } return tryResult916;}; } {auto tryResult917 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult917.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5859, mozilla::dom::quota::Severity::Error); } return tryResult917;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult918 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult918.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5867, mozilla::dom::quota::Severity::Error); } return tryResult918;}; } {auto tryResult919 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult919.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5872, mozilla::dom::quota::Severity::Error); } return tryResult919;}; })"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5873, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}
5869
5870 QM_TRY_RETURN(MOZ_TO_RESULT({auto tryResult920 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult916 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult916
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult916.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5853, mozilla::dom::quota::Severity::Error); } return tryResult916
;}; } {auto tryResult917 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult917.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5859, mozilla::dom::quota::Severity::Error); } return tryResult917
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult918 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult918.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult918.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5867, mozilla::dom::quota::Severity::Error); } return tryResult918
;}; } {auto tryResult919 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult919.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5872, mozilla::dom::quota::Severity::Error); } return tryResult919
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult920
)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult916 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult916.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult916.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5853, mozilla::dom::quota::Severity::Error); } return tryResult916;}; } {auto tryResult917 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult917.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5859, mozilla::dom::quota::Severity::Error); } return tryResult917;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult918 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult918.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5867, mozilla::dom::quota::Severity::Error); } return tryResult918;}; } {auto tryResult919 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult919.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5872, mozilla::dom::quota::Severity::Error); } return tryResult919;}; })"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5873, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}
5871 DeleteFile(file, /* doesn't count */ nullptr, aPersistenceType,{auto tryResult920 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult916 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult916
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult916.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5853, mozilla::dom::quota::Severity::Error); } return tryResult916
;}; } {auto tryResult917 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult917.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5859, mozilla::dom::quota::Severity::Error); } return tryResult917
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult918 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult918.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult918.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5867, mozilla::dom::quota::Severity::Error); } return tryResult918
;}; } {auto tryResult919 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult919.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5872, mozilla::dom::quota::Severity::Error); } return tryResult919
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult920
)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult916 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult916.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult916.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5853, mozilla::dom::quota::Severity::Error); } return tryResult916;}; } {auto tryResult917 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult917.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5859, mozilla::dom::quota::Severity::Error); } return tryResult917;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult918 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult918.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5867, mozilla::dom::quota::Severity::Error); } return tryResult918;}; } {auto tryResult919 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult919.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5872, mozilla::dom::quota::Severity::Error); } return tryResult919;}; })"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5873, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}
5872 aOriginMetadata, Idempotency::Yes)));{auto tryResult920 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult916 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult916
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult916.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5853, mozilla::dom::quota::Severity::Error); } return tryResult916
;}; } {auto tryResult917 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult917.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5859, mozilla::dom::quota::Severity::Error); } return tryResult917
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult918 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult918.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult918.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5867, mozilla::dom::quota::Severity::Error); } return tryResult918
;}; } {auto tryResult919 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult919.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5872, mozilla::dom::quota::Severity::Error); } return tryResult919
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult920
)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult916 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult916.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult916.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5853, mozilla::dom::quota::Severity::Error); } return tryResult916;}; } {auto tryResult917 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult917.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5859, mozilla::dom::quota::Severity::Error); } return tryResult917;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult918 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult918.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5867, mozilla::dom::quota::Severity::Error); } return tryResult918;}; } {auto tryResult919 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult919.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5872, mozilla::dom::quota::Severity::Error); } return tryResult919;}; })"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5873, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}
5873 })){auto tryResult920 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult916 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult916
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult916.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5853, mozilla::dom::quota::Severity::Error); } return tryResult916
;}; } {auto tryResult917 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult917.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5859, mozilla::dom::quota::Severity::Error); } return tryResult917
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult918 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult918.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult918.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5867, mozilla::dom::quota::Severity::Error); } return tryResult918
;}; } {auto tryResult919 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult919.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5872, mozilla::dom::quota::Severity::Error); } return tryResult919
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult920
)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult916 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult916.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult916.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5853, mozilla::dom::quota::Severity::Error); } return tryResult916;}; } {auto tryResult917 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult917.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult917.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5859, mozilla::dom::quota::Severity::Error); } return tryResult917;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult918 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult918.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5867, mozilla::dom::quota::Severity::Error); } return tryResult918;}; } {auto tryResult919 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult919.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5872, mozilla::dom::quota::Severity::Error); } return tryResult919;}; })"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5873, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}
;
5874
5875 QM_TRY_RETURN(MOZ_TO_RESULT(aFileManagerDirectory.Remove(false))){auto tryResult921 = (ToResult(aFileManagerDirectory.Remove(false
))); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aFileManagerDirectory.Remove(false))"
, tryResult921.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5875, mozilla::dom::quota::Severity::Error); } return tryResult921
;}
;
5876}
5877
5878// Idempotently delete all the parts of an IndexedDB database including its
5879// SQLite database file, its WAL journal, it's shared-memory file, and its
5880// Blob/Files sub-directory. A marker file is created prior to performing the
5881// deletion so that in the event we crash or fail to successfully delete the
5882// database and its files, we will re-attempt the deletion the next time the
5883// origin is initialized using this method. Because this means the method may be
5884// called on a partially deleted database, this method uses DeleteFile which
5885// succeeds when the file we ask it to delete does not actually exist. The
5886// marker file is removed once deletion has successfully completed.
5887nsresult RemoveDatabaseFilesAndDirectory(nsIFile& aBaseDirectory,
5888 const nsAString& aDatabaseFilenameBase,
5889 QuotaManager* aQuotaManager,
5890 const PersistenceType aPersistenceType,
5891 const OriginMetadata& aOriginMetadata,
5892 const nsAString& aDatabaseName) {
5893 GECKO_TRACE_SCOPE("dom::indexedDB", "RemoveDatabaseFilesAndDirectory")auto GECKO_TRACE_SCOPE___COUNTER__ = mozilla::gecko_trace::TracerProvider
::GetTracer("dom::indexedDB") ->StartSpan("RemoveDatabaseFilesAndDirectory"
) ->Enter();
;
5894
5895 AssertIsOnIOThread();
5896 MOZ_ASSERT(!aDatabaseFilenameBase.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aDatabaseFilenameBase.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!aDatabaseFilenameBase.IsEmpty
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!aDatabaseFilenameBase.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5896); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseFilenameBase.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 5896); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5897
5898 AUTO_PROFILER_LABEL("RemoveDatabaseFilesAndDirectory", DOM)mozilla::AutoProfilerLabel raiiObject5898( "RemoveDatabaseFilesAndDirectory"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
5899
5900 QM_TRY(ArtificialFailure({auto tryResult922 = (ArtificialFailure( nsIQuotaArtificialFailure
::CATEGORY_REMOVE_DATABASE_FILES)); static_assert(std::is_empty_v
<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect
(!!(tryResult922.isErr()), 0))) { mozilla::dom::quota::HandleError
("ArtificialFailure( nsIQuotaArtificialFailure::CATEGORY_REMOVE_DATABASE_FILES)"
, tryResult922.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5901, mozilla::dom::quota::Severity::Error); return tryResult922
.propagateErr(); }}
5901 nsIQuotaArtificialFailure::CATEGORY_REMOVE_DATABASE_FILES)){auto tryResult922 = (ArtificialFailure( nsIQuotaArtificialFailure
::CATEGORY_REMOVE_DATABASE_FILES)); static_assert(std::is_empty_v
<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect
(!!(tryResult922.isErr()), 0))) { mozilla::dom::quota::HandleError
("ArtificialFailure( nsIQuotaArtificialFailure::CATEGORY_REMOVE_DATABASE_FILES)"
, tryResult922.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5901, mozilla::dom::quota::Severity::Error); return tryResult922
.propagateErr(); }}
;
5902
5903 QM_TRY_UNWRAP(auto markerFile,auto tryResult923 = (CreateMarkerFile(aBaseDirectory, aDatabaseFilenameBase
)); if ((__builtin_expect(!!(tryResult923.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateMarkerFile(aBaseDirectory, aDatabaseFilenameBase)"
, tryResult923.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5904, mozilla::dom::quota::Severity::Error); return tryResult923
.propagateErr(); } auto markerFile = tryResult923.unwrap();
5904 CreateMarkerFile(aBaseDirectory, aDatabaseFilenameBase))auto tryResult923 = (CreateMarkerFile(aBaseDirectory, aDatabaseFilenameBase
)); if ((__builtin_expect(!!(tryResult923.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateMarkerFile(aBaseDirectory, aDatabaseFilenameBase)"
, tryResult923.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5904, mozilla::dom::quota::Severity::Error); return tryResult923
.propagateErr(); } auto markerFile = tryResult923.unwrap();
;
5905
5906 // The database file counts towards quota.
5907 QM_TRY(MOZ_TO_RESULT(DeleteFile({auto tryResult924 = (ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase
+ kSQLiteSuffix, aQuotaManager, aPersistenceType, aOriginMetadata
, Idempotency::Yes))); static_assert(std::is_empty_v<typename
decltype(tryResult924)::ok_type>); if ((__builtin_expect(
!!(tryResult924.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase + kSQLiteSuffix, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult924.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5909, mozilla::dom::quota::Severity::Error); return tryResult924
.propagateErr(); }}
5908 aBaseDirectory, aDatabaseFilenameBase + kSQLiteSuffix, aQuotaManager,{auto tryResult924 = (ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase
+ kSQLiteSuffix, aQuotaManager, aPersistenceType, aOriginMetadata
, Idempotency::Yes))); static_assert(std::is_empty_v<typename
decltype(tryResult924)::ok_type>); if ((__builtin_expect(
!!(tryResult924.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase + kSQLiteSuffix, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult924.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5909, mozilla::dom::quota::Severity::Error); return tryResult924
.propagateErr(); }}
5909 aPersistenceType, aOriginMetadata, Idempotency::Yes))){auto tryResult924 = (ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase
+ kSQLiteSuffix, aQuotaManager, aPersistenceType, aOriginMetadata
, Idempotency::Yes))); static_assert(std::is_empty_v<typename
decltype(tryResult924)::ok_type>); if ((__builtin_expect(
!!(tryResult924.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase + kSQLiteSuffix, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult924.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5909, mozilla::dom::quota::Severity::Error); return tryResult924
.propagateErr(); }}
;
5910
5911 // .sqlite-journal files don't count towards quota.
5912 QM_TRY(MOZ_TO_RESULT(DeleteFile(aBaseDirectory,{auto tryResult925 = (ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase
+ kSQLiteJournalSuffix, nullptr, aPersistenceType, aOriginMetadata
, Idempotency::Yes))); static_assert(std::is_empty_v<typename
decltype(tryResult925)::ok_type>); if ((__builtin_expect(
!!(tryResult925.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteJournalSuffix, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult925.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5915, mozilla::dom::quota::Severity::Error); return tryResult925
.propagateErr(); }}
5913 aDatabaseFilenameBase + kSQLiteJournalSuffix,{auto tryResult925 = (ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase
+ kSQLiteJournalSuffix, nullptr, aPersistenceType, aOriginMetadata
, Idempotency::Yes))); static_assert(std::is_empty_v<typename
decltype(tryResult925)::ok_type>); if ((__builtin_expect(
!!(tryResult925.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteJournalSuffix, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult925.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5915, mozilla::dom::quota::Severity::Error); return tryResult925
.propagateErr(); }}
5914 /* doesn't count */ nullptr, aPersistenceType,{auto tryResult925 = (ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase
+ kSQLiteJournalSuffix, nullptr, aPersistenceType, aOriginMetadata
, Idempotency::Yes))); static_assert(std::is_empty_v<typename
decltype(tryResult925)::ok_type>); if ((__builtin_expect(
!!(tryResult925.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteJournalSuffix, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult925.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5915, mozilla::dom::quota::Severity::Error); return tryResult925
.propagateErr(); }}
5915 aOriginMetadata, Idempotency::Yes))){auto tryResult925 = (ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase
+ kSQLiteJournalSuffix, nullptr, aPersistenceType, aOriginMetadata
, Idempotency::Yes))); static_assert(std::is_empty_v<typename
decltype(tryResult925)::ok_type>); if ((__builtin_expect(
!!(tryResult925.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteJournalSuffix, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult925.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5915, mozilla::dom::quota::Severity::Error); return tryResult925
.propagateErr(); }}
;
5916
5917 // .sqlite-shm files don't count towards quota.
5918 QM_TRY(MOZ_TO_RESULT(DeleteFile(aBaseDirectory,{auto tryResult926 = (ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase
+ kSQLiteSHMSuffix, nullptr, aPersistenceType, aOriginMetadata
, Idempotency::Yes))); static_assert(std::is_empty_v<typename
decltype(tryResult926)::ok_type>); if ((__builtin_expect(
!!(tryResult926.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteSHMSuffix, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult926.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5921, mozilla::dom::quota::Severity::Error); return tryResult926
.propagateErr(); }}
5919 aDatabaseFilenameBase + kSQLiteSHMSuffix,{auto tryResult926 = (ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase
+ kSQLiteSHMSuffix, nullptr, aPersistenceType, aOriginMetadata
, Idempotency::Yes))); static_assert(std::is_empty_v<typename
decltype(tryResult926)::ok_type>); if ((__builtin_expect(
!!(tryResult926.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteSHMSuffix, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult926.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5921, mozilla::dom::quota::Severity::Error); return tryResult926
.propagateErr(); }}
5920 /* doesn't count */ nullptr, aPersistenceType,{auto tryResult926 = (ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase
+ kSQLiteSHMSuffix, nullptr, aPersistenceType, aOriginMetadata
, Idempotency::Yes))); static_assert(std::is_empty_v<typename
decltype(tryResult926)::ok_type>); if ((__builtin_expect(
!!(tryResult926.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteSHMSuffix, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult926.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5921, mozilla::dom::quota::Severity::Error); return tryResult926
.propagateErr(); }}
5921 aOriginMetadata, Idempotency::Yes))){auto tryResult926 = (ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase
+ kSQLiteSHMSuffix, nullptr, aPersistenceType, aOriginMetadata
, Idempotency::Yes))); static_assert(std::is_empty_v<typename
decltype(tryResult926)::ok_type>); if ((__builtin_expect(
!!(tryResult926.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteSHMSuffix, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult926.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5921, mozilla::dom::quota::Severity::Error); return tryResult926
.propagateErr(); }}
;
5922
5923 // .sqlite-wal files do count towards quota.
5924 QM_TRY(MOZ_TO_RESULT(DeleteFile({auto tryResult927 = (ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase
+ kSQLiteWALSuffix, aQuotaManager, aPersistenceType, aOriginMetadata
, Idempotency::Yes))); static_assert(std::is_empty_v<typename
decltype(tryResult927)::ok_type>); if ((__builtin_expect(
!!(tryResult927.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase + kSQLiteWALSuffix, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult927.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5926, mozilla::dom::quota::Severity::Error); return tryResult927
.propagateErr(); }}
5925 aBaseDirectory, aDatabaseFilenameBase + kSQLiteWALSuffix, aQuotaManager,{auto tryResult927 = (ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase
+ kSQLiteWALSuffix, aQuotaManager, aPersistenceType, aOriginMetadata
, Idempotency::Yes))); static_assert(std::is_empty_v<typename
decltype(tryResult927)::ok_type>); if ((__builtin_expect(
!!(tryResult927.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase + kSQLiteWALSuffix, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult927.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5926, mozilla::dom::quota::Severity::Error); return tryResult927
.propagateErr(); }}
5926 aPersistenceType, aOriginMetadata, Idempotency::Yes))){auto tryResult927 = (ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase
+ kSQLiteWALSuffix, aQuotaManager, aPersistenceType, aOriginMetadata
, Idempotency::Yes))); static_assert(std::is_empty_v<typename
decltype(tryResult927)::ok_type>); if ((__builtin_expect(
!!(tryResult927.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase + kSQLiteWALSuffix, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult927.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5926, mozilla::dom::quota::Severity::Error); return tryResult927
.propagateErr(); }}
;
5927
5928 // The files directory counts towards quota.
5929 QM_TRY_INSPECT(auto tryResult928 = (CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult928.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase + kFileManagerDirectoryNameSuffix)"
, tryResult928.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5932, mozilla::dom::quota::Severity::Error); return tryResult928
.propagateErr(); } const auto& fmDirectory = tryResult928
.inspect();
5930 const auto& fmDirectory,auto tryResult928 = (CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult928.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase + kFileManagerDirectoryNameSuffix)"
, tryResult928.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5932, mozilla::dom::quota::Severity::Error); return tryResult928
.propagateErr(); } const auto& fmDirectory = tryResult928
.inspect();
5931 CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase +auto tryResult928 = (CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult928.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase + kFileManagerDirectoryNameSuffix)"
, tryResult928.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5932, mozilla::dom::quota::Severity::Error); return tryResult928
.propagateErr(); } const auto& fmDirectory = tryResult928
.inspect();
5932 kFileManagerDirectoryNameSuffix))auto tryResult928 = (CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult928.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase + kFileManagerDirectoryNameSuffix)"
, tryResult928.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5932, mozilla::dom::quota::Severity::Error); return tryResult928
.propagateErr(); } const auto& fmDirectory = tryResult928
.inspect();
;
5933
5934 QM_TRY_INSPECT(const bool& exists,auto tryResult929 = (::mozilla::ToResultInvokeMember( (fmDirectory
), &::mozilla::detail::DerefedType<decltype(fmDirectory
)>::Exists )); if ((__builtin_expect(!!(tryResult929.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (fmDirectory), &::mozilla::detail::DerefedType<decltype(fmDirectory)>::Exists )"
, tryResult929.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5935, mozilla::dom::quota::Severity::Error); return tryResult929
.propagateErr(); } const bool& exists = tryResult929.inspect
();
5935 MOZ_TO_RESULT_INVOKE_MEMBER(fmDirectory, Exists))auto tryResult929 = (::mozilla::ToResultInvokeMember( (fmDirectory
), &::mozilla::detail::DerefedType<decltype(fmDirectory
)>::Exists )); if ((__builtin_expect(!!(tryResult929.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (fmDirectory), &::mozilla::detail::DerefedType<decltype(fmDirectory)>::Exists )"
, tryResult929.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5935, mozilla::dom::quota::Severity::Error); return tryResult929
.propagateErr(); } const bool& exists = tryResult929.inspect
();
;
5936
5937 if (exists) {
5938 QM_TRY_INSPECT(const bool& isDirectory,auto tryResult930 = (::mozilla::ToResultInvokeMember( (fmDirectory
), &::mozilla::detail::DerefedType<decltype(fmDirectory
)>::IsDirectory )); if ((__builtin_expect(!!(tryResult930.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (fmDirectory), &::mozilla::detail::DerefedType<decltype(fmDirectory)>::IsDirectory )"
, tryResult930.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5939, mozilla::dom::quota::Severity::Error); return tryResult930
.propagateErr(); } const bool& isDirectory = tryResult930
.inspect();
5939 MOZ_TO_RESULT_INVOKE_MEMBER(fmDirectory, IsDirectory))auto tryResult930 = (::mozilla::ToResultInvokeMember( (fmDirectory
), &::mozilla::detail::DerefedType<decltype(fmDirectory
)>::IsDirectory )); if ((__builtin_expect(!!(tryResult930.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (fmDirectory), &::mozilla::detail::DerefedType<decltype(fmDirectory)>::IsDirectory )"
, tryResult930.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5939, mozilla::dom::quota::Severity::Error); return tryResult930
.propagateErr(); } const bool& isDirectory = tryResult930
.inspect();
;
5940
5941 QM_TRY(OkIf(isDirectory), NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR){auto tryResult931 = (OkIf(isDirectory)); static_assert(std::
is_empty_v<typename decltype(tryResult931)::ok_type>); if
((__builtin_expect(!!(tryResult931.isErr()), 0))) { [[maybe_unused
]] auto tryTempError = tryResult931.unwrapErr(); mozilla::dom
::quota::HandleError("OkIf(isDirectory)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5941, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError
, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
;
5942
5943 QM_TRY(DeleteFileManagerDirectory(*fmDirectory, aQuotaManager,{auto tryResult932 = (DeleteFileManagerDirectory(*fmDirectory
, aQuotaManager, aPersistenceType, aOriginMetadata)); static_assert
(std::is_empty_v<typename decltype(tryResult932)::ok_type>
); if ((__builtin_expect(!!(tryResult932.isErr()), 0))) { mozilla
::dom::quota::HandleError("DeleteFileManagerDirectory(*fmDirectory, aQuotaManager, aPersistenceType, aOriginMetadata)"
, tryResult932.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5944, mozilla::dom::quota::Severity::Error); return tryResult932
.propagateErr(); }}
5944 aPersistenceType, aOriginMetadata)){auto tryResult932 = (DeleteFileManagerDirectory(*fmDirectory
, aQuotaManager, aPersistenceType, aOriginMetadata)); static_assert
(std::is_empty_v<typename decltype(tryResult932)::ok_type>
); if ((__builtin_expect(!!(tryResult932.isErr()), 0))) { mozilla
::dom::quota::HandleError("DeleteFileManagerDirectory(*fmDirectory, aQuotaManager, aPersistenceType, aOriginMetadata)"
, tryResult932.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5944, mozilla::dom::quota::Severity::Error); return tryResult932
.propagateErr(); }}
;
5945 }
5946
5947 IndexedDatabaseManager* mgr = IndexedDatabaseManager::Get();
5948 MOZ_ASSERT_IF(aQuotaManager, mgr)do { if (aQuotaManager) { do { static_assert( mozilla::detail
::AssertionConditionType<decltype(mgr)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mgr))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("mgr", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5948); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mgr" ")"); do
{ MOZ_CrashSequence(__null, 5948); __attribute__((nomerge)) ::
abort(); } while (false); } } while (false); } } while (false
)
;
5949
5950 if (mgr) {
5951 mgr->InvalidateFileManager(aPersistenceType, aOriginMetadata.mOrigin,
5952 aDatabaseName);
5953 }
5954
5955 QM_TRY(MOZ_TO_RESULT(RemoveMarkerFile(markerFile))){auto tryResult933 = (ToResult(RemoveMarkerFile(markerFile)))
; static_assert(std::is_empty_v<typename decltype(tryResult933
)::ok_type>); if ((__builtin_expect(!!(tryResult933.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveMarkerFile(markerFile))"
, tryResult933.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5955, mozilla::dom::quota::Severity::Error); return tryResult933
.propagateErr(); }}
;
5956
5957 return NS_OK;
5958}
5959
5960/*******************************************************************************
5961 * Globals
5962 ******************************************************************************/
5963
5964// Counts the number of "live" Factory, FactoryOp and Database instances.
5965uint64_t gBusyCount = 0;
5966
5967// We don't use LinkedList<CheckedUnsafePtr<FactoryOp>> because
5968// CheckedUnsafePtr is not suitable for use within LinkedList. While it's
5969// theoretically possible to adapt LinkedList to support it, doing so would
5970// introduce unnecessary overhead. Instead, we use a simpler and more
5971// efficient approach. Each FactoryOp instance asserts !isInList() in its
5972// destructor to catch dangling pointer issues.
5973using FactoryOpArray = LinkedList<FactoryOp>;
5974
5975StaticAutoPtr<FactoryOpArray> gFactoryOps;
5976
5977// Maps a database id to information about live database actors.
5978using DatabaseActorHashtable =
5979 nsClassHashtable<nsCStringHashKey, DatabaseActorInfo>;
5980
5981StaticAutoPtr<DatabaseActorHashtable> gLiveDatabaseHashtable;
5982
5983StaticRefPtr<ConnectionPool> gConnectionPool;
5984
5985using DatabaseLoggingInfoHashtable =
5986 nsTHashMap<nsIDHashKey, DatabaseLoggingInfo*>;
5987
5988StaticAutoPtr<DatabaseLoggingInfoHashtable> gLoggingInfoHashtable;
5989
5990using TelemetryIdHashtable = nsTHashMap<nsUint32HashKey, uint32_t>;
5991
5992StaticAutoPtr<TelemetryIdHashtable> gTelemetryIdHashtable;
5993
5994// Protects all reads and writes to gTelemetryIdHashtable.
5995StaticAutoPtr<Mutex> gTelemetryIdMutex;
5996
5997// For private browsing, maps the raw database names provided by content to a
5998// replacement UUID in order to avoid exposing the name of the database on
5999// disk or a directly derived value, such as the non-private-browsing
6000// representation. This mapping will be the same for all databases with the
6001// same name across all storage keys/origins for the lifetime of the IDB
6002// QuotaClient. In tests, the QuotaClient may be created and destroyed multiple
6003// times, but for normal browser use the QuotaClient will last until the
6004// browser shuts down. Bug 1831835 will improve this implementation to avoid
6005// using the same mapping across storage keys and to deal with the resulting
6006// lifecycle issues of the additional memory use.
6007using StorageDatabaseNameHashtable = nsTHashMap<nsString, nsString>;
6008
6009StaticAutoPtr<StorageDatabaseNameHashtable> gStorageDatabaseNameHashtable;
6010
6011// Protects all reads and writes to gStorageDatabaseNameHashtable.
6012StaticAutoPtr<Mutex> gStorageDatabaseNameMutex;
6013
6014#ifdef DEBUG1
6015
6016StaticRefPtr<DEBUGThreadSlower> gDEBUGThreadSlower;
6017
6018#endif // DEBUG
6019
6020void IncreaseBusyCount() {
6021 AssertIsOnBackgroundThread();
6022
6023 // If this is the first instance then we need to do some initialization.
6024 if (!gBusyCount) {
6025 MOZ_ASSERT(!gFactoryOps)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!gFactoryOps)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!gFactoryOps))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("!gFactoryOps", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6025); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!gFactoryOps"
")"); do { MOZ_CrashSequence(__null, 6025); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6026 gFactoryOps = new FactoryOpArray();
6027
6028 MOZ_ASSERT(!gLiveDatabaseHashtable)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!gLiveDatabaseHashtable)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!gLiveDatabaseHashtable))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!gLiveDatabaseHashtable"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6028)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!gLiveDatabaseHashtable"
")"); do { MOZ_CrashSequence(__null, 6028); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6029 gLiveDatabaseHashtable = new DatabaseActorHashtable();
6030
6031 MOZ_ASSERT(!gLoggingInfoHashtable)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!gLoggingInfoHashtable)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!gLoggingInfoHashtable))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!gLoggingInfoHashtable"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6031)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!gLoggingInfoHashtable"
")"); do { MOZ_CrashSequence(__null, 6031); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6032 gLoggingInfoHashtable = new DatabaseLoggingInfoHashtable();
6033
6034#ifdef DEBUG1
6035 if (kDEBUGThreadPriority != nsISupportsPriority::PRIORITY_NORMAL) {
6036 NS_WARNING(NS_DebugBreak(NS_DEBUG_WARNING, "PBackground thread debugging enabled, priority has been "
"modified!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6038)
6037 "PBackground thread debugging enabled, priority has been "NS_DebugBreak(NS_DEBUG_WARNING, "PBackground thread debugging enabled, priority has been "
"modified!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6038)
6038 "modified!")NS_DebugBreak(NS_DEBUG_WARNING, "PBackground thread debugging enabled, priority has been "
"modified!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6038)
;
6039 nsCOMPtr<nsISupportsPriority> thread =
6040 do_QueryInterface(NS_GetCurrentThread());
6041 MOZ_ASSERT(thread)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thread)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(thread))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("thread", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6041); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thread" ")"
); do { MOZ_CrashSequence(__null, 6041); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6042
6043 MOZ_ALWAYS_SUCCEEDS(thread->SetPriority(kDEBUGThreadPriority))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(thread->SetPriority(kDEBUGThreadPriority))), 1)))), 1))) {
} else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(thread->SetPriority(kDEBUGThreadPriority))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6043)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(thread->SetPriority(kDEBUGThreadPriority))"
")"); do { MOZ_CrashSequence(__null, 6043); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
6044 }
6045
6046 if (kDEBUGThreadSleepMS) {
6047 NS_WARNING(NS_DebugBreak(NS_DEBUG_WARNING, "PBackground thread debugging enabled, sleeping after every "
"event!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6049)
6048 "PBackground thread debugging enabled, sleeping after every "NS_DebugBreak(NS_DEBUG_WARNING, "PBackground thread debugging enabled, sleeping after every "
"event!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6049)
6049 "event!")NS_DebugBreak(NS_DEBUG_WARNING, "PBackground thread debugging enabled, sleeping after every "
"event!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6049)
;
6050 nsCOMPtr<nsIThreadInternal> thread =
6051 do_QueryInterface(NS_GetCurrentThread());
6052 MOZ_ASSERT(thread)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thread)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(thread))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("thread", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6052); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thread" ")"
); do { MOZ_CrashSequence(__null, 6052); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6053
6054 gDEBUGThreadSlower = new DEBUGThreadSlower();
6055
6056 MOZ_ALWAYS_SUCCEEDS(thread->AddObserver(gDEBUGThreadSlower))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(thread->AddObserver(gDEBUGThreadSlower))), 1)))), 1))) { }
else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(thread->AddObserver(gDEBUGThreadSlower))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6056)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(thread->AddObserver(gDEBUGThreadSlower))"
")"); do { MOZ_CrashSequence(__null, 6056); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
6057 }
6058#endif // DEBUG
6059 }
6060
6061 gBusyCount++;
6062}
6063
6064void DecreaseBusyCount() {
6065 AssertIsOnBackgroundThread();
6066 MOZ_ASSERT(gBusyCount)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(gBusyCount)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(gBusyCount))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("gBusyCount", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6066); AnnotateMozCrashReason("MOZ_ASSERT" "(" "gBusyCount"
")"); do { MOZ_CrashSequence(__null, 6066); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6067
6068 // Clean up if there are no more instances.
6069 if (--gBusyCount == 0) {
6070 MOZ_ASSERT(gLoggingInfoHashtable)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(gLoggingInfoHashtable)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(gLoggingInfoHashtable))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("gLoggingInfoHashtable"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6070)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "gLoggingInfoHashtable"
")"); do { MOZ_CrashSequence(__null, 6070); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6071 gLoggingInfoHashtable = nullptr;
6072
6073 MOZ_ASSERT(gLiveDatabaseHashtable)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(gLiveDatabaseHashtable)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(gLiveDatabaseHashtable))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("gLiveDatabaseHashtable"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6073)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "gLiveDatabaseHashtable"
")"); do { MOZ_CrashSequence(__null, 6073); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6074 MOZ_ASSERT(!gLiveDatabaseHashtable->Count())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!gLiveDatabaseHashtable->Count())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!gLiveDatabaseHashtable->
Count()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!gLiveDatabaseHashtable->Count()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6074); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!gLiveDatabaseHashtable->Count()"
")"); do { MOZ_CrashSequence(__null, 6074); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6075 gLiveDatabaseHashtable = nullptr;
6076
6077 MOZ_ASSERT(gFactoryOps)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(gFactoryOps)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(gFactoryOps))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("gFactoryOps", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6077); AnnotateMozCrashReason("MOZ_ASSERT" "(" "gFactoryOps"
")"); do { MOZ_CrashSequence(__null, 6077); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6078 MOZ_ASSERT(gFactoryOps->isEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(gFactoryOps->isEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(gFactoryOps->isEmpty())))
, 0))) { do { } while (false); MOZ_ReportAssertionFailure("gFactoryOps->isEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6078)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "gFactoryOps->isEmpty()"
")"); do { MOZ_CrashSequence(__null, 6078); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6079 gFactoryOps = nullptr;
6080
6081#ifdef DEBUG1
6082 if (kDEBUGThreadPriority != nsISupportsPriority::PRIORITY_NORMAL) {
6083 nsCOMPtr<nsISupportsPriority> thread =
6084 do_QueryInterface(NS_GetCurrentThread());
6085 MOZ_ASSERT(thread)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thread)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(thread))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("thread", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6085); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thread" ")"
); do { MOZ_CrashSequence(__null, 6085); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6086
6087 MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(thread->SetPriority(nsISupportsPriority::PRIORITY_NORMAL)
)), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(thread->SetPriority(nsISupportsPriority::PRIORITY_NORMAL))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6088)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(thread->SetPriority(nsISupportsPriority::PRIORITY_NORMAL))"
")"); do { MOZ_CrashSequence(__null, 6088); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
6088 thread->SetPriority(nsISupportsPriority::PRIORITY_NORMAL))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(thread->SetPriority(nsISupportsPriority::PRIORITY_NORMAL)
)), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(thread->SetPriority(nsISupportsPriority::PRIORITY_NORMAL))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6088)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(thread->SetPriority(nsISupportsPriority::PRIORITY_NORMAL))"
")"); do { MOZ_CrashSequence(__null, 6088); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
6089 }
6090
6091 if (kDEBUGThreadSleepMS) {
6092 MOZ_ASSERT(gDEBUGThreadSlower)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(gDEBUGThreadSlower)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(gDEBUGThreadSlower))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("gDEBUGThreadSlower"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6092)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "gDEBUGThreadSlower"
")"); do { MOZ_CrashSequence(__null, 6092); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6093
6094 nsCOMPtr<nsIThreadInternal> thread =
6095 do_QueryInterface(NS_GetCurrentThread());
6096 MOZ_ASSERT(thread)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thread)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(thread))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("thread", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6096); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thread" ")"
); do { MOZ_CrashSequence(__null, 6096); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6097
6098 MOZ_ALWAYS_SUCCEEDS(thread->RemoveObserver(gDEBUGThreadSlower))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(thread->RemoveObserver(gDEBUGThreadSlower))), 1)))), 1)))
{ } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(thread->RemoveObserver(gDEBUGThreadSlower))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6098)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(thread->RemoveObserver(gDEBUGThreadSlower))"
")"); do { MOZ_CrashSequence(__null, 6098); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
6099
6100 gDEBUGThreadSlower = nullptr;
6101 }
6102#endif // DEBUG
6103 }
6104}
6105
6106template <typename Condition>
6107void InvalidateLiveDatabasesMatching(const Condition& aCondition) {
6108 AssertIsOnBackgroundThread();
6109
6110 if (!gLiveDatabaseHashtable) {
6111 return;
6112 }
6113
6114 // Invalidating a Database will cause it to be removed from the
6115 // gLiveDatabaseHashtable entries' mLiveDatabases, and, if it was the last
6116 // element in mLiveDatabases, to remove the whole hashtable entry. Therefore,
6117 // we need to make a temporary list of the databases to invalidate to avoid
6118 // iterator invalidation.
6119
6120 nsTArray<SafeRefPtr<Database>> databases;
6121
6122 for (const auto& liveDatabasesEntry : gLiveDatabaseHashtable->Values()) {
6123 for (Database* const database : liveDatabasesEntry->mLiveDatabases) {
6124 if (aCondition(*database)) {
6125 databases.AppendElement(
6126 SafeRefPtr{database, AcquireStrongRefFromRawPtr{}});
6127 }
6128 }
6129 }
6130
6131 for (const auto& database : databases) {
6132 database->Invalidate();
6133 }
6134}
6135
6136uint32_t TelemetryIdForFile(nsIFile* aFile) {
6137 // May be called on any thread!
6138
6139 MOZ_ASSERT(aFile)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aFile)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(aFile))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("aFile", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6139); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFile" ")")
; do { MOZ_CrashSequence(__null, 6139); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6140 MOZ_ASSERT(gTelemetryIdMutex)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(gTelemetryIdMutex)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(gTelemetryIdMutex))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("gTelemetryIdMutex"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6140)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "gTelemetryIdMutex"
")"); do { MOZ_CrashSequence(__null, 6140); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6141
6142 // The storage directory is structured like this:
6143 //
6144 // <profile>/storage/<persistence>/<origin>/idb/<filename>.sqlite
6145 //
6146 // For the purposes of this function we're only concerned with the
6147 // <persistence>, <origin>, and <filename> pieces.
6148
6149 nsString filename;
6150 MOZ_ALWAYS_SUCCEEDS(aFile->GetLeafName(filename))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(aFile->GetLeafName(filename))), 1)))), 1))) { } else { do
{ do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(aFile->GetLeafName(filename))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6150)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aFile->GetLeafName(filename))"
")"); do { MOZ_CrashSequence(__null, 6150); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
6151
6152 // Make sure we were given a database file.
6153 MOZ_ASSERT(StringEndsWith(filename, kSQLiteSuffix))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(StringEndsWith(filename, kSQLiteSuffix))>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(StringEndsWith(filename, kSQLiteSuffix)))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("StringEndsWith(filename, kSQLiteSuffix)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6153)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "StringEndsWith(filename, kSQLiteSuffix)"
")"); do { MOZ_CrashSequence(__null, 6153); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6154
6155 filename.Truncate(filename.Length() - kSQLiteSuffix.Length());
6156
6157 // Get the "idb" directory.
6158 nsCOMPtr<nsIFile> idbDirectory;
6159 MOZ_ALWAYS_SUCCEEDS(aFile->GetParent(getter_AddRefs(idbDirectory)))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(aFile->GetParent(getter_AddRefs(idbDirectory)))), 1)))), 1
))) { } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(aFile->GetParent(getter_AddRefs(idbDirectory)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6159)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aFile->GetParent(getter_AddRefs(idbDirectory)))"
")"); do { MOZ_CrashSequence(__null, 6159); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
6160
6161 DebugOnly<nsString> idbLeafName;
6162 MOZ_ASSERT(NS_SUCCEEDED(idbDirectory->GetLeafName(idbLeafName)))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(idbDirectory
->GetLeafName(idbLeafName))), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(idbDirectory->GetLeafName(idbLeafName))), 1
)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(idbDirectory->GetLeafName(idbLeafName))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6162)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(idbDirectory->GetLeafName(idbLeafName))), 1)))"
")"); do { MOZ_CrashSequence(__null, 6162); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6163 MOZ_ASSERT(static_cast<nsString&>(idbLeafName).EqualsLiteral("idb"))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(static_cast<nsString&>(idbLeafName).EqualsLiteral
("idb"))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(static_cast<nsString&>(idbLeafName).EqualsLiteral
("idb")))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("static_cast<nsString&>(idbLeafName).EqualsLiteral(\"idb\")"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6163)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "static_cast<nsString&>(idbLeafName).EqualsLiteral(\"idb\")"
")"); do { MOZ_CrashSequence(__null, 6163); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6164
6165 // Get the <origin> directory.
6166 nsCOMPtr<nsIFile> originDirectory;
6167 MOZ_ALWAYS_SUCCEEDS(idbDirectory->GetParent(getter_AddRefs(originDirectory)))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(idbDirectory->GetParent(getter_AddRefs(originDirectory)))
), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(idbDirectory->GetParent(getter_AddRefs(originDirectory)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6167)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(idbDirectory->GetParent(getter_AddRefs(originDirectory)))"
")"); do { MOZ_CrashSequence(__null, 6167); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
6168
6169 nsString origin;
6170 MOZ_ALWAYS_SUCCEEDS(originDirectory->GetLeafName(origin))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(originDirectory->GetLeafName(origin))), 1)))), 1))) { } else
{ do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(originDirectory->GetLeafName(origin))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6170)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(originDirectory->GetLeafName(origin))"
")"); do { MOZ_CrashSequence(__null, 6170); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
6171
6172 // Any databases in these directories are owned by the application and should
6173 // not have their filenames masked. Hopefully they also appear in the
6174 // Telemetry.cpp whitelist.
6175 if (origin.EqualsLiteral("chrome")) {
6176 return 0;
6177 }
6178
6179 // Get the <persistence> directory.
6180 nsCOMPtr<nsIFile> persistenceDirectory;
6181 MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(originDirectory->GetParent(getter_AddRefs(persistenceDirectory
)))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(originDirectory->GetParent(getter_AddRefs(persistenceDirectory)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6182)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(originDirectory->GetParent(getter_AddRefs(persistenceDirectory)))"
")"); do { MOZ_CrashSequence(__null, 6182); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
6182 originDirectory->GetParent(getter_AddRefs(persistenceDirectory)))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(originDirectory->GetParent(getter_AddRefs(persistenceDirectory
)))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(originDirectory->GetParent(getter_AddRefs(persistenceDirectory)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6182)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(originDirectory->GetParent(getter_AddRefs(persistenceDirectory)))"
")"); do { MOZ_CrashSequence(__null, 6182); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
6183
6184 nsString persistence;
6185 MOZ_ALWAYS_SUCCEEDS(persistenceDirectory->GetLeafName(persistence))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(persistenceDirectory->GetLeafName(persistence))), 1)))), 1
))) { } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(persistenceDirectory->GetLeafName(persistence))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6185)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(persistenceDirectory->GetLeafName(persistence))"
")"); do { MOZ_CrashSequence(__null, 6185); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
6186
6187 constexpr auto separator = u"*"_ns;
6188
6189 uint32_t hashValue =
6190 HashString(persistence + separator + origin + separator + filename);
6191
6192 MutexAutoLock lock(*gTelemetryIdMutex);
6193
6194 if (!gTelemetryIdHashtable) {
6195 gTelemetryIdHashtable = new TelemetryIdHashtable();
6196 }
6197
6198 return gTelemetryIdHashtable->LookupOrInsertWith(hashValue, [] {
6199 static uint32_t sNextId = 1;
6200
6201 // We're locked, no need for atomics.
6202 return sNextId++;
6203 });
6204}
6205
6206const CommonIndexOpenCursorParams& GetCommonIndexOpenCursorParams(
6207 const OpenCursorParams& aParams) {
6208 switch (aParams.type()) {
6209 case OpenCursorParams::TIndexOpenCursorParams:
6210 return aParams.get_IndexOpenCursorParams().commonIndexParams();
6211 case OpenCursorParams::TIndexOpenKeyCursorParams:
6212 return aParams.get_IndexOpenKeyCursorParams().commonIndexParams();
6213 default:
6214 MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6214)
; AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 6214); __attribute__((nomerge
)) ::abort(); } while (false); } while (false)
;
6215 }
6216}
6217
6218const CommonOpenCursorParams& GetCommonOpenCursorParams(
6219 const OpenCursorParams& aParams) {
6220 switch (aParams.type()) {
6221 case OpenCursorParams::TObjectStoreOpenCursorParams:
6222 return aParams.get_ObjectStoreOpenCursorParams().commonParams();
6223 case OpenCursorParams::TObjectStoreOpenKeyCursorParams:
6224 return aParams.get_ObjectStoreOpenKeyCursorParams().commonParams();
6225 case OpenCursorParams::TIndexOpenCursorParams:
6226 case OpenCursorParams::TIndexOpenKeyCursorParams:
6227 return GetCommonIndexOpenCursorParams(aParams).commonParams();
6228 default:
6229 MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6229)
; AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 6229); __attribute__((nomerge
)) ::abort(); } while (false); } while (false)
;
6230 }
6231}
6232
6233// TODO: Using nsCString as a return type here seems to lead to a dependency on
6234// some temporaries, which I did not expect. Is it a good idea that the default
6235// operator+ behaviour constructs such strings? It is certainly useful as an
6236// optimization, but this should be better done via an appropriately named
6237// function rather than an operator.
6238nsAutoCString MakeColumnPairSelectionList(
6239 const nsLiteralCString& aPlainColumnName,
6240 const nsLiteralCString& aLocaleAwareColumnName,
6241 const nsLiteralCString& aSortColumnAlias, const bool aIsLocaleAware) {
6242 return aPlainColumnName +
6243 (aIsLocaleAware ? EmptyCString() : " as "_ns + aSortColumnAlias) +
6244 ", "_ns + aLocaleAwareColumnName +
6245 (aIsLocaleAware ? " as "_ns + aSortColumnAlias : EmptyCString());
6246}
6247
6248constexpr bool IsIncreasingOrder(const IDBCursorDirection aDirection) {
6249 MOZ_ASSERT(aDirection == IDBCursorDirection::Next ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDirection == IDBCursorDirection::Next || aDirection
== IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection
::Prev || aDirection == IDBCursorDirection::Prevunique)>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aDirection == IDBCursorDirection::Next || aDirection
== IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection
::Prev || aDirection == IDBCursorDirection::Prevunique))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6252)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique"
")"); do { MOZ_CrashSequence(__null, 6252); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
6250 aDirection == IDBCursorDirection::Nextunique ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDirection == IDBCursorDirection::Next || aDirection
== IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection
::Prev || aDirection == IDBCursorDirection::Prevunique)>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aDirection == IDBCursorDirection::Next || aDirection
== IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection
::Prev || aDirection == IDBCursorDirection::Prevunique))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6252)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique"
")"); do { MOZ_CrashSequence(__null, 6252); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
6251 aDirection == IDBCursorDirection::Prev ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDirection == IDBCursorDirection::Next || aDirection
== IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection
::Prev || aDirection == IDBCursorDirection::Prevunique)>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aDirection == IDBCursorDirection::Next || aDirection
== IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection
::Prev || aDirection == IDBCursorDirection::Prevunique))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6252)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique"
")"); do { MOZ_CrashSequence(__null, 6252); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
6252 aDirection == IDBCursorDirection::Prevunique)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDirection == IDBCursorDirection::Next || aDirection
== IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection
::Prev || aDirection == IDBCursorDirection::Prevunique)>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aDirection == IDBCursorDirection::Next || aDirection
== IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection
::Prev || aDirection == IDBCursorDirection::Prevunique))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6252)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique"
")"); do { MOZ_CrashSequence(__null, 6252); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6253
6254 return aDirection == IDBCursorDirection::Next ||
6255 aDirection == IDBCursorDirection::Nextunique;
6256}
6257
6258constexpr bool IsUnique(const IDBCursorDirection aDirection) {
6259 MOZ_ASSERT(aDirection == IDBCursorDirection::Next ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDirection == IDBCursorDirection::Next || aDirection
== IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection
::Prev || aDirection == IDBCursorDirection::Prevunique)>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aDirection == IDBCursorDirection::Next || aDirection
== IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection
::Prev || aDirection == IDBCursorDirection::Prevunique))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6262)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique"
")"); do { MOZ_CrashSequence(__null, 6262); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
6260 aDirection == IDBCursorDirection::Nextunique ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDirection == IDBCursorDirection::Next || aDirection
== IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection
::Prev || aDirection == IDBCursorDirection::Prevunique)>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aDirection == IDBCursorDirection::Next || aDirection
== IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection
::Prev || aDirection == IDBCursorDirection::Prevunique))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6262)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique"
")"); do { MOZ_CrashSequence(__null, 6262); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
6261 aDirection == IDBCursorDirection::Prev ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDirection == IDBCursorDirection::Next || aDirection
== IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection
::Prev || aDirection == IDBCursorDirection::Prevunique)>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aDirection == IDBCursorDirection::Next || aDirection
== IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection
::Prev || aDirection == IDBCursorDirection::Prevunique))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6262)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique"
")"); do { MOZ_CrashSequence(__null, 6262); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
6262 aDirection == IDBCursorDirection::Prevunique)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDirection == IDBCursorDirection::Next || aDirection
== IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection
::Prev || aDirection == IDBCursorDirection::Prevunique)>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aDirection == IDBCursorDirection::Next || aDirection
== IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection
::Prev || aDirection == IDBCursorDirection::Prevunique))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6262)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique"
")"); do { MOZ_CrashSequence(__null, 6262); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6263
6264 return aDirection == IDBCursorDirection::Nextunique ||
6265 aDirection == IDBCursorDirection::Prevunique;
6266}
6267
6268// TODO: In principle, this could be constexpr, if operator+(nsLiteralCString,
6269// nsLiteralCString) were constexpr and returned a literal type.
6270nsAutoCString MakeDirectionClause(
6271 const IDBCursorDirection aDirection,
6272 const nsLiteralCString& column = kColumnNameKey) {
6273 return " ORDER BY "_ns + column +
6274 (IsIncreasingOrder(aDirection) ? " ASC"_ns : " DESC"_ns);
6275}
6276
6277enum struct ComparisonOperator {
6278 LessThan,
6279 LessOrEquals,
6280 Equals,
6281 GreaterThan,
6282 GreaterOrEquals,
6283};
6284
6285constexpr nsLiteralCString GetComparisonOperatorString(
6286 const ComparisonOperator aComparisonOperator) {
6287 switch (aComparisonOperator) {
6288 case ComparisonOperator::LessThan:
6289 return "<"_ns;
6290 case ComparisonOperator::LessOrEquals:
6291 return "<="_ns;
6292 case ComparisonOperator::Equals:
6293 return "=="_ns;
6294 case ComparisonOperator::GreaterThan:
6295 return ">"_ns;
6296 case ComparisonOperator::GreaterOrEquals:
6297 return ">="_ns;
6298 }
6299
6300 // TODO: This is just to silence the "control reaches end of non-void
6301 // function" warning. Cannot use MOZ_CRASH in a constexpr function,
6302 // unfortunately.
6303 return ""_ns;
6304}
6305
6306nsAutoCString GetKeyClause(const nsACString& aColumnName,
6307 const ComparisonOperator aComparisonOperator,
6308 const nsLiteralCString& aStmtParamName) {
6309 return aColumnName + " "_ns +
6310 GetComparisonOperatorString(aComparisonOperator) + " :"_ns +
6311 aStmtParamName;
6312}
6313
6314nsAutoCString GetSortKeyClause(const ComparisonOperator aComparisonOperator,
6315 const nsLiteralCString& aStmtParamName) {
6316 return GetKeyClause(kColumnNameAliasSortKey, aComparisonOperator,
6317 aStmtParamName);
6318}
6319
6320nsAutoCString GetRowValueClause(const nsACString& aColumn1,
6321 const nsACString& aColumn2,
6322 const ComparisonOperator aComparisonOperator,
6323 const nsLiteralCString& aStmtParamName1,
6324 const nsLiteralCString& aStmtParamName2) {
6325 return "("_ns + aColumn1 + ", "_ns + aColumn2 + ") "_ns +
6326 GetComparisonOperatorString(aComparisonOperator) + " (:"_ns +
6327 aStmtParamName1 + ", :"_ns + aStmtParamName2 + ")"_ns;
6328}
6329
6330template <IDBCursorType CursorType>
6331struct PopulateResponseHelper;
6332
6333struct CommonPopulateResponseHelper {
6334 explicit CommonPopulateResponseHelper(
6335 const TransactionDatabaseOperationBase& aOp)
6336 : mOp{aOp} {}
6337
6338 nsresult GetKeys(mozIStorageStatement* const aStmt,
6339 Key* const aOptOutSortKey) {
6340 QM_TRY(MOZ_TO_RESULT(GetCommonKeys(aStmt))){auto tryResult934 = (ToResult(GetCommonKeys(aStmt))); static_assert
(std::is_empty_v<typename decltype(tryResult934)::ok_type>
); if ((__builtin_expect(!!(tryResult934.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(GetCommonKeys(aStmt))", tryResult934
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6340, mozilla::dom::quota::Severity::Error); return tryResult934
.propagateErr(); }}
;
6341
6342 if (aOptOutSortKey) {
6343 *aOptOutSortKey = mPosition;
6344 }
6345
6346 return NS_OK;
6347 }
6348
6349 nsresult GetCommonKeys(mozIStorageStatement* const aStmt) {
6350 MOZ_ASSERT(mPosition.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mPosition.IsUnset())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mPosition.IsUnset()))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("mPosition.IsUnset()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6350)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mPosition.IsUnset()"
")"); do { MOZ_CrashSequence(__null, 6350); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6351
6352 QM_TRY(MOZ_TO_RESULT(mPosition.SetFromStatement(aStmt, 0))){auto tryResult935 = (ToResult(mPosition.SetFromStatement(aStmt
, 0))); static_assert(std::is_empty_v<typename decltype(tryResult935
)::ok_type>); if ((__builtin_expect(!!(tryResult935.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(mPosition.SetFromStatement(aStmt, 0))"
, tryResult935.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6352, mozilla::dom::quota::Severity::Error); return tryResult935
.propagateErr(); }}
;
6353
6354 IDB_LOG_MARK_PARENT_TRANSACTION_REQUEST(mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"PRELOAD: Populating response with key %s", "IndexedDB %s: "
"P" " " "T[%" "l" "i" "]" " " "R[%" "l" "u" "]" ": " "Populating%.0s"
, mozilla::dom::indexedDB::LoggingIdString<true>(mOp.BackgroundChildLoggingId
()).get(), mOp.TransactionLoggingSerialNumber(), mOp.LoggingSerialNumber
(), mPosition.GetBuffer().get())
6355 "PRELOAD: Populating response with key %s", "Populating%.0s",mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"PRELOAD: Populating response with key %s", "IndexedDB %s: "
"P" " " "T[%" "l" "i" "]" " " "R[%" "l" "u" "]" ": " "Populating%.0s"
, mozilla::dom::indexedDB::LoggingIdString<true>(mOp.BackgroundChildLoggingId
()).get(), mOp.TransactionLoggingSerialNumber(), mOp.LoggingSerialNumber
(), mPosition.GetBuffer().get())
6356 IDB_LOG_ID_STRING(mOp.BackgroundChildLoggingId()),mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"PRELOAD: Populating response with key %s", "IndexedDB %s: "
"P" " " "T[%" "l" "i" "]" " " "R[%" "l" "u" "]" ": " "Populating%.0s"
, mozilla::dom::indexedDB::LoggingIdString<true>(mOp.BackgroundChildLoggingId
()).get(), mOp.TransactionLoggingSerialNumber(), mOp.LoggingSerialNumber
(), mPosition.GetBuffer().get())
6357 mOp.TransactionLoggingSerialNumber(), mOp.LoggingSerialNumber(),mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"PRELOAD: Populating response with key %s", "IndexedDB %s: "
"P" " " "T[%" "l" "i" "]" " " "R[%" "l" "u" "]" ": " "Populating%.0s"
, mozilla::dom::indexedDB::LoggingIdString<true>(mOp.BackgroundChildLoggingId
()).get(), mOp.TransactionLoggingSerialNumber(), mOp.LoggingSerialNumber
(), mPosition.GetBuffer().get())
6358 mPosition.GetBuffer().get())mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"PRELOAD: Populating response with key %s", "IndexedDB %s: "
"P" " " "T[%" "l" "i" "]" " " "R[%" "l" "u" "]" ": " "Populating%.0s"
, mozilla::dom::indexedDB::LoggingIdString<true>(mOp.BackgroundChildLoggingId
()).get(), mOp.TransactionLoggingSerialNumber(), mOp.LoggingSerialNumber
(), mPosition.GetBuffer().get())
;
6359
6360 return NS_OK;
6361 }
6362
6363 template <typename Response>
6364 void FillKeys(Response& aResponse) {
6365 MOZ_ASSERT(!mPosition.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mPosition.IsUnset())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mPosition.IsUnset()))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("!mPosition.IsUnset()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6365)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mPosition.IsUnset()"
")"); do { MOZ_CrashSequence(__null, 6365); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6366 aResponse.key() = std::move(mPosition);
6367 }
6368
6369 template <typename Response>
6370 static size_t GetKeySize(const Response& aResponse) {
6371 return aResponse.key().GetBuffer().Length();
6372 }
6373
6374 protected:
6375 const Key& GetPosition() const { return mPosition; }
6376
6377 private:
6378 const TransactionDatabaseOperationBase& mOp;
6379 Key mPosition;
6380};
6381
6382struct IndexPopulateResponseHelper : CommonPopulateResponseHelper {
6383 using CommonPopulateResponseHelper::CommonPopulateResponseHelper;
6384
6385 nsresult GetKeys(mozIStorageStatement* const aStmt,
6386 Key* const aOptOutSortKey) {
6387 MOZ_ASSERT(mLocaleAwarePosition.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mLocaleAwarePosition.IsUnset())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mLocaleAwarePosition.IsUnset
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mLocaleAwarePosition.IsUnset()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6387); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLocaleAwarePosition.IsUnset()"
")"); do { MOZ_CrashSequence(__null, 6387); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6388 MOZ_ASSERT(mObjectStorePosition.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mObjectStorePosition.IsUnset())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mObjectStorePosition.IsUnset
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mObjectStorePosition.IsUnset()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6388); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mObjectStorePosition.IsUnset()"
")"); do { MOZ_CrashSequence(__null, 6388); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6389
6390 QM_TRY(MOZ_TO_RESULT(CommonPopulateResponseHelper::GetCommonKeys(aStmt))){auto tryResult936 = (ToResult(CommonPopulateResponseHelper::
GetCommonKeys(aStmt))); static_assert(std::is_empty_v<typename
decltype(tryResult936)::ok_type>); if ((__builtin_expect(
!!(tryResult936.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(CommonPopulateResponseHelper::GetCommonKeys(aStmt))"
, tryResult936.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6390, mozilla::dom::quota::Severity::Error); return tryResult936
.propagateErr(); }}
;
6391
6392 QM_TRY(MOZ_TO_RESULT(mLocaleAwarePosition.SetFromStatement(aStmt, 1))){auto tryResult937 = (ToResult(mLocaleAwarePosition.SetFromStatement
(aStmt, 1))); static_assert(std::is_empty_v<typename decltype
(tryResult937)::ok_type>); if ((__builtin_expect(!!(tryResult937
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(mLocaleAwarePosition.SetFromStatement(aStmt, 1))"
, tryResult937.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6392, mozilla::dom::quota::Severity::Error); return tryResult937
.propagateErr(); }}
;
6393
6394 QM_TRY(MOZ_TO_RESULT(mObjectStorePosition.SetFromStatement(aStmt, 2))){auto tryResult938 = (ToResult(mObjectStorePosition.SetFromStatement
(aStmt, 2))); static_assert(std::is_empty_v<typename decltype
(tryResult938)::ok_type>); if ((__builtin_expect(!!(tryResult938
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(mObjectStorePosition.SetFromStatement(aStmt, 2))"
, tryResult938.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6394, mozilla::dom::quota::Severity::Error); return tryResult938
.propagateErr(); }}
;
6395
6396 if (aOptOutSortKey) {
6397 *aOptOutSortKey =
6398 mLocaleAwarePosition.IsUnset() ? GetPosition() : mLocaleAwarePosition;
6399 }
6400
6401 return NS_OK;
6402 }
6403
6404 template <typename Response>
6405 void FillKeys(Response& aResponse) {
6406 MOZ_ASSERT(!mLocaleAwarePosition.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mLocaleAwarePosition.IsUnset())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mLocaleAwarePosition.IsUnset
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!mLocaleAwarePosition.IsUnset()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6406); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mLocaleAwarePosition.IsUnset()"
")"); do { MOZ_CrashSequence(__null, 6406); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6407 MOZ_ASSERT(!mObjectStorePosition.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mObjectStorePosition.IsUnset())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mObjectStorePosition.IsUnset
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!mObjectStorePosition.IsUnset()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6407); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mObjectStorePosition.IsUnset()"
")"); do { MOZ_CrashSequence(__null, 6407); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6408
6409 CommonPopulateResponseHelper::FillKeys(aResponse);
6410 aResponse.sortKey() = std::move(mLocaleAwarePosition);
6411 aResponse.objectKey() = std::move(mObjectStorePosition);
6412 }
6413
6414 template <typename Response>
6415 static size_t GetKeySize(Response& aResponse) {
6416 return CommonPopulateResponseHelper::GetKeySize(aResponse) +
6417 aResponse.sortKey().GetBuffer().Length() +
6418 aResponse.objectKey().GetBuffer().Length();
6419 }
6420
6421 private:
6422 Key mLocaleAwarePosition, mObjectStorePosition;
6423};
6424
6425struct KeyPopulateResponseHelper {
6426 static constexpr nsresult MaybeGetCloneInfo(
6427 mozIStorageStatement* const /*aStmt*/, const CursorBase& /*aCursor*/) {
6428 return NS_OK;
6429 }
6430
6431 template <typename Response>
6432 static constexpr size_t MaybeGetCloneInfoSize(const Response& /*aResponse*/) {
6433 return 0;
6434 }
6435};
6436
6437template <bool StatementHasIndexKeyBindings>
6438struct ValuePopulateResponseHelper {
6439 nsresult MaybeGetCloneInfo(mozIStorageStatement* const aStmt,
6440 const ValueCursorBase& aCursor) {
6441 constexpr auto offset = StatementHasIndexKeyBindings ? 2 : 0;
6442
6443 QM_TRY_UNWRAP(auto cloneInfo,auto tryResult939 = (GetStructuredCloneReadInfoFromStatement(
aStmt, 2 + offset, 1 + offset, *aCursor.mFileManager)); if (
(__builtin_expect(!!(tryResult939.isErr()), 0))) { mozilla::dom
::quota::HandleError("GetStructuredCloneReadInfoFromStatement( aStmt, 2 + offset, 1 + offset, *aCursor.mFileManager)"
, tryResult939.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6445, mozilla::dom::quota::Severity::Error); return tryResult939
.propagateErr(); } auto cloneInfo = tryResult939.unwrap();
6444 GetStructuredCloneReadInfoFromStatement(auto tryResult939 = (GetStructuredCloneReadInfoFromStatement(
aStmt, 2 + offset, 1 + offset, *aCursor.mFileManager)); if (
(__builtin_expect(!!(tryResult939.isErr()), 0))) { mozilla::dom
::quota::HandleError("GetStructuredCloneReadInfoFromStatement( aStmt, 2 + offset, 1 + offset, *aCursor.mFileManager)"
, tryResult939.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6445, mozilla::dom::quota::Severity::Error); return tryResult939
.propagateErr(); } auto cloneInfo = tryResult939.unwrap();
6445 aStmt, 2 + offset, 1 + offset, *aCursor.mFileManager))auto tryResult939 = (GetStructuredCloneReadInfoFromStatement(
aStmt, 2 + offset, 1 + offset, *aCursor.mFileManager)); if (
(__builtin_expect(!!(tryResult939.isErr()), 0))) { mozilla::dom
::quota::HandleError("GetStructuredCloneReadInfoFromStatement( aStmt, 2 + offset, 1 + offset, *aCursor.mFileManager)"
, tryResult939.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6445, mozilla::dom::quota::Severity::Error); return tryResult939
.propagateErr(); } auto cloneInfo = tryResult939.unwrap();
;
6446
6447 mCloneInfo.init(std::move(cloneInfo));
6448
6449 if (mCloneInfo->HasPreprocessInfo()) {
6450 IDB_WARNING("Preprocessing for cursors not yet implemented!")do { nsPrintfCString s("Preprocessing for cursors not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6450, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6450)
; } while (0)
;
6451 return NS_ERROR_NOT_IMPLEMENTED;
6452 }
6453
6454 return NS_OK;
6455 }
6456
6457 template <typename Response>
6458 void MaybeFillCloneInfo(Response& aResponse, FilesArray* const aFiles) {
6459 auto cloneInfo = mCloneInfo.release();
6460 aResponse.cloneInfo().data().data = cloneInfo.ReleaseData();
6461 aFiles->AppendElement(cloneInfo.ReleaseFiles());
6462 }
6463
6464 template <typename Response>
6465 static size_t MaybeGetCloneInfoSize(const Response& aResponse) {
6466 return aResponse.cloneInfo().data().data.Size();
6467 }
6468
6469 private:
6470 LazyInitializedOnceEarlyDestructible<const StructuredCloneReadInfoParent>
6471 mCloneInfo;
6472};
6473
6474template <>
6475struct PopulateResponseHelper<IDBCursorType::ObjectStore>
6476 : ValuePopulateResponseHelper<false>, CommonPopulateResponseHelper {
6477 using CommonPopulateResponseHelper::CommonPopulateResponseHelper;
6478
6479 static auto& GetTypedResponse(CursorResponse* const aResponse) {
6480 return aResponse->get_ArrayOfObjectStoreCursorResponse();
6481 }
6482};
6483
6484template <>
6485struct PopulateResponseHelper<IDBCursorType::ObjectStoreKey>
6486 : KeyPopulateResponseHelper, CommonPopulateResponseHelper {
6487 using CommonPopulateResponseHelper::CommonPopulateResponseHelper;
6488
6489 static auto& GetTypedResponse(CursorResponse* const aResponse) {
6490 return aResponse->get_ArrayOfObjectStoreKeyCursorResponse();
6491 }
6492};
6493
6494template <>
6495struct PopulateResponseHelper<IDBCursorType::Index>
6496 : ValuePopulateResponseHelper<true>, IndexPopulateResponseHelper {
6497 using IndexPopulateResponseHelper::IndexPopulateResponseHelper;
6498
6499 static auto& GetTypedResponse(CursorResponse* const aResponse) {
6500 return aResponse->get_ArrayOfIndexCursorResponse();
6501 }
6502};
6503
6504template <>
6505struct PopulateResponseHelper<IDBCursorType::IndexKey>
6506 : KeyPopulateResponseHelper, IndexPopulateResponseHelper {
6507 using IndexPopulateResponseHelper::IndexPopulateResponseHelper;
6508
6509 static auto& GetTypedResponse(CursorResponse* const aResponse) {
6510 return aResponse->get_ArrayOfIndexKeyCursorResponse();
6511 }
6512};
6513
6514nsresult DispatchAndReturnFileReferences(
6515 PersistenceType aPersistenceType, const nsACString& aOrigin,
6516 const nsAString& aDatabaseName, const int64_t aFileId,
6517 int32_t* const aMemRefCnt, int32_t* const aDBRefCnt, bool* const aResult) {
6518 AssertIsOnBackgroundThread();
6519 MOZ_ASSERT(aMemRefCnt)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aMemRefCnt)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aMemRefCnt))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aMemRefCnt", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6519); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMemRefCnt"
")"); do { MOZ_CrashSequence(__null, 6519); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6520 MOZ_ASSERT(aDBRefCnt)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDBRefCnt)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDBRefCnt))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aDBRefCnt", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6520); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDBRefCnt" ")"
); do { MOZ_CrashSequence(__null, 6520); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6521 MOZ_ASSERT(aResult)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aResult)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aResult))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aResult", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aResult" ")"
); do { MOZ_CrashSequence(__null, 6521); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6522
6523 *aResult = false;
6524 *aMemRefCnt = -1;
6525 *aDBRefCnt = -1;
6526
6527 mozilla::Monitor monitor MOZ_ANNOTATED(__func__);
6528 bool waiting = true;
6529
6530 auto lambda = [&] {
6531 AssertIsOnIOThread();
6532
6533 {
6534 IndexedDatabaseManager* const mgr = IndexedDatabaseManager::Get();
6535 MOZ_ASSERT(mgr)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mgr)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(mgr))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("mgr", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6535); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mgr" ")"); do
{ MOZ_CrashSequence(__null, 6535); __attribute__((nomerge)) ::
abort(); } while (false); } } while (false)
;
6536
6537 const SafeRefPtr<DatabaseFileManager> fileManager =
6538 mgr->GetFileManager(aPersistenceType, aOrigin, aDatabaseName);
6539
6540 if (fileManager) {
6541 const SafeRefPtr<DatabaseFileInfo> fileInfo =
6542 fileManager->GetFileInfo(aFileId);
6543
6544 if (fileInfo) {
6545 fileInfo->GetReferences(aMemRefCnt, aDBRefCnt);
6546
6547 if (*aMemRefCnt != -1) {
6548 // We added an extra temp ref, so account for that accordingly.
6549 (*aMemRefCnt)--;
6550 }
6551
6552 *aResult = true;
6553 }
6554 }
6555 }
6556
6557 mozilla::MonitorAutoLock lock(monitor);
6558 MOZ_ASSERT(waiting)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(waiting)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(waiting))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("waiting", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6558); AnnotateMozCrashReason("MOZ_ASSERT" "(" "waiting" ")"
); do { MOZ_CrashSequence(__null, 6558); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6559
6560 waiting = false;
6561 lock.Notify();
6562 };
6563
6564 QuotaManager* const quotaManager = QuotaManager::Get();
6565 MOZ_ASSERT(quotaManager)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(quotaManager)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(quotaManager))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("quotaManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6565); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { MOZ_CrashSequence(__null, 6565); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6566
6567 // XXX can't we simply use NS_DispatchAndSpinEventLoopUntilComplete instead of
6568 // using a monitor?
6569 QM_TRY(MOZ_TO_RESULT(quotaManager->IOThread()->Dispatch({auto tryResult940 = (ToResult(quotaManager->IOThread()->
Dispatch( NS_NewRunnableFunction("GetFileReferences", std::move
(lambda)), nsIEventTarget::DISPATCH_NORMAL))); static_assert(
std::is_empty_v<typename decltype(tryResult940)::ok_type>
); if ((__builtin_expect(!!(tryResult940.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch( NS_NewRunnableFunction(\"GetFileReferences\", std::move(lambda)), nsIEventTarget::DISPATCH_NORMAL))"
, tryResult940.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6571, mozilla::dom::quota::Severity::Error); return tryResult940
.propagateErr(); }}
6570 NS_NewRunnableFunction("GetFileReferences", std::move(lambda)),{auto tryResult940 = (ToResult(quotaManager->IOThread()->
Dispatch( NS_NewRunnableFunction("GetFileReferences", std::move
(lambda)), nsIEventTarget::DISPATCH_NORMAL))); static_assert(
std::is_empty_v<typename decltype(tryResult940)::ok_type>
); if ((__builtin_expect(!!(tryResult940.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch( NS_NewRunnableFunction(\"GetFileReferences\", std::move(lambda)), nsIEventTarget::DISPATCH_NORMAL))"
, tryResult940.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6571, mozilla::dom::quota::Severity::Error); return tryResult940
.propagateErr(); }}
6571 NS_DISPATCH_NORMAL))){auto tryResult940 = (ToResult(quotaManager->IOThread()->
Dispatch( NS_NewRunnableFunction("GetFileReferences", std::move
(lambda)), nsIEventTarget::DISPATCH_NORMAL))); static_assert(
std::is_empty_v<typename decltype(tryResult940)::ok_type>
); if ((__builtin_expect(!!(tryResult940.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch( NS_NewRunnableFunction(\"GetFileReferences\", std::move(lambda)), nsIEventTarget::DISPATCH_NORMAL))"
, tryResult940.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6571, mozilla::dom::quota::Severity::Error); return tryResult940
.propagateErr(); }}
;
6572
6573 mozilla::MonitorAutoLock autolock(monitor);
6574 while (waiting) {
6575 autolock.Wait();
6576 }
6577
6578 return NS_OK;
6579}
6580
6581class DeserializeIndexValueHelper final : public Runnable {
6582 public:
6583 DeserializeIndexValueHelper(int64_t aIndexID, const KeyPath& aKeyPath,
6584 bool aMultiEntry, const nsACString& aLocale,
6585 StructuredCloneReadInfoParent& aCloneReadInfo,
6586 nsTArray<IndexUpdateInfo>& aUpdateInfoArray)
6587 : Runnable("DeserializeIndexValueHelper"),
6588 mMonitor("DeserializeIndexValueHelper::mMonitor"),
6589 mIndexID(aIndexID),
6590 mKeyPath(aKeyPath),
6591 mMultiEntry(aMultiEntry),
6592 mLocale(aLocale),
6593 mCloneReadInfo(aCloneReadInfo),
6594 mUpdateInfoArray(aUpdateInfoArray),
6595 mStatus(NS_ERROR_FAILURE),
6596 mDone{false} {}
6597
6598 nsresult DispatchAndWait() {
6599 // FIXME(Bug 1637530) Re-enable optimization using a non-system-principaled
6600 // JS context
6601#if 0
6602 // We don't need to go to the main-thread and use the sandbox. Let's create
6603 // the updateInfo data here.
6604 if (!mCloneReadInfo.Data().Size()) {
6605 AutoJSAPI jsapi;
6606 jsapi.Init();
6607
6608 JS::Rooted<JS::Value> value(jsapi.cx());
6609 value.setUndefined();
6610
6611 ErrorResult rv;
6612 IDBObjectStore::AppendIndexUpdateInfo(
6613 mIndexID, mKeyPath, mMultiEntry, &mUpdateInfoArray,
6614 /* aAutoIncrementedObjectStoreKeyPath */ VoidString(), &rv);
6615 return rv.Failed() ? rv.StealNSResult() : NS_OK;
6616 }
6617#endif
6618
6619 // The operation will continue on the main-thread.
6620
6621 MOZ_ASSERT(!(mCloneReadInfo.Data().Size() % sizeof(uint64_t)))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!(mCloneReadInfo.Data().Size() % sizeof(uint64_t)))>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!(mCloneReadInfo.Data().Size() % sizeof(uint64_t))))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!(mCloneReadInfo.Data().Size() % sizeof(uint64_t))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6621)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!(mCloneReadInfo.Data().Size() % sizeof(uint64_t))"
")"); do { MOZ_CrashSequence(__null, 6621); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6622
6623 MonitorAutoLock lock(mMonitor);
6624
6625 RefPtr<Runnable> self = this;
6626 QM_TRY(MOZ_TO_RESULT(SchedulerGroup::Dispatch(self.forget()))){auto tryResult941 = (ToResult(SchedulerGroup::Dispatch(self.
forget()))); static_assert(std::is_empty_v<typename decltype
(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(SchedulerGroup::Dispatch(self.forget()))"
, tryResult941.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6626, mozilla::dom::quota::Severity::Error); return tryResult941
.propagateErr(); }}
;
6627
6628 while (!mDone) {
6629 lock.Wait();
6630 }
6631
6632 return mStatus;
6633 }
6634
6635 NS_IMETHODvirtual nsresult
6636 Run() override {
6637 MOZ_ASSERT(NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(NS_IsMainThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(NS_IsMainThread()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("NS_IsMainThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6637)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "NS_IsMainThread()"
")"); do { MOZ_CrashSequence(__null, 6637); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6638
6639 AutoJSAPI jsapi;
6640 jsapi.Init();
6641 JSContext* const cx = jsapi.cx();
6642
6643 JS::Rooted<JSObject*> global(cx, GetSandbox(cx));
6644
6645 QM_TRY(OkIf(global), NS_OK,{auto tryResult942 = (OkIf(global)); static_assert(std::is_empty_v
<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect
(!!(tryResult942.isErr()), 0))) { auto tryTempError = tryResult942
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(global)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6646, mozilla::dom::quota::Severity::Error); [this](const NotOk
) { OperationCompleted(NS_ERROR_FAILURE); }(tryTempError); [[
maybe_unused]] constexpr const auto& func = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(global)"
, tryTempError, NS_OK); }}
6646 [this](const NotOk) { OperationCompleted(NS_ERROR_FAILURE); }){auto tryResult942 = (OkIf(global)); static_assert(std::is_empty_v
<typename decltype(tryResult942)::ok_type>); if ((__builtin_expect
(!!(tryResult942.isErr()), 0))) { auto tryTempError = tryResult942
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(global)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6646, mozilla::dom::quota::Severity::Error); [this](const NotOk
) { OperationCompleted(NS_ERROR_FAILURE); }(tryTempError); [[
maybe_unused]] constexpr const auto& func = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(global)"
, tryTempError, NS_OK); }}
;
6647
6648 const JSAutoRealm ar(cx, global);
6649
6650 JS::Rooted<JS::Value> value(cx);
6651 QM_TRY(MOZ_TO_RESULT(DeserializeIndexValue(cx, &value)), NS_OK,{auto tryResult943 = (ToResult(DeserializeIndexValue(cx, &
value))); static_assert(std::is_empty_v<typename decltype(
tryResult943)::ok_type>); if ((__builtin_expect(!!(tryResult943
.isErr()), 0))) { auto tryTempError = tryResult943.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(DeserializeIndexValue(cx, &value))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6652, mozilla::dom::quota::Severity::Error); [this](const nsresult
rv) { OperationCompleted(rv); }(tryTempError); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeserializeIndexValue(cx, &value))"
, tryTempError, NS_OK); }}
6652 [this](const nsresult rv) { OperationCompleted(rv); }){auto tryResult943 = (ToResult(DeserializeIndexValue(cx, &
value))); static_assert(std::is_empty_v<typename decltype(
tryResult943)::ok_type>); if ((__builtin_expect(!!(tryResult943
.isErr()), 0))) { auto tryTempError = tryResult943.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(DeserializeIndexValue(cx, &value))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6652, mozilla::dom::quota::Severity::Error); [this](const nsresult
rv) { OperationCompleted(rv); }(tryTempError); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeserializeIndexValue(cx, &value))"
, tryTempError, NS_OK); }}
;
6653
6654 ErrorResult errorResult;
6655 IDBObjectStore::AppendIndexUpdateInfo(
6656 mIndexID, mKeyPath, mMultiEntry, mLocale, cx, value, &mUpdateInfoArray,
6657 /* aAutoIncrementedObjectStoreKeyPath */ VoidString(), &errorResult);
6658 QM_TRY(OkIf(!errorResult.Failed()), NS_OK,{auto tryResult944 = (OkIf(!errorResult.Failed())); static_assert
(std::is_empty_v<typename decltype(tryResult944)::ok_type>
); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto
tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(!errorResult.Failed())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6661, mozilla::dom::quota::Severity::Error); ([this, &errorResult
](const NotOk) { OperationCompleted(errorResult.StealNSResult
()); })(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "OkIf(!errorResult.Failed())", tryTempError, NS_OK); }
}
6659 ([this, &errorResult](const NotOk) {{auto tryResult944 = (OkIf(!errorResult.Failed())); static_assert
(std::is_empty_v<typename decltype(tryResult944)::ok_type>
); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto
tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(!errorResult.Failed())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6661, mozilla::dom::quota::Severity::Error); ([this, &errorResult
](const NotOk) { OperationCompleted(errorResult.StealNSResult
()); })(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "OkIf(!errorResult.Failed())", tryTempError, NS_OK); }
}
6660 OperationCompleted(errorResult.StealNSResult());{auto tryResult944 = (OkIf(!errorResult.Failed())); static_assert
(std::is_empty_v<typename decltype(tryResult944)::ok_type>
); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto
tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(!errorResult.Failed())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6661, mozilla::dom::quota::Severity::Error); ([this, &errorResult
](const NotOk) { OperationCompleted(errorResult.StealNSResult
()); })(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "OkIf(!errorResult.Failed())", tryTempError, NS_OK); }
}
6661 })){auto tryResult944 = (OkIf(!errorResult.Failed())); static_assert
(std::is_empty_v<typename decltype(tryResult944)::ok_type>
); if ((__builtin_expect(!!(tryResult944.isErr()), 0))) { auto
tryTempError = tryResult944.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(!errorResult.Failed())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6661, mozilla::dom::quota::Severity::Error); ([this, &errorResult
](const NotOk) { OperationCompleted(errorResult.StealNSResult
()); })(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "OkIf(!errorResult.Failed())", tryTempError, NS_OK); }
}
;
6662
6663 OperationCompleted(NS_OK);
6664 return NS_OK;
6665 }
6666
6667 private:
6668 nsresult DeserializeIndexValue(JSContext* aCx,
6669 JS::MutableHandle<JS::Value> aValue) {
6670 static const JSStructuredCloneCallbacks callbacks = {
6671 StructuredCloneReadCallback<StructuredCloneReadInfoParent>,
6672 nullptr,
6673 nullptr,
6674 nullptr,
6675 nullptr,
6676 nullptr,
6677 nullptr,
6678 nullptr};
6679
6680 if (!JS_ReadStructuredClone(
6681 aCx, mCloneReadInfo.Data(), JS_STRUCTURED_CLONE_VERSION8,
6682 JS::StructuredCloneScope::DifferentProcessForIndexedDB, aValue,
6683 JS::CloneDataPolicy(), &callbacks, &mCloneReadInfo)) {
6684 return NS_ERROR_DOM_DATA_CLONE_ERR;
6685 }
6686
6687 return NS_OK;
6688 }
6689
6690 void OperationCompleted(nsresult aStatus) {
6691 mStatus = aStatus;
6692
6693 MonitorAutoLock lock(mMonitor);
6694 mDone = true;
6695 lock.Notify();
6696 }
6697
6698 Monitor mMonitor;
6699
6700 const int64_t mIndexID;
6701 const KeyPath& mKeyPath;
6702 const bool mMultiEntry;
6703 const nsCString mLocale;
6704 StructuredCloneReadInfoParent& mCloneReadInfo;
6705 nsTArray<IndexUpdateInfo>& mUpdateInfoArray;
6706 nsresult mStatus;
6707 bool mDone MOZ_GUARDED_BY(mMonitor)__attribute__((guarded_by(mMonitor)));
6708};
6709
6710auto DeserializeIndexValueToUpdateInfos(
6711 int64_t aIndexID, const KeyPath& aKeyPath, bool aMultiEntry,
6712 const nsACString& aLocale, StructuredCloneReadInfoParent& aCloneReadInfo) {
6713 MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6713)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { MOZ_CrashSequence(__null, 6713); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6714
6715 using ArrayType = AutoTArray<IndexUpdateInfo, 32>;
6716 using ResultType = Result<ArrayType, nsresult>;
6717
6718 ArrayType updateInfoArray;
6719 const auto helper = MakeRefPtr<DeserializeIndexValueHelper>(
6720 aIndexID, aKeyPath, aMultiEntry, aLocale, aCloneReadInfo,
6721 updateInfoArray);
6722 const nsresult rv = helper->DispatchAndWait();
6723 return NS_FAILED(rv)((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0))) ? Err(rv) : ResultType{std::move(updateInfoArray)};
6724}
6725
6726bool IsSome(
6727 const Maybe<CachingDatabaseConnection::BorrowedStatement>& aMaybeStmt) {
6728 return aMaybeStmt.isSome();
6729}
6730
6731already_AddRefed<nsIThreadPool> MakeConnectionIOTarget() {
6732 nsCOMPtr<nsIThreadPool> threadPool = new nsThreadPool();
6733
6734 MOZ_ALWAYS_SUCCEEDS(threadPool->SetThreadLimit(kMaxConnectionThreadCount))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(threadPool->SetThreadLimit(kMaxConnectionThreadCount))), 1
)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(threadPool->SetThreadLimit(kMaxConnectionThreadCount))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6734)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetThreadLimit(kMaxConnectionThreadCount))"
")"); do { MOZ_CrashSequence(__null, 6734); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
6735
6736 MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(threadPool->SetIdleThreadLimit(kMaxIdleConnectionThreadCount
))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(threadPool->SetIdleThreadLimit(kMaxIdleConnectionThreadCount))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6737)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetIdleThreadLimit(kMaxIdleConnectionThreadCount))"
")"); do { MOZ_CrashSequence(__null, 6737); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
6737 threadPool->SetIdleThreadLimit(kMaxIdleConnectionThreadCount))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(threadPool->SetIdleThreadLimit(kMaxIdleConnectionThreadCount
))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(threadPool->SetIdleThreadLimit(kMaxIdleConnectionThreadCount))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6737)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetIdleThreadLimit(kMaxIdleConnectionThreadCount))"
")"); do { MOZ_CrashSequence(__null, 6737); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
6738
6739 MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(threadPool->SetIdleThreadMaximumTimeout(kConnectionThreadMaxIdleMS
))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(threadPool->SetIdleThreadMaximumTimeout(kConnectionThreadMaxIdleMS))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6740)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetIdleThreadMaximumTimeout(kConnectionThreadMaxIdleMS))"
")"); do { MOZ_CrashSequence(__null, 6740); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
6740 threadPool->SetIdleThreadMaximumTimeout(kConnectionThreadMaxIdleMS))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(threadPool->SetIdleThreadMaximumTimeout(kConnectionThreadMaxIdleMS
))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(threadPool->SetIdleThreadMaximumTimeout(kConnectionThreadMaxIdleMS))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6740)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetIdleThreadMaximumTimeout(kConnectionThreadMaxIdleMS))"
")"); do { MOZ_CrashSequence(__null, 6740); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
6741
6742 MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(threadPool->SetIdleThreadGraceTimeout(kConnectionThreadGraceIdleMS
))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(threadPool->SetIdleThreadGraceTimeout(kConnectionThreadGraceIdleMS))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6743)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetIdleThreadGraceTimeout(kConnectionThreadGraceIdleMS))"
")"); do { MOZ_CrashSequence(__null, 6743); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
6743 threadPool->SetIdleThreadGraceTimeout(kConnectionThreadGraceIdleMS))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(threadPool->SetIdleThreadGraceTimeout(kConnectionThreadGraceIdleMS
))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(threadPool->SetIdleThreadGraceTimeout(kConnectionThreadGraceIdleMS))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6743)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetIdleThreadGraceTimeout(kConnectionThreadGraceIdleMS))"
")"); do { MOZ_CrashSequence(__null, 6743); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
6744
6745 MOZ_ALWAYS_SUCCEEDS(threadPool->SetName("IndexedDB IO"_ns))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(threadPool->SetName("IndexedDB IO"_ns))), 1)))), 1))) { }
else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(threadPool->SetName(\"IndexedDB IO\"_ns))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6745)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetName(\"IndexedDB IO\"_ns))"
")"); do { MOZ_CrashSequence(__null, 6745); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
6746
6747 return threadPool.forget();
6748}
6749
6750} // namespace
6751
6752/*******************************************************************************
6753 * Exported functions
6754 ******************************************************************************/
6755
6756already_AddRefed<PBackgroundIDBFactoryParent> AllocPBackgroundIDBFactoryParent(
6757 const LoggingInfo& aLoggingInfo, const nsACString& aSystemLocale) {
6758 AssertIsOnBackgroundThread();
6759
6760 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread
(), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6760)
) {
6761 return nullptr;
6762 }
6763
6764 // Requests and normal transaction serial numbers must stay positive.
6765 // VersionChange transaction serial numbers must stay negative.
6766 // https://searchfox.org/firefox-main/rev/8332a06d47ce7d66623d807068b3410061cd29d3/dom/indexedDB/ActorsChild.cpp#82
6767 if (NS_AUUF_OR_WARN_IF(aLoggingInfo.nextTransactionSerialNumber() <= 0)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "aLoggingInfo.nextTransactionSerialNumber() <= 0"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6767
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aLoggingInfo.nextTransactionSerialNumber() <= 0"
")"); do { MOZ_CrashSequence(__null, 6767); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((aLoggingInfo.nextTransactionSerialNumber() <= 0))
||
6768 NS_AUUF_OR_WARN_IF([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "aLoggingInfo.nextVersionChangeTransactionSerialNumber() >= 0"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6769
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aLoggingInfo.nextVersionChangeTransactionSerialNumber() >= 0"
")"); do { MOZ_CrashSequence(__null, 6769); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((aLoggingInfo.nextVersionChangeTransactionSerialNumber() >=
0))
6769 aLoggingInfo.nextVersionChangeTransactionSerialNumber() >= 0)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "aLoggingInfo.nextVersionChangeTransactionSerialNumber() >= 0"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6769
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aLoggingInfo.nextVersionChangeTransactionSerialNumber() >= 0"
")"); do { MOZ_CrashSequence(__null, 6769); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((aLoggingInfo.nextVersionChangeTransactionSerialNumber() >=
0))
||
6770 NS_AUUF_OR_WARN_IF([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "static_cast<int64_t>(aLoggingInfo.nextRequestSerialNumber()) <= 0"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6771
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "static_cast<int64_t>(aLoggingInfo.nextRequestSerialNumber()) <= 0"
")"); do { MOZ_CrashSequence(__null, 6771); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((static_cast<int64_t>(aLoggingInfo.nextRequestSerialNumber
()) <= 0))
6771 static_cast<int64_t>(aLoggingInfo.nextRequestSerialNumber()) <= 0)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "static_cast<int64_t>(aLoggingInfo.nextRequestSerialNumber()) <= 0"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6771
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "static_cast<int64_t>(aLoggingInfo.nextRequestSerialNumber()) <= 0"
")"); do { MOZ_CrashSequence(__null, 6771); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((static_cast<int64_t>(aLoggingInfo.nextRequestSerialNumber
()) <= 0))
) {
6772 return nullptr;
6773 }
6774
6775 SafeRefPtr<Factory> actor = Factory::Create(aLoggingInfo, aSystemLocale);
6776 MOZ_ASSERT(actor)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(actor)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(actor))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("actor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6776); AnnotateMozCrashReason("MOZ_ASSERT" "(" "actor" ")")
; do { MOZ_CrashSequence(__null, 6776); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6777
6778 return actor.forget();
6779}
6780
6781bool RecvPBackgroundIDBFactoryConstructor(
6782 PBackgroundIDBFactoryParent* aActor, const LoggingInfo& /* aLoggingInfo */,
6783 const nsACString& /* aSystemLocale */) {
6784 AssertIsOnBackgroundThread();
6785 MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aActor)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6785); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { MOZ_CrashSequence(__null, 6785); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6786 MOZ_ASSERT(!QuotaClient::IsShuttingDownOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!QuotaClient::IsShuttingDownOnBackgroundThread())>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!QuotaClient::IsShuttingDownOnBackgroundThread()))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("!QuotaClient::IsShuttingDownOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6786)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!QuotaClient::IsShuttingDownOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 6786); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6787
6788 return true;
6789}
6790
6791PBackgroundIndexedDBUtilsParent* AllocPBackgroundIndexedDBUtilsParent() {
6792 AssertIsOnBackgroundThread();
6793
6794 RefPtr<Utils> actor = new Utils();
6795
6796 return actor.forget().take();
6797}
6798
6799bool DeallocPBackgroundIndexedDBUtilsParent(
6800 PBackgroundIndexedDBUtilsParent* aActor) {
6801 AssertIsOnBackgroundThread();
6802 MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aActor)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6802); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { MOZ_CrashSequence(__null, 6802); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6803
6804 RefPtr<Utils> actor = dont_AddRef(static_cast<Utils*>(aActor));
6805 return true;
6806}
6807
6808bool RecvFlushPendingFileDeletions() {
6809 AssertIsOnBackgroundThread();
6810
6811 if (QuotaClient* quotaClient = QuotaClient::GetInstance()) {
6812 QM_WARNONLY_TRY(QM_TO_RESULT(quotaClient->FlushPendingFileDeletions())){auto tryResult945 = (ToResult<QMResult>(quotaClient->
FlushPendingFileDeletions())); static_assert(std::is_empty_v<
typename decltype(tryResult945)::ok_type>); if ((__builtin_expect
(!!(tryResult945.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult<QMResult>(quotaClient->FlushPendingFileDeletions())"
, tryResult945.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6812, mozilla::dom::quota::Severity::Warning); }}
;
6813 }
6814
6815 return true;
6816}
6817
6818RefPtr<mozilla::dom::quota::Client> CreateQuotaClient() {
6819 AssertIsOnBackgroundThread();
6820
6821 return MakeRefPtr<QuotaClient>();
6822}
6823
6824nsresult DatabaseFileManager::AsyncDeleteFile(int64_t aFileId) {
6825 AssertIsOnBackgroundThread();
6826 MOZ_ASSERT(!ContainsFileInfo(aFileId))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!ContainsFileInfo(aFileId))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!ContainsFileInfo(aFileId)))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!ContainsFileInfo(aFileId)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6826)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!ContainsFileInfo(aFileId)"
")"); do { MOZ_CrashSequence(__null, 6826); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6827
6828 QuotaClient* quotaClient = QuotaClient::GetInstance();
6829 if (quotaClient) {
6830 QM_TRY(MOZ_TO_RESULT(quotaClient->AsyncDeleteFile(this, aFileId))){auto tryResult946 = (ToResult(quotaClient->AsyncDeleteFile
(this, aFileId))); static_assert(std::is_empty_v<typename decltype
(tryResult946)::ok_type>); if ((__builtin_expect(!!(tryResult946
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(quotaClient->AsyncDeleteFile(this, aFileId))"
, tryResult946.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6830, mozilla::dom::quota::Severity::Error); return tryResult946
.propagateErr(); }}
;
6831 }
6832
6833 return NS_OK;
6834}
6835
6836/*******************************************************************************
6837 * DatabaseConnection implementation
6838 ******************************************************************************/
6839
6840DatabaseConnection::DatabaseConnection(
6841 MovingNotNull<nsCOMPtr<mozIStorageConnection>> aStorageConnection,
6842 MovingNotNull<SafeRefPtr<DatabaseFileManager>> aFileManager)
6843 : CachingDatabaseConnection(std::move(aStorageConnection)),
6844 mFileManager(std::move(aFileManager)),
6845 mLastDurability(IDBTransaction::Durability::Default),
6846 mInReadTransaction(false),
6847 mInWriteTransaction(false)
6848#ifdef DEBUG1
6849 ,
6850 mDEBUGSavepointCount(0)
6851#endif
6852{
6853 AssertIsOnConnectionThread();
6854 MOZ_ASSERT(mFileManager)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mFileManager)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mFileManager))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mFileManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6854); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileManager"
")"); do { MOZ_CrashSequence(__null, 6854); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6855}
6856
6857DatabaseConnection::~DatabaseConnection() {
6858 MOZ_ASSERT(!mFileManager)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mFileManager)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mFileManager))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("!mFileManager",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6858);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mFileManager" ")")
; do { MOZ_CrashSequence(__null, 6858); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6859 MOZ_ASSERT(!mUpdateRefcountFunction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mUpdateRefcountFunction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mUpdateRefcountFunction))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("!mUpdateRefcountFunction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6859)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mUpdateRefcountFunction"
")"); do { MOZ_CrashSequence(__null, 6859); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6860 MOZ_DIAGNOSTIC_ASSERT(!mInWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mInWriteTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mInWriteTransaction))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("!mInWriteTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6860)
; AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "!mInWriteTransaction"
")"); do { MOZ_CrashSequence(__null, 6860); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6861 MOZ_ASSERT(!mDEBUGSavepointCount)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDEBUGSavepointCount)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDEBUGSavepointCount))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("!mDEBUGSavepointCount"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6861)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDEBUGSavepointCount"
")"); do { MOZ_CrashSequence(__null, 6861); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6862}
6863
6864nsresult DatabaseConnection::Init() {
6865 AssertIsOnConnectionThread();
6866 MOZ_ASSERT(!mInReadTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mInReadTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mInReadTransaction))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("!mInReadTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6866)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInReadTransaction"
")"); do { MOZ_CrashSequence(__null, 6866); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6867 MOZ_ASSERT(!mInWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mInWriteTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mInWriteTransaction))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("!mInWriteTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6867)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInWriteTransaction"
")"); do { MOZ_CrashSequence(__null, 6867); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6868
6869 QM_TRY(MOZ_TO_RESULT(ExecuteCachedStatement("BEGIN;"_ns))){auto tryResult947 = (ToResult(ExecuteCachedStatement("BEGIN;"_ns
))); static_assert(std::is_empty_v<typename decltype(tryResult947
)::ok_type>); if ((__builtin_expect(!!(tryResult947.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"BEGIN;\"_ns))"
, tryResult947.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6869, mozilla::dom::quota::Severity::Error); return tryResult947
.propagateErr(); }}
;
6870
6871 mInReadTransaction = true;
6872
6873 return NS_OK;
6874}
6875
6876nsresult DatabaseConnection::BeginWriteTransaction(
6877 const IDBTransaction::Durability aDurability) {
6878 AssertIsOnConnectionThread();
6879 MOZ_ASSERT(HasStorageConnection())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(HasStorageConnection())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(HasStorageConnection()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("HasStorageConnection()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6879)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasStorageConnection()"
")"); do { MOZ_CrashSequence(__null, 6879); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6880 MOZ_ASSERT(mInReadTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mInReadTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mInReadTransaction))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("mInReadTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6880)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInReadTransaction"
")"); do { MOZ_CrashSequence(__null, 6880); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6881 MOZ_ASSERT(!mInWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mInWriteTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mInWriteTransaction))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("!mInWriteTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6881)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInWriteTransaction"
")"); do { MOZ_CrashSequence(__null, 6881); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6882
6883 AUTO_PROFILER_LABEL("DatabaseConnection::BeginWriteTransaction", DOM)mozilla::AutoProfilerLabel raiiObject6883( "DatabaseConnection::BeginWriteTransaction"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
6884
6885 // Release our read locks.
6886 QM_TRY(MOZ_TO_RESULT(ExecuteCachedStatement("ROLLBACK;"_ns))){auto tryResult948 = (ToResult(ExecuteCachedStatement("ROLLBACK;"_ns
))); static_assert(std::is_empty_v<typename decltype(tryResult948
)::ok_type>); if ((__builtin_expect(!!(tryResult948.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"ROLLBACK;\"_ns))"
, tryResult948.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6886, mozilla::dom::quota::Severity::Error); return tryResult948
.propagateErr(); }}
;
6887
6888 mInReadTransaction = false;
6889
6890 if (mLastDurability != aDurability) {
6891 auto synchronousMode = [aDurability]() -> nsLiteralCString {
6892 switch (aDurability) {
6893 case IDBTransaction::Durability::Default:
6894 return GetDefaultSynchronousMode();
6895
6896 case IDBTransaction::Durability::Strict:
6897 return "EXTRA"_ns;
6898
6899 case IDBTransaction::Durability::Relaxed:
6900 return "OFF"_ns;
6901
6902 default:
6903 MOZ_CRASH("Unknown CheckpointMode!")do { do { } while (false); MOZ_ReportCrash("" "Unknown CheckpointMode!"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6903)
; AnnotateMozCrashReason("MOZ_CRASH(" "Unknown CheckpointMode!"
")"); do { MOZ_CrashSequence(__null, 6903); __attribute__((nomerge
)) ::abort(); } while (false); } while (false)
;
6904 }
6905 }();
6906
6907 QM_TRY(MOZ_TO_RESULT(ExecuteCachedStatement("PRAGMA synchronous = "_ns +{auto tryResult949 = (ToResult(ExecuteCachedStatement("PRAGMA synchronous = "_ns
+ synchronousMode + ";"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult949)::ok_type>); if ((__builtin_expect
(!!(tryResult949.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ExecuteCachedStatement(\"PRAGMA synchronous = \"_ns + synchronousMode + \";\"_ns))"
, tryResult949.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6908, mozilla::dom::quota::Severity::Error); return tryResult949
.propagateErr(); }}
6908 synchronousMode + ";"_ns))){auto tryResult949 = (ToResult(ExecuteCachedStatement("PRAGMA synchronous = "_ns
+ synchronousMode + ";"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult949)::ok_type>); if ((__builtin_expect
(!!(tryResult949.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ExecuteCachedStatement(\"PRAGMA synchronous = \"_ns + synchronousMode + \";\"_ns))"
, tryResult949.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6908, mozilla::dom::quota::Severity::Error); return tryResult949
.propagateErr(); }}
;
6909
6910 mLastDurability = aDurability;
6911 }
6912
6913 if (!mUpdateRefcountFunction) {
6914 MOZ_ASSERT(mFileManager)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mFileManager)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mFileManager))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mFileManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6914); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileManager"
")"); do { MOZ_CrashSequence(__null, 6914); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6915
6916 RefPtr<UpdateRefcountFunction> function =
6917 new UpdateRefcountFunction(this, **mFileManager);
6918
6919 QM_TRY(MOZ_TO_RESULT(MutableStorageConnection().CreateFunction({auto tryResult950 = (ToResult(MutableStorageConnection().CreateFunction
( "update_refcount"_ns, 2, function))); static_assert(std::is_empty_v
<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect
(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(MutableStorageConnection().CreateFunction( \"update_refcount\"_ns, 2, function))"
, tryResult950.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6921, mozilla::dom::quota::Severity::Error); return tryResult950
.propagateErr(); }}
6920 "update_refcount"_ns,{auto tryResult950 = (ToResult(MutableStorageConnection().CreateFunction
( "update_refcount"_ns, 2, function))); static_assert(std::is_empty_v
<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect
(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(MutableStorageConnection().CreateFunction( \"update_refcount\"_ns, 2, function))"
, tryResult950.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6921, mozilla::dom::quota::Severity::Error); return tryResult950
.propagateErr(); }}
6921 /* aNumArguments */ 2, function))){auto tryResult950 = (ToResult(MutableStorageConnection().CreateFunction
( "update_refcount"_ns, 2, function))); static_assert(std::is_empty_v
<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect
(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(MutableStorageConnection().CreateFunction( \"update_refcount\"_ns, 2, function))"
, tryResult950.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6921, mozilla::dom::quota::Severity::Error); return tryResult950
.propagateErr(); }}
;
6922
6923 mUpdateRefcountFunction = std::move(function);
6924 }
6925
6926 // This one cannot obviously use ExecuteCachedStatement because of the custom
6927 // error handling for Execute only. If only Execute can produce
6928 // NS_ERROR_STORAGE_BUSY, we could actually use ExecuteCachedStatement and
6929 // simplify this.
6930 QM_TRY_INSPECT(const auto& beginStmt,auto tryResult951 = (BorrowCachedStatement("BEGIN IMMEDIATE;"_ns
)); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla
::dom::quota::HandleError("BorrowCachedStatement(\"BEGIN IMMEDIATE;\"_ns)"
, tryResult951.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6931, mozilla::dom::quota::Severity::Error); return tryResult951
.propagateErr(); } const auto& beginStmt = tryResult951.inspect
();
6931 BorrowCachedStatement("BEGIN IMMEDIATE;"_ns))auto tryResult951 = (BorrowCachedStatement("BEGIN IMMEDIATE;"_ns
)); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla
::dom::quota::HandleError("BorrowCachedStatement(\"BEGIN IMMEDIATE;\"_ns)"
, tryResult951.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6931, mozilla::dom::quota::Severity::Error); return tryResult951
.propagateErr(); } const auto& beginStmt = tryResult951.inspect
();
;
6932
6933 QM_TRY(QM_OR_ELSE_WARN_IF({auto tryResult952 = (mozilla::dom::quota::OrElseIf( (ToResult
(beginStmt->Execute())), [&](const auto& firstRes)
{ bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes
); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6959, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ([&beginStmt
](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write "
"transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6942); const TimeStamp start = TimeStamp::NowLoRes(); while
(true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt
->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::
NowLoRes() - start > TimeDuration::FromSeconds(10)) { break
; } } return ToResult(rv); }))); static_assert(std::is_empty_v
<typename decltype(tryResult952)::ok_type>); if ((__builtin_expect
(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6959, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6942); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))"
, tryResult952.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6959, mozilla::dom::quota::Severity::Error); return tryResult952
.propagateErr(); }}
6934 // Expression.{auto tryResult952 = (mozilla::dom::quota::OrElseIf( (ToResult
(beginStmt->Execute())), [&](const auto& firstRes)
{ bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes
); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6959, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ([&beginStmt
](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write "
"transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6942); const TimeStamp start = TimeStamp::NowLoRes(); while
(true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt
->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::
NowLoRes() - start > TimeDuration::FromSeconds(10)) { break
; } } return ToResult(rv); }))); static_assert(std::is_empty_v
<typename decltype(tryResult952)::ok_type>); if ((__builtin_expect
(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6959, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6942); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))"
, tryResult952.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6959, mozilla::dom::quota::Severity::Error); return tryResult952
.propagateErr(); }}
6935 MOZ_TO_RESULT(beginStmt->Execute()),{auto tryResult952 = (mozilla::dom::quota::OrElseIf( (ToResult
(beginStmt->Execute())), [&](const auto& firstRes)
{ bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes
); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6959, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ([&beginStmt
](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write "
"transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6942); const TimeStamp start = TimeStamp::NowLoRes(); while
(true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt
->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::
NowLoRes() - start > TimeDuration::FromSeconds(10)) { break
; } } return ToResult(rv); }))); static_assert(std::is_empty_v
<typename decltype(tryResult952)::ok_type>); if ((__builtin_expect
(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6959, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6942); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))"
, tryResult952.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6959, mozilla::dom::quota::Severity::Error); return tryResult952
.propagateErr(); }}
6936 // Predicate.{auto tryResult952 = (mozilla::dom::quota::OrElseIf( (ToResult
(beginStmt->Execute())), [&](const auto& firstRes)
{ bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes
); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6959, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ([&beginStmt
](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write "
"transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6942); const TimeStamp start = TimeStamp::NowLoRes(); while
(true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt
->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::
NowLoRes() - start > TimeDuration::FromSeconds(10)) { break
; } } return ToResult(rv); }))); static_assert(std::is_empty_v
<typename decltype(tryResult952)::ok_type>); if ((__builtin_expect
(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6959, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6942); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))"
, tryResult952.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6959, mozilla::dom::quota::Severity::Error); return tryResult952
.propagateErr(); }}
6937 IsSpecificError<NS_ERROR_STORAGE_BUSY>,{auto tryResult952 = (mozilla::dom::quota::OrElseIf( (ToResult
(beginStmt->Execute())), [&](const auto& firstRes)
{ bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes
); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6959, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ([&beginStmt
](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write "
"transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6942); const TimeStamp start = TimeStamp::NowLoRes(); while
(true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt
->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::
NowLoRes() - start > TimeDuration::FromSeconds(10)) { break
; } } return ToResult(rv); }))); static_assert(std::is_empty_v
<typename decltype(tryResult952)::ok_type>); if ((__builtin_expect
(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6959, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6942); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))"
, tryResult952.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6959, mozilla::dom::quota::Severity::Error); return tryResult952
.propagateErr(); }}
6938 // Fallback.{auto tryResult952 = (mozilla::dom::quota::OrElseIf( (ToResult
(beginStmt->Execute())), [&](const auto& firstRes)
{ bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes
); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6959, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ([&beginStmt
](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write "
"transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6942); const TimeStamp start = TimeStamp::NowLoRes(); while
(true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt
->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::
NowLoRes() - start > TimeDuration::FromSeconds(10)) { break
; } } return ToResult(rv); }))); static_assert(std::is_empty_v
<typename decltype(tryResult952)::ok_type>); if ((__builtin_expect
(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6959, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6942); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))"
, tryResult952.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6959, mozilla::dom::quota::Severity::Error); return tryResult952
.propagateErr(); }}
6939 ([&beginStmt](nsresult rv) {{auto tryResult952 = (mozilla::dom::quota::OrElseIf( (ToResult
(beginStmt->Execute())), [&](const auto& firstRes)
{ bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes
); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6959, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ([&beginStmt
](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write "
"transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6942); const TimeStamp start = TimeStamp::NowLoRes(); while
(true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt
->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::
NowLoRes() - start > TimeDuration::FromSeconds(10)) { break
; } } return ToResult(rv); }))); static_assert(std::is_empty_v
<typename decltype(tryResult952)::ok_type>); if ((__builtin_expect
(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6959, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6942); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))"
, tryResult952.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6959, mozilla::dom::quota::Severity::Error); return tryResult952
.propagateErr(); }}
6940 NS_WARNING({auto tryResult952 = (mozilla::dom::quota::OrElseIf( (ToResult
(beginStmt->Execute())), [&](const auto& firstRes)
{ bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes
); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6959, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ([&beginStmt
](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write "
"transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6942); const TimeStamp start = TimeStamp::NowLoRes(); while
(true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt
->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::
NowLoRes() - start > TimeDuration::FromSeconds(10)) { break
; } } return ToResult(rv); }))); static_assert(std::is_empty_v
<typename decltype(tryResult952)::ok_type>); if ((__builtin_expect
(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6959, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6942); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))"
, tryResult952.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6959, mozilla::dom::quota::Severity::Error); return tryResult952
.propagateErr(); }}
6941 "Received NS_ERROR_STORAGE_BUSY when attempting to start write "{auto tryResult952 = (mozilla::dom::quota::OrElseIf( (ToResult
(beginStmt->Execute())), [&](const auto& firstRes)
{ bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes
); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6959, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ([&beginStmt
](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write "
"transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6942); const TimeStamp start = TimeStamp::NowLoRes(); while
(true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt
->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::
NowLoRes() - start > TimeDuration::FromSeconds(10)) { break
; } } return ToResult(rv); }))); static_assert(std::is_empty_v
<typename decltype(tryResult952)::ok_type>); if ((__builtin_expect
(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6959, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6942); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))"
, tryResult952.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6959, mozilla::dom::quota::Severity::Error); return tryResult952
.propagateErr(); }}
6942 "transaction, retrying for up to 10 seconds");{auto tryResult952 = (mozilla::dom::quota::OrElseIf( (ToResult
(beginStmt->Execute())), [&](const auto& firstRes)
{ bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes
); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6959, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ([&beginStmt
](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write "
"transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6942); const TimeStamp start = TimeStamp::NowLoRes(); while
(true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt
->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::
NowLoRes() - start > TimeDuration::FromSeconds(10)) { break
; } } return ToResult(rv); }))); static_assert(std::is_empty_v
<typename decltype(tryResult952)::ok_type>); if ((__builtin_expect
(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6959, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6942); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))"
, tryResult952.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6959, mozilla::dom::quota::Severity::Error); return tryResult952
.propagateErr(); }}
6943
6944 // Another thread must be using the database. Wait up to 10 seconds{auto tryResult952 = (mozilla::dom::quota::OrElseIf( (ToResult
(beginStmt->Execute())), [&](const auto& firstRes)
{ bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes
); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6959, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ([&beginStmt
](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write "
"transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6942); const TimeStamp start = TimeStamp::NowLoRes(); while
(true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt
->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::
NowLoRes() - start > TimeDuration::FromSeconds(10)) { break
; } } return ToResult(rv); }))); static_assert(std::is_empty_v
<typename decltype(tryResult952)::ok_type>); if ((__builtin_expect
(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6959, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6942); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))"
, tryResult952.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6959, mozilla::dom::quota::Severity::Error); return tryResult952
.propagateErr(); }}
6945 // for that to complete.{auto tryResult952 = (mozilla::dom::quota::OrElseIf( (ToResult
(beginStmt->Execute())), [&](const auto& firstRes)
{ bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes
); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6959, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ([&beginStmt
](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write "
"transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6942); const TimeStamp start = TimeStamp::NowLoRes(); while
(true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt
->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::
NowLoRes() - start > TimeDuration::FromSeconds(10)) { break
; } } return ToResult(rv); }))); static_assert(std::is_empty_v
<typename decltype(tryResult952)::ok_type>); if ((__builtin_expect
(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6959, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6942); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))"
, tryResult952.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6959, mozilla::dom::quota::Severity::Error); return tryResult952
.propagateErr(); }}
6946 const TimeStamp start = TimeStamp::NowLoRes();{auto tryResult952 = (mozilla::dom::quota::OrElseIf( (ToResult
(beginStmt->Execute())), [&](const auto& firstRes)
{ bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes
); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6959, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ([&beginStmt
](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write "
"transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6942); const TimeStamp start = TimeStamp::NowLoRes(); while
(true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt
->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::
NowLoRes() - start > TimeDuration::FromSeconds(10)) { break
; } } return ToResult(rv); }))); static_assert(std::is_empty_v
<typename decltype(tryResult952)::ok_type>); if ((__builtin_expect
(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6959, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6942); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))"
, tryResult952.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6959, mozilla::dom::quota::Severity::Error); return tryResult952
.propagateErr(); }}
6947
6948 while (true) {{auto tryResult952 = (mozilla::dom::quota::OrElseIf( (ToResult
(beginStmt->Execute())), [&](const auto& firstRes)
{ bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes
); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6959, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ([&beginStmt
](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write "
"transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6942); const TimeStamp start = TimeStamp::NowLoRes(); while
(true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt
->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::
NowLoRes() - start > TimeDuration::FromSeconds(10)) { break
; } } return ToResult(rv); }))); static_assert(std::is_empty_v
<typename decltype(tryResult952)::ok_type>); if ((__builtin_expect
(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6959, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6942); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))"
, tryResult952.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6959, mozilla::dom::quota::Severity::Error); return tryResult952
.propagateErr(); }}
6949 PR_Sleep(PR_MillisecondsToInterval(100));{auto tryResult952 = (mozilla::dom::quota::OrElseIf( (ToResult
(beginStmt->Execute())), [&](const auto& firstRes)
{ bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes
); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6959, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ([&beginStmt
](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write "
"transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6942); const TimeStamp start = TimeStamp::NowLoRes(); while
(true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt
->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::
NowLoRes() - start > TimeDuration::FromSeconds(10)) { break
; } } return ToResult(rv); }))); static_assert(std::is_empty_v
<typename decltype(tryResult952)::ok_type>); if ((__builtin_expect
(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6959, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6942); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))"
, tryResult952.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6959, mozilla::dom::quota::Severity::Error); return tryResult952
.propagateErr(); }}
6950
6951 rv = beginStmt->Execute();{auto tryResult952 = (mozilla::dom::quota::OrElseIf( (ToResult
(beginStmt->Execute())), [&](const auto& firstRes)
{ bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes
); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6959, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ([&beginStmt
](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write "
"transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6942); const TimeStamp start = TimeStamp::NowLoRes(); while
(true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt
->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::
NowLoRes() - start > TimeDuration::FromSeconds(10)) { break
; } } return ToResult(rv); }))); static_assert(std::is_empty_v
<typename decltype(tryResult952)::ok_type>); if ((__builtin_expect
(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6959, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6942); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))"
, tryResult952.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6959, mozilla::dom::quota::Severity::Error); return tryResult952
.propagateErr(); }}
6952 if (rv != NS_ERROR_STORAGE_BUSY ||{auto tryResult952 = (mozilla::dom::quota::OrElseIf( (ToResult
(beginStmt->Execute())), [&](const auto& firstRes)
{ bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes
); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6959, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ([&beginStmt
](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write "
"transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6942); const TimeStamp start = TimeStamp::NowLoRes(); while
(true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt
->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::
NowLoRes() - start > TimeDuration::FromSeconds(10)) { break
; } } return ToResult(rv); }))); static_assert(std::is_empty_v
<typename decltype(tryResult952)::ok_type>); if ((__builtin_expect
(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6959, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6942); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))"
, tryResult952.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6959, mozilla::dom::quota::Severity::Error); return tryResult952
.propagateErr(); }}
6953 TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) {{auto tryResult952 = (mozilla::dom::quota::OrElseIf( (ToResult
(beginStmt->Execute())), [&](const auto& firstRes)
{ bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes
); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6959, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ([&beginStmt
](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write "
"transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6942); const TimeStamp start = TimeStamp::NowLoRes(); while
(true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt
->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::
NowLoRes() - start > TimeDuration::FromSeconds(10)) { break
; } } return ToResult(rv); }))); static_assert(std::is_empty_v
<typename decltype(tryResult952)::ok_type>); if ((__builtin_expect
(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6959, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6942); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))"
, tryResult952.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6959, mozilla::dom::quota::Severity::Error); return tryResult952
.propagateErr(); }}
6954 break;{auto tryResult952 = (mozilla::dom::quota::OrElseIf( (ToResult
(beginStmt->Execute())), [&](const auto& firstRes)
{ bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes
); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6959, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ([&beginStmt
](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write "
"transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6942); const TimeStamp start = TimeStamp::NowLoRes(); while
(true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt
->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::
NowLoRes() - start > TimeDuration::FromSeconds(10)) { break
; } } return ToResult(rv); }))); static_assert(std::is_empty_v
<typename decltype(tryResult952)::ok_type>); if ((__builtin_expect
(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6959, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6942); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))"
, tryResult952.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6959, mozilla::dom::quota::Severity::Error); return tryResult952
.propagateErr(); }}
6955 }{auto tryResult952 = (mozilla::dom::quota::OrElseIf( (ToResult
(beginStmt->Execute())), [&](const auto& firstRes)
{ bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes
); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6959, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ([&beginStmt
](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write "
"transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6942); const TimeStamp start = TimeStamp::NowLoRes(); while
(true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt
->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::
NowLoRes() - start > TimeDuration::FromSeconds(10)) { break
; } } return ToResult(rv); }))); static_assert(std::is_empty_v
<typename decltype(tryResult952)::ok_type>); if ((__builtin_expect
(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6959, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6942); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))"
, tryResult952.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6959, mozilla::dom::quota::Severity::Error); return tryResult952
.propagateErr(); }}
6956 }{auto tryResult952 = (mozilla::dom::quota::OrElseIf( (ToResult
(beginStmt->Execute())), [&](const auto& firstRes)
{ bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes
); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6959, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ([&beginStmt
](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write "
"transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6942); const TimeStamp start = TimeStamp::NowLoRes(); while
(true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt
->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::
NowLoRes() - start > TimeDuration::FromSeconds(10)) { break
; } } return ToResult(rv); }))); static_assert(std::is_empty_v
<typename decltype(tryResult952)::ok_type>); if ((__builtin_expect
(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6959, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6942); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))"
, tryResult952.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6959, mozilla::dom::quota::Severity::Error); return tryResult952
.propagateErr(); }}
6957
6958 return MOZ_TO_RESULT(rv);{auto tryResult952 = (mozilla::dom::quota::OrElseIf( (ToResult
(beginStmt->Execute())), [&](const auto& firstRes)
{ bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes
); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6959, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ([&beginStmt
](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write "
"transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6942); const TimeStamp start = TimeStamp::NowLoRes(); while
(true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt
->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::
NowLoRes() - start > TimeDuration::FromSeconds(10)) { break
; } } return ToResult(rv); }))); static_assert(std::is_empty_v
<typename decltype(tryResult952)::ok_type>); if ((__builtin_expect
(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6959, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6942); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))"
, tryResult952.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6959, mozilla::dom::quota::Severity::Error); return tryResult952
.propagateErr(); }}
6959 }))){auto tryResult952 = (mozilla::dom::quota::OrElseIf( (ToResult
(beginStmt->Execute())), [&](const auto& firstRes)
{ bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes
); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6959, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ([&beginStmt
](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write "
"transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6942); const TimeStamp start = TimeStamp::NowLoRes(); while
(true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt
->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::
NowLoRes() - start > TimeDuration::FromSeconds(10)) { break
; } } return ToResult(rv); }))); static_assert(std::is_empty_v
<typename decltype(tryResult952)::ok_type>); if ((__builtin_expect
(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6959, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6942); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))"
, tryResult952.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6959, mozilla::dom::quota::Severity::Error); return tryResult952
.propagateErr(); }}
;
6960
6961 mInWriteTransaction = true;
6962
6963 return NS_OK;
6964}
6965
6966nsresult DatabaseConnection::CommitWriteTransaction() {
6967 AssertIsOnConnectionThread();
6968 MOZ_ASSERT(HasStorageConnection())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(HasStorageConnection())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(HasStorageConnection()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("HasStorageConnection()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6968)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasStorageConnection()"
")"); do { MOZ_CrashSequence(__null, 6968); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6969 MOZ_ASSERT(!mInReadTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mInReadTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mInReadTransaction))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("!mInReadTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6969)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInReadTransaction"
")"); do { MOZ_CrashSequence(__null, 6969); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6970 MOZ_ASSERT(mInWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mInWriteTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mInWriteTransaction))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("mInWriteTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6970)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInWriteTransaction"
")"); do { MOZ_CrashSequence(__null, 6970); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6971
6972 AUTO_PROFILER_LABEL("DatabaseConnection::CommitWriteTransaction", DOM)mozilla::AutoProfilerLabel raiiObject6972( "DatabaseConnection::CommitWriteTransaction"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
6973
6974 QM_TRY(MOZ_TO_RESULT(ExecuteCachedStatement("COMMIT;"_ns))){auto tryResult953 = (ToResult(ExecuteCachedStatement("COMMIT;"_ns
))); static_assert(std::is_empty_v<typename decltype(tryResult953
)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"COMMIT;\"_ns))"
, tryResult953.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6974, mozilla::dom::quota::Severity::Error); return tryResult953
.propagateErr(); }}
;
6975
6976 mInWriteTransaction = false;
6977 return NS_OK;
6978}
6979
6980void DatabaseConnection::RollbackWriteTransaction() {
6981 AssertIsOnConnectionThread();
6982 MOZ_ASSERT(!mInReadTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mInReadTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mInReadTransaction))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("!mInReadTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6982)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInReadTransaction"
")"); do { MOZ_CrashSequence(__null, 6982); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6983 MOZ_DIAGNOSTIC_ASSERT(HasStorageConnection())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(HasStorageConnection())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(HasStorageConnection()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("HasStorageConnection()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6983)
; AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "HasStorageConnection()"
")"); do { MOZ_CrashSequence(__null, 6983); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6984
6985 AUTO_PROFILER_LABEL("DatabaseConnection::RollbackWriteTransaction", DOM)mozilla::AutoProfilerLabel raiiObject6985( "DatabaseConnection::RollbackWriteTransaction"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
6986
6987 if (!mInWriteTransaction) {
6988 return;
6989 }
6990
6991 QM_WARNONLY_TRY({auto tryResult954 = (BorrowCachedStatement("ROLLBACK;"_ns) .
andThen([&self = *this](const auto& stmt) -> Result
<Ok, nsresult> { (void)stmt->Execute(); self.mInWriteTransaction
= false; return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult954)::ok_type>); if ((__builtin_expect
(!!(tryResult954.isErr()), 0))) { mozilla::dom::quota::HandleError
("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { (void)stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })"
, tryResult954.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7005, mozilla::dom::quota::Severity::Warning); }}
6992 BorrowCachedStatement("ROLLBACK;"_ns){auto tryResult954 = (BorrowCachedStatement("ROLLBACK;"_ns) .
andThen([&self = *this](const auto& stmt) -> Result
<Ok, nsresult> { (void)stmt->Execute(); self.mInWriteTransaction
= false; return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult954)::ok_type>); if ((__builtin_expect
(!!(tryResult954.isErr()), 0))) { mozilla::dom::quota::HandleError
("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { (void)stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })"
, tryResult954.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7005, mozilla::dom::quota::Severity::Warning); }}
6993 .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> {{auto tryResult954 = (BorrowCachedStatement("ROLLBACK;"_ns) .
andThen([&self = *this](const auto& stmt) -> Result
<Ok, nsresult> { (void)stmt->Execute(); self.mInWriteTransaction
= false; return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult954)::ok_type>); if ((__builtin_expect
(!!(tryResult954.isErr()), 0))) { mozilla::dom::quota::HandleError
("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { (void)stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })"
, tryResult954.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7005, mozilla::dom::quota::Severity::Warning); }}
6994 // This may fail if SQLite already rolled back the transaction{auto tryResult954 = (BorrowCachedStatement("ROLLBACK;"_ns) .
andThen([&self = *this](const auto& stmt) -> Result
<Ok, nsresult> { (void)stmt->Execute(); self.mInWriteTransaction
= false; return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult954)::ok_type>); if ((__builtin_expect
(!!(tryResult954.isErr()), 0))) { mozilla::dom::quota::HandleError
("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { (void)stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })"
, tryResult954.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7005, mozilla::dom::quota::Severity::Warning); }}
6995 // so ignore any errors.{auto tryResult954 = (BorrowCachedStatement("ROLLBACK;"_ns) .
andThen([&self = *this](const auto& stmt) -> Result
<Ok, nsresult> { (void)stmt->Execute(); self.mInWriteTransaction
= false; return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult954)::ok_type>); if ((__builtin_expect
(!!(tryResult954.isErr()), 0))) { mozilla::dom::quota::HandleError
("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { (void)stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })"
, tryResult954.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7005, mozilla::dom::quota::Severity::Warning); }}
6996
6997 // XXX ROLLBACK can fail quite normmally if a previous statement{auto tryResult954 = (BorrowCachedStatement("ROLLBACK;"_ns) .
andThen([&self = *this](const auto& stmt) -> Result
<Ok, nsresult> { (void)stmt->Execute(); self.mInWriteTransaction
= false; return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult954)::ok_type>); if ((__builtin_expect
(!!(tryResult954.isErr()), 0))) { mozilla::dom::quota::HandleError
("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { (void)stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })"
, tryResult954.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7005, mozilla::dom::quota::Severity::Warning); }}
6998 // failed to execute successfully so SQLite rolled back the{auto tryResult954 = (BorrowCachedStatement("ROLLBACK;"_ns) .
andThen([&self = *this](const auto& stmt) -> Result
<Ok, nsresult> { (void)stmt->Execute(); self.mInWriteTransaction
= false; return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult954)::ok_type>); if ((__builtin_expect
(!!(tryResult954.isErr()), 0))) { mozilla::dom::quota::HandleError
("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { (void)stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })"
, tryResult954.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7005, mozilla::dom::quota::Severity::Warning); }}
6999 // transaction already. However, if it failed because of some other{auto tryResult954 = (BorrowCachedStatement("ROLLBACK;"_ns) .
andThen([&self = *this](const auto& stmt) -> Result
<Ok, nsresult> { (void)stmt->Execute(); self.mInWriteTransaction
= false; return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult954)::ok_type>); if ((__builtin_expect
(!!(tryResult954.isErr()), 0))) { mozilla::dom::quota::HandleError
("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { (void)stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })"
, tryResult954.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7005, mozilla::dom::quota::Severity::Warning); }}
7000 // reason, we could try to close the connection.{auto tryResult954 = (BorrowCachedStatement("ROLLBACK;"_ns) .
andThen([&self = *this](const auto& stmt) -> Result
<Ok, nsresult> { (void)stmt->Execute(); self.mInWriteTransaction
= false; return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult954)::ok_type>); if ((__builtin_expect
(!!(tryResult954.isErr()), 0))) { mozilla::dom::quota::HandleError
("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { (void)stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })"
, tryResult954.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7005, mozilla::dom::quota::Severity::Warning); }}
7001 (void)stmt->Execute();{auto tryResult954 = (BorrowCachedStatement("ROLLBACK;"_ns) .
andThen([&self = *this](const auto& stmt) -> Result
<Ok, nsresult> { (void)stmt->Execute(); self.mInWriteTransaction
= false; return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult954)::ok_type>); if ((__builtin_expect
(!!(tryResult954.isErr()), 0))) { mozilla::dom::quota::HandleError
("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { (void)stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })"
, tryResult954.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7005, mozilla::dom::quota::Severity::Warning); }}
7002
7003 self.mInWriteTransaction = false;{auto tryResult954 = (BorrowCachedStatement("ROLLBACK;"_ns) .
andThen([&self = *this](const auto& stmt) -> Result
<Ok, nsresult> { (void)stmt->Execute(); self.mInWriteTransaction
= false; return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult954)::ok_type>); if ((__builtin_expect
(!!(tryResult954.isErr()), 0))) { mozilla::dom::quota::HandleError
("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { (void)stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })"
, tryResult954.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7005, mozilla::dom::quota::Severity::Warning); }}
7004 return Ok{};{auto tryResult954 = (BorrowCachedStatement("ROLLBACK;"_ns) .
andThen([&self = *this](const auto& stmt) -> Result
<Ok, nsresult> { (void)stmt->Execute(); self.mInWriteTransaction
= false; return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult954)::ok_type>); if ((__builtin_expect
(!!(tryResult954.isErr()), 0))) { mozilla::dom::quota::HandleError
("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { (void)stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })"
, tryResult954.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7005, mozilla::dom::quota::Severity::Warning); }}
7005 })){auto tryResult954 = (BorrowCachedStatement("ROLLBACK;"_ns) .
andThen([&self = *this](const auto& stmt) -> Result
<Ok, nsresult> { (void)stmt->Execute(); self.mInWriteTransaction
= false; return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult954)::ok_type>); if ((__builtin_expect
(!!(tryResult954.isErr()), 0))) { mozilla::dom::quota::HandleError
("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { (void)stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })"
, tryResult954.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7005, mozilla::dom::quota::Severity::Warning); }}
;
7006}
7007
7008void DatabaseConnection::FinishWriteTransaction() {
7009 AssertIsOnConnectionThread();
7010 MOZ_ASSERT(HasStorageConnection())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(HasStorageConnection())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(HasStorageConnection()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("HasStorageConnection()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7010)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasStorageConnection()"
")"); do { MOZ_CrashSequence(__null, 7010); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7011 MOZ_ASSERT(!mInReadTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mInReadTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mInReadTransaction))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("!mInReadTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7011)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInReadTransaction"
")"); do { MOZ_CrashSequence(__null, 7011); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7012 MOZ_ASSERT(!mInWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mInWriteTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mInWriteTransaction))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("!mInWriteTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7012)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInWriteTransaction"
")"); do { MOZ_CrashSequence(__null, 7012); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7013
7014 AUTO_PROFILER_LABEL("DatabaseConnection::FinishWriteTransaction", DOM)mozilla::AutoProfilerLabel raiiObject7014( "DatabaseConnection::FinishWriteTransaction"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7015
7016 if (mUpdateRefcountFunction) {
7017 mUpdateRefcountFunction->Reset();
7018 }
7019
7020 QM_WARNONLY_TRY(MOZ_TO_RESULT(ExecuteCachedStatement("BEGIN;"_ns)){auto tryResult955 = (ToResult(ExecuteCachedStatement("BEGIN;"_ns
)) .andThen([&](const auto) -> Result<Ok, nsresult>
{ mInReadTransaction = true; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult955)::ok_type>
); if ((__builtin_expect(!!(tryResult955.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"BEGIN;\"_ns)) .andThen([&](const auto) -> Result<Ok, nsresult> { mInReadTransaction = true; return Ok{}; })"
, tryResult955.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7024, mozilla::dom::quota::Severity::Warning); }}
7021 .andThen([&](const auto) -> Result<Ok, nsresult> {{auto tryResult955 = (ToResult(ExecuteCachedStatement("BEGIN;"_ns
)) .andThen([&](const auto) -> Result<Ok, nsresult>
{ mInReadTransaction = true; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult955)::ok_type>
); if ((__builtin_expect(!!(tryResult955.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"BEGIN;\"_ns)) .andThen([&](const auto) -> Result<Ok, nsresult> { mInReadTransaction = true; return Ok{}; })"
, tryResult955.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7024, mozilla::dom::quota::Severity::Warning); }}
7022 mInReadTransaction = true;{auto tryResult955 = (ToResult(ExecuteCachedStatement("BEGIN;"_ns
)) .andThen([&](const auto) -> Result<Ok, nsresult>
{ mInReadTransaction = true; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult955)::ok_type>
); if ((__builtin_expect(!!(tryResult955.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"BEGIN;\"_ns)) .andThen([&](const auto) -> Result<Ok, nsresult> { mInReadTransaction = true; return Ok{}; })"
, tryResult955.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7024, mozilla::dom::quota::Severity::Warning); }}
7023 return Ok{};{auto tryResult955 = (ToResult(ExecuteCachedStatement("BEGIN;"_ns
)) .andThen([&](const auto) -> Result<Ok, nsresult>
{ mInReadTransaction = true; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult955)::ok_type>
); if ((__builtin_expect(!!(tryResult955.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"BEGIN;\"_ns)) .andThen([&](const auto) -> Result<Ok, nsresult> { mInReadTransaction = true; return Ok{}; })"
, tryResult955.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7024, mozilla::dom::quota::Severity::Warning); }}
7024 })){auto tryResult955 = (ToResult(ExecuteCachedStatement("BEGIN;"_ns
)) .andThen([&](const auto) -> Result<Ok, nsresult>
{ mInReadTransaction = true; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult955)::ok_type>
); if ((__builtin_expect(!!(tryResult955.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"BEGIN;\"_ns)) .andThen([&](const auto) -> Result<Ok, nsresult> { mInReadTransaction = true; return Ok{}; })"
, tryResult955.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7024, mozilla::dom::quota::Severity::Warning); }}
;
7025}
7026
7027nsresult DatabaseConnection::StartSavepoint() {
7028 AssertIsOnConnectionThread();
7029 MOZ_ASSERT(HasStorageConnection())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(HasStorageConnection())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(HasStorageConnection()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("HasStorageConnection()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7029)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasStorageConnection()"
")"); do { MOZ_CrashSequence(__null, 7029); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7030 MOZ_ASSERT(mUpdateRefcountFunction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mUpdateRefcountFunction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mUpdateRefcountFunction))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("mUpdateRefcountFunction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7030)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mUpdateRefcountFunction"
")"); do { MOZ_CrashSequence(__null, 7030); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7031 MOZ_ASSERT(mInWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mInWriteTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mInWriteTransaction))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("mInWriteTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7031)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInWriteTransaction"
")"); do { MOZ_CrashSequence(__null, 7031); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7032
7033 AUTO_PROFILER_LABEL("DatabaseConnection::StartSavepoint", DOM)mozilla::AutoProfilerLabel raiiObject7033( "DatabaseConnection::StartSavepoint"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7034
7035 QM_TRY(MOZ_TO_RESULT(ExecuteCachedStatement(SAVEPOINT_CLAUSE))){auto tryResult956 = (ToResult(ExecuteCachedStatement("SAVEPOINT sp;"_ns
))); static_assert(std::is_empty_v<typename decltype(tryResult956
)::ok_type>); if ((__builtin_expect(!!(tryResult956.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"SAVEPOINT sp;\"_ns))"
, tryResult956.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7035, mozilla::dom::quota::Severity::Error); return tryResult956
.propagateErr(); }}
;
7036
7037 mUpdateRefcountFunction->StartSavepoint();
7038
7039#ifdef DEBUG1
7040 MOZ_ASSERT(mDEBUGSavepointCount < UINT32_MAX)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDEBUGSavepointCount < (4294967295U))>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mDEBUGSavepointCount < (4294967295U)))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mDEBUGSavepointCount < (4294967295U)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7040)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGSavepointCount < (4294967295U)"
")"); do { MOZ_CrashSequence(__null, 7040); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7041 mDEBUGSavepointCount++;
7042#endif
7043
7044 return NS_OK;
7045}
7046
7047nsresult DatabaseConnection::ReleaseSavepoint() {
7048 AssertIsOnConnectionThread();
7049 MOZ_ASSERT(HasStorageConnection())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(HasStorageConnection())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(HasStorageConnection()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("HasStorageConnection()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7049)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasStorageConnection()"
")"); do { MOZ_CrashSequence(__null, 7049); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7050 MOZ_ASSERT(mUpdateRefcountFunction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mUpdateRefcountFunction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mUpdateRefcountFunction))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("mUpdateRefcountFunction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7050)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mUpdateRefcountFunction"
")"); do { MOZ_CrashSequence(__null, 7050); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7051 MOZ_ASSERT(mInWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mInWriteTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mInWriteTransaction))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("mInWriteTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7051)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInWriteTransaction"
")"); do { MOZ_CrashSequence(__null, 7051); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7052
7053 AUTO_PROFILER_LABEL("DatabaseConnection::ReleaseSavepoint", DOM)mozilla::AutoProfilerLabel raiiObject7053( "DatabaseConnection::ReleaseSavepoint"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7054
7055 QM_TRY(MOZ_TO_RESULT(ExecuteCachedStatement("RELEASE "_ns SAVEPOINT_CLAUSE))){auto tryResult957 = (ToResult(ExecuteCachedStatement("RELEASE "_ns
"SAVEPOINT sp;"_ns))); static_assert(std::is_empty_v<typename
decltype(tryResult957)::ok_type>); if ((__builtin_expect(
!!(tryResult957.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ExecuteCachedStatement(\"RELEASE \"_ns \"SAVEPOINT sp;\"_ns))"
, tryResult957.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7055, mozilla::dom::quota::Severity::Error); return tryResult957
.propagateErr(); }}
;
7056
7057 mUpdateRefcountFunction->ReleaseSavepoint();
7058
7059#ifdef DEBUG1
7060 MOZ_ASSERT(mDEBUGSavepointCount)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDEBUGSavepointCount)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDEBUGSavepointCount))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("mDEBUGSavepointCount"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7060)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGSavepointCount"
")"); do { MOZ_CrashSequence(__null, 7060); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7061 mDEBUGSavepointCount--;
7062#endif
7063
7064 return NS_OK;
7065}
7066
7067nsresult DatabaseConnection::RollbackSavepoint() {
7068 AssertIsOnConnectionThread();
7069 MOZ_ASSERT(HasStorageConnection())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(HasStorageConnection())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(HasStorageConnection()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("HasStorageConnection()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7069)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasStorageConnection()"
")"); do { MOZ_CrashSequence(__null, 7069); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7070 MOZ_ASSERT(mUpdateRefcountFunction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mUpdateRefcountFunction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mUpdateRefcountFunction))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("mUpdateRefcountFunction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7070)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mUpdateRefcountFunction"
")"); do { MOZ_CrashSequence(__null, 7070); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7071 MOZ_ASSERT(mInWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mInWriteTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mInWriteTransaction))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("mInWriteTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7071)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInWriteTransaction"
")"); do { MOZ_CrashSequence(__null, 7071); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7072
7073 AUTO_PROFILER_LABEL("DatabaseConnection::RollbackSavepoint", DOM)mozilla::AutoProfilerLabel raiiObject7073( "DatabaseConnection::RollbackSavepoint"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7074
7075#ifdef DEBUG1
7076 MOZ_ASSERT(mDEBUGSavepointCount)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDEBUGSavepointCount)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDEBUGSavepointCount))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("mDEBUGSavepointCount"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7076)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGSavepointCount"
")"); do { MOZ_CrashSequence(__null, 7076); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7077 mDEBUGSavepointCount--;
7078#endif
7079
7080 mUpdateRefcountFunction->RollbackSavepoint();
7081
7082 QM_TRY_INSPECT(const auto& stmt,auto tryResult958 = (BorrowCachedStatement("ROLLBACK TO "_ns "SAVEPOINT sp;"_ns
)); if ((__builtin_expect(!!(tryResult958.isErr()), 0))) { mozilla
::dom::quota::HandleError("BorrowCachedStatement(\"ROLLBACK TO \"_ns \"SAVEPOINT sp;\"_ns)"
, tryResult958.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7083, mozilla::dom::quota::Severity::Error); return tryResult958
.propagateErr(); } const auto& stmt = tryResult958.inspect
();
7083 BorrowCachedStatement("ROLLBACK TO "_ns SAVEPOINT_CLAUSE))auto tryResult958 = (BorrowCachedStatement("ROLLBACK TO "_ns "SAVEPOINT sp;"_ns
)); if ((__builtin_expect(!!(tryResult958.isErr()), 0))) { mozilla
::dom::quota::HandleError("BorrowCachedStatement(\"ROLLBACK TO \"_ns \"SAVEPOINT sp;\"_ns)"
, tryResult958.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7083, mozilla::dom::quota::Severity::Error); return tryResult958
.propagateErr(); } const auto& stmt = tryResult958.inspect
();
;
7084
7085 // This may fail if SQLite already rolled back the savepoint so ignore any
7086 // errors.
7087 (void)stmt->Execute();
7088
7089 return NS_OK;
7090}
7091
7092nsresult DatabaseConnection::CheckpointInternal(CheckpointMode aMode) {
7093 AssertIsOnConnectionThread();
7094 MOZ_ASSERT(!mInReadTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mInReadTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mInReadTransaction))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("!mInReadTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7094)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInReadTransaction"
")"); do { MOZ_CrashSequence(__null, 7094); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7095 MOZ_ASSERT(!mInWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mInWriteTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mInWriteTransaction))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("!mInWriteTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7095)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInWriteTransaction"
")"); do { MOZ_CrashSequence(__null, 7095); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7096
7097 AUTO_PROFILER_LABEL("DatabaseConnection::CheckpointInternal", DOM)mozilla::AutoProfilerLabel raiiObject7097( "DatabaseConnection::CheckpointInternal"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7098
7099 nsAutoCString stmtString;
7100 stmtString.AssignLiteral("PRAGMA wal_checkpoint(");
7101
7102 switch (aMode) {
7103 case CheckpointMode::Full:
7104 // Ensures that the database is completely checkpointed and flushed to
7105 // disk.
7106 stmtString.AppendLiteral("FULL");
7107 break;
7108
7109 case CheckpointMode::Restart:
7110 // Like Full, but also ensures that the next write will start overwriting
7111 // the existing WAL file rather than letting the WAL file grow.
7112 stmtString.AppendLiteral("RESTART");
7113 break;
7114
7115 case CheckpointMode::Truncate:
7116 // Like Restart but also truncates the existing WAL file.
7117 stmtString.AppendLiteral("TRUNCATE");
7118 break;
7119
7120 default:
7121 MOZ_CRASH("Unknown CheckpointMode!")do { do { } while (false); MOZ_ReportCrash("" "Unknown CheckpointMode!"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7121)
; AnnotateMozCrashReason("MOZ_CRASH(" "Unknown CheckpointMode!"
")"); do { MOZ_CrashSequence(__null, 7121); __attribute__((nomerge
)) ::abort(); } while (false); } while (false)
;
7122 }
7123
7124 stmtString.AppendLiteral(");");
7125
7126 QM_TRY(MOZ_TO_RESULT(ExecuteCachedStatement(stmtString))){auto tryResult959 = (ToResult(ExecuteCachedStatement(stmtString
))); static_assert(std::is_empty_v<typename decltype(tryResult959
)::ok_type>); if ((__builtin_expect(!!(tryResult959.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(ExecuteCachedStatement(stmtString))"
, tryResult959.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7126, mozilla::dom::quota::Severity::Error); return tryResult959
.propagateErr(); }}
;
7127
7128 return NS_OK;
7129}
7130
7131void DatabaseConnection::DoIdleProcessing(bool aNeedsCheckpoint,
7132 const Atomic<bool>& aInterrupted) {
7133 AssertIsOnConnectionThread();
7134 MOZ_ASSERT(mInReadTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mInReadTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mInReadTransaction))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("mInReadTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7134)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInReadTransaction"
")"); do { MOZ_CrashSequence(__null, 7134); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7135 MOZ_ASSERT(!mInWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mInWriteTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mInWriteTransaction))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("!mInWriteTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7135)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInWriteTransaction"
")"); do { MOZ_CrashSequence(__null, 7135); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7136
7137 AUTO_PROFILER_LABEL("DatabaseConnection::DoIdleProcessing", DOM)mozilla::AutoProfilerLabel raiiObject7137( "DatabaseConnection::DoIdleProcessing"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7138
7139 CachingDatabaseConnection::CachedStatement freelistStmt;
7140 const uint32_t freelistCount = [this, &freelistStmt] {
7141 QM_TRY_RETURN(GetFreelistCount(freelistStmt), 0u){auto tryResult960 = (GetFreelistCount(freelistStmt)); if ((__builtin_expect
(!!(tryResult960.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult960.unwrapErr(); mozilla::dom::quota::HandleError
("GetFreelistCount(freelistStmt)", tryResult960.inspectErr(),
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7141, mozilla
::dom::quota::Severity::Error); [[maybe_unused]] constexpr const
auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "GetFreelistCount(freelistStmt)", tryTempError, 0u); }
return tryResult960.unwrap();}
;
7142 }();
7143
7144 CachedStatement rollbackStmt;
7145 CachedStatement beginStmt;
7146 if (aNeedsCheckpoint || freelistCount) {
7147 QM_TRY_UNWRAP(rollbackStmt, GetCachedStatement("ROLLBACK;"_ns), QM_VOID)auto tryResult961 = (GetCachedStatement("ROLLBACK;"_ns)); if (
(__builtin_expect(!!(tryResult961.isErr()), 0))) { [[maybe_unused
]] auto tryTempError = tryResult961.unwrapErr(); mozilla::dom
::quota::HandleError("GetCachedStatement(\"ROLLBACK;\"_ns)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7147,
mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return ; } rollbackStmt = tryResult961
.unwrap();
;
7148 QM_TRY_UNWRAP(beginStmt, GetCachedStatement("BEGIN;"_ns), QM_VOID)auto tryResult962 = (GetCachedStatement("BEGIN;"_ns)); if ((__builtin_expect
(!!(tryResult962.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult962.unwrapErr(); mozilla::dom::quota::HandleError
("GetCachedStatement(\"BEGIN;\"_ns)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7148, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return ; } beginStmt
= tryResult962.unwrap();
;
7149
7150 // Release the connection's normal transaction. It's possible that it could
7151 // fail, but that isn't a problem here.
7152 (void)rollbackStmt.Borrow()->Execute();
7153
7154 mInReadTransaction = false;
7155 }
7156
7157 const bool freedSomePages =
7158 freelistCount && [this, &freelistStmt, &rollbackStmt, freelistCount,
7159 aNeedsCheckpoint, &aInterrupted] {
7160 // Warn in case of an error, but do not propagate it. Just indicate we
7161 // didn't free any pages.
7162 QM_TRY_INSPECT(auto tryResult963 = (ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt
, freelistCount, aNeedsCheckpoint, aInterrupted)); if ((__builtin_expect
(!!(tryResult963.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult963.unwrapErr(); mozilla::dom::quota::HandleError
("ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7166, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)"
, tryTempError, false); } const bool& res = tryResult963.
inspect();
7163 const bool& res,auto tryResult963 = (ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt
, freelistCount, aNeedsCheckpoint, aInterrupted)); if ((__builtin_expect
(!!(tryResult963.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult963.unwrapErr(); mozilla::dom::quota::HandleError
("ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7166, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)"
, tryTempError, false); } const bool& res = tryResult963.
inspect();
7164 ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount,auto tryResult963 = (ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt
, freelistCount, aNeedsCheckpoint, aInterrupted)); if ((__builtin_expect
(!!(tryResult963.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult963.unwrapErr(); mozilla::dom::quota::HandleError
("ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7166, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)"
, tryTempError, false); } const bool& res = tryResult963.
inspect();
7165 aNeedsCheckpoint, aInterrupted),auto tryResult963 = (ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt
, freelistCount, aNeedsCheckpoint, aInterrupted)); if ((__builtin_expect
(!!(tryResult963.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult963.unwrapErr(); mozilla::dom::quota::HandleError
("ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7166, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)"
, tryTempError, false); } const bool& res = tryResult963.
inspect();
7166 false)auto tryResult963 = (ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt
, freelistCount, aNeedsCheckpoint, aInterrupted)); if ((__builtin_expect
(!!(tryResult963.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult963.unwrapErr(); mozilla::dom::quota::HandleError
("ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7166, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)"
, tryTempError, false); } const bool& res = tryResult963.
inspect();
;
7167
7168 // Make sure we didn't leave a transaction running.
7169 MOZ_ASSERT(!mInReadTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mInReadTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mInReadTransaction))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("!mInReadTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7169)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInReadTransaction"
")"); do { MOZ_CrashSequence(__null, 7169); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7170 MOZ_ASSERT(!mInWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mInWriteTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mInWriteTransaction))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("!mInWriteTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7170)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInWriteTransaction"
")"); do { MOZ_CrashSequence(__null, 7170); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7171
7172 return res;
7173 }();
7174
7175 // Truncate the WAL if we were asked to or if we managed to free some space.
7176 if (aNeedsCheckpoint || freedSomePages) {
7177 QM_WARNONLY_TRY(QM_TO_RESULT(CheckpointInternal(CheckpointMode::Truncate))){auto tryResult964 = (ToResult<QMResult>(CheckpointInternal
(CheckpointMode::Truncate))); static_assert(std::is_empty_v<
typename decltype(tryResult964)::ok_type>); if ((__builtin_expect
(!!(tryResult964.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult<QMResult>(CheckpointInternal(CheckpointMode::Truncate))"
, tryResult964.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7177, mozilla::dom::quota::Severity::Warning); }}
;
7178 }
7179
7180 // Finally try to restart the read transaction if we rolled it back earlier.
7181 if (beginStmt) {
7182 QM_WARNONLY_TRY({auto tryResult965 = (ToResult(beginStmt.Borrow()->Execute
()) .andThen([&self = *this](const Ok) -> Result<Ok
, nsresult> { self.mInReadTransaction = true; return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult965
)::ok_type>); if ((__builtin_expect(!!(tryResult965.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(beginStmt.Borrow()->Execute()) .andThen([&self = *this](const Ok) -> Result<Ok, nsresult> { self.mInReadTransaction = true; return Ok{}; })"
, tryResult965.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7187, mozilla::dom::quota::Severity::Warning); }}
7183 MOZ_TO_RESULT(beginStmt.Borrow()->Execute()){auto tryResult965 = (ToResult(beginStmt.Borrow()->Execute
()) .andThen([&self = *this](const Ok) -> Result<Ok
, nsresult> { self.mInReadTransaction = true; return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult965
)::ok_type>); if ((__builtin_expect(!!(tryResult965.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(beginStmt.Borrow()->Execute()) .andThen([&self = *this](const Ok) -> Result<Ok, nsresult> { self.mInReadTransaction = true; return Ok{}; })"
, tryResult965.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7187, mozilla::dom::quota::Severity::Warning); }}
7184 .andThen([&self = *this](const Ok) -> Result<Ok, nsresult> {{auto tryResult965 = (ToResult(beginStmt.Borrow()->Execute
()) .andThen([&self = *this](const Ok) -> Result<Ok
, nsresult> { self.mInReadTransaction = true; return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult965
)::ok_type>); if ((__builtin_expect(!!(tryResult965.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(beginStmt.Borrow()->Execute()) .andThen([&self = *this](const Ok) -> Result<Ok, nsresult> { self.mInReadTransaction = true; return Ok{}; })"
, tryResult965.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7187, mozilla::dom::quota::Severity::Warning); }}
7185 self.mInReadTransaction = true;{auto tryResult965 = (ToResult(beginStmt.Borrow()->Execute
()) .andThen([&self = *this](const Ok) -> Result<Ok
, nsresult> { self.mInReadTransaction = true; return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult965
)::ok_type>); if ((__builtin_expect(!!(tryResult965.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(beginStmt.Borrow()->Execute()) .andThen([&self = *this](const Ok) -> Result<Ok, nsresult> { self.mInReadTransaction = true; return Ok{}; })"
, tryResult965.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7187, mozilla::dom::quota::Severity::Warning); }}
7186 return Ok{};{auto tryResult965 = (ToResult(beginStmt.Borrow()->Execute
()) .andThen([&self = *this](const Ok) -> Result<Ok
, nsresult> { self.mInReadTransaction = true; return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult965
)::ok_type>); if ((__builtin_expect(!!(tryResult965.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(beginStmt.Borrow()->Execute()) .andThen([&self = *this](const Ok) -> Result<Ok, nsresult> { self.mInReadTransaction = true; return Ok{}; })"
, tryResult965.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7187, mozilla::dom::quota::Severity::Warning); }}
7187 })){auto tryResult965 = (ToResult(beginStmt.Borrow()->Execute
()) .andThen([&self = *this](const Ok) -> Result<Ok
, nsresult> { self.mInReadTransaction = true; return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult965
)::ok_type>); if ((__builtin_expect(!!(tryResult965.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(beginStmt.Borrow()->Execute()) .andThen([&self = *this](const Ok) -> Result<Ok, nsresult> { self.mInReadTransaction = true; return Ok{}; })"
, tryResult965.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7187, mozilla::dom::quota::Severity::Warning); }}
;
7188 }
7189}
7190
7191Result<bool, nsresult> DatabaseConnection::ReclaimFreePagesWhileIdle(
7192 CachedStatement& aFreelistStatement, CachedStatement& aRollbackStatement,
7193 uint32_t aFreelistCount, bool aNeedsCheckpoint,
7194 const Atomic<bool>& aInterrupted) {
7195 AssertIsOnConnectionThread();
7196 MOZ_ASSERT(aFreelistStatement)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aFreelistStatement)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aFreelistStatement))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("aFreelistStatement"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7196)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFreelistStatement"
")"); do { MOZ_CrashSequence(__null, 7196); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7197 MOZ_ASSERT(aRollbackStatement)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aRollbackStatement)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aRollbackStatement))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("aRollbackStatement"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7197)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aRollbackStatement"
")"); do { MOZ_CrashSequence(__null, 7197); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7198 MOZ_ASSERT(aFreelistCount)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aFreelistCount)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aFreelistCount))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("aFreelistCount"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7198)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFreelistCount" ")"
); do { MOZ_CrashSequence(__null, 7198); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7199 MOZ_ASSERT(!mInReadTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mInReadTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mInReadTransaction))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("!mInReadTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7199)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInReadTransaction"
")"); do { MOZ_CrashSequence(__null, 7199); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7200 MOZ_ASSERT(!mInWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mInWriteTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mInWriteTransaction))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("!mInWriteTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7200)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInWriteTransaction"
")"); do { MOZ_CrashSequence(__null, 7200); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7201
7202 AUTO_PROFILER_LABEL("DatabaseConnection::ReclaimFreePagesWhileIdle", DOM)mozilla::AutoProfilerLabel raiiObject7202( "DatabaseConnection::ReclaimFreePagesWhileIdle"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7203
7204 uint32_t pauseOnConnectionThreadMs = StaticPrefs::
7205 dom_indexedDB_connectionIdleMaintenance_pauseOnConnectionThreadMs();
7206 if (pauseOnConnectionThreadMs > 0) {
7207 PR_Sleep(PR_MillisecondsToInterval(pauseOnConnectionThreadMs));
7208 }
7209
7210 // Make sure we don't keep working if anything else needs this thread.
7211 if (aInterrupted) {
7212 return false;
7213 }
7214
7215 // Make all the statements we'll need up front.
7216
7217 // Only try to free 10% at a time so that we can bail out if this connection
7218 // suddenly becomes active or if the thread is needed otherwise.
7219 QM_TRY_INSPECT(auto tryResult966 = (GetCachedStatement( "PRAGMA incremental_vacuum("_ns
+ IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount
/ 10))) + ");"_ns)); if ((__builtin_expect(!!(tryResult966.isErr
()), 0))) { mozilla::dom::quota::HandleError("GetCachedStatement( \"PRAGMA incremental_vacuum(\"_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + \");\"_ns)"
, tryResult966.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7224, mozilla::dom::quota::Severity::Error); return tryResult966
.propagateErr(); } const auto& incrementalVacuumStmt = tryResult966
.inspect();
7220 const auto& incrementalVacuumStmt,auto tryResult966 = (GetCachedStatement( "PRAGMA incremental_vacuum("_ns
+ IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount
/ 10))) + ");"_ns)); if ((__builtin_expect(!!(tryResult966.isErr
()), 0))) { mozilla::dom::quota::HandleError("GetCachedStatement( \"PRAGMA incremental_vacuum(\"_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + \");\"_ns)"
, tryResult966.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7224, mozilla::dom::quota::Severity::Error); return tryResult966
.propagateErr(); } const auto& incrementalVacuumStmt = tryResult966
.inspect();
7221 GetCachedStatement(auto tryResult966 = (GetCachedStatement( "PRAGMA incremental_vacuum("_ns
+ IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount
/ 10))) + ");"_ns)); if ((__builtin_expect(!!(tryResult966.isErr
()), 0))) { mozilla::dom::quota::HandleError("GetCachedStatement( \"PRAGMA incremental_vacuum(\"_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + \");\"_ns)"
, tryResult966.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7224, mozilla::dom::quota::Severity::Error); return tryResult966
.propagateErr(); } const auto& incrementalVacuumStmt = tryResult966
.inspect();
7222 "PRAGMA incremental_vacuum("_ns +auto tryResult966 = (GetCachedStatement( "PRAGMA incremental_vacuum("_ns
+ IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount
/ 10))) + ");"_ns)); if ((__builtin_expect(!!(tryResult966.isErr
()), 0))) { mozilla::dom::quota::HandleError("GetCachedStatement( \"PRAGMA incremental_vacuum(\"_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + \");\"_ns)"
, tryResult966.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7224, mozilla::dom::quota::Severity::Error); return tryResult966
.propagateErr(); } const auto& incrementalVacuumStmt = tryResult966
.inspect();
7223 IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) +auto tryResult966 = (GetCachedStatement( "PRAGMA incremental_vacuum("_ns
+ IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount
/ 10))) + ");"_ns)); if ((__builtin_expect(!!(tryResult966.isErr
()), 0))) { mozilla::dom::quota::HandleError("GetCachedStatement( \"PRAGMA incremental_vacuum(\"_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + \");\"_ns)"
, tryResult966.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7224, mozilla::dom::quota::Severity::Error); return tryResult966
.propagateErr(); } const auto& incrementalVacuumStmt = tryResult966
.inspect();
7224 ");"_ns))auto tryResult966 = (GetCachedStatement( "PRAGMA incremental_vacuum("_ns
+ IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount
/ 10))) + ");"_ns)); if ((__builtin_expect(!!(tryResult966.isErr
()), 0))) { mozilla::dom::quota::HandleError("GetCachedStatement( \"PRAGMA incremental_vacuum(\"_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + \");\"_ns)"
, tryResult966.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7224, mozilla::dom::quota::Severity::Error); return tryResult966
.propagateErr(); } const auto& incrementalVacuumStmt = tryResult966
.inspect();
;
7225
7226 QM_TRY_INSPECT(const auto& beginImmediateStmt,auto tryResult967 = (GetCachedStatement("BEGIN IMMEDIATE;"_ns
)); if ((__builtin_expect(!!(tryResult967.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetCachedStatement(\"BEGIN IMMEDIATE;\"_ns)"
, tryResult967.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7227, mozilla::dom::quota::Severity::Error); return tryResult967
.propagateErr(); } const auto& beginImmediateStmt = tryResult967
.inspect();
7227 GetCachedStatement("BEGIN IMMEDIATE;"_ns))auto tryResult967 = (GetCachedStatement("BEGIN IMMEDIATE;"_ns
)); if ((__builtin_expect(!!(tryResult967.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetCachedStatement(\"BEGIN IMMEDIATE;\"_ns)"
, tryResult967.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7227, mozilla::dom::quota::Severity::Error); return tryResult967
.propagateErr(); } const auto& beginImmediateStmt = tryResult967
.inspect();
;
7228
7229 QM_TRY_INSPECT(const auto& commitStmt, GetCachedStatement("COMMIT;"_ns))auto tryResult968 = (GetCachedStatement("COMMIT;"_ns)); if ((
__builtin_expect(!!(tryResult968.isErr()), 0))) { mozilla::dom
::quota::HandleError("GetCachedStatement(\"COMMIT;\"_ns)", tryResult968
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7229, mozilla::dom::quota::Severity::Error); return tryResult968
.propagateErr(); } const auto& commitStmt = tryResult968.
inspect();
;
7230
7231 if (aNeedsCheckpoint) {
7232 // Freeing pages is a journaled operation, so it will require additional WAL
7233 // space. However, we're idle and are about to checkpoint anyway, so doing a
7234 // RESTART checkpoint here should allow us to reuse any existing space.
7235 QM_TRY(MOZ_TO_RESULT(CheckpointInternal(CheckpointMode::Restart))){auto tryResult969 = (ToResult(CheckpointInternal(CheckpointMode
::Restart))); static_assert(std::is_empty_v<typename decltype
(tryResult969)::ok_type>); if ((__builtin_expect(!!(tryResult969
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(CheckpointInternal(CheckpointMode::Restart))"
, tryResult969.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7235, mozilla::dom::quota::Severity::Error); return tryResult969
.propagateErr(); }}
;
7236 }
7237
7238 // Start the write transaction.
7239 QM_TRY(MOZ_TO_RESULT(beginImmediateStmt.Borrow()->Execute())){auto tryResult970 = (ToResult(beginImmediateStmt.Borrow()->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult970)::ok_type>); if ((__builtin_expect(!!(tryResult970
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(beginImmediateStmt.Borrow()->Execute())"
, tryResult970.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7239, mozilla::dom::quota::Severity::Error); return tryResult970
.propagateErr(); }}
;
7240
7241 mInWriteTransaction = true;
7242
7243 bool freedSomePages = false;
7244
7245 const auto rollback = [&aRollbackStatement, this](const auto&) {
7246 MOZ_ASSERT(mInWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mInWriteTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mInWriteTransaction))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("mInWriteTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7246)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInWriteTransaction"
")"); do { MOZ_CrashSequence(__null, 7246); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7247
7248 // Something failed, make sure we roll everything back.
7249 (void)aRollbackStatement.Borrow()->Execute();
7250
7251 // XXX Is rollback infallible? Shouldn't we check the result?
7252
7253 mInWriteTransaction = false;
7254 };
7255
7256 uint64_t previousFreelistCount = (uint64_t)aFreelistCount + 1;
7257
7258 QM_TRY(CollectWhile({auto tryResult975 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7273); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult971
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult971)::ok_type>); if ((__builtin_expect
(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult971.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult972)::ok_type>
); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult972.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7279, mozilla::dom::quota::Severity::Error); return tryResult972
.propagateErr(); }}; freedSomePages = true; auto tryResult973
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult973.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7284
, mozilla::dom::quota::Severity::Error); return tryResult973.
propagateErr(); } aFreelistCount = tryResult973.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult974)::ok_type>); if ((__builtin_expect(
!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7299, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7299)
; }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult975)::ok_type>); if ((__builtin_expect(!!(tryResult975
.isErr()), 0))) { auto tryTempError = tryResult975.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7306, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7259 [&aFreelistCount, &previousFreelistCount,{auto tryResult975 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7273); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult971
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult971)::ok_type>); if ((__builtin_expect
(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult971.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult972)::ok_type>
); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult972.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7279, mozilla::dom::quota::Severity::Error); return tryResult972
.propagateErr(); }}; freedSomePages = true; auto tryResult973
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult973.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7284
, mozilla::dom::quota::Severity::Error); return tryResult973.
propagateErr(); } aFreelistCount = tryResult973.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult974)::ok_type>); if ((__builtin_expect(
!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7299, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7299)
; }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult975)::ok_type>); if ((__builtin_expect(!!(tryResult975
.isErr()), 0))) { auto tryTempError = tryResult975.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7306, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7260 &aInterrupted]() -> Result<bool, nsresult> {{auto tryResult975 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7273); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult971
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult971)::ok_type>); if ((__builtin_expect
(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult971.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult972)::ok_type>
); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult972.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7279, mozilla::dom::quota::Severity::Error); return tryResult972
.propagateErr(); }}; freedSomePages = true; auto tryResult973
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult973.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7284
, mozilla::dom::quota::Severity::Error); return tryResult973.
propagateErr(); } aFreelistCount = tryResult973.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult974)::ok_type>); if ((__builtin_expect(
!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7299, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7299)
; }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult975)::ok_type>); if ((__builtin_expect(!!(tryResult975
.isErr()), 0))) { auto tryTempError = tryResult975.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7306, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7261 if (aInterrupted) {{auto tryResult975 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7273); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult971
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult971)::ok_type>); if ((__builtin_expect
(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult971.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult972)::ok_type>
); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult972.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7279, mozilla::dom::quota::Severity::Error); return tryResult972
.propagateErr(); }}; freedSomePages = true; auto tryResult973
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult973.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7284
, mozilla::dom::quota::Severity::Error); return tryResult973.
propagateErr(); } aFreelistCount = tryResult973.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult974)::ok_type>); if ((__builtin_expect(
!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7299, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7299)
; }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult975)::ok_type>); if ((__builtin_expect(!!(tryResult975
.isErr()), 0))) { auto tryTempError = tryResult975.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7306, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7262 // On interrupt, abort and roll back this transaction. It's ok{auto tryResult975 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7273); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult971
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult971)::ok_type>); if ((__builtin_expect
(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult971.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult972)::ok_type>
); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult972.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7279, mozilla::dom::quota::Severity::Error); return tryResult972
.propagateErr(); }}; freedSomePages = true; auto tryResult973
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult973.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7284
, mozilla::dom::quota::Severity::Error); return tryResult973.
propagateErr(); } aFreelistCount = tryResult973.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult974)::ok_type>); if ((__builtin_expect(
!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7299, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7299)
; }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult975)::ok_type>); if ((__builtin_expect(!!(tryResult975
.isErr()), 0))) { auto tryTempError = tryResult975.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7306, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7263 // if we never make progress here because the idle service{auto tryResult975 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7273); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult971
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult971)::ok_type>); if ((__builtin_expect
(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult971.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult972)::ok_type>
); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult972.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7279, mozilla::dom::quota::Severity::Error); return tryResult972
.propagateErr(); }}; freedSomePages = true; auto tryResult973
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult973.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7284
, mozilla::dom::quota::Severity::Error); return tryResult973.
propagateErr(); } aFreelistCount = tryResult973.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult974)::ok_type>); if ((__builtin_expect(
!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7299, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7299)
; }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult975)::ok_type>); if ((__builtin_expect(!!(tryResult975
.isErr()), 0))) { auto tryTempError = tryResult975.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7306, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7264 // should eventually reclaim this space.{auto tryResult975 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7273); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult971
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult971)::ok_type>); if ((__builtin_expect
(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult971.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult972)::ok_type>
); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult972.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7279, mozilla::dom::quota::Severity::Error); return tryResult972
.propagateErr(); }}; freedSomePages = true; auto tryResult973
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult973.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7284
, mozilla::dom::quota::Severity::Error); return tryResult973.
propagateErr(); } aFreelistCount = tryResult973.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult974)::ok_type>); if ((__builtin_expect(
!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7299, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7299)
; }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult975)::ok_type>); if ((__builtin_expect(!!(tryResult975
.isErr()), 0))) { auto tryTempError = tryResult975.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7306, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7265 return false;{auto tryResult975 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7273); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult971
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult971)::ok_type>); if ((__builtin_expect
(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult971.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult972)::ok_type>
); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult972.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7279, mozilla::dom::quota::Severity::Error); return tryResult972
.propagateErr(); }}; freedSomePages = true; auto tryResult973
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult973.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7284
, mozilla::dom::quota::Severity::Error); return tryResult973.
propagateErr(); } aFreelistCount = tryResult973.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult974)::ok_type>); if ((__builtin_expect(
!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7299, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7299)
; }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult975)::ok_type>); if ((__builtin_expect(!!(tryResult975
.isErr()), 0))) { auto tryTempError = tryResult975.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7306, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7266 }{auto tryResult975 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7273); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult971
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult971)::ok_type>); if ((__builtin_expect
(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult971.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult972)::ok_type>
); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult972.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7279, mozilla::dom::quota::Severity::Error); return tryResult972
.propagateErr(); }}; freedSomePages = true; auto tryResult973
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult973.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7284
, mozilla::dom::quota::Severity::Error); return tryResult973.
propagateErr(); } aFreelistCount = tryResult973.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult974)::ok_type>); if ((__builtin_expect(
!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7299, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7299)
; }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult975)::ok_type>); if ((__builtin_expect(!!(tryResult975
.isErr()), 0))) { auto tryTempError = tryResult975.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7306, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7267 // If we were not able to free anything, we might either see{auto tryResult975 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7273); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult971
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult971)::ok_type>); if ((__builtin_expect
(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult971.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult972)::ok_type>
); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult972.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7279, mozilla::dom::quota::Severity::Error); return tryResult972
.propagateErr(); }}; freedSomePages = true; auto tryResult973
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult973.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7284
, mozilla::dom::quota::Severity::Error); return tryResult973.
propagateErr(); } aFreelistCount = tryResult973.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult974)::ok_type>); if ((__builtin_expect(
!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7299, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7299)
; }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult975)::ok_type>); if ((__builtin_expect(!!(tryResult975
.isErr()), 0))) { auto tryTempError = tryResult975.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7306, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7268 // a DB that has no auto-vacuum support at all or some other{auto tryResult975 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7273); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult971
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult971)::ok_type>); if ((__builtin_expect
(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult971.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult972)::ok_type>
); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult972.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7279, mozilla::dom::quota::Severity::Error); return tryResult972
.propagateErr(); }}; freedSomePages = true; auto tryResult973
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult973.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7284
, mozilla::dom::quota::Severity::Error); return tryResult973.
propagateErr(); } aFreelistCount = tryResult973.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult974)::ok_type>); if ((__builtin_expect(
!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7299, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7299)
; }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult975)::ok_type>); if ((__builtin_expect(!!(tryResult975
.isErr()), 0))) { auto tryTempError = tryResult975.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7306, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7269 // (hopefully temporary) condition that prevents vacuum from{auto tryResult975 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7273); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult971
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult971)::ok_type>); if ((__builtin_expect
(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult971.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult972)::ok_type>
); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult972.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7279, mozilla::dom::quota::Severity::Error); return tryResult972
.propagateErr(); }}; freedSomePages = true; auto tryResult973
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult973.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7284
, mozilla::dom::quota::Severity::Error); return tryResult973.
propagateErr(); } aFreelistCount = tryResult973.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult974)::ok_type>); if ((__builtin_expect(
!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7299, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7299)
; }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult975)::ok_type>); if ((__builtin_expect(!!(tryResult975
.isErr()), 0))) { auto tryTempError = tryResult975.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7306, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7270 // working. Just carry on in non-DEBUG.{auto tryResult975 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7273); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult971
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult971)::ok_type>); if ((__builtin_expect
(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult971.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult972)::ok_type>
); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult972.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7279, mozilla::dom::quota::Severity::Error); return tryResult972
.propagateErr(); }}; freedSomePages = true; auto tryResult973
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult973.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7284
, mozilla::dom::quota::Severity::Error); return tryResult973.
propagateErr(); } aFreelistCount = tryResult973.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult974)::ok_type>); if ((__builtin_expect(
!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7299, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7299)
; }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult975)::ok_type>); if ((__builtin_expect(!!(tryResult975
.isErr()), 0))) { auto tryTempError = tryResult975.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7306, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7271 bool madeProgress = previousFreelistCount != aFreelistCount;{auto tryResult975 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7273); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult971
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult971)::ok_type>); if ((__builtin_expect
(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult971.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult972)::ok_type>
); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult972.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7279, mozilla::dom::quota::Severity::Error); return tryResult972
.propagateErr(); }}; freedSomePages = true; auto tryResult973
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult973.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7284
, mozilla::dom::quota::Severity::Error); return tryResult973.
propagateErr(); } aFreelistCount = tryResult973.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult974)::ok_type>); if ((__builtin_expect(
!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7299, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7299)
; }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult975)::ok_type>); if ((__builtin_expect(!!(tryResult975
.isErr()), 0))) { auto tryTempError = tryResult975.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7306, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7272 previousFreelistCount = aFreelistCount;{auto tryResult975 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7273); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult971
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult971)::ok_type>); if ((__builtin_expect
(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult971.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult972)::ok_type>
); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult972.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7279, mozilla::dom::quota::Severity::Error); return tryResult972
.propagateErr(); }}; freedSomePages = true; auto tryResult973
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult973.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7284
, mozilla::dom::quota::Severity::Error); return tryResult973.
propagateErr(); } aFreelistCount = tryResult973.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult974)::ok_type>); if ((__builtin_expect(
!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7299, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7299)
; }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult975)::ok_type>); if ((__builtin_expect(!!(tryResult975
.isErr()), 0))) { auto tryTempError = tryResult975.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7306, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7273 MOZ_ASSERT(madeProgress);{auto tryResult975 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7273); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult971
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult971)::ok_type>); if ((__builtin_expect
(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult971.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult972)::ok_type>
); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult972.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7279, mozilla::dom::quota::Severity::Error); return tryResult972
.propagateErr(); }}; freedSomePages = true; auto tryResult973
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult973.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7284
, mozilla::dom::quota::Severity::Error); return tryResult973.
propagateErr(); } aFreelistCount = tryResult973.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult974)::ok_type>); if ((__builtin_expect(
!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7299, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7299)
; }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult975)::ok_type>); if ((__builtin_expect(!!(tryResult975
.isErr()), 0))) { auto tryTempError = tryResult975.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7306, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7274 QM_WARNONLY_TRY(MOZ_TO_RESULT(madeProgress));{auto tryResult975 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7273); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult971
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult971)::ok_type>); if ((__builtin_expect
(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult971.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult972)::ok_type>
); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult972.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7279, mozilla::dom::quota::Severity::Error); return tryResult972
.propagateErr(); }}; freedSomePages = true; auto tryResult973
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult973.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7284
, mozilla::dom::quota::Severity::Error); return tryResult973.
propagateErr(); } aFreelistCount = tryResult973.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult974)::ok_type>); if ((__builtin_expect(
!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7299, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7299)
; }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult975)::ok_type>); if ((__builtin_expect(!!(tryResult975
.isErr()), 0))) { auto tryTempError = tryResult975.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7306, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7275 return madeProgress && (aFreelistCount != 0);{auto tryResult975 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7273); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult971
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult971)::ok_type>); if ((__builtin_expect
(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult971.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult972)::ok_type>
); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult972.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7279, mozilla::dom::quota::Severity::Error); return tryResult972
.propagateErr(); }}; freedSomePages = true; auto tryResult973
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult973.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7284
, mozilla::dom::quota::Severity::Error); return tryResult973.
propagateErr(); } aFreelistCount = tryResult973.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult974)::ok_type>); if ((__builtin_expect(
!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7299, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7299)
; }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult975)::ok_type>); if ((__builtin_expect(!!(tryResult975
.isErr()), 0))) { auto tryTempError = tryResult975.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7306, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7276 },{auto tryResult975 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7273); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult971
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult971)::ok_type>); if ((__builtin_expect
(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult971.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult972)::ok_type>
); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult972.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7279, mozilla::dom::quota::Severity::Error); return tryResult972
.propagateErr(); }}; freedSomePages = true; auto tryResult973
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult973.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7284
, mozilla::dom::quota::Severity::Error); return tryResult973.
propagateErr(); } aFreelistCount = tryResult973.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult974)::ok_type>); if ((__builtin_expect(
!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7299, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7299)
; }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult975)::ok_type>); if ((__builtin_expect(!!(tryResult975
.isErr()), 0))) { auto tryTempError = tryResult975.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7306, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7277 [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt,{auto tryResult975 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7273); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult971
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult971)::ok_type>); if ((__builtin_expect
(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult971.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult972)::ok_type>
); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult972.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7279, mozilla::dom::quota::Severity::Error); return tryResult972
.propagateErr(); }}; freedSomePages = true; auto tryResult973
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult973.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7284
, mozilla::dom::quota::Severity::Error); return tryResult973.
propagateErr(); } aFreelistCount = tryResult973.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult974)::ok_type>); if ((__builtin_expect(
!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7299, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7299)
; }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult975)::ok_type>); if ((__builtin_expect(!!(tryResult975
.isErr()), 0))) { auto tryTempError = tryResult975.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7306, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7278 &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> {{auto tryResult975 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7273); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult971
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult971)::ok_type>); if ((__builtin_expect
(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult971.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult972)::ok_type>
); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult972.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7279, mozilla::dom::quota::Severity::Error); return tryResult972
.propagateErr(); }}; freedSomePages = true; auto tryResult973
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult973.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7284
, mozilla::dom::quota::Severity::Error); return tryResult973.
propagateErr(); } aFreelistCount = tryResult973.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult974)::ok_type>); if ((__builtin_expect(
!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7299, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7299)
; }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult975)::ok_type>); if ((__builtin_expect(!!(tryResult975
.isErr()), 0))) { auto tryTempError = tryResult975.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7306, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7279 QM_TRY(MOZ_TO_RESULT(incrementalVacuumStmt.Borrow()->Execute()));{auto tryResult975 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7273); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult971
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult971)::ok_type>); if ((__builtin_expect
(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult971.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult972)::ok_type>
); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult972.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7279, mozilla::dom::quota::Severity::Error); return tryResult972
.propagateErr(); }}; freedSomePages = true; auto tryResult973
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult973.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7284
, mozilla::dom::quota::Severity::Error); return tryResult973.
propagateErr(); } aFreelistCount = tryResult973.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult974)::ok_type>); if ((__builtin_expect(
!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7299, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7299)
; }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult975)::ok_type>); if ((__builtin_expect(!!(tryResult975
.isErr()), 0))) { auto tryTempError = tryResult975.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7306, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7280
7281 freedSomePages = true;{auto tryResult975 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7273); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult971
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult971)::ok_type>); if ((__builtin_expect
(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult971.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult972)::ok_type>
); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult972.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7279, mozilla::dom::quota::Severity::Error); return tryResult972
.propagateErr(); }}; freedSomePages = true; auto tryResult973
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult973.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7284
, mozilla::dom::quota::Severity::Error); return tryResult973.
propagateErr(); } aFreelistCount = tryResult973.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult974)::ok_type>); if ((__builtin_expect(
!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7299, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7299)
; }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult975)::ok_type>); if ((__builtin_expect(!!(tryResult975
.isErr()), 0))) { auto tryTempError = tryResult975.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7306, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7282
7283 QM_TRY_UNWRAP(aFreelistCount,{auto tryResult975 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7273); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult971
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult971)::ok_type>); if ((__builtin_expect
(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult971.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult972)::ok_type>
); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult972.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7279, mozilla::dom::quota::Severity::Error); return tryResult972
.propagateErr(); }}; freedSomePages = true; auto tryResult973
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult973.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7284
, mozilla::dom::quota::Severity::Error); return tryResult973.
propagateErr(); } aFreelistCount = tryResult973.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult974)::ok_type>); if ((__builtin_expect(
!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7299, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7299)
; }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult975)::ok_type>); if ((__builtin_expect(!!(tryResult975
.isErr()), 0))) { auto tryTempError = tryResult975.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7306, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7284 GetFreelistCount(aFreelistStatement));{auto tryResult975 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7273); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult971
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult971)::ok_type>); if ((__builtin_expect
(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult971.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult972)::ok_type>
); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult972.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7279, mozilla::dom::quota::Severity::Error); return tryResult972
.propagateErr(); }}; freedSomePages = true; auto tryResult973
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult973.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7284
, mozilla::dom::quota::Severity::Error); return tryResult973.
propagateErr(); } aFreelistCount = tryResult973.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult974)::ok_type>); if ((__builtin_expect(
!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7299, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7299)
; }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult975)::ok_type>); if ((__builtin_expect(!!(tryResult975
.isErr()), 0))) { auto tryTempError = tryResult975.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7306, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7285
7286 return Ok{};{auto tryResult975 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7273); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult971
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult971)::ok_type>); if ((__builtin_expect
(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult971.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult972)::ok_type>
); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult972.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7279, mozilla::dom::quota::Severity::Error); return tryResult972
.propagateErr(); }}; freedSomePages = true; auto tryResult973
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult973.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7284
, mozilla::dom::quota::Severity::Error); return tryResult973.
propagateErr(); } aFreelistCount = tryResult973.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult974)::ok_type>); if ((__builtin_expect(
!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7299, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7299)
; }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult975)::ok_type>); if ((__builtin_expect(!!(tryResult975
.isErr()), 0))) { auto tryTempError = tryResult975.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7306, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7287 }){auto tryResult975 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7273); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult971
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult971)::ok_type>); if ((__builtin_expect
(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult971.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult972)::ok_type>
); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult972.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7279, mozilla::dom::quota::Severity::Error); return tryResult972
.propagateErr(); }}; freedSomePages = true; auto tryResult973
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult973.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7284
, mozilla::dom::quota::Severity::Error); return tryResult973.
propagateErr(); } aFreelistCount = tryResult973.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult974)::ok_type>); if ((__builtin_expect(
!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7299, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7299)
; }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult975)::ok_type>); if ((__builtin_expect(!!(tryResult975
.isErr()), 0))) { auto tryTempError = tryResult975.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7306, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7288 .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback,{auto tryResult975 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7273); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult971
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult971)::ok_type>); if ((__builtin_expect
(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult971.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult972)::ok_type>
); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult972.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7279, mozilla::dom::quota::Severity::Error); return tryResult972
.propagateErr(); }}; freedSomePages = true; auto tryResult973
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult973.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7284
, mozilla::dom::quota::Severity::Error); return tryResult973.
propagateErr(); } aFreelistCount = tryResult973.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult974)::ok_type>); if ((__builtin_expect(
!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7299, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7299)
; }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult975)::ok_type>); if ((__builtin_expect(!!(tryResult975
.isErr()), 0))) { auto tryTempError = tryResult975.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7306, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7289 this](Ok) -> Result<Ok, nsresult> {{auto tryResult975 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7273); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult971
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult971)::ok_type>); if ((__builtin_expect
(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult971.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult972)::ok_type>
); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult972.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7279, mozilla::dom::quota::Severity::Error); return tryResult972
.propagateErr(); }}; freedSomePages = true; auto tryResult973
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult973.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7284
, mozilla::dom::quota::Severity::Error); return tryResult973.
propagateErr(); } aFreelistCount = tryResult973.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult974)::ok_type>); if ((__builtin_expect(
!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7299, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7299)
; }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult975)::ok_type>); if ((__builtin_expect(!!(tryResult975
.isErr()), 0))) { auto tryTempError = tryResult975.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7306, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7290 if (aInterrupted) {{auto tryResult975 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7273); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult971
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult971)::ok_type>); if ((__builtin_expect
(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult971.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult972)::ok_type>
); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult972.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7279, mozilla::dom::quota::Severity::Error); return tryResult972
.propagateErr(); }}; freedSomePages = true; auto tryResult973
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult973.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7284
, mozilla::dom::quota::Severity::Error); return tryResult973.
propagateErr(); } aFreelistCount = tryResult973.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult974)::ok_type>); if ((__builtin_expect(
!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7299, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7299)
; }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult975)::ok_type>); if ((__builtin_expect(!!(tryResult975
.isErr()), 0))) { auto tryTempError = tryResult975.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7306, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7291 rollback(Ok{});{auto tryResult975 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7273); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult971
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult971)::ok_type>); if ((__builtin_expect
(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult971.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult972)::ok_type>
); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult972.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7279, mozilla::dom::quota::Severity::Error); return tryResult972
.propagateErr(); }}; freedSomePages = true; auto tryResult973
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult973.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7284
, mozilla::dom::quota::Severity::Error); return tryResult973.
propagateErr(); } aFreelistCount = tryResult973.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult974)::ok_type>); if ((__builtin_expect(
!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7299, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7299)
; }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult975)::ok_type>); if ((__builtin_expect(!!(tryResult975
.isErr()), 0))) { auto tryTempError = tryResult975.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7306, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7292 freedSomePages = false;{auto tryResult975 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7273); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult971
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult971)::ok_type>); if ((__builtin_expect
(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult971.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult972)::ok_type>
); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult972.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7279, mozilla::dom::quota::Severity::Error); return tryResult972
.propagateErr(); }}; freedSomePages = true; auto tryResult973
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult973.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7284
, mozilla::dom::quota::Severity::Error); return tryResult973.
propagateErr(); } aFreelistCount = tryResult973.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult974)::ok_type>); if ((__builtin_expect(
!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7299, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7299)
; }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult975)::ok_type>); if ((__builtin_expect(!!(tryResult975
.isErr()), 0))) { auto tryTempError = tryResult975.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7306, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7293 }{auto tryResult975 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7273); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult971
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult971)::ok_type>); if ((__builtin_expect
(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult971.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult972)::ok_type>
); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult972.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7279, mozilla::dom::quota::Severity::Error); return tryResult972
.propagateErr(); }}; freedSomePages = true; auto tryResult973
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult973.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7284
, mozilla::dom::quota::Severity::Error); return tryResult973.
propagateErr(); } aFreelistCount = tryResult973.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult974)::ok_type>); if ((__builtin_expect(
!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7299, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7299)
; }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult975)::ok_type>); if ((__builtin_expect(!!(tryResult975
.isErr()), 0))) { auto tryTempError = tryResult975.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7306, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7294
7295 if (freedSomePages) {{auto tryResult975 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7273); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult971
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult971)::ok_type>); if ((__builtin_expect
(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult971.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult972)::ok_type>
); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult972.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7279, mozilla::dom::quota::Severity::Error); return tryResult972
.propagateErr(); }}; freedSomePages = true; auto tryResult973
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult973.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7284
, mozilla::dom::quota::Severity::Error); return tryResult973.
propagateErr(); } aFreelistCount = tryResult973.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult974)::ok_type>); if ((__builtin_expect(
!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7299, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7299)
; }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult975)::ok_type>); if ((__builtin_expect(!!(tryResult975
.isErr()), 0))) { auto tryTempError = tryResult975.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7306, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7296 // Commit the write transaction.{auto tryResult975 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7273); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult971
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult971)::ok_type>); if ((__builtin_expect
(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult971.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult972)::ok_type>
); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult972.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7279, mozilla::dom::quota::Severity::Error); return tryResult972
.propagateErr(); }}; freedSomePages = true; auto tryResult973
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult973.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7284
, mozilla::dom::quota::Severity::Error); return tryResult973.
propagateErr(); } aFreelistCount = tryResult973.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult974)::ok_type>); if ((__builtin_expect(
!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7299, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7299)
; }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult975)::ok_type>); if ((__builtin_expect(!!(tryResult975
.isErr()), 0))) { auto tryTempError = tryResult975.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7306, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7297 QM_TRY(MOZ_TO_RESULT(commitStmt.Borrow()->Execute()),{auto tryResult975 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7273); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult971
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult971)::ok_type>); if ((__builtin_expect
(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult971.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult972)::ok_type>
); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult972.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7279, mozilla::dom::quota::Severity::Error); return tryResult972
.propagateErr(); }}; freedSomePages = true; auto tryResult973
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult973.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7284
, mozilla::dom::quota::Severity::Error); return tryResult973.
propagateErr(); } aFreelistCount = tryResult973.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult974)::ok_type>); if ((__builtin_expect(
!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7299, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7299)
; }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult975)::ok_type>); if ((__builtin_expect(!!(tryResult975
.isErr()), 0))) { auto tryTempError = tryResult975.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7306, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7298 QM_PROPAGATE,{auto tryResult975 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7273); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult971
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult971)::ok_type>); if ((__builtin_expect
(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult971.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult972)::ok_type>
); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult972.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7279, mozilla::dom::quota::Severity::Error); return tryResult972
.propagateErr(); }}; freedSomePages = true; auto tryResult973
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult973.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7284
, mozilla::dom::quota::Severity::Error); return tryResult973.
propagateErr(); } aFreelistCount = tryResult973.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult974)::ok_type>); if ((__builtin_expect(
!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7299, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7299)
; }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult975)::ok_type>); if ((__builtin_expect(!!(tryResult975
.isErr()), 0))) { auto tryTempError = tryResult975.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7306, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7299 [](const auto&) { NS_WARNING("Failed to commit!"); });{auto tryResult975 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7273); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult971
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult971)::ok_type>); if ((__builtin_expect
(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult971.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult972)::ok_type>
); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult972.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7279, mozilla::dom::quota::Severity::Error); return tryResult972
.propagateErr(); }}; freedSomePages = true; auto tryResult973
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult973.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7284
, mozilla::dom::quota::Severity::Error); return tryResult973.
propagateErr(); } aFreelistCount = tryResult973.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult974)::ok_type>); if ((__builtin_expect(
!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7299, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7299)
; }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult975)::ok_type>); if ((__builtin_expect(!!(tryResult975
.isErr()), 0))) { auto tryTempError = tryResult975.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7306, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7300
7301 mInWriteTransaction = false;{auto tryResult975 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7273); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult971
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult971)::ok_type>); if ((__builtin_expect
(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult971.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult972)::ok_type>
); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult972.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7279, mozilla::dom::quota::Severity::Error); return tryResult972
.propagateErr(); }}; freedSomePages = true; auto tryResult973
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult973.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7284
, mozilla::dom::quota::Severity::Error); return tryResult973.
propagateErr(); } aFreelistCount = tryResult973.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult974)::ok_type>); if ((__builtin_expect(
!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7299, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7299)
; }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult975)::ok_type>); if ((__builtin_expect(!!(tryResult975
.isErr()), 0))) { auto tryTempError = tryResult975.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7306, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7302 }{auto tryResult975 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7273); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult971
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult971)::ok_type>); if ((__builtin_expect
(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult971.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult972)::ok_type>
); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult972.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7279, mozilla::dom::quota::Severity::Error); return tryResult972
.propagateErr(); }}; freedSomePages = true; auto tryResult973
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult973.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7284
, mozilla::dom::quota::Severity::Error); return tryResult973.
propagateErr(); } aFreelistCount = tryResult973.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult974)::ok_type>); if ((__builtin_expect(
!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7299, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7299)
; }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult975)::ok_type>); if ((__builtin_expect(!!(tryResult975
.isErr()), 0))) { auto tryTempError = tryResult975.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7306, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7303
7304 return Ok{};{auto tryResult975 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7273); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult971
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult971)::ok_type>); if ((__builtin_expect
(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult971.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult972)::ok_type>
); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult972.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7279, mozilla::dom::quota::Severity::Error); return tryResult972
.propagateErr(); }}; freedSomePages = true; auto tryResult973
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult973.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7284
, mozilla::dom::quota::Severity::Error); return tryResult973.
propagateErr(); } aFreelistCount = tryResult973.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult974)::ok_type>); if ((__builtin_expect(
!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7299, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7299)
; }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult975)::ok_type>); if ((__builtin_expect(!!(tryResult975
.isErr()), 0))) { auto tryTempError = tryResult975.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7306, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7305 }),{auto tryResult975 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7273); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult971
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult971)::ok_type>); if ((__builtin_expect
(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult971.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult972)::ok_type>
); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult972.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7279, mozilla::dom::quota::Severity::Error); return tryResult972
.propagateErr(); }}; freedSomePages = true; auto tryResult973
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult973.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7284
, mozilla::dom::quota::Severity::Error); return tryResult973.
propagateErr(); } aFreelistCount = tryResult973.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult974)::ok_type>); if ((__builtin_expect(
!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7299, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7299)
; }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult975)::ok_type>); if ((__builtin_expect(!!(tryResult975
.isErr()), 0))) { auto tryTempError = tryResult975.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7306, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7306 QM_PROPAGATE, rollback){auto tryResult975 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7273); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult971
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult971)::ok_type>); if ((__builtin_expect
(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult971.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult972)::ok_type>
); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult972.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7279, mozilla::dom::quota::Severity::Error); return tryResult972
.propagateErr(); }}; freedSomePages = true; auto tryResult973
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult973.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7284
, mozilla::dom::quota::Severity::Error); return tryResult973.
propagateErr(); } aFreelistCount = tryResult973.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult974)::ok_type>); if ((__builtin_expect(
!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7299, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7299)
; }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult975)::ok_type>); if ((__builtin_expect(!!(tryResult975
.isErr()), 0))) { auto tryTempError = tryResult975.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7306, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7273); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7273); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult971 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult971)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult971.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7274, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult972 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7279, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; freedSomePages = true; auto tryResult973 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult973.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7284, mozilla::dom::quota::Severity::Error); return tryResult973.propagateErr(); } aFreelistCount = tryResult973.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult974 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult974)::ok_type>); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { auto tryTempError = tryResult974.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7299); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
;
7307
7308 return freedSomePages;
7309}
7310
7311Result<uint32_t, nsresult> DatabaseConnection::GetFreelistCount(
7312 CachedStatement& aCachedStatement) {
7313 AssertIsOnConnectionThread();
7314
7315 AUTO_PROFILER_LABEL("DatabaseConnection::GetFreelistCount", DOM)mozilla::AutoProfilerLabel raiiObject7315( "DatabaseConnection::GetFreelistCount"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7316
7317 if (!aCachedStatement) {
7318 QM_TRY_UNWRAP(aCachedStatement,auto tryResult976 = (GetCachedStatement("PRAGMA freelist_count;"_ns
)); if ((__builtin_expect(!!(tryResult976.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetCachedStatement(\"PRAGMA freelist_count;\"_ns)"
, tryResult976.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7319, mozilla::dom::quota::Severity::Error); return tryResult976
.propagateErr(); } aCachedStatement = tryResult976.unwrap();
7319 GetCachedStatement("PRAGMA freelist_count;"_ns))auto tryResult976 = (GetCachedStatement("PRAGMA freelist_count;"_ns
)); if ((__builtin_expect(!!(tryResult976.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetCachedStatement(\"PRAGMA freelist_count;\"_ns)"
, tryResult976.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7319, mozilla::dom::quota::Severity::Error); return tryResult976
.propagateErr(); } aCachedStatement = tryResult976.unwrap();
;
7320 }
7321
7322 const auto borrowedStatement = aCachedStatement.Borrow();
7323
7324 QM_TRY_UNWRAP(const DebugOnly<bool> hasResult,auto tryResult977 = (::mozilla::ToResultInvokeMember( (&*
borrowedStatement), &::mozilla::detail::DerefedType<decltype
(&*borrowedStatement)>::ExecuteStep )); if ((__builtin_expect
(!!(tryResult977.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (&*borrowedStatement), &::mozilla::detail::DerefedType<decltype(&*borrowedStatement)>::ExecuteStep )"
, tryResult977.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7325, mozilla::dom::quota::Severity::Error); return tryResult977
.propagateErr(); } const DebugOnly<bool> hasResult = tryResult977
.unwrap();
7325 MOZ_TO_RESULT_INVOKE_MEMBER(&*borrowedStatement, ExecuteStep))auto tryResult977 = (::mozilla::ToResultInvokeMember( (&*
borrowedStatement), &::mozilla::detail::DerefedType<decltype
(&*borrowedStatement)>::ExecuteStep )); if ((__builtin_expect
(!!(tryResult977.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (&*borrowedStatement), &::mozilla::detail::DerefedType<decltype(&*borrowedStatement)>::ExecuteStep )"
, tryResult977.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7325, mozilla::dom::quota::Severity::Error); return tryResult977
.propagateErr(); } const DebugOnly<bool> hasResult = tryResult977
.unwrap();
;
7326
7327 MOZ_ASSERT(hasResult)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(hasResult)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(hasResult))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("hasResult", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7327); AnnotateMozCrashReason("MOZ_ASSERT" "(" "hasResult" ")"
); do { MOZ_CrashSequence(__null, 7327); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7328
7329 QM_TRY_INSPECT(const int32_t& freelistCount,auto tryResult978 = (::mozilla::ToResultInvokeMember( (*borrowedStatement
), &::mozilla::detail::DerefedType<decltype(*borrowedStatement
)>::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult978.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*borrowedStatement), &::mozilla::detail::DerefedType<decltype(*borrowedStatement)>::GetInt32 , 0)"
, tryResult978.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7330, mozilla::dom::quota::Severity::Error); return tryResult978
.propagateErr(); } const int32_t& freelistCount = tryResult978
.inspect();
7330 MOZ_TO_RESULT_INVOKE_MEMBER(*borrowedStatement, GetInt32, 0))auto tryResult978 = (::mozilla::ToResultInvokeMember( (*borrowedStatement
), &::mozilla::detail::DerefedType<decltype(*borrowedStatement
)>::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult978.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*borrowedStatement), &::mozilla::detail::DerefedType<decltype(*borrowedStatement)>::GetInt32 , 0)"
, tryResult978.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7330, mozilla::dom::quota::Severity::Error); return tryResult978
.propagateErr(); } const int32_t& freelistCount = tryResult978
.inspect();
;
7331
7332 MOZ_ASSERT(freelistCount >= 0)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(freelistCount >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(freelistCount >= 0))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("freelistCount >= 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7332)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "freelistCount >= 0"
")"); do { MOZ_CrashSequence(__null, 7332); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7333
7334 return uint32_t(freelistCount);
7335}
7336
7337void DatabaseConnection::Close() {
7338 AssertIsOnConnectionThread();
7339 MOZ_ASSERT(!mDEBUGSavepointCount)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDEBUGSavepointCount)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDEBUGSavepointCount))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("!mDEBUGSavepointCount"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7339)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDEBUGSavepointCount"
")"); do { MOZ_CrashSequence(__null, 7339); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7340 MOZ_DIAGNOSTIC_ASSERT(!mInWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mInWriteTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mInWriteTransaction))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("!mInWriteTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7340)
; AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "!mInWriteTransaction"
")"); do { MOZ_CrashSequence(__null, 7340); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7341
7342 AUTO_PROFILER_LABEL("DatabaseConnection::Close", DOM)mozilla::AutoProfilerLabel raiiObject7342( "DatabaseConnection::Close"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7343
7344 if (mUpdateRefcountFunction) {
7345 MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(MutableStorageConnection().RemoveFunction("update_refcount"_ns
))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(MutableStorageConnection().RemoveFunction(\"update_refcount\"_ns))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7346)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(MutableStorageConnection().RemoveFunction(\"update_refcount\"_ns))"
")"); do { MOZ_CrashSequence(__null, 7346); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
7346 MutableStorageConnection().RemoveFunction("update_refcount"_ns))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(MutableStorageConnection().RemoveFunction("update_refcount"_ns
))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(MutableStorageConnection().RemoveFunction(\"update_refcount\"_ns))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7346)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(MutableStorageConnection().RemoveFunction(\"update_refcount\"_ns))"
")"); do { MOZ_CrashSequence(__null, 7346); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
7347 mUpdateRefcountFunction = nullptr;
7348 }
7349
7350 CachingDatabaseConnection::Close();
7351
7352 mFileManager.destroy();
7353}
7354
7355nsresult DatabaseConnection::DisableQuotaChecks() {
7356 AssertIsOnConnectionThread();
7357 MOZ_ASSERT(HasStorageConnection())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(HasStorageConnection())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(HasStorageConnection()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("HasStorageConnection()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7357)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasStorageConnection()"
")"); do { MOZ_CrashSequence(__null, 7357); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7358
7359 if (!mQuotaObject) {
7360 MOZ_ASSERT(!mJournalQuotaObject)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mJournalQuotaObject)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mJournalQuotaObject))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("!mJournalQuotaObject"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7360)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mJournalQuotaObject"
")"); do { MOZ_CrashSequence(__null, 7360); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7361
7362 QM_TRY(MOZ_TO_RESULT(MutableStorageConnection().GetQuotaObjects({auto tryResult979 = (ToResult(MutableStorageConnection().GetQuotaObjects
( getter_AddRefs(mQuotaObject), getter_AddRefs(mJournalQuotaObject
)))); static_assert(std::is_empty_v<typename decltype(tryResult979
)::ok_type>); if ((__builtin_expect(!!(tryResult979.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(MutableStorageConnection().GetQuotaObjects( getter_AddRefs(mQuotaObject), getter_AddRefs(mJournalQuotaObject)))"
, tryResult979.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7363, mozilla::dom::quota::Severity::Error); return tryResult979
.propagateErr(); }}
7363 getter_AddRefs(mQuotaObject), getter_AddRefs(mJournalQuotaObject)))){auto tryResult979 = (ToResult(MutableStorageConnection().GetQuotaObjects
( getter_AddRefs(mQuotaObject), getter_AddRefs(mJournalQuotaObject
)))); static_assert(std::is_empty_v<typename decltype(tryResult979
)::ok_type>); if ((__builtin_expect(!!(tryResult979.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(MutableStorageConnection().GetQuotaObjects( getter_AddRefs(mQuotaObject), getter_AddRefs(mJournalQuotaObject)))"
, tryResult979.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7363, mozilla::dom::quota::Severity::Error); return tryResult979
.propagateErr(); }}
;
7364
7365 MOZ_ASSERT(mQuotaObject)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mQuotaObject)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mQuotaObject))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mQuotaObject", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7365); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mQuotaObject"
")"); do { MOZ_CrashSequence(__null, 7365); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7366 MOZ_ASSERT(mJournalQuotaObject)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mJournalQuotaObject)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mJournalQuotaObject))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("mJournalQuotaObject"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7366)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mJournalQuotaObject"
")"); do { MOZ_CrashSequence(__null, 7366); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7367 }
7368
7369 mQuotaObject->DisableQuotaCheck();
7370 mJournalQuotaObject->DisableQuotaCheck();
7371
7372 return NS_OK;
7373}
7374
7375void DatabaseConnection::EnableQuotaChecks() {
7376 AssertIsOnConnectionThread();
7377 if (!mQuotaObject) {
7378 MOZ_ASSERT(!mJournalQuotaObject)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mJournalQuotaObject)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mJournalQuotaObject))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("!mJournalQuotaObject"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7378)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mJournalQuotaObject"
")"); do { MOZ_CrashSequence(__null, 7378); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7379
7380 // DisableQuotaChecks failed earlier, so we don't need to enable quota
7381 // checks again.
7382 return;
7383 }
7384
7385 MOZ_ASSERT(mJournalQuotaObject)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mJournalQuotaObject)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mJournalQuotaObject))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("mJournalQuotaObject"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7385)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mJournalQuotaObject"
")"); do { MOZ_CrashSequence(__null, 7385); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7386
7387 const RefPtr<QuotaObject> quotaObject = std::move(mQuotaObject);
7388 const RefPtr<QuotaObject> journalQuotaObject = std::move(mJournalQuotaObject);
7389
7390 quotaObject->EnableQuotaCheck();
7391 journalQuotaObject->EnableQuotaCheck();
7392
7393 QM_TRY_INSPECT(const int64_t& fileSize, GetFileSize(quotaObject->Path()),auto tryResult980 = (GetFileSize(quotaObject->Path())); if
((__builtin_expect(!!(tryResult980.isErr()), 0))) { [[maybe_unused
]] auto tryTempError = tryResult980.unwrapErr(); mozilla::dom
::quota::HandleError("GetFileSize(quotaObject->Path())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7394,
mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return ; } const int64_t&
fileSize = tryResult980.inspect();
7394 QM_VOID)auto tryResult980 = (GetFileSize(quotaObject->Path())); if
((__builtin_expect(!!(tryResult980.isErr()), 0))) { [[maybe_unused
]] auto tryTempError = tryResult980.unwrapErr(); mozilla::dom
::quota::HandleError("GetFileSize(quotaObject->Path())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7394,
mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return ; } const int64_t&
fileSize = tryResult980.inspect();
;
7395 QM_TRY_INSPECT(const int64_t& journalFileSize,auto tryResult981 = (GetFileSize(journalQuotaObject->Path(
))); if ((__builtin_expect(!!(tryResult981.isErr()), 0))) { [
[maybe_unused]] auto tryTempError = tryResult981.unwrapErr();
mozilla::dom::quota::HandleError("GetFileSize(journalQuotaObject->Path())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7396, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return ; } const
int64_t& journalFileSize = tryResult981.inspect();
7396 GetFileSize(journalQuotaObject->Path()), QM_VOID)auto tryResult981 = (GetFileSize(journalQuotaObject->Path(
))); if ((__builtin_expect(!!(tryResult981.isErr()), 0))) { [
[maybe_unused]] auto tryTempError = tryResult981.unwrapErr();
mozilla::dom::quota::HandleError("GetFileSize(journalQuotaObject->Path())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7396, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return ; } const
int64_t& journalFileSize = tryResult981.inspect();
;
7397
7398 DebugOnly<bool> result = journalQuotaObject->MaybeUpdateSize(
7399 journalFileSize, /* aTruncate */ true);
7400 MOZ_ASSERT(result)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(result)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(result))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("result", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7400); AnnotateMozCrashReason("MOZ_ASSERT" "(" "result" ")"
); do { MOZ_CrashSequence(__null, 7400); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7401
7402 result = quotaObject->MaybeUpdateSize(fileSize, /* aTruncate */ true);
7403 MOZ_ASSERT(result)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(result)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(result))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("result", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7403); AnnotateMozCrashReason("MOZ_ASSERT" "(" "result" ")"
); do { MOZ_CrashSequence(__null, 7403); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7404}
7405
7406Result<int64_t, nsresult> DatabaseConnection::GetFileSize(
7407 const nsAString& aPath) {
7408 MOZ_ASSERT(!aPath.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aPath.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!aPath.IsEmpty()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!aPath.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7408)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aPath.IsEmpty()" ")"
); do { MOZ_CrashSequence(__null, 7408); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7409
7410 QM_TRY_INSPECT(const auto& file, QM_NewLocalFile(aPath))auto tryResult982 = (QM_NewLocalFile(aPath)); if ((__builtin_expect
(!!(tryResult982.isErr()), 0))) { mozilla::dom::quota::HandleError
("QM_NewLocalFile(aPath)", tryResult982.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7410, mozilla::dom::quota::Severity::Error); return tryResult982
.propagateErr(); } const auto& file = tryResult982.inspect
();
;
7411 QM_TRY_INSPECT(const bool& exists, MOZ_TO_RESULT_INVOKE_MEMBER(file, Exists))auto tryResult983 = (::mozilla::ToResultInvokeMember( (file),
&::mozilla::detail::DerefedType<decltype(file)>::Exists
)); if ((__builtin_expect(!!(tryResult983.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::Exists )"
, tryResult983.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7411, mozilla::dom::quota::Severity::Error); return tryResult983
.propagateErr(); } const bool& exists = tryResult983.inspect
();
;
7412
7413 if (exists) {
7414 QM_TRY_RETURN(MOZ_TO_RESULT_INVOKE_MEMBER(file, GetFileSize)){auto tryResult984 = (::mozilla::ToResultInvokeMember( (file)
, &::mozilla::detail::DerefedType<decltype(file)>::
GetFileSize )); if ((__builtin_expect(!!(tryResult984.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize )"
, tryResult984.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7414, mozilla::dom::quota::Severity::Error); } return tryResult984
;}
;
7415 }
7416
7417 return 0;
7418}
7419
7420DatabaseConnection::AutoSavepoint::AutoSavepoint()
7421 : mConnection(nullptr)
7422#ifdef DEBUG1
7423 ,
7424 mDEBUGTransaction(nullptr)
7425#endif
7426{
7427 MOZ_COUNT_CTOR(DatabaseConnection::AutoSavepoint)do { static_assert(std::is_class_v<DatabaseConnection::AutoSavepoint
>, "Token '" "DatabaseConnection::AutoSavepoint" "' is not a class type."
); static_assert(!std::is_base_of_v<nsISupports, DatabaseConnection
::AutoSavepoint>, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "DatabaseConnection::AutoSavepoint"
, sizeof(*this)); } while (0)
;
7428}
7429
7430DatabaseConnection::AutoSavepoint::~AutoSavepoint() {
7431 MOZ_COUNT_DTOR(DatabaseConnection::AutoSavepoint)do { static_assert(std::is_class_v<DatabaseConnection::AutoSavepoint
>, "Token '" "DatabaseConnection::AutoSavepoint" "' is not a class type."
); static_assert(!std::is_base_of_v<nsISupports, DatabaseConnection
::AutoSavepoint>, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "DatabaseConnection::AutoSavepoint"
, sizeof(*this)); } while (0)
;
7432
7433 if (mConnection) {
7434 mConnection->AssertIsOnConnectionThread();
7435 MOZ_ASSERT(mDEBUGTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDEBUGTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDEBUGTransaction))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("mDEBUGTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7435)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGTransaction"
")"); do { MOZ_CrashSequence(__null, 7435); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7436 MOZ_ASSERT(do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDEBUGTransaction->GetMode() == IDBTransaction::Mode
::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction
::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction
::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction
::Mode::VersionChange)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDEBUGTransaction->GetMode
() == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction->
GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction
->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction
->GetMode() == IDBTransaction::Mode::VersionChange))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7440)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 7440); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
7437 mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWrite ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDEBUGTransaction->GetMode() == IDBTransaction::Mode
::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction
::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction
::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction
::Mode::VersionChange)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDEBUGTransaction->GetMode
() == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction->
GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction
->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction
->GetMode() == IDBTransaction::Mode::VersionChange))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7440)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 7440); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
7438 mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDEBUGTransaction->GetMode() == IDBTransaction::Mode
::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction
::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction
::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction
::Mode::VersionChange)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDEBUGTransaction->GetMode
() == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction->
GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction
->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction
->GetMode() == IDBTransaction::Mode::VersionChange))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7440)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 7440); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
7439 mDEBUGTransaction->GetMode() == IDBTransaction::Mode::Cleanup ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDEBUGTransaction->GetMode() == IDBTransaction::Mode
::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction
::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction
::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction
::Mode::VersionChange)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDEBUGTransaction->GetMode
() == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction->
GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction
->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction
->GetMode() == IDBTransaction::Mode::VersionChange))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7440)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 7440); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
7440 mDEBUGTransaction->GetMode() == IDBTransaction::Mode::VersionChange)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDEBUGTransaction->GetMode() == IDBTransaction::Mode
::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction
::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction
::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction
::Mode::VersionChange)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDEBUGTransaction->GetMode
() == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction->
GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction
->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction
->GetMode() == IDBTransaction::Mode::VersionChange))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7440)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 7440); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7441
7442 QM_WARNONLY_TRY(QM_TO_RESULT(mConnection->RollbackSavepoint())){auto tryResult985 = (ToResult<QMResult>(mConnection->
RollbackSavepoint())); static_assert(std::is_empty_v<typename
decltype(tryResult985)::ok_type>); if ((__builtin_expect(
!!(tryResult985.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult<QMResult>(mConnection->RollbackSavepoint())"
, tryResult985.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7442, mozilla::dom::quota::Severity::Warning); }}
;
7443 }
7444}
7445
7446nsresult DatabaseConnection::AutoSavepoint::Start(
7447 const TransactionBase& aTransaction) {
7448 MOZ_ASSERT(aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite
|| aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush
|| aTransaction.GetMode() == IDBTransaction::Mode::Cleanup ||
aTransaction.GetMode() == IDBTransaction::Mode::VersionChange
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite
|| aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush
|| aTransaction.GetMode() == IDBTransaction::Mode::Cleanup ||
aTransaction.GetMode() == IDBTransaction::Mode::VersionChange
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite || aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush || aTransaction.GetMode() == IDBTransaction::Mode::Cleanup || aTransaction.GetMode() == IDBTransaction::Mode::VersionChange"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7451)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite || aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush || aTransaction.GetMode() == IDBTransaction::Mode::Cleanup || aTransaction.GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 7451); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
7449 aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite
|| aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush
|| aTransaction.GetMode() == IDBTransaction::Mode::Cleanup ||
aTransaction.GetMode() == IDBTransaction::Mode::VersionChange
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite
|| aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush
|| aTransaction.GetMode() == IDBTransaction::Mode::Cleanup ||
aTransaction.GetMode() == IDBTransaction::Mode::VersionChange
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite || aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush || aTransaction.GetMode() == IDBTransaction::Mode::Cleanup || aTransaction.GetMode() == IDBTransaction::Mode::VersionChange"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7451)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite || aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush || aTransaction.GetMode() == IDBTransaction::Mode::Cleanup || aTransaction.GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 7451); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
7450 aTransaction.GetMode() == IDBTransaction::Mode::Cleanup ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite
|| aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush
|| aTransaction.GetMode() == IDBTransaction::Mode::Cleanup ||
aTransaction.GetMode() == IDBTransaction::Mode::VersionChange
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite
|| aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush
|| aTransaction.GetMode() == IDBTransaction::Mode::Cleanup ||
aTransaction.GetMode() == IDBTransaction::Mode::VersionChange
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite || aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush || aTransaction.GetMode() == IDBTransaction::Mode::Cleanup || aTransaction.GetMode() == IDBTransaction::Mode::VersionChange"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7451)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite || aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush || aTransaction.GetMode() == IDBTransaction::Mode::Cleanup || aTransaction.GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 7451); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
7451 aTransaction.GetMode() == IDBTransaction::Mode::VersionChange)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite
|| aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush
|| aTransaction.GetMode() == IDBTransaction::Mode::Cleanup ||
aTransaction.GetMode() == IDBTransaction::Mode::VersionChange
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite
|| aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush
|| aTransaction.GetMode() == IDBTransaction::Mode::Cleanup ||
aTransaction.GetMode() == IDBTransaction::Mode::VersionChange
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite || aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush || aTransaction.GetMode() == IDBTransaction::Mode::Cleanup || aTransaction.GetMode() == IDBTransaction::Mode::VersionChange"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7451)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite || aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush || aTransaction.GetMode() == IDBTransaction::Mode::Cleanup || aTransaction.GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 7451); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7452
7453 DatabaseConnection* connection = aTransaction.GetDatabase().GetConnection();
7454 MOZ_ASSERT(connection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(connection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(connection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("connection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7454); AnnotateMozCrashReason("MOZ_ASSERT" "(" "connection"
")"); do { MOZ_CrashSequence(__null, 7454); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7455 connection->AssertIsOnConnectionThread();
7456
7457 // The previous operation failed to begin a write transaction and the
7458 // following opertion jumped to the connection thread before the previous
7459 // operation has updated its failure to the transaction.
7460 if (!connection->GetUpdateRefcountFunction()) {
7461 NS_WARNING(NS_DebugBreak(NS_DEBUG_WARNING, "The connection was closed because the previous operation "
"failed!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7463)
7462 "The connection was closed because the previous operation "NS_DebugBreak(NS_DEBUG_WARNING, "The connection was closed because the previous operation "
"failed!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7463)
7463 "failed!")NS_DebugBreak(NS_DEBUG_WARNING, "The connection was closed because the previous operation "
"failed!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7463)
;
7464 return NS_ERROR_DOM_INDEXEDDB_ABORT_ERR;
7465 }
7466
7467 MOZ_ASSERT(!mConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mConnection))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("!mConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7467); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mConnection"
")"); do { MOZ_CrashSequence(__null, 7467); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7468 MOZ_ASSERT(!mDEBUGTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDEBUGTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDEBUGTransaction))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("!mDEBUGTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7468)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDEBUGTransaction"
")"); do { MOZ_CrashSequence(__null, 7468); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7469
7470 QM_TRY(MOZ_TO_RESULT(connection->StartSavepoint())){auto tryResult986 = (ToResult(connection->StartSavepoint(
))); static_assert(std::is_empty_v<typename decltype(tryResult986
)::ok_type>); if ((__builtin_expect(!!(tryResult986.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->StartSavepoint())"
, tryResult986.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7470, mozilla::dom::quota::Severity::Error); return tryResult986
.propagateErr(); }}
;
7471
7472 mConnection = connection;
7473#ifdef DEBUG1
7474 mDEBUGTransaction = &aTransaction;
7475#endif
7476
7477 return NS_OK;
7478}
7479
7480nsresult DatabaseConnection::AutoSavepoint::Commit() {
7481 MOZ_ASSERT(mConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection"
")"); do { MOZ_CrashSequence(__null, 7481); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7482 mConnection->AssertIsOnConnectionThread();
7483 MOZ_ASSERT(mDEBUGTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDEBUGTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDEBUGTransaction))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("mDEBUGTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7483)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGTransaction"
")"); do { MOZ_CrashSequence(__null, 7483); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7484
7485 QM_TRY(MOZ_TO_RESULT(mConnection->ReleaseSavepoint())){auto tryResult987 = (ToResult(mConnection->ReleaseSavepoint
())); static_assert(std::is_empty_v<typename decltype(tryResult987
)::ok_type>); if ((__builtin_expect(!!(tryResult987.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(mConnection->ReleaseSavepoint())"
, tryResult987.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7485, mozilla::dom::quota::Severity::Error); return tryResult987
.propagateErr(); }}
;
7486
7487 mConnection = nullptr;
7488#ifdef DEBUG1
7489 mDEBUGTransaction = nullptr;
7490#endif
7491
7492 return NS_OK;
7493}
7494
7495DatabaseConnection::UpdateRefcountFunction::UpdateRefcountFunction(
7496 DatabaseConnection* const aConnection, DatabaseFileManager& aFileManager)
7497 : mConnection(aConnection),
7498 mFileManager(aFileManager),
7499 mInSavepoint(false) {
7500 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7500); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 7500); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7501 aConnection->AssertIsOnConnectionThread();
7502}
7503
7504nsresult DatabaseConnection::UpdateRefcountFunction::WillCommit() {
7505 MOZ_ASSERT(mConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7505); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection"
")"); do { MOZ_CrashSequence(__null, 7505); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7506 mConnection->AssertIsOnConnectionThread();
7507 MOZ_ASSERT(mConnection->HasStorageConnection())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mConnection->HasStorageConnection())>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mConnection->HasStorageConnection()))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mConnection->HasStorageConnection()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7507)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection->HasStorageConnection()"
")"); do { MOZ_CrashSequence(__null, 7507); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7508
7509 AUTO_PROFILER_LABEL("DatabaseConnection::UpdateRefcountFunction::WillCommit",mozilla::AutoProfilerLabel raiiObject7510( "DatabaseConnection::UpdateRefcountFunction::WillCommit"
, nullptr, JS::ProfilingCategoryPair::DOM)
7510 DOM)mozilla::AutoProfilerLabel raiiObject7510( "DatabaseConnection::UpdateRefcountFunction::WillCommit"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7511
7512 // The parameter names are not used, parameters are bound by index
7513 // only locally in the same function.
7514 auto update =
7515 [updateStatement = LazyStatement{*mConnection,
7516 "UPDATE file "
7517 "SET refcount = refcount + :delta "
7518 "WHERE id = :id"_ns},
7519 selectStatement = LazyStatement{*mConnection,
7520 "SELECT id "
7521 "FROM file "
7522 "WHERE id = :id"_ns},
7523 insertStatement =
7524 LazyStatement{
7525 *mConnection,
7526 "INSERT INTO file (id, refcount) VALUES(:id, :delta)"_ns},
7527 this](int64_t aId, int32_t aDelta) mutable -> Result<Ok, nsresult> {
7528 AUTO_PROFILER_LABEL(mozilla::AutoProfilerLabel raiiObject7529( "DatabaseConnection::UpdateRefcountFunction::WillCommit::Update"
, nullptr, JS::ProfilingCategoryPair::DOM)
7529 "DatabaseConnection::UpdateRefcountFunction::WillCommit::Update", DOM)mozilla::AutoProfilerLabel raiiObject7529( "DatabaseConnection::UpdateRefcountFunction::WillCommit::Update"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7530 {
7531 QM_TRY_INSPECT(const auto& borrowedUpdateStatement,auto tryResult988 = (updateStatement.Borrow()); if ((__builtin_expect
(!!(tryResult988.isErr()), 0))) { mozilla::dom::quota::HandleError
("updateStatement.Borrow()", tryResult988.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7532, mozilla::dom::quota::Severity::Error); return tryResult988
.propagateErr(); } const auto& borrowedUpdateStatement = tryResult988
.inspect();
7532 updateStatement.Borrow())auto tryResult988 = (updateStatement.Borrow()); if ((__builtin_expect
(!!(tryResult988.isErr()), 0))) { mozilla::dom::quota::HandleError
("updateStatement.Borrow()", tryResult988.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7532, mozilla::dom::quota::Severity::Error); return tryResult988
.propagateErr(); } const auto& borrowedUpdateStatement = tryResult988
.inspect();
;
7533
7534 QM_TRY({auto tryResult989 = (ToResult(borrowedUpdateStatement->BindInt32ByIndex
(0, aDelta))); static_assert(std::is_empty_v<typename decltype
(tryResult989)::ok_type>); if ((__builtin_expect(!!(tryResult989
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedUpdateStatement->BindInt32ByIndex(0, aDelta))"
, tryResult989.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7535, mozilla::dom::quota::Severity::Error); return tryResult989
.propagateErr(); }}
7535 MOZ_TO_RESULT(borrowedUpdateStatement->BindInt32ByIndex(0, aDelta))){auto tryResult989 = (ToResult(borrowedUpdateStatement->BindInt32ByIndex
(0, aDelta))); static_assert(std::is_empty_v<typename decltype
(tryResult989)::ok_type>); if ((__builtin_expect(!!(tryResult989
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedUpdateStatement->BindInt32ByIndex(0, aDelta))"
, tryResult989.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7535, mozilla::dom::quota::Severity::Error); return tryResult989
.propagateErr(); }}
;
7536 QM_TRY(MOZ_TO_RESULT(borrowedUpdateStatement->BindInt64ByIndex(1, aId))){auto tryResult990 = (ToResult(borrowedUpdateStatement->BindInt64ByIndex
(1, aId))); static_assert(std::is_empty_v<typename decltype
(tryResult990)::ok_type>); if ((__builtin_expect(!!(tryResult990
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedUpdateStatement->BindInt64ByIndex(1, aId))"
, tryResult990.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7536, mozilla::dom::quota::Severity::Error); return tryResult990
.propagateErr(); }}
;
7537 QM_TRY(MOZ_TO_RESULT(borrowedUpdateStatement->Execute())){auto tryResult991 = (ToResult(borrowedUpdateStatement->Execute
())); static_assert(std::is_empty_v<typename decltype(tryResult991
)::ok_type>); if ((__builtin_expect(!!(tryResult991.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedUpdateStatement->Execute())"
, tryResult991.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7537, mozilla::dom::quota::Severity::Error); return tryResult991
.propagateErr(); }}
;
7538 }
7539
7540 QM_TRY_INSPECT(auto tryResult992 = (::mozilla::ToResultInvokeMember( (mConnection
->MutableStorageConnection()), &::mozilla::detail::DerefedType
<decltype(mConnection->MutableStorageConnection())>::
GetAffectedRows )); if ((__builtin_expect(!!(tryResult992.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (mConnection->MutableStorageConnection()), &::mozilla::detail::DerefedType<decltype(mConnection->MutableStorageConnection())>::GetAffectedRows )"
, tryResult992.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7543, mozilla::dom::quota::Severity::Error); return tryResult992
.propagateErr(); } const int32_t& rows = tryResult992.inspect
();
7541 const int32_t& rows,auto tryResult992 = (::mozilla::ToResultInvokeMember( (mConnection
->MutableStorageConnection()), &::mozilla::detail::DerefedType
<decltype(mConnection->MutableStorageConnection())>::
GetAffectedRows )); if ((__builtin_expect(!!(tryResult992.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (mConnection->MutableStorageConnection()), &::mozilla::detail::DerefedType<decltype(mConnection->MutableStorageConnection())>::GetAffectedRows )"
, tryResult992.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7543, mozilla::dom::quota::Severity::Error); return tryResult992
.propagateErr(); } const int32_t& rows = tryResult992.inspect
();
7542 MOZ_TO_RESULT_INVOKE_MEMBER(mConnection->MutableStorageConnection(),auto tryResult992 = (::mozilla::ToResultInvokeMember( (mConnection
->MutableStorageConnection()), &::mozilla::detail::DerefedType
<decltype(mConnection->MutableStorageConnection())>::
GetAffectedRows )); if ((__builtin_expect(!!(tryResult992.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (mConnection->MutableStorageConnection()), &::mozilla::detail::DerefedType<decltype(mConnection->MutableStorageConnection())>::GetAffectedRows )"
, tryResult992.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7543, mozilla::dom::quota::Severity::Error); return tryResult992
.propagateErr(); } const int32_t& rows = tryResult992.inspect
();
7543 GetAffectedRows))auto tryResult992 = (::mozilla::ToResultInvokeMember( (mConnection
->MutableStorageConnection()), &::mozilla::detail::DerefedType
<decltype(mConnection->MutableStorageConnection())>::
GetAffectedRows )); if ((__builtin_expect(!!(tryResult992.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (mConnection->MutableStorageConnection()), &::mozilla::detail::DerefedType<decltype(mConnection->MutableStorageConnection())>::GetAffectedRows )"
, tryResult992.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7543, mozilla::dom::quota::Severity::Error); return tryResult992
.propagateErr(); } const int32_t& rows = tryResult992.inspect
();
;
7544
7545 if (rows > 0) {
7546 QM_TRY_INSPECT(auto tryResult994 = (selectStatement .BorrowAndExecuteSingleStep
( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto
tryResult993 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert
(std::is_empty_v<typename decltype(tryResult993)::ok_type>
); if ((__builtin_expect(!!(tryResult993.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))"
, tryResult993.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7551, mozilla::dom::quota::Severity::Error); return tryResult993
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult994.isErr()), 0))) { mozilla::dom::quota::HandleError
("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult993 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult993)::ok_type>); if ((__builtin_expect(!!(tryResult993.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult993.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7551, mozilla::dom::quota::Severity::Error); return tryResult993.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult994.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7554, mozilla::dom::quota::Severity::Error); return tryResult994
.propagateErr(); } const bool& hasResult = tryResult994.inspect
();
7547 const bool& hasResult,auto tryResult994 = (selectStatement .BorrowAndExecuteSingleStep
( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto
tryResult993 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert
(std::is_empty_v<typename decltype(tryResult993)::ok_type>
); if ((__builtin_expect(!!(tryResult993.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))"
, tryResult993.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7551, mozilla::dom::quota::Severity::Error); return tryResult993
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult994.isErr()), 0))) { mozilla::dom::quota::HandleError
("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult993 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult993)::ok_type>); if ((__builtin_expect(!!(tryResult993.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult993.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7551, mozilla::dom::quota::Severity::Error); return tryResult993.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult994.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7554, mozilla::dom::quota::Severity::Error); return tryResult994
.propagateErr(); } const bool& hasResult = tryResult994.inspect
();
7548 selectStatementauto tryResult994 = (selectStatement .BorrowAndExecuteSingleStep
( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto
tryResult993 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert
(std::is_empty_v<typename decltype(tryResult993)::ok_type>
); if ((__builtin_expect(!!(tryResult993.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))"
, tryResult993.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7551, mozilla::dom::quota::Severity::Error); return tryResult993
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult994.isErr()), 0))) { mozilla::dom::quota::HandleError
("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult993 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult993)::ok_type>); if ((__builtin_expect(!!(tryResult993.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult993.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7551, mozilla::dom::quota::Severity::Error); return tryResult993.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult994.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7554, mozilla::dom::quota::Severity::Error); return tryResult994
.propagateErr(); } const bool& hasResult = tryResult994.inspect
();
7549 .BorrowAndExecuteSingleStep(auto tryResult994 = (selectStatement .BorrowAndExecuteSingleStep
( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto
tryResult993 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert
(std::is_empty_v<typename decltype(tryResult993)::ok_type>
); if ((__builtin_expect(!!(tryResult993.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))"
, tryResult993.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7551, mozilla::dom::quota::Severity::Error); return tryResult993
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult994.isErr()), 0))) { mozilla::dom::quota::HandleError
("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult993 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult993)::ok_type>); if ((__builtin_expect(!!(tryResult993.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult993.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7551, mozilla::dom::quota::Severity::Error); return tryResult993.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult994.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7554, mozilla::dom::quota::Severity::Error); return tryResult994
.propagateErr(); } const bool& hasResult = tryResult994.inspect
();
7550 [aId](auto& stmt) -> Result<Ok, nsresult> {auto tryResult994 = (selectStatement .BorrowAndExecuteSingleStep
( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto
tryResult993 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert
(std::is_empty_v<typename decltype(tryResult993)::ok_type>
); if ((__builtin_expect(!!(tryResult993.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))"
, tryResult993.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7551, mozilla::dom::quota::Severity::Error); return tryResult993
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult994.isErr()), 0))) { mozilla::dom::quota::HandleError
("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult993 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult993)::ok_type>); if ((__builtin_expect(!!(tryResult993.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult993.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7551, mozilla::dom::quota::Severity::Error); return tryResult993.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult994.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7554, mozilla::dom::quota::Severity::Error); return tryResult994
.propagateErr(); } const bool& hasResult = tryResult994.inspect
();
7551 QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(0, aId)));auto tryResult994 = (selectStatement .BorrowAndExecuteSingleStep
( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto
tryResult993 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert
(std::is_empty_v<typename decltype(tryResult993)::ok_type>
); if ((__builtin_expect(!!(tryResult993.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))"
, tryResult993.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7551, mozilla::dom::quota::Severity::Error); return tryResult993
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult994.isErr()), 0))) { mozilla::dom::quota::HandleError
("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult993 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult993)::ok_type>); if ((__builtin_expect(!!(tryResult993.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult993.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7551, mozilla::dom::quota::Severity::Error); return tryResult993.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult994.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7554, mozilla::dom::quota::Severity::Error); return tryResult994
.propagateErr(); } const bool& hasResult = tryResult994.inspect
();
7552 return Ok{};auto tryResult994 = (selectStatement .BorrowAndExecuteSingleStep
( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto
tryResult993 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert
(std::is_empty_v<typename decltype(tryResult993)::ok_type>
); if ((__builtin_expect(!!(tryResult993.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))"
, tryResult993.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7551, mozilla::dom::quota::Severity::Error); return tryResult993
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult994.isErr()), 0))) { mozilla::dom::quota::HandleError
("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult993 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult993)::ok_type>); if ((__builtin_expect(!!(tryResult993.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult993.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7551, mozilla::dom::quota::Severity::Error); return tryResult993.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult994.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7554, mozilla::dom::quota::Severity::Error); return tryResult994
.propagateErr(); } const bool& hasResult = tryResult994.inspect
();
7553 })auto tryResult994 = (selectStatement .BorrowAndExecuteSingleStep
( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto
tryResult993 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert
(std::is_empty_v<typename decltype(tryResult993)::ok_type>
); if ((__builtin_expect(!!(tryResult993.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))"
, tryResult993.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7551, mozilla::dom::quota::Severity::Error); return tryResult993
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult994.isErr()), 0))) { mozilla::dom::quota::HandleError
("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult993 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult993)::ok_type>); if ((__builtin_expect(!!(tryResult993.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult993.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7551, mozilla::dom::quota::Severity::Error); return tryResult993.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult994.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7554, mozilla::dom::quota::Severity::Error); return tryResult994
.propagateErr(); } const bool& hasResult = tryResult994.inspect
();
7554 .map(IsSome))auto tryResult994 = (selectStatement .BorrowAndExecuteSingleStep
( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto
tryResult993 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert
(std::is_empty_v<typename decltype(tryResult993)::ok_type>
); if ((__builtin_expect(!!(tryResult993.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))"
, tryResult993.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7551, mozilla::dom::quota::Severity::Error); return tryResult993
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult994.isErr()), 0))) { mozilla::dom::quota::HandleError
("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult993 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult993)::ok_type>); if ((__builtin_expect(!!(tryResult993.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult993.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7551, mozilla::dom::quota::Severity::Error); return tryResult993.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult994.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7554, mozilla::dom::quota::Severity::Error); return tryResult994
.propagateErr(); } const bool& hasResult = tryResult994.inspect
();
;
7555
7556 if (!hasResult) {
7557 // Don't have to create the journal here, we can create all at once,
7558 // just before commit
7559 mJournalsToCreateBeforeCommit.AppendElement(aId);
7560 }
7561
7562 return Ok{};
7563 }
7564
7565 QM_TRY_INSPECT(const auto& borrowedInsertStatement,auto tryResult995 = (insertStatement.Borrow()); if ((__builtin_expect
(!!(tryResult995.isErr()), 0))) { mozilla::dom::quota::HandleError
("insertStatement.Borrow()", tryResult995.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7566, mozilla::dom::quota::Severity::Error); return tryResult995
.propagateErr(); } const auto& borrowedInsertStatement = tryResult995
.inspect();
7566 insertStatement.Borrow())auto tryResult995 = (insertStatement.Borrow()); if ((__builtin_expect
(!!(tryResult995.isErr()), 0))) { mozilla::dom::quota::HandleError
("insertStatement.Borrow()", tryResult995.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7566, mozilla::dom::quota::Severity::Error); return tryResult995
.propagateErr(); } const auto& borrowedInsertStatement = tryResult995
.inspect();
;
7567
7568 QM_TRY(MOZ_TO_RESULT(borrowedInsertStatement->BindInt64ByIndex(0, aId))){auto tryResult996 = (ToResult(borrowedInsertStatement->BindInt64ByIndex
(0, aId))); static_assert(std::is_empty_v<typename decltype
(tryResult996)::ok_type>); if ((__builtin_expect(!!(tryResult996
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedInsertStatement->BindInt64ByIndex(0, aId))"
, tryResult996.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7568, mozilla::dom::quota::Severity::Error); return tryResult996
.propagateErr(); }}
;
7569 QM_TRY(MOZ_TO_RESULT(borrowedInsertStatement->BindInt32ByIndex(1, aDelta))){auto tryResult997 = (ToResult(borrowedInsertStatement->BindInt32ByIndex
(1, aDelta))); static_assert(std::is_empty_v<typename decltype
(tryResult997)::ok_type>); if ((__builtin_expect(!!(tryResult997
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedInsertStatement->BindInt32ByIndex(1, aDelta))"
, tryResult997.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7569, mozilla::dom::quota::Severity::Error); return tryResult997
.propagateErr(); }}
;
7570 QM_TRY(MOZ_TO_RESULT(borrowedInsertStatement->Execute())){auto tryResult998 = (ToResult(borrowedInsertStatement->Execute
())); static_assert(std::is_empty_v<typename decltype(tryResult998
)::ok_type>); if ((__builtin_expect(!!(tryResult998.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedInsertStatement->Execute())"
, tryResult998.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7570, mozilla::dom::quota::Severity::Error); return tryResult998
.propagateErr(); }}
;
7571
7572 mJournalsToRemoveAfterCommit.AppendElement(aId);
7573
7574 return Ok{};
7575 };
7576
7577 QM_TRY(CollectEachInRange({auto tryResult1000 = (CollectEachInRange( mFileInfoEntries, [
&update](const auto& entry) -> Result<Ok, nsresult
> { const auto delta = entry.GetData()->Delta(); if (delta
) { {auto tryResult999 = (update(entry.GetKey(), delta)); static_assert
(std::is_empty_v<typename decltype(tryResult999)::ok_type>
); if ((__builtin_expect(!!(tryResult999.isErr()), 0))) { mozilla
::dom::quota::HandleError("update(entry.GetKey(), delta)", tryResult999
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7581, mozilla::dom::quota::Severity::Error); return tryResult999
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1000)::ok_type>); if ((__builtin_expect
(!!(tryResult1000.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> { const auto delta = entry.GetData()->Delta(); if (delta) { {auto tryResult999 = (update(entry.GetKey(), delta)); static_assert(std::is_empty_v<typename decltype(tryResult999)::ok_type>); if ((__builtin_expect(!!(tryResult999.isErr()), 0))) { mozilla::dom::quota::HandleError(\"update(entry.GetKey(), delta)\", tryResult999.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7581, mozilla::dom::quota::Severity::Error); return tryResult999.propagateErr(); }}; } return Ok{}; })"
, tryResult1000.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7585, mozilla::dom::quota::Severity::Error); return tryResult1000
.propagateErr(); }}
7578 mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> {{auto tryResult1000 = (CollectEachInRange( mFileInfoEntries, [
&update](const auto& entry) -> Result<Ok, nsresult
> { const auto delta = entry.GetData()->Delta(); if (delta
) { {auto tryResult999 = (update(entry.GetKey(), delta)); static_assert
(std::is_empty_v<typename decltype(tryResult999)::ok_type>
); if ((__builtin_expect(!!(tryResult999.isErr()), 0))) { mozilla
::dom::quota::HandleError("update(entry.GetKey(), delta)", tryResult999
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7581, mozilla::dom::quota::Severity::Error); return tryResult999
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1000)::ok_type>); if ((__builtin_expect
(!!(tryResult1000.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> { const auto delta = entry.GetData()->Delta(); if (delta) { {auto tryResult999 = (update(entry.GetKey(), delta)); static_assert(std::is_empty_v<typename decltype(tryResult999)::ok_type>); if ((__builtin_expect(!!(tryResult999.isErr()), 0))) { mozilla::dom::quota::HandleError(\"update(entry.GetKey(), delta)\", tryResult999.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7581, mozilla::dom::quota::Severity::Error); return tryResult999.propagateErr(); }}; } return Ok{}; })"
, tryResult1000.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7585, mozilla::dom::quota::Severity::Error); return tryResult1000
.propagateErr(); }}
7579 const auto delta = entry.GetData()->Delta();{auto tryResult1000 = (CollectEachInRange( mFileInfoEntries, [
&update](const auto& entry) -> Result<Ok, nsresult
> { const auto delta = entry.GetData()->Delta(); if (delta
) { {auto tryResult999 = (update(entry.GetKey(), delta)); static_assert
(std::is_empty_v<typename decltype(tryResult999)::ok_type>
); if ((__builtin_expect(!!(tryResult999.isErr()), 0))) { mozilla
::dom::quota::HandleError("update(entry.GetKey(), delta)", tryResult999
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7581, mozilla::dom::quota::Severity::Error); return tryResult999
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1000)::ok_type>); if ((__builtin_expect
(!!(tryResult1000.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> { const auto delta = entry.GetData()->Delta(); if (delta) { {auto tryResult999 = (update(entry.GetKey(), delta)); static_assert(std::is_empty_v<typename decltype(tryResult999)::ok_type>); if ((__builtin_expect(!!(tryResult999.isErr()), 0))) { mozilla::dom::quota::HandleError(\"update(entry.GetKey(), delta)\", tryResult999.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7581, mozilla::dom::quota::Severity::Error); return tryResult999.propagateErr(); }}; } return Ok{}; })"
, tryResult1000.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7585, mozilla::dom::quota::Severity::Error); return tryResult1000
.propagateErr(); }}
7580 if (delta) {{auto tryResult1000 = (CollectEachInRange( mFileInfoEntries, [
&update](const auto& entry) -> Result<Ok, nsresult
> { const auto delta = entry.GetData()->Delta(); if (delta
) { {auto tryResult999 = (update(entry.GetKey(), delta)); static_assert
(std::is_empty_v<typename decltype(tryResult999)::ok_type>
); if ((__builtin_expect(!!(tryResult999.isErr()), 0))) { mozilla
::dom::quota::HandleError("update(entry.GetKey(), delta)", tryResult999
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7581, mozilla::dom::quota::Severity::Error); return tryResult999
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1000)::ok_type>); if ((__builtin_expect
(!!(tryResult1000.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> { const auto delta = entry.GetData()->Delta(); if (delta) { {auto tryResult999 = (update(entry.GetKey(), delta)); static_assert(std::is_empty_v<typename decltype(tryResult999)::ok_type>); if ((__builtin_expect(!!(tryResult999.isErr()), 0))) { mozilla::dom::quota::HandleError(\"update(entry.GetKey(), delta)\", tryResult999.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7581, mozilla::dom::quota::Severity::Error); return tryResult999.propagateErr(); }}; } return Ok{}; })"
, tryResult1000.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7585, mozilla::dom::quota::Severity::Error); return tryResult1000
.propagateErr(); }}
7581 QM_TRY(update(entry.GetKey(), delta));{auto tryResult1000 = (CollectEachInRange( mFileInfoEntries, [
&update](const auto& entry) -> Result<Ok, nsresult
> { const auto delta = entry.GetData()->Delta(); if (delta
) { {auto tryResult999 = (update(entry.GetKey(), delta)); static_assert
(std::is_empty_v<typename decltype(tryResult999)::ok_type>
); if ((__builtin_expect(!!(tryResult999.isErr()), 0))) { mozilla
::dom::quota::HandleError("update(entry.GetKey(), delta)", tryResult999
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7581, mozilla::dom::quota::Severity::Error); return tryResult999
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1000)::ok_type>); if ((__builtin_expect
(!!(tryResult1000.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> { const auto delta = entry.GetData()->Delta(); if (delta) { {auto tryResult999 = (update(entry.GetKey(), delta)); static_assert(std::is_empty_v<typename decltype(tryResult999)::ok_type>); if ((__builtin_expect(!!(tryResult999.isErr()), 0))) { mozilla::dom::quota::HandleError(\"update(entry.GetKey(), delta)\", tryResult999.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7581, mozilla::dom::quota::Severity::Error); return tryResult999.propagateErr(); }}; } return Ok{}; })"
, tryResult1000.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7585, mozilla::dom::quota::Severity::Error); return tryResult1000
.propagateErr(); }}
7582 }{auto tryResult1000 = (CollectEachInRange( mFileInfoEntries, [
&update](const auto& entry) -> Result<Ok, nsresult
> { const auto delta = entry.GetData()->Delta(); if (delta
) { {auto tryResult999 = (update(entry.GetKey(), delta)); static_assert
(std::is_empty_v<typename decltype(tryResult999)::ok_type>
); if ((__builtin_expect(!!(tryResult999.isErr()), 0))) { mozilla
::dom::quota::HandleError("update(entry.GetKey(), delta)", tryResult999
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7581, mozilla::dom::quota::Severity::Error); return tryResult999
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1000)::ok_type>); if ((__builtin_expect
(!!(tryResult1000.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> { const auto delta = entry.GetData()->Delta(); if (delta) { {auto tryResult999 = (update(entry.GetKey(), delta)); static_assert(std::is_empty_v<typename decltype(tryResult999)::ok_type>); if ((__builtin_expect(!!(tryResult999.isErr()), 0))) { mozilla::dom::quota::HandleError(\"update(entry.GetKey(), delta)\", tryResult999.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7581, mozilla::dom::quota::Severity::Error); return tryResult999.propagateErr(); }}; } return Ok{}; })"
, tryResult1000.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7585, mozilla::dom::quota::Severity::Error); return tryResult1000
.propagateErr(); }}
7583
7584 return Ok{};{auto tryResult1000 = (CollectEachInRange( mFileInfoEntries, [
&update](const auto& entry) -> Result<Ok, nsresult
> { const auto delta = entry.GetData()->Delta(); if (delta
) { {auto tryResult999 = (update(entry.GetKey(), delta)); static_assert
(std::is_empty_v<typename decltype(tryResult999)::ok_type>
); if ((__builtin_expect(!!(tryResult999.isErr()), 0))) { mozilla
::dom::quota::HandleError("update(entry.GetKey(), delta)", tryResult999
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7581, mozilla::dom::quota::Severity::Error); return tryResult999
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1000)::ok_type>); if ((__builtin_expect
(!!(tryResult1000.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> { const auto delta = entry.GetData()->Delta(); if (delta) { {auto tryResult999 = (update(entry.GetKey(), delta)); static_assert(std::is_empty_v<typename decltype(tryResult999)::ok_type>); if ((__builtin_expect(!!(tryResult999.isErr()), 0))) { mozilla::dom::quota::HandleError(\"update(entry.GetKey(), delta)\", tryResult999.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7581, mozilla::dom::quota::Severity::Error); return tryResult999.propagateErr(); }}; } return Ok{}; })"
, tryResult1000.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7585, mozilla::dom::quota::Severity::Error); return tryResult1000
.propagateErr(); }}
7585 })){auto tryResult1000 = (CollectEachInRange( mFileInfoEntries, [
&update](const auto& entry) -> Result<Ok, nsresult
> { const auto delta = entry.GetData()->Delta(); if (delta
) { {auto tryResult999 = (update(entry.GetKey(), delta)); static_assert
(std::is_empty_v<typename decltype(tryResult999)::ok_type>
); if ((__builtin_expect(!!(tryResult999.isErr()), 0))) { mozilla
::dom::quota::HandleError("update(entry.GetKey(), delta)", tryResult999
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7581, mozilla::dom::quota::Severity::Error); return tryResult999
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1000)::ok_type>); if ((__builtin_expect
(!!(tryResult1000.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> { const auto delta = entry.GetData()->Delta(); if (delta) { {auto tryResult999 = (update(entry.GetKey(), delta)); static_assert(std::is_empty_v<typename decltype(tryResult999)::ok_type>); if ((__builtin_expect(!!(tryResult999.isErr()), 0))) { mozilla::dom::quota::HandleError(\"update(entry.GetKey(), delta)\", tryResult999.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7581, mozilla::dom::quota::Severity::Error); return tryResult999.propagateErr(); }}; } return Ok{}; })"
, tryResult1000.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7585, mozilla::dom::quota::Severity::Error); return tryResult1000
.propagateErr(); }}
;
7586
7587 QM_TRY(MOZ_TO_RESULT(CreateJournals())){auto tryResult1001 = (ToResult(CreateJournals())); static_assert
(std::is_empty_v<typename decltype(tryResult1001)::ok_type
>); if ((__builtin_expect(!!(tryResult1001.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(CreateJournals())"
, tryResult1001.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7587, mozilla::dom::quota::Severity::Error); return tryResult1001
.propagateErr(); }}
;
7588
7589 return NS_OK;
7590}
7591
7592void DatabaseConnection::UpdateRefcountFunction::DidCommit() {
7593 MOZ_ASSERT(mConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7593); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection"
")"); do { MOZ_CrashSequence(__null, 7593); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7594 mConnection->AssertIsOnConnectionThread();
7595
7596 AUTO_PROFILER_LABEL("DatabaseConnection::UpdateRefcountFunction::DidCommit",mozilla::AutoProfilerLabel raiiObject7597( "DatabaseConnection::UpdateRefcountFunction::DidCommit"
, nullptr, JS::ProfilingCategoryPair::DOM)
7597 DOM)mozilla::AutoProfilerLabel raiiObject7597( "DatabaseConnection::UpdateRefcountFunction::DidCommit"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7598
7599 for (const auto& entry : mFileInfoEntries.Values()) {
7600 entry->MaybeUpdateDBRefs();
7601 }
7602
7603 QM_WARNONLY_TRY(QM_TO_RESULT(RemoveJournals(mJournalsToRemoveAfterCommit))){auto tryResult1002 = (ToResult<QMResult>(RemoveJournals
(mJournalsToRemoveAfterCommit))); static_assert(std::is_empty_v
<typename decltype(tryResult1002)::ok_type>); if ((__builtin_expect
(!!(tryResult1002.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult<QMResult>(RemoveJournals(mJournalsToRemoveAfterCommit))"
, tryResult1002.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7603, mozilla::dom::quota::Severity::Warning); }}
;
7604}
7605
7606void DatabaseConnection::UpdateRefcountFunction::DidAbort() {
7607 MOZ_ASSERT(mConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7607); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection"
")"); do { MOZ_CrashSequence(__null, 7607); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7608 mConnection->AssertIsOnConnectionThread();
7609
7610 AUTO_PROFILER_LABEL("DatabaseConnection::UpdateRefcountFunction::DidAbort",mozilla::AutoProfilerLabel raiiObject7611( "DatabaseConnection::UpdateRefcountFunction::DidAbort"
, nullptr, JS::ProfilingCategoryPair::DOM)
7611 DOM)mozilla::AutoProfilerLabel raiiObject7611( "DatabaseConnection::UpdateRefcountFunction::DidAbort"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7612
7613 QM_WARNONLY_TRY(QM_TO_RESULT(RemoveJournals(mJournalsToRemoveAfterAbort))){auto tryResult1003 = (ToResult<QMResult>(RemoveJournals
(mJournalsToRemoveAfterAbort))); static_assert(std::is_empty_v
<typename decltype(tryResult1003)::ok_type>); if ((__builtin_expect
(!!(tryResult1003.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult<QMResult>(RemoveJournals(mJournalsToRemoveAfterAbort))"
, tryResult1003.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7613, mozilla::dom::quota::Severity::Warning); }}
;
7614}
7615
7616void DatabaseConnection::UpdateRefcountFunction::StartSavepoint() {
7617 MOZ_ASSERT(mConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7617); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection"
")"); do { MOZ_CrashSequence(__null, 7617); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7618 mConnection->AssertIsOnConnectionThread();
7619 MOZ_ASSERT(!mInSavepoint)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mInSavepoint)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mInSavepoint))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("!mInSavepoint",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7619);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInSavepoint" ")")
; do { MOZ_CrashSequence(__null, 7619); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7620 MOZ_ASSERT(!mSavepointEntriesIndex.Count())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mSavepointEntriesIndex.Count())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mSavepointEntriesIndex.Count
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!mSavepointEntriesIndex.Count()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7620); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mSavepointEntriesIndex.Count()"
")"); do { MOZ_CrashSequence(__null, 7620); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7621
7622 mInSavepoint = true;
7623}
7624
7625void DatabaseConnection::UpdateRefcountFunction::ReleaseSavepoint() {
7626 MOZ_ASSERT(mConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7626); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection"
")"); do { MOZ_CrashSequence(__null, 7626); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7627 mConnection->AssertIsOnConnectionThread();
7628 MOZ_ASSERT(mInSavepoint)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mInSavepoint)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mInSavepoint))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mInSavepoint", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7628); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInSavepoint"
")"); do { MOZ_CrashSequence(__null, 7628); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7629
7630 // The savepoint is being committed. The deltas it contributed are now
7631 // permanent in mDelta, so reset mSavepointDelta on each entry before
7632 // dropping the index. The FileInfoEntry objects themselves persist in
7633 // mFileInfoEntries across savepoints; without this reset, a stale
7634 // mSavepointDelta would be carried into the next savepoint.
7635 for (const auto& entry : mSavepointEntriesIndex.Values()) {
7636 entry->ResetSavepointDelta();
7637 }
7638
7639 mSavepointEntriesIndex.Clear();
7640 mInSavepoint = false;
7641}
7642
7643void DatabaseConnection::UpdateRefcountFunction::RollbackSavepoint() {
7644 MOZ_ASSERT(mConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7644); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection"
")"); do { MOZ_CrashSequence(__null, 7644); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7645 mConnection->AssertIsOnConnectionThread();
7646 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7646)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 7646); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7647 MOZ_ASSERT(mInSavepoint)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mInSavepoint)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mInSavepoint))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mInSavepoint", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7647); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInSavepoint"
")"); do { MOZ_CrashSequence(__null, 7647); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7648
7649 for (const auto& entry : mSavepointEntriesIndex.Values()) {
7650 entry->DecBySavepointDelta();
7651 entry->ResetSavepointDelta();
7652 }
7653
7654 mInSavepoint = false;
7655 mSavepointEntriesIndex.Clear();
7656}
7657
7658void DatabaseConnection::UpdateRefcountFunction::Reset() {
7659 MOZ_ASSERT(mConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7659); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection"
")"); do { MOZ_CrashSequence(__null, 7659); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7660 mConnection->AssertIsOnConnectionThread();
7661 MOZ_ASSERT(!mSavepointEntriesIndex.Count())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mSavepointEntriesIndex.Count())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mSavepointEntriesIndex.Count
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!mSavepointEntriesIndex.Count()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7661); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mSavepointEntriesIndex.Count()"
")"); do { MOZ_CrashSequence(__null, 7661); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7662 MOZ_ASSERT(!mInSavepoint)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mInSavepoint)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mInSavepoint))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("!mInSavepoint",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7662);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInSavepoint" ")")
; do { MOZ_CrashSequence(__null, 7662); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7663
7664 mJournalsToCreateBeforeCommit.Clear();
7665 mJournalsToRemoveAfterCommit.Clear();
7666 mJournalsToRemoveAfterAbort.Clear();
7667
7668 // DatabaseFileInfo implementation automatically removes unreferenced files,
7669 // but it's done asynchronously and with a delay. We want to remove them (and
7670 // decrease quota usage) before we fire the commit event.
7671 for (const auto& entry : mFileInfoEntries.Values()) {
7672 // We need to move mFileInfo into a raw pointer in order to release it
7673 // explicitly with aSyncDeleteFile == true.
7674 DatabaseFileInfo* const fileInfo = entry->ReleaseFileInfo().forget().take();
7675 MOZ_ASSERT(fileInfo)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileInfo)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileInfo))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("fileInfo", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7675); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileInfo" ")"
); do { MOZ_CrashSequence(__null, 7675); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7676
7677 fileInfo->Release(/* aSyncDeleteFile */ true);
7678 }
7679
7680 mFileInfoEntries.Clear();
7681}
7682
7683nsresult DatabaseConnection::UpdateRefcountFunction::ProcessValue(
7684 mozIStorageValueArray* aValues, int32_t aIndex, UpdateType aUpdateType) {
7685 MOZ_ASSERT(mConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7685); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection"
")"); do { MOZ_CrashSequence(__null, 7685); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7686 mConnection->AssertIsOnConnectionThread();
7687 MOZ_ASSERT(aValues)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aValues)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aValues))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aValues", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7687); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aValues" ")"
); do { MOZ_CrashSequence(__null, 7687); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7688
7689 AUTO_PROFILER_LABEL(mozilla::AutoProfilerLabel raiiObject7690( "DatabaseConnection::UpdateRefcountFunction::ProcessValue"
, nullptr, JS::ProfilingCategoryPair::DOM)
7690 "DatabaseConnection::UpdateRefcountFunction::ProcessValue", DOM)mozilla::AutoProfilerLabel raiiObject7690( "DatabaseConnection::UpdateRefcountFunction::ProcessValue"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7691
7692 QM_TRY_INSPECT(const int32_t& type,auto tryResult1004 = (::mozilla::ToResultInvokeMember( (aValues
), &::mozilla::detail::DerefedType<decltype(aValues)>
::GetTypeOfIndex , aIndex)); if ((__builtin_expect(!!(tryResult1004
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex , aIndex)"
, tryResult1004.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7693, mozilla::dom::quota::Severity::Error); return tryResult1004
.propagateErr(); } const int32_t& type = tryResult1004.inspect
();
7693 MOZ_TO_RESULT_INVOKE_MEMBER(aValues, GetTypeOfIndex, aIndex))auto tryResult1004 = (::mozilla::ToResultInvokeMember( (aValues
), &::mozilla::detail::DerefedType<decltype(aValues)>
::GetTypeOfIndex , aIndex)); if ((__builtin_expect(!!(tryResult1004
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex , aIndex)"
, tryResult1004.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7693, mozilla::dom::quota::Severity::Error); return tryResult1004
.propagateErr(); } const int32_t& type = tryResult1004.inspect
();
;
7694
7695 if (type == mozIStorageValueArray::VALUE_TYPE_NULL) {
7696 return NS_OK;
7697 }
7698
7699 QM_TRY_INSPECT(const auto& ids, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1005 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(aValues)>::GetString), (aValues), aIndex)); if ((__builtin_expect
(!!(tryResult1005.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aValues)>::GetString), (aValues), aIndex)"
, tryResult1005.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7700, mozilla::dom::quota::Severity::Error); return tryResult1005
.propagateErr(); } const auto& ids = tryResult1005.inspect
();
7700 nsString, aValues, GetString, aIndex))auto tryResult1005 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(aValues)>::GetString), (aValues), aIndex)); if ((__builtin_expect
(!!(tryResult1005.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aValues)>::GetString), (aValues), aIndex)"
, tryResult1005.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7700, mozilla::dom::quota::Severity::Error); return tryResult1005
.propagateErr(); } const auto& ids = tryResult1005.inspect
();
;
7701
7702 QM_TRY_INSPECT(const auto& files,auto tryResult1006 = (DeserializeStructuredCloneFiles(mFileManager
, ids)); if ((__builtin_expect(!!(tryResult1006.isErr()), 0))
) { mozilla::dom::quota::HandleError("DeserializeStructuredCloneFiles(mFileManager, ids)"
, tryResult1006.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7703, mozilla::dom::quota::Severity::Error); return tryResult1006
.propagateErr(); } const auto& files = tryResult1006.inspect
();
7703 DeserializeStructuredCloneFiles(mFileManager, ids))auto tryResult1006 = (DeserializeStructuredCloneFiles(mFileManager
, ids)); if ((__builtin_expect(!!(tryResult1006.isErr()), 0))
) { mozilla::dom::quota::HandleError("DeserializeStructuredCloneFiles(mFileManager, ids)"
, tryResult1006.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7703, mozilla::dom::quota::Severity::Error); return tryResult1006
.propagateErr(); } const auto& files = tryResult1006.inspect
();
;
7704
7705 for (const StructuredCloneFileParent& file : files) {
7706 const int64_t id = file.FileInfo().Id();
7707 MOZ_ASSERT(id > 0)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(id > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(id > 0))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("id > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7707); AnnotateMozCrashReason("MOZ_ASSERT" "(" "id > 0" ")"
); do { MOZ_CrashSequence(__null, 7707); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7708
7709 const auto entry =
7710 WrapNotNull(mFileInfoEntries.GetOrInsertNew(id, file.FileInfoPtr()));
7711
7712 if (mInSavepoint) {
7713 mSavepointEntriesIndex.InsertOrUpdate(id, entry);
7714 }
7715
7716 switch (aUpdateType) {
7717 case UpdateType::Increment:
7718 entry->IncDeltas(mInSavepoint);
7719 break;
7720 case UpdateType::Decrement:
7721 entry->DecDeltas(mInSavepoint);
7722 break;
7723 default:
7724 MOZ_CRASH("Unknown update type!")do { do { } while (false); MOZ_ReportCrash("" "Unknown update type!"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7724)
; AnnotateMozCrashReason("MOZ_CRASH(" "Unknown update type!" ")"
); do { MOZ_CrashSequence(__null, 7724); __attribute__((nomerge
)) ::abort(); } while (false); } while (false)
;
7725 }
7726 }
7727
7728 return NS_OK;
7729}
7730
7731nsresult DatabaseConnection::UpdateRefcountFunction::CreateJournals() {
7732 MOZ_ASSERT(mConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7732); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection"
")"); do { MOZ_CrashSequence(__null, 7732); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7733 mConnection->AssertIsOnConnectionThread();
7734
7735 AUTO_PROFILER_LABEL(mozilla::AutoProfilerLabel raiiObject7736( "DatabaseConnection::UpdateRefcountFunction::CreateJournals"
, nullptr, JS::ProfilingCategoryPair::DOM)
7736 "DatabaseConnection::UpdateRefcountFunction::CreateJournals", DOM)mozilla::AutoProfilerLabel raiiObject7736( "DatabaseConnection::UpdateRefcountFunction::CreateJournals"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7737
7738 const nsCOMPtr<nsIFile> journalDirectory = mFileManager.GetJournalDirectory();
7739 QM_TRY(OkIf(journalDirectory), NS_ERROR_FAILURE){auto tryResult1007 = (OkIf(journalDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1007)::ok_type
>); if ((__builtin_expect(!!(tryResult1007.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1007.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(journalDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7739, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(journalDirectory)"
, tryTempError, NS_ERROR_FAILURE); }}
;
7740
7741 for (const int64_t id : mJournalsToCreateBeforeCommit) {
7742 const nsCOMPtr<nsIFile> file =
7743 DatabaseFileManager::GetFileForId(journalDirectory, id);
7744 QM_TRY(OkIf(file), NS_ERROR_FAILURE){auto tryResult1008 = (OkIf(file)); static_assert(std::is_empty_v
<typename decltype(tryResult1008)::ok_type>); if ((__builtin_expect
(!!(tryResult1008.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1008.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(file)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7744, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(file)", tryTempError
, NS_ERROR_FAILURE); }}
;
7745
7746 QM_TRY(MOZ_TO_RESULT(file->Create(nsIFile::NORMAL_FILE_TYPE, 0644))){auto tryResult1009 = (ToResult(file->Create(nsIFile::NORMAL_FILE_TYPE
, 0644))); static_assert(std::is_empty_v<typename decltype
(tryResult1009)::ok_type>); if ((__builtin_expect(!!(tryResult1009
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Create(nsIFile::NORMAL_FILE_TYPE, 0644))"
, tryResult1009.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7746, mozilla::dom::quota::Severity::Error); return tryResult1009
.propagateErr(); }}
;
7747
7748 mJournalsToRemoveAfterAbort.AppendElement(id);
7749 }
7750
7751 return NS_OK;
7752}
7753
7754nsresult DatabaseConnection::UpdateRefcountFunction::RemoveJournals(
7755 const nsTArray<int64_t>& aJournals) {
7756 MOZ_ASSERT(mConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7756); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection"
")"); do { MOZ_CrashSequence(__null, 7756); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7757 mConnection->AssertIsOnConnectionThread();
7758
7759 AUTO_PROFILER_LABEL(mozilla::AutoProfilerLabel raiiObject7760( "DatabaseConnection::UpdateRefcountFunction::RemoveJournals"
, nullptr, JS::ProfilingCategoryPair::DOM)
7760 "DatabaseConnection::UpdateRefcountFunction::RemoveJournals", DOM)mozilla::AutoProfilerLabel raiiObject7760( "DatabaseConnection::UpdateRefcountFunction::RemoveJournals"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7761
7762 nsCOMPtr<nsIFile> journalDirectory = mFileManager.GetJournalDirectory();
7763 QM_TRY(OkIf(journalDirectory), NS_ERROR_FAILURE){auto tryResult1010 = (OkIf(journalDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1010)::ok_type
>); if ((__builtin_expect(!!(tryResult1010.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1010.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(journalDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7763, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(journalDirectory)"
, tryTempError, NS_ERROR_FAILURE); }}
;
7764
7765 for (const auto& journal : aJournals) {
7766 nsCOMPtr<nsIFile> file =
7767 DatabaseFileManager::GetFileForId(journalDirectory, journal);
7768 QM_TRY(OkIf(file), NS_ERROR_FAILURE){auto tryResult1011 = (OkIf(file)); static_assert(std::is_empty_v
<typename decltype(tryResult1011)::ok_type>); if ((__builtin_expect
(!!(tryResult1011.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1011.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(file)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7768, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(file)", tryTempError
, NS_ERROR_FAILURE); }}
;
7769
7770 QM_WARNONLY_TRY(QM_TO_RESULT(file->Remove(false))){auto tryResult1012 = (ToResult<QMResult>(file->Remove
(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1012)::ok_type>); if ((__builtin_expect(!!(tryResult1012
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult<QMResult>(file->Remove(false))"
, tryResult1012.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7770, mozilla::dom::quota::Severity::Warning); }}
;
7771 }
7772
7773 return NS_OK;
7774}
7775
7776NS_IMPL_ISUPPORTS(DatabaseConnection::UpdateRefcountFunction,MozExternalRefCountType DatabaseConnection::UpdateRefcountFunction
::AddRef(void) { static_assert(!std::is_destructible_v<DatabaseConnection
::UpdateRefcountFunction>, "Reference-counted class " "DatabaseConnection::UpdateRefcountFunction"
" should not have a public destructor. " "Make this class's destructor non-public"
); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(int32_t(mRefCnt) >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0"
" (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7777); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 7777
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); do { static_assert( mozilla::detail::AssertionConditionType
<decltype("DatabaseConnection::UpdateRefcountFunction" != nullptr
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!("DatabaseConnection::UpdateRefcountFunction" != nullptr
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"\"DatabaseConnection::UpdateRefcountFunction\" != nullptr" " ("
"Must specify a name" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7777); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"DatabaseConnection::UpdateRefcountFunction\" != nullptr"
") (" "Must specify a name" ")"); do { MOZ_CrashSequence(__null
, 7777); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); if (!mRefCnt.isThreadSafe) _mOwningThread
.AssertOwnership("DatabaseConnection::UpdateRefcountFunction"
" not thread-safe"); nsrefcnt count = ++mRefCnt; NS_LogAddRef
((this), (count), ("DatabaseConnection::UpdateRefcountFunction"
), (uint32_t)(sizeof(*this))); return count; } MozExternalRefCountType
DatabaseConnection::UpdateRefcountFunction::Release(void) { do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0"
" (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7777); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 7777
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); do { static_assert( mozilla::detail::AssertionConditionType
<decltype("DatabaseConnection::UpdateRefcountFunction" != nullptr
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!("DatabaseConnection::UpdateRefcountFunction" != nullptr
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"\"DatabaseConnection::UpdateRefcountFunction\" != nullptr" " ("
"Must specify a name" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7777); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"DatabaseConnection::UpdateRefcountFunction\" != nullptr"
") (" "Must specify a name" ")"); do { MOZ_CrashSequence(__null
, 7777); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); if (!mRefCnt.isThreadSafe) _mOwningThread
.AssertOwnership("DatabaseConnection::UpdateRefcountFunction"
" not thread-safe"); const char* const nametmp = "DatabaseConnection::UpdateRefcountFunction"
; nsrefcnt count = --mRefCnt; NS_LogRelease((this), (count), (
nametmp)); if (count == 0) { mRefCnt = 1; delete (this); return
0; } return count; } nsresult DatabaseConnection::UpdateRefcountFunction
::QueryInterface(const nsIID& aIID, void** aInstancePtr) {
do { if (!(aInstancePtr)) { NS_DebugBreak(NS_DEBUG_ASSERTION
, "QueryInterface requires a non-NULL destination!", "aInstancePtr"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7777)
; MOZ_PretendNoReturn(); } } while (0); nsresult rv = NS_ERROR_FAILURE
; static_assert(1 > 0, "Need more arguments to NS_INTERFACE_TABLE"
); static const QITableEntry table[] = { {&mozilla::detail
::kImplementedIID<DatabaseConnection::UpdateRefcountFunction
, mozIStorageFunction>, int32_t( reinterpret_cast<char*
>(static_cast<mozIStorageFunction*>((DatabaseConnection
::UpdateRefcountFunction*)0x1000)) - reinterpret_cast<char
*>((DatabaseConnection::UpdateRefcountFunction*)0x1000))},
{&mozilla::detail::kImplementedIID<DatabaseConnection
::UpdateRefcountFunction, nsISupports>, int32_t(reinterpret_cast
<char*>(static_cast<nsISupports*>( static_cast<
mozIStorageFunction*>((DatabaseConnection::UpdateRefcountFunction
*)0x1000))) - reinterpret_cast<char*>((DatabaseConnection
::UpdateRefcountFunction*)0x1000))}, { nullptr, 0 } } ; static_assert
(std::size(table) > 1, "need at least 1 interface"); rv = NS_TableDrivenQI
(static_cast<void*>(this), aIID, aInstancePtr, table); return
rv; }
7777 mozIStorageFunction)MozExternalRefCountType DatabaseConnection::UpdateRefcountFunction
::AddRef(void) { static_assert(!std::is_destructible_v<DatabaseConnection
::UpdateRefcountFunction>, "Reference-counted class " "DatabaseConnection::UpdateRefcountFunction"
" should not have a public destructor. " "Make this class's destructor non-public"
); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(int32_t(mRefCnt) >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0"
" (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7777); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 7777
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); do { static_assert( mozilla::detail::AssertionConditionType
<decltype("DatabaseConnection::UpdateRefcountFunction" != nullptr
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!("DatabaseConnection::UpdateRefcountFunction" != nullptr
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"\"DatabaseConnection::UpdateRefcountFunction\" != nullptr" " ("
"Must specify a name" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7777); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"DatabaseConnection::UpdateRefcountFunction\" != nullptr"
") (" "Must specify a name" ")"); do { MOZ_CrashSequence(__null
, 7777); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); if (!mRefCnt.isThreadSafe) _mOwningThread
.AssertOwnership("DatabaseConnection::UpdateRefcountFunction"
" not thread-safe"); nsrefcnt count = ++mRefCnt; NS_LogAddRef
((this), (count), ("DatabaseConnection::UpdateRefcountFunction"
), (uint32_t)(sizeof(*this))); return count; } MozExternalRefCountType
DatabaseConnection::UpdateRefcountFunction::Release(void) { do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0"
" (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7777); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 7777
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); do { static_assert( mozilla::detail::AssertionConditionType
<decltype("DatabaseConnection::UpdateRefcountFunction" != nullptr
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!("DatabaseConnection::UpdateRefcountFunction" != nullptr
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"\"DatabaseConnection::UpdateRefcountFunction\" != nullptr" " ("
"Must specify a name" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7777); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"DatabaseConnection::UpdateRefcountFunction\" != nullptr"
") (" "Must specify a name" ")"); do { MOZ_CrashSequence(__null
, 7777); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); if (!mRefCnt.isThreadSafe) _mOwningThread
.AssertOwnership("DatabaseConnection::UpdateRefcountFunction"
" not thread-safe"); const char* const nametmp = "DatabaseConnection::UpdateRefcountFunction"
; nsrefcnt count = --mRefCnt; NS_LogRelease((this), (count), (
nametmp)); if (count == 0) { mRefCnt = 1; delete (this); return
0; } return count; } nsresult DatabaseConnection::UpdateRefcountFunction
::QueryInterface(const nsIID& aIID, void** aInstancePtr) {
do { if (!(aInstancePtr)) { NS_DebugBreak(NS_DEBUG_ASSERTION
, "QueryInterface requires a non-NULL destination!", "aInstancePtr"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7777)
; MOZ_PretendNoReturn(); } } while (0); nsresult rv = NS_ERROR_FAILURE
; static_assert(1 > 0, "Need more arguments to NS_INTERFACE_TABLE"
); static const QITableEntry table[] = { {&mozilla::detail
::kImplementedIID<DatabaseConnection::UpdateRefcountFunction
, mozIStorageFunction>, int32_t( reinterpret_cast<char*
>(static_cast<mozIStorageFunction*>((DatabaseConnection
::UpdateRefcountFunction*)0x1000)) - reinterpret_cast<char
*>((DatabaseConnection::UpdateRefcountFunction*)0x1000))},
{&mozilla::detail::kImplementedIID<DatabaseConnection
::UpdateRefcountFunction, nsISupports>, int32_t(reinterpret_cast
<char*>(static_cast<nsISupports*>( static_cast<
mozIStorageFunction*>((DatabaseConnection::UpdateRefcountFunction
*)0x1000))) - reinterpret_cast<char*>((DatabaseConnection
::UpdateRefcountFunction*)0x1000))}, { nullptr, 0 } } ; static_assert
(std::size(table) > 1, "need at least 1 interface"); rv = NS_TableDrivenQI
(static_cast<void*>(this), aIID, aInstancePtr, table); return
rv; }
7778
7779NS_IMETHODIMPnsresult
7780DatabaseConnection::UpdateRefcountFunction::OnFunctionCall(
7781 mozIStorageValueArray* aValues, nsIVariant** _retval) {
7782 MOZ_ASSERT(aValues)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aValues)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aValues))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aValues", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7782); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aValues" ")"
); do { MOZ_CrashSequence(__null, 7782); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7783 MOZ_ASSERT(_retval)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(_retval)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(_retval))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("_retval", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7783); AnnotateMozCrashReason("MOZ_ASSERT" "(" "_retval" ")"
); do { MOZ_CrashSequence(__null, 7783); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7784
7785 AUTO_PROFILER_LABEL(mozilla::AutoProfilerLabel raiiObject7786( "DatabaseConnection::UpdateRefcountFunction::OnFunctionCall"
, nullptr, JS::ProfilingCategoryPair::DOM)
7786 "DatabaseConnection::UpdateRefcountFunction::OnFunctionCall", DOM)mozilla::AutoProfilerLabel raiiObject7786( "DatabaseConnection::UpdateRefcountFunction::OnFunctionCall"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7787
7788#ifdef DEBUG1
7789 {
7790 QM_TRY_INSPECT(const uint32_t& numEntries,auto tryResult1013 = (::mozilla::ToResultInvokeMember( (aValues
), &::mozilla::detail::DerefedType<decltype(aValues)>
::GetNumEntries )); if ((__builtin_expect(!!(tryResult1013.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1013
.unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetNumEntries )"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7792, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetNumEntries )"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7792); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 7792); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const uint32_t
& numEntries = tryResult1013.inspect();
7791 MOZ_TO_RESULT_INVOKE_MEMBER(aValues, GetNumEntries),auto tryResult1013 = (::mozilla::ToResultInvokeMember( (aValues
), &::mozilla::detail::DerefedType<decltype(aValues)>
::GetNumEntries )); if ((__builtin_expect(!!(tryResult1013.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1013
.unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetNumEntries )"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7792, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetNumEntries )"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7792); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 7792); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const uint32_t
& numEntries = tryResult1013.inspect();
7792 QM_ASSERT_UNREACHABLE)auto tryResult1013 = (::mozilla::ToResultInvokeMember( (aValues
), &::mozilla::detail::DerefedType<decltype(aValues)>
::GetNumEntries )); if ((__builtin_expect(!!(tryResult1013.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1013
.unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetNumEntries )"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7792, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetNumEntries )"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7792); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 7792); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const uint32_t
& numEntries = tryResult1013.inspect();
;
7793
7794 MOZ_ASSERT(numEntries == 2)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(numEntries == 2)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(numEntries == 2))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("numEntries == 2"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7794)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "numEntries == 2" ")"
); do { MOZ_CrashSequence(__null, 7794); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7795
7796 QM_TRY_INSPECT(const int32_t& type1,auto tryResult1014 = (::mozilla::ToResultInvokeMember( (aValues
), &::mozilla::detail::DerefedType<decltype(aValues)>
::GetTypeOfIndex , 0)); if ((__builtin_expect(!!(tryResult1014
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1014
.unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex , 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7798, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex , 0)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7798); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 7798); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const int32_t
& type1 = tryResult1014.inspect();
7797 MOZ_TO_RESULT_INVOKE_MEMBER(aValues, GetTypeOfIndex, 0),auto tryResult1014 = (::mozilla::ToResultInvokeMember( (aValues
), &::mozilla::detail::DerefedType<decltype(aValues)>
::GetTypeOfIndex , 0)); if ((__builtin_expect(!!(tryResult1014
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1014
.unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex , 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7798, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex , 0)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7798); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 7798); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const int32_t
& type1 = tryResult1014.inspect();
7798 QM_ASSERT_UNREACHABLE)auto tryResult1014 = (::mozilla::ToResultInvokeMember( (aValues
), &::mozilla::detail::DerefedType<decltype(aValues)>
::GetTypeOfIndex , 0)); if ((__builtin_expect(!!(tryResult1014
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1014
.unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex , 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7798, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex , 0)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7798); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 7798); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const int32_t
& type1 = tryResult1014.inspect();
;
7799
7800 QM_TRY_INSPECT(const int32_t& type2,auto tryResult1015 = (::mozilla::ToResultInvokeMember( (aValues
), &::mozilla::detail::DerefedType<decltype(aValues)>
::GetTypeOfIndex , 1)); if ((__builtin_expect(!!(tryResult1015
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1015
.unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex , 1)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7802, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex , 1)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7802); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 7802); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const int32_t
& type2 = tryResult1015.inspect();
7801 MOZ_TO_RESULT_INVOKE_MEMBER(aValues, GetTypeOfIndex, 1),auto tryResult1015 = (::mozilla::ToResultInvokeMember( (aValues
), &::mozilla::detail::DerefedType<decltype(aValues)>
::GetTypeOfIndex , 1)); if ((__builtin_expect(!!(tryResult1015
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1015
.unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex , 1)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7802, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex , 1)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7802); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 7802); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const int32_t
& type2 = tryResult1015.inspect();
7802 QM_ASSERT_UNREACHABLE)auto tryResult1015 = (::mozilla::ToResultInvokeMember( (aValues
), &::mozilla::detail::DerefedType<decltype(aValues)>
::GetTypeOfIndex , 1)); if ((__builtin_expect(!!(tryResult1015
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1015
.unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex , 1)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7802, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex , 1)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7802); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 7802); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const int32_t
& type2 = tryResult1015.inspect();
;
7803
7804 MOZ_ASSERT(!(type1 == mozIStorageValueArray::VALUE_TYPE_NULL &&do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!(type1 == mozIStorageValueArray::VALUE_TYPE_NULL &&
type2 == mozIStorageValueArray::VALUE_TYPE_NULL))>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(!(type1 == mozIStorageValueArray::VALUE_TYPE_NULL &&
type2 == mozIStorageValueArray::VALUE_TYPE_NULL)))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!(type1 == mozIStorageValueArray::VALUE_TYPE_NULL && type2 == mozIStorageValueArray::VALUE_TYPE_NULL)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7805)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!(type1 == mozIStorageValueArray::VALUE_TYPE_NULL && type2 == mozIStorageValueArray::VALUE_TYPE_NULL)"
")"); do { MOZ_CrashSequence(__null, 7805); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
7805 type2 == mozIStorageValueArray::VALUE_TYPE_NULL))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!(type1 == mozIStorageValueArray::VALUE_TYPE_NULL &&
type2 == mozIStorageValueArray::VALUE_TYPE_NULL))>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(!(type1 == mozIStorageValueArray::VALUE_TYPE_NULL &&
type2 == mozIStorageValueArray::VALUE_TYPE_NULL)))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!(type1 == mozIStorageValueArray::VALUE_TYPE_NULL && type2 == mozIStorageValueArray::VALUE_TYPE_NULL)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7805)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!(type1 == mozIStorageValueArray::VALUE_TYPE_NULL && type2 == mozIStorageValueArray::VALUE_TYPE_NULL)"
")"); do { MOZ_CrashSequence(__null, 7805); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7806 }
7807#endif
7808
7809 QM_TRY(MOZ_TO_RESULT(ProcessValue(aValues, 0, UpdateType::Decrement))){auto tryResult1016 = (ToResult(ProcessValue(aValues, 0, UpdateType
::Decrement))); static_assert(std::is_empty_v<typename decltype
(tryResult1016)::ok_type>); if ((__builtin_expect(!!(tryResult1016
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(ProcessValue(aValues, 0, UpdateType::Decrement))"
, tryResult1016.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7809, mozilla::dom::quota::Severity::Error); return tryResult1016
.propagateErr(); }}
;
7810
7811 QM_TRY(MOZ_TO_RESULT(ProcessValue(aValues, 1, UpdateType::Increment))){auto tryResult1017 = (ToResult(ProcessValue(aValues, 1, UpdateType
::Increment))); static_assert(std::is_empty_v<typename decltype
(tryResult1017)::ok_type>); if ((__builtin_expect(!!(tryResult1017
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(ProcessValue(aValues, 1, UpdateType::Increment))"
, tryResult1017.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7811, mozilla::dom::quota::Severity::Error); return tryResult1017
.propagateErr(); }}
;
7812
7813 return NS_OK;
7814}
7815
7816/*******************************************************************************
7817 * ConnectionPool implementation
7818 ******************************************************************************/
7819
7820ConnectionPool::ConnectionPool()
7821 : mDatabasesMutex("ConnectionPool::mDatabasesMutex"),
7822 mIOTarget(MakeConnectionIOTarget()),
7823 mIdleTimer(NS_NewTimer()),
7824 mNextTransactionId(0) {
7825 AssertIsOnOwningThread();
7826 AssertIsOnBackgroundThread();
7827 MOZ_ASSERT(mIdleTimer)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mIdleTimer)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mIdleTimer))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mIdleTimer", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7827); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mIdleTimer"
")"); do { MOZ_CrashSequence(__null, 7827); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7828}
7829
7830ConnectionPool::~ConnectionPool() {
7831 AssertIsOnOwningThread();
7832 MOZ_ASSERT(mIdleDatabases.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mIdleDatabases.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mIdleDatabases.IsEmpty()))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("mIdleDatabases.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7832)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mIdleDatabases.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 7832); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7833 MOZ_ASSERT(!mIdleTimer)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mIdleTimer)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mIdleTimer))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("!mIdleTimer", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7833); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mIdleTimer"
")"); do { MOZ_CrashSequence(__null, 7833); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7834 MOZ_ASSERT(mTargetIdleTime.IsNull())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mTargetIdleTime.IsNull())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mTargetIdleTime.IsNull()))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("mTargetIdleTime.IsNull()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7834)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTargetIdleTime.IsNull()"
")"); do { MOZ_CrashSequence(__null, 7834); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7835 MOZ_ASSERT(!mDatabases.Count())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDatabases.Count())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDatabases.Count()))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("!mDatabases.Count()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7835)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabases.Count()"
")"); do { MOZ_CrashSequence(__null, 7835); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7836 MOZ_ASSERT(!mTransactions.Count())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mTransactions.Count())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mTransactions.Count()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!mTransactions.Count()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7836)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransactions.Count()"
")"); do { MOZ_CrashSequence(__null, 7836); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7837 MOZ_ASSERT(mQueuedTransactions.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mQueuedTransactions.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mQueuedTransactions.IsEmpty(
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mQueuedTransactions.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7837); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mQueuedTransactions.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 7837); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7838 MOZ_ASSERT(mCompleteCallbacks.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mCompleteCallbacks.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mCompleteCallbacks.IsEmpty()
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mCompleteCallbacks.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7838); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCompleteCallbacks.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 7838); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7839 MOZ_ASSERT(mShutdownRequested)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mShutdownRequested)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mShutdownRequested))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("mShutdownRequested"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7839)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mShutdownRequested"
")"); do { MOZ_CrashSequence(__null, 7839); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7840 MOZ_ASSERT(mShutdownComplete)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mShutdownComplete)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mShutdownComplete))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("mShutdownComplete"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7840)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mShutdownComplete"
")"); do { MOZ_CrashSequence(__null, 7840); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7841}
7842
7843// static
7844void ConnectionPool::IdleTimerCallback(nsITimer* aTimer, void* aClosure) {
7845 MOZ_ASSERT(aTimer)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aTimer)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(aTimer))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aTimer", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7845); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aTimer" ")"
); do { MOZ_CrashSequence(__null, 7845); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7846 MOZ_ASSERT(aClosure)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aClosure)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aClosure))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aClosure", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7846); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aClosure" ")"
); do { MOZ_CrashSequence(__null, 7846); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7847
7848 AUTO_PROFILER_LABEL("ConnectionPool::IdleTimerCallback", DOM)mozilla::AutoProfilerLabel raiiObject7848( "ConnectionPool::IdleTimerCallback"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7849
7850 auto& self = *static_cast<ConnectionPool*>(aClosure);
7851 MOZ_ASSERT(self.mIdleTimer)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(self.mIdleTimer)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(self.mIdleTimer))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("self.mIdleTimer"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7851)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "self.mIdleTimer" ")"
); do { MOZ_CrashSequence(__null, 7851); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7852 MOZ_ASSERT(SameCOMIdentity(self.mIdleTimer, aTimer))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(SameCOMIdentity(self.mIdleTimer, aTimer))>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(SameCOMIdentity(self.mIdleTimer, aTimer)))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("SameCOMIdentity(self.mIdleTimer, aTimer)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7852)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "SameCOMIdentity(self.mIdleTimer, aTimer)"
")"); do { MOZ_CrashSequence(__null, 7852); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7853 MOZ_ASSERT(!self.mTargetIdleTime.IsNull())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!self.mTargetIdleTime.IsNull())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!self.mTargetIdleTime.IsNull
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!self.mTargetIdleTime.IsNull()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7853); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!self.mTargetIdleTime.IsNull()"
")"); do { MOZ_CrashSequence(__null, 7853); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7854
7855 self.mTargetIdleTime = TimeStamp();
7856
7857 // Cheat a little.
7858 const TimeStamp now =
7859 TimeStamp::NowLoRes() + TimeDuration::FromMilliseconds(500);
7860
7861 // XXX Move this to ArrayAlgorithm.h?
7862 const auto removeUntil = [](auto& array, auto&& cond) {
7863 const auto begin = array.begin(), end = array.end();
7864 array.RemoveElementsRange(
7865 begin, std::find_if(begin, end, std::forward<decltype(cond)>(cond)));
7866 };
7867
7868 removeUntil(self.mIdleDatabases, [now, &self](const auto& info) {
7869 if (now >= info.mIdleTime) {
7870 if ((*info.mDatabaseInfo)->mIdle) {
7871 self.PerformIdleDatabaseMaintenance(*info.mDatabaseInfo.ref());
7872 } else {
7873 self.CloseDatabase(*info.mDatabaseInfo.ref());
7874 }
7875
7876 return false;
7877 }
7878
7879 return true;
7880 });
7881
7882 self.AdjustIdleTimer();
7883}
7884
7885Result<RefPtr<DatabaseConnection>, nsresult>
7886ConnectionPool::GetOrCreateConnection(const Database& aDatabase) {
7887 MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7887)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { MOZ_CrashSequence(__null, 7887); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7888 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7888)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 7888); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7889
7890 AUTO_PROFILER_LABEL("ConnectionPool::GetOrCreateConnection", DOM)mozilla::AutoProfilerLabel raiiObject7890( "ConnectionPool::GetOrCreateConnection"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7891
7892 DatabaseInfo* dbInfo;
7893 {
7894 MutexAutoLock lock(mDatabasesMutex);
7895
7896 dbInfo = mDatabases.Get(aDatabase.Id());
7897 }
7898
7899 MOZ_ASSERT(dbInfo)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(dbInfo)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(dbInfo))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("dbInfo", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7899); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo" ")"
); do { MOZ_CrashSequence(__null, 7899); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7900
7901 if (dbInfo->mConnection) {
7902 dbInfo->AssertIsOnConnectionThread();
7903
7904 return dbInfo->mConnection;
7905 }
7906
7907 MOZ_ASSERT(!dbInfo->mDEBUGConnectionEventTarget)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!dbInfo->mDEBUGConnectionEventTarget)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(!dbInfo->mDEBUGConnectionEventTarget))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!dbInfo->mDEBUGConnectionEventTarget"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7907)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!dbInfo->mDEBUGConnectionEventTarget"
")"); do { MOZ_CrashSequence(__null, 7907); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7908
7909 QM_TRY_UNWRAP(auto tryResult1018 = (GetStorageConnection(aDatabase.FilePath
(), aDatabase.DirectoryLockId(), aDatabase.TelemetryId(), aDatabase
.MaybeKeyRef())); if ((__builtin_expect(!!(tryResult1018.isErr
()), 0))) { mozilla::dom::quota::HandleError("GetStorageConnection(aDatabase.FilePath(), aDatabase.DirectoryLockId(), aDatabase.TelemetryId(), aDatabase.MaybeKeyRef())"
, tryResult1018.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7912, mozilla::dom::quota::Severity::Error); return tryResult1018
.propagateErr(); } MovingNotNull<nsCOMPtr<mozIStorageConnection
>> storageConnection = tryResult1018.unwrap();
7910 MovingNotNull<nsCOMPtr<mozIStorageConnection>> storageConnection,auto tryResult1018 = (GetStorageConnection(aDatabase.FilePath
(), aDatabase.DirectoryLockId(), aDatabase.TelemetryId(), aDatabase
.MaybeKeyRef())); if ((__builtin_expect(!!(tryResult1018.isErr
()), 0))) { mozilla::dom::quota::HandleError("GetStorageConnection(aDatabase.FilePath(), aDatabase.DirectoryLockId(), aDatabase.TelemetryId(), aDatabase.MaybeKeyRef())"
, tryResult1018.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7912, mozilla::dom::quota::Severity::Error); return tryResult1018
.propagateErr(); } MovingNotNull<nsCOMPtr<mozIStorageConnection
>> storageConnection = tryResult1018.unwrap();
7911 GetStorageConnection(aDatabase.FilePath(), aDatabase.DirectoryLockId(),auto tryResult1018 = (GetStorageConnection(aDatabase.FilePath
(), aDatabase.DirectoryLockId(), aDatabase.TelemetryId(), aDatabase
.MaybeKeyRef())); if ((__builtin_expect(!!(tryResult1018.isErr
()), 0))) { mozilla::dom::quota::HandleError("GetStorageConnection(aDatabase.FilePath(), aDatabase.DirectoryLockId(), aDatabase.TelemetryId(), aDatabase.MaybeKeyRef())"
, tryResult1018.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7912, mozilla::dom::quota::Severity::Error); return tryResult1018
.propagateErr(); } MovingNotNull<nsCOMPtr<mozIStorageConnection
>> storageConnection = tryResult1018.unwrap();
7912 aDatabase.TelemetryId(), aDatabase.MaybeKeyRef()))auto tryResult1018 = (GetStorageConnection(aDatabase.FilePath
(), aDatabase.DirectoryLockId(), aDatabase.TelemetryId(), aDatabase
.MaybeKeyRef())); if ((__builtin_expect(!!(tryResult1018.isErr
()), 0))) { mozilla::dom::quota::HandleError("GetStorageConnection(aDatabase.FilePath(), aDatabase.DirectoryLockId(), aDatabase.TelemetryId(), aDatabase.MaybeKeyRef())"
, tryResult1018.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7912, mozilla::dom::quota::Severity::Error); return tryResult1018
.propagateErr(); } MovingNotNull<nsCOMPtr<mozIStorageConnection
>> storageConnection = tryResult1018.unwrap();
;
7913
7914 RefPtr<DatabaseConnection> connection = new DatabaseConnection(
7915 std::move(storageConnection), aDatabase.GetFileManagerPtr());
7916
7917 QM_TRY(MOZ_TO_RESULT(connection->Init())){auto tryResult1019 = (ToResult(connection->Init())); static_assert
(std::is_empty_v<typename decltype(tryResult1019)::ok_type
>); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(connection->Init())"
, tryResult1019.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7917, mozilla::dom::quota::Severity::Error); return tryResult1019
.propagateErr(); }}
;
7918
7919 dbInfo->mConnection = connection;
7920
7921 IDB_DEBUG_LOG(("ConnectionPool created connection 0x%p for '%s'",
7922 dbInfo->mConnection.get(),
7923 NS_ConvertUTF16toUTF8(aDatabase.FilePath()).get()));
7924
7925#ifdef DEBUG1
7926 dbInfo->mDEBUGConnectionEventTarget = GetCurrentSerialEventTarget();
7927#endif
7928
7929 return connection;
7930}
7931
7932uint64_t ConnectionPool::Start(
7933 const nsID& aBackgroundChildLoggingId, const nsACString& aDatabaseId,
7934 int64_t aLoggingSerialNumber, const nsTArray<nsString>& aObjectStoreNames,
7935 bool aIsWriteTransaction,
7936 TransactionDatabaseOperationBase* aTransactionOp) {
7937 AssertIsOnOwningThread();
7938 MOZ_ASSERT(!aDatabaseId.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aDatabaseId.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!aDatabaseId.IsEmpty()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!aDatabaseId.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7938)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseId.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 7938); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7939 MOZ_ASSERT(mNextTransactionId < UINT64_MAX)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mNextTransactionId < (18446744073709551615UL))>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mNextTransactionId < (18446744073709551615UL)))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("mNextTransactionId < (18446744073709551615UL)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7939)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mNextTransactionId < (18446744073709551615UL)"
")"); do { MOZ_CrashSequence(__null, 7939); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7940 MOZ_ASSERT(!mShutdownRequested)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mShutdownRequested)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mShutdownRequested))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("!mShutdownRequested"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7940)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mShutdownRequested"
")"); do { MOZ_CrashSequence(__null, 7940); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7941
7942 AUTO_PROFILER_LABEL("ConnectionPool::Start", DOM)mozilla::AutoProfilerLabel raiiObject7942( "ConnectionPool::Start"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7943
7944 const uint64_t transactionId = ++mNextTransactionId;
7945
7946 // To avoid always acquiring a lock, we don't use WithEntryHandle here, which
7947 // would require a lock in any case.
7948 DatabaseInfo* dbInfo = mDatabases.Get(aDatabaseId);
7949
7950 const bool databaseInfoIsNew = !dbInfo;
7951
7952 if (databaseInfoIsNew) {
7953 MutexAutoLock lock(mDatabasesMutex);
7954
7955 dbInfo = mDatabases
7956 .InsertOrUpdate(aDatabaseId,
7957 MakeUnique<DatabaseInfo>(this, aDatabaseId))
7958 .get();
7959 }
7960
7961 MOZ_ASSERT(!mTransactions.Contains(transactionId))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mTransactions.Contains(transactionId))>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(!mTransactions.Contains(transactionId)))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!mTransactions.Contains(transactionId)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7961)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransactions.Contains(transactionId)"
")"); do { MOZ_CrashSequence(__null, 7961); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7962 auto& transactionInfo = *mTransactions.InsertOrUpdate(
7963 transactionId, MakeUnique<TransactionInfo>(
7964 *dbInfo, aBackgroundChildLoggingId, aDatabaseId,
7965 transactionId, aLoggingSerialNumber, aObjectStoreNames,
7966 aIsWriteTransaction, aTransactionOp));
7967
7968 if (aIsWriteTransaction) {
7969 MOZ_ASSERT(dbInfo->mWriteTransactionCount < UINT32_MAX)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(dbInfo->mWriteTransactionCount < (4294967295U)
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(dbInfo->mWriteTransactionCount < (4294967295U)
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"dbInfo->mWriteTransactionCount < (4294967295U)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7969); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo->mWriteTransactionCount < (4294967295U)"
")"); do { MOZ_CrashSequence(__null, 7969); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7970 dbInfo->mWriteTransactionCount++;
7971 } else {
7972 MOZ_ASSERT(dbInfo->mReadTransactionCount < UINT32_MAX)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(dbInfo->mReadTransactionCount < (4294967295U))
>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(dbInfo->mReadTransactionCount < (4294967295U))
)), 0))) { do { } while (false); MOZ_ReportAssertionFailure("dbInfo->mReadTransactionCount < (4294967295U)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7972)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo->mReadTransactionCount < (4294967295U)"
")"); do { MOZ_CrashSequence(__null, 7972); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7973 dbInfo->mReadTransactionCount++;
7974 }
7975
7976 auto& blockingTransactions = dbInfo->mBlockingTransactions;
7977
7978 for (const nsAString& objectStoreName : aObjectStoreNames) {
7979 TransactionInfoPair* blockInfo =
7980 blockingTransactions.GetOrInsertNew(objectStoreName);
7981
7982 // Mark what we are blocking on.
7983 if (const auto maybeBlockingRead = blockInfo->mLastBlockingReads) {
7984 transactionInfo.mBlockedOn.Insert(&maybeBlockingRead.ref());
7985 maybeBlockingRead->AddBlockingTransaction(transactionInfo);
7986 }
7987
7988 if (aIsWriteTransaction) {
7989 for (const auto blockingWrite : blockInfo->mLastBlockingWrites) {
7990 transactionInfo.mBlockedOn.Insert(blockingWrite);
7991 blockingWrite->AddBlockingTransaction(transactionInfo);
7992 }
7993
7994 blockInfo->mLastBlockingReads = SomeRef(transactionInfo);
7995 blockInfo->mLastBlockingWrites.Clear();
7996 } else {
7997 blockInfo->mLastBlockingWrites.AppendElement(
7998 WrapNotNullUnchecked(&transactionInfo));
7999 }
8000 }
8001
8002 if (!transactionInfo.mBlockedOn.Count()) {
8003 (void)ScheduleTransaction(transactionInfo,
8004 /* aFromQueuedTransactions */ false);
8005 }
8006
8007 if (!databaseInfoIsNew &&
8008 (mIdleDatabases.RemoveElement(dbInfo) ||
8009 mDatabasesPerformingIdleMaintenance.RemoveElement(dbInfo))) {
8010 AdjustIdleTimer();
8011 }
8012
8013 return transactionId;
8014}
8015
8016void ConnectionPool::StartOp(uint64_t aTransactionId,
8017 nsCOMPtr<nsIRunnable> aRunnable) {
8018 AssertIsOnOwningThread();
8019
8020 AUTO_PROFILER_LABEL("ConnectionPool::StartOp", DOM)mozilla::AutoProfilerLabel raiiObject8020( "ConnectionPool::StartOp"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8021
8022 auto* const transactionInfo = mTransactions.Get(aTransactionId);
8023 MOZ_ASSERT(transactionInfo)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(transactionInfo)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(transactionInfo))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("transactionInfo"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8023)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "transactionInfo" ")"
); do { MOZ_CrashSequence(__null, 8023); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8024
8025 transactionInfo->StartOp(std::move(aRunnable));
8026}
8027
8028void ConnectionPool::FinishOp(uint64_t aTransactionId) {
8029 AssertIsOnOwningThread();
8030
8031 AUTO_PROFILER_LABEL("ConnectionPool::FinishOp", DOM)mozilla::AutoProfilerLabel raiiObject8031( "ConnectionPool::FinishOp"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8032
8033 auto* const transactionInfo = mTransactions.Get(aTransactionId);
8034 MOZ_ASSERT(transactionInfo)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(transactionInfo)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(transactionInfo))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("transactionInfo"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8034)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "transactionInfo" ")"
); do { MOZ_CrashSequence(__null, 8034); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8035
8036 transactionInfo->FinishOp();
8037}
8038
8039void ConnectionPool::Finish(uint64_t aTransactionId,
8040 FinishCallback* aCallback) {
8041 AssertIsOnOwningThread();
8042
8043#ifdef DEBUG1
8044 auto* const transactionInfo = mTransactions.Get(aTransactionId);
8045 MOZ_ASSERT(transactionInfo)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(transactionInfo)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(transactionInfo))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("transactionInfo"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8045)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "transactionInfo" ")"
); do { MOZ_CrashSequence(__null, 8045); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8046 MOZ_ASSERT(!transactionInfo->mFinished)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!transactionInfo->mFinished)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!transactionInfo->mFinished
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"!transactionInfo->mFinished", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8046); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!transactionInfo->mFinished"
")"); do { MOZ_CrashSequence(__null, 8046); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8047#endif
8048
8049 AUTO_PROFILER_LABEL("ConnectionPool::Finish", DOM)mozilla::AutoProfilerLabel raiiObject8049( "ConnectionPool::Finish"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8050
8051 nsCOMPtr<nsIRunnable> wrapper =
8052 new FinishCallbackWrapper(this, aTransactionId, aCallback);
8053
8054 StartOp(aTransactionId, std::move(wrapper));
8055
8056#ifdef DEBUG1
8057 transactionInfo->mFinished.Flip();
8058#endif
8059}
8060
8061void ConnectionPool::WaitForDatabaseToComplete(const nsCString& aDatabaseId,
8062 nsIRunnable* aCallback) {
8063 AssertIsOnOwningThread();
8064 MOZ_ASSERT(!aDatabaseId.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aDatabaseId.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!aDatabaseId.IsEmpty()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!aDatabaseId.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8064)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseId.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 8064); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8065 MOZ_ASSERT(aCallback)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aCallback)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aCallback))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aCallback", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8065); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aCallback" ")"
); do { MOZ_CrashSequence(__null, 8065); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8066
8067 AUTO_PROFILER_LABEL("ConnectionPool::WaitForDatabaseToComplete", DOM)mozilla::AutoProfilerLabel raiiObject8067( "ConnectionPool::WaitForDatabaseToComplete"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8068
8069 if (!CloseDatabaseWhenIdleInternal(aDatabaseId)) {
8070 (void)aCallback->Run();
8071 return;
8072 }
8073
8074 mCompleteCallbacks.EmplaceBack(
8075 MakeUnique<DatabaseCompleteCallback>(aDatabaseId, aCallback));
8076}
8077
8078void ConnectionPool::Shutdown() {
8079 AssertIsOnOwningThread();
8080 MOZ_ASSERT(!mShutdownComplete)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mShutdownComplete)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mShutdownComplete))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("!mShutdownComplete"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8080)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mShutdownComplete"
")"); do { MOZ_CrashSequence(__null, 8080); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8081
8082 AUTO_PROFILER_LABEL("ConnectionPool::Shutdown", DOM)mozilla::AutoProfilerLabel raiiObject8082( "ConnectionPool::Shutdown"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8083
8084 mShutdownRequested.Flip();
8085
8086 CancelIdleTimer();
8087 MOZ_ASSERT(mTargetIdleTime.IsNull())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mTargetIdleTime.IsNull())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mTargetIdleTime.IsNull()))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("mTargetIdleTime.IsNull()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8087)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTargetIdleTime.IsNull()"
")"); do { MOZ_CrashSequence(__null, 8087); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8088
8089 mIdleTimer = nullptr;
8090
8091 CloseIdleDatabases();
8092
8093 if (!mDatabases.Count()) {
8094 MOZ_ASSERT(!mTransactions.Count())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mTransactions.Count())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mTransactions.Count()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!mTransactions.Count()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8094)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransactions.Count()"
")"); do { MOZ_CrashSequence(__null, 8094); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8095
8096 Cleanup();
8097
8098 MOZ_ASSERT(mShutdownComplete)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mShutdownComplete)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mShutdownComplete))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("mShutdownComplete"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8098)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mShutdownComplete"
")"); do { MOZ_CrashSequence(__null, 8098); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8099
8100 mIOTarget->Shutdown();
8101
8102 return;
8103 }
8104
8105 MOZ_ALWAYS_TRUE(SpinEventLoopUntil("ConnectionPool::Shutdown"_ns, [&]() {do { if ((__builtin_expect(!!(SpinEventLoopUntil("ConnectionPool::Shutdown"_ns
, [&]() { return static_cast<bool>(mShutdownComplete
); })), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "SpinEventLoopUntil(\"ConnectionPool::Shutdown\"_ns, [&]() { return static_cast<bool>(mShutdownComplete); })"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8107)
; AnnotateMozCrashReason("MOZ_CRASH(" "SpinEventLoopUntil(\"ConnectionPool::Shutdown\"_ns, [&]() { return static_cast<bool>(mShutdownComplete); })"
")"); do { MOZ_CrashSequence(__null, 8107); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
8106 return static_cast<bool>(mShutdownComplete);do { if ((__builtin_expect(!!(SpinEventLoopUntil("ConnectionPool::Shutdown"_ns
, [&]() { return static_cast<bool>(mShutdownComplete
); })), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "SpinEventLoopUntil(\"ConnectionPool::Shutdown\"_ns, [&]() { return static_cast<bool>(mShutdownComplete); })"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8107)
; AnnotateMozCrashReason("MOZ_CRASH(" "SpinEventLoopUntil(\"ConnectionPool::Shutdown\"_ns, [&]() { return static_cast<bool>(mShutdownComplete); })"
")"); do { MOZ_CrashSequence(__null, 8107); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
8107 }))do { if ((__builtin_expect(!!(SpinEventLoopUntil("ConnectionPool::Shutdown"_ns
, [&]() { return static_cast<bool>(mShutdownComplete
); })), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "SpinEventLoopUntil(\"ConnectionPool::Shutdown\"_ns, [&]() { return static_cast<bool>(mShutdownComplete); })"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8107)
; AnnotateMozCrashReason("MOZ_CRASH(" "SpinEventLoopUntil(\"ConnectionPool::Shutdown\"_ns, [&]() { return static_cast<bool>(mShutdownComplete); })"
")"); do { MOZ_CrashSequence(__null, 8107); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
8108
8109 mIOTarget->Shutdown();
8110}
8111
8112void ConnectionPool::Cleanup() {
8113 AssertIsOnOwningThread();
8114 MOZ_ASSERT(mShutdownRequested)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mShutdownRequested)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mShutdownRequested))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("mShutdownRequested"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8114)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mShutdownRequested"
")"); do { MOZ_CrashSequence(__null, 8114); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8115 MOZ_ASSERT(!mShutdownComplete)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mShutdownComplete)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mShutdownComplete))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("!mShutdownComplete"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8115)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mShutdownComplete"
")"); do { MOZ_CrashSequence(__null, 8115); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8116 MOZ_ASSERT(!mDatabases.Count())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDatabases.Count())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDatabases.Count()))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("!mDatabases.Count()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8116)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabases.Count()"
")"); do { MOZ_CrashSequence(__null, 8116); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8117 MOZ_ASSERT(!mTransactions.Count())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mTransactions.Count())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mTransactions.Count()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!mTransactions.Count()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8117)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransactions.Count()"
")"); do { MOZ_CrashSequence(__null, 8117); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8118
8119 AUTO_PROFILER_LABEL("ConnectionPool::Cleanup", DOM)mozilla::AutoProfilerLabel raiiObject8119( "ConnectionPool::Cleanup"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8120
8121 if (!mCompleteCallbacks.IsEmpty()) {
8122 // Run all callbacks manually now.
8123
8124 {
8125 auto completeCallbacks = std::move(mCompleteCallbacks);
8126 for (const auto& completeCallback : completeCallbacks) {
8127 MOZ_ASSERT(completeCallback)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(completeCallback)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(completeCallback))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("completeCallback"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8127)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "completeCallback" ")"
); do { MOZ_CrashSequence(__null, 8127); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8128 MOZ_ASSERT(completeCallback->mCallback)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(completeCallback->mCallback)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(completeCallback->mCallback
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"completeCallback->mCallback", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8128); AnnotateMozCrashReason("MOZ_ASSERT" "(" "completeCallback->mCallback"
")"); do { MOZ_CrashSequence(__null, 8128); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8129
8130 (void)completeCallback->mCallback->Run();
8131 }
8132
8133 // We expect no new callbacks being completed by running the existing
8134 // ones.
8135 MOZ_ASSERT(mCompleteCallbacks.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mCompleteCallbacks.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mCompleteCallbacks.IsEmpty()
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mCompleteCallbacks.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8135); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCompleteCallbacks.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 8135); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8136 }
8137
8138 // And make sure they get processed.
8139 nsIThread* currentThread = NS_GetCurrentThread();
8140 MOZ_ASSERT(currentThread)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(currentThread)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(currentThread))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("currentThread",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8140);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "currentThread" ")")
; do { MOZ_CrashSequence(__null, 8140); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8141
8142 MOZ_ALWAYS_SUCCEEDS(NS_ProcessPendingEvents(currentThread))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(NS_ProcessPendingEvents(currentThread))), 1)))), 1))) { } else
{ do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(NS_ProcessPendingEvents(currentThread))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8142)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(NS_ProcessPendingEvents(currentThread))"
")"); do { MOZ_CrashSequence(__null, 8142); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
8143 }
8144
8145 mShutdownComplete.Flip();
8146}
8147
8148void ConnectionPool::AdjustIdleTimer() {
8149 AssertIsOnOwningThread();
8150 MOZ_ASSERT(mIdleTimer)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mIdleTimer)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mIdleTimer))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mIdleTimer", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8150); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mIdleTimer"
")"); do { MOZ_CrashSequence(__null, 8150); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8151
8152 AUTO_PROFILER_LABEL("ConnectionPool::AdjustIdleTimer", DOM)mozilla::AutoProfilerLabel raiiObject8152( "ConnectionPool::AdjustIdleTimer"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8153
8154 // Figure out the next time at which we should release idle resources. This
8155 // includes both databases and threads.
8156 TimeStamp newTargetIdleTime;
8157 MOZ_ASSERT(newTargetIdleTime.IsNull())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(newTargetIdleTime.IsNull())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(newTargetIdleTime.IsNull()))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("newTargetIdleTime.IsNull()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8157)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "newTargetIdleTime.IsNull()"
")"); do { MOZ_CrashSequence(__null, 8157); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8158
8159 if (!mIdleDatabases.IsEmpty()) {
8160 newTargetIdleTime = mIdleDatabases[0].mIdleTime;
8161 }
8162
8163 MOZ_ASSERT_IF(newTargetIdleTime.IsNull(), mIdleDatabases.IsEmpty())do { if (newTargetIdleTime.IsNull()) { do { static_assert( mozilla
::detail::AssertionConditionType<decltype(mIdleDatabases.IsEmpty
())>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mIdleDatabases.IsEmpty()))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("mIdleDatabases.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8163); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mIdleDatabases.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 8163); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
8164
8165 // Cancel the timer if it was running and the new target time is different.
8166 if (!mTargetIdleTime.IsNull() &&
8167 (newTargetIdleTime.IsNull() || mTargetIdleTime != newTargetIdleTime)) {
8168 CancelIdleTimer();
8169
8170 MOZ_ASSERT(mTargetIdleTime.IsNull())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mTargetIdleTime.IsNull())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mTargetIdleTime.IsNull()))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("mTargetIdleTime.IsNull()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8170)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTargetIdleTime.IsNull()"
")"); do { MOZ_CrashSequence(__null, 8170); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8171 }
8172
8173 // Schedule the timer if we have a target time different than before.
8174 if (!newTargetIdleTime.IsNull() &&
8175 (mTargetIdleTime.IsNull() || mTargetIdleTime != newTargetIdleTime)) {
8176 double delta = (newTargetIdleTime - TimeStamp::NowLoRes()).ToMilliseconds();
8177
8178 uint32_t delay;
8179 if (delta > 0) {
8180 delay = uint32_t(std::min(delta, double(UINT32_MAX(4294967295U))));
8181 } else {
8182 delay = 0;
8183 }
8184
8185 MOZ_ALWAYS_SUCCEEDS(mIdleTimer->InitWithNamedFuncCallback(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(mIdleTimer->InitWithNamedFuncCallback( IdleTimerCallback,
this, delay, nsITimer::TYPE_ONE_SHOT, "ConnectionPool::IdleTimerCallback"_ns
))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(mIdleTimer->InitWithNamedFuncCallback( IdleTimerCallback, this, delay, nsITimer::TYPE_ONE_SHOT, \"ConnectionPool::IdleTimerCallback\"_ns))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8187)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mIdleTimer->InitWithNamedFuncCallback( IdleTimerCallback, this, delay, nsITimer::TYPE_ONE_SHOT, \"ConnectionPool::IdleTimerCallback\"_ns))"
")"); do { MOZ_CrashSequence(__null, 8187); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
8186 IdleTimerCallback, this, delay, nsITimer::TYPE_ONE_SHOT,do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(mIdleTimer->InitWithNamedFuncCallback( IdleTimerCallback,
this, delay, nsITimer::TYPE_ONE_SHOT, "ConnectionPool::IdleTimerCallback"_ns
))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(mIdleTimer->InitWithNamedFuncCallback( IdleTimerCallback, this, delay, nsITimer::TYPE_ONE_SHOT, \"ConnectionPool::IdleTimerCallback\"_ns))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8187)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mIdleTimer->InitWithNamedFuncCallback( IdleTimerCallback, this, delay, nsITimer::TYPE_ONE_SHOT, \"ConnectionPool::IdleTimerCallback\"_ns))"
")"); do { MOZ_CrashSequence(__null, 8187); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
8187 "ConnectionPool::IdleTimerCallback"_ns))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(mIdleTimer->InitWithNamedFuncCallback( IdleTimerCallback,
this, delay, nsITimer::TYPE_ONE_SHOT, "ConnectionPool::IdleTimerCallback"_ns
))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(mIdleTimer->InitWithNamedFuncCallback( IdleTimerCallback, this, delay, nsITimer::TYPE_ONE_SHOT, \"ConnectionPool::IdleTimerCallback\"_ns))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8187)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mIdleTimer->InitWithNamedFuncCallback( IdleTimerCallback, this, delay, nsITimer::TYPE_ONE_SHOT, \"ConnectionPool::IdleTimerCallback\"_ns))"
")"); do { MOZ_CrashSequence(__null, 8187); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
8188
8189 mTargetIdleTime = newTargetIdleTime;
8190 }
8191}
8192
8193void ConnectionPool::CancelIdleTimer() {
8194 AssertIsOnOwningThread();
8195 MOZ_ASSERT(mIdleTimer)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mIdleTimer)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mIdleTimer))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mIdleTimer", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mIdleTimer"
")"); do { MOZ_CrashSequence(__null, 8195); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8196
8197 if (!mTargetIdleTime.IsNull()) {
8198 MOZ_ALWAYS_SUCCEEDS(mIdleTimer->Cancel())do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(mIdleTimer->Cancel())), 1)))), 1))) { } else { do { do { }
while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(mIdleTimer->Cancel())"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8198)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mIdleTimer->Cancel())"
")"); do { MOZ_CrashSequence(__null, 8198); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
8199
8200 mTargetIdleTime = TimeStamp();
8201 MOZ_ASSERT(mTargetIdleTime.IsNull())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mTargetIdleTime.IsNull())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mTargetIdleTime.IsNull()))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("mTargetIdleTime.IsNull()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8201)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTargetIdleTime.IsNull()"
")"); do { MOZ_CrashSequence(__null, 8201); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8202 }
8203}
8204
8205void ConnectionPool::CloseIdleDatabases() {
8206 AssertIsOnOwningThread();
8207 MOZ_ASSERT(mShutdownRequested)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mShutdownRequested)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mShutdownRequested))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("mShutdownRequested"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8207)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mShutdownRequested"
")"); do { MOZ_CrashSequence(__null, 8207); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8208
8209 AUTO_PROFILER_LABEL("ConnectionPool::CloseIdleDatabases", DOM)mozilla::AutoProfilerLabel raiiObject8209( "ConnectionPool::CloseIdleDatabases"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8210
8211 if (!mIdleDatabases.IsEmpty()) {
8212 for (IdleDatabaseInfo& idleInfo : mIdleDatabases) {
8213 CloseDatabase(*idleInfo.mDatabaseInfo.ref());
8214 }
8215 mIdleDatabases.Clear();
8216 }
8217
8218 if (!mDatabasesPerformingIdleMaintenance.IsEmpty()) {
8219 for (PerformingIdleMaintenanceDatabaseInfo& performingIdleMaintenanceInfo :
8220 mDatabasesPerformingIdleMaintenance) {
8221 CloseDatabase(*performingIdleMaintenanceInfo.mDatabaseInfo);
8222 }
8223 mDatabasesPerformingIdleMaintenance.Clear();
8224 }
8225}
8226
8227bool ConnectionPool::ScheduleTransaction(TransactionInfo& aTransactionInfo,
8228 bool aFromQueuedTransactions) {
8229 AssertIsOnOwningThread();
8230
8231 AUTO_PROFILER_LABEL("ConnectionPool::ScheduleTransaction", DOM)mozilla::AutoProfilerLabel raiiObject8231( "ConnectionPool::ScheduleTransaction"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8232
8233 DatabaseInfo& dbInfo = aTransactionInfo.mDatabaseInfo;
8234
8235 dbInfo.mIdle = false;
8236
8237 if (dbInfo.mClosing) {
8238 MOZ_ASSERT(!mIdleDatabases.Contains(&dbInfo))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mIdleDatabases.Contains(&dbInfo))>::isValid,
"invalid assertion condition"); if ((__builtin_expect(!!(!(!
!(!mIdleDatabases.Contains(&dbInfo)))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!mIdleDatabases.Contains(&dbInfo)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8238)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mIdleDatabases.Contains(&dbInfo)"
")"); do { MOZ_CrashSequence(__null, 8238); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8239 MOZ_ASSERT(do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!dbInfo.mTransactionsScheduledDuringClose.Contains(&
aTransactionInfo))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!dbInfo.mTransactionsScheduledDuringClose
.Contains(&aTransactionInfo)))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("!dbInfo.mTransactionsScheduledDuringClose.Contains(&aTransactionInfo)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8240)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!dbInfo.mTransactionsScheduledDuringClose.Contains(&aTransactionInfo)"
")"); do { MOZ_CrashSequence(__null, 8240); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
8240 !dbInfo.mTransactionsScheduledDuringClose.Contains(&aTransactionInfo))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!dbInfo.mTransactionsScheduledDuringClose.Contains(&
aTransactionInfo))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!dbInfo.mTransactionsScheduledDuringClose
.Contains(&aTransactionInfo)))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("!dbInfo.mTransactionsScheduledDuringClose.Contains(&aTransactionInfo)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8240)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!dbInfo.mTransactionsScheduledDuringClose.Contains(&aTransactionInfo)"
")"); do { MOZ_CrashSequence(__null, 8240); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8241
8242 dbInfo.mTransactionsScheduledDuringClose.AppendElement(
8243 WrapNotNullUnchecked(&aTransactionInfo));
8244 return true;
8245 }
8246
8247 if (!dbInfo.mEventTarget) {
8248 dbInfo.mEventTarget = TaskQueue::Create(do_AddRef(mIOTarget), "IndexedDB");
8249 MOZ_ASSERT(dbInfo.mEventTarget)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(dbInfo.mEventTarget)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(dbInfo.mEventTarget))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("dbInfo.mEventTarget"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8249)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo.mEventTarget"
")"); do { MOZ_CrashSequence(__null, 8249); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8250 IDB_DEBUG_LOG(("ConnectionPool created task queue IndexedDB"));
8251 }
8252
8253 // The number of active operations equals the number of databases minus idle
8254 // databases. The maximum number of database operations which can make
8255 // progress at the same time is kMaxConnectionThreadCount. If we are at this
8256 // limit, all idle processing is interrupted to make room for user
8257 // transactions.
8258 if (mDatabases.Count() >=
8259 (mIdleDatabases.Length() + kMaxConnectionThreadCount) &&
8260 !mDatabasesPerformingIdleMaintenance.IsEmpty()) {
8261 const auto& busyDbs = mDatabasesPerformingIdleMaintenance;
8262 for (auto dbInfo = busyDbs.rbegin(); dbInfo != busyDbs.rend(); ++dbInfo) {
8263 (*dbInfo).mIdleConnectionRunnable->Interrupt();
8264 }
8265 }
8266
8267 if (aTransactionInfo.mIsWriteTransaction) {
8268 if (dbInfo.mRunningWriteTransaction) {
8269 // SQLite only allows one write transaction at a time so queue this
8270 // transaction for later.
8271 MOZ_ASSERT(do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!dbInfo.mScheduledWriteTransactions.Contains(&aTransactionInfo
))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!dbInfo.mScheduledWriteTransactions.Contains(&aTransactionInfo
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!dbInfo.mScheduledWriteTransactions.Contains(&aTransactionInfo)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8272)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!dbInfo.mScheduledWriteTransactions.Contains(&aTransactionInfo)"
")"); do { MOZ_CrashSequence(__null, 8272); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
8272 !dbInfo.mScheduledWriteTransactions.Contains(&aTransactionInfo))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!dbInfo.mScheduledWriteTransactions.Contains(&aTransactionInfo
))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!dbInfo.mScheduledWriteTransactions.Contains(&aTransactionInfo
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!dbInfo.mScheduledWriteTransactions.Contains(&aTransactionInfo)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8272)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!dbInfo.mScheduledWriteTransactions.Contains(&aTransactionInfo)"
")"); do { MOZ_CrashSequence(__null, 8272); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8273
8274 dbInfo.mScheduledWriteTransactions.AppendElement(
8275 WrapNotNullUnchecked(&aTransactionInfo));
8276 return true;
8277 }
8278
8279 dbInfo.mRunningWriteTransaction = SomeRef(aTransactionInfo);
8280 dbInfo.mNeedsCheckpoint = true;
8281 }
8282
8283 aTransactionInfo.SetRunning();
8284
8285 return true;
8286}
8287
8288void ConnectionPool::NoteFinishedTransaction(uint64_t aTransactionId) {
8289 AssertIsOnOwningThread();
8290
8291 AUTO_PROFILER_LABEL("ConnectionPool::NoteFinishedTransaction", DOM)mozilla::AutoProfilerLabel raiiObject8291( "ConnectionPool::NoteFinishedTransaction"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8292
8293 auto* const transactionInfo = mTransactions.Get(aTransactionId);
8294 MOZ_ASSERT(transactionInfo)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(transactionInfo)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(transactionInfo))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("transactionInfo"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8294)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "transactionInfo" ")"
); do { MOZ_CrashSequence(__null, 8294); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8295 MOZ_ASSERT(transactionInfo->mRunning)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(transactionInfo->mRunning)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(transactionInfo->mRunning
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"transactionInfo->mRunning", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8295); AnnotateMozCrashReason("MOZ_ASSERT" "(" "transactionInfo->mRunning"
")"); do { MOZ_CrashSequence(__null, 8295); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8296 MOZ_ASSERT(transactionInfo->mFinished)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(transactionInfo->mFinished)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(transactionInfo->mFinished
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"transactionInfo->mFinished", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8296); AnnotateMozCrashReason("MOZ_ASSERT" "(" "transactionInfo->mFinished"
")"); do { MOZ_CrashSequence(__null, 8296); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8297
8298 transactionInfo->mRunning = false;
8299
8300 DatabaseInfo& dbInfo = transactionInfo->mDatabaseInfo;
8301 MOZ_ASSERT(mDatabases.Get(transactionInfo->mDatabaseId) == &dbInfo)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDatabases.Get(transactionInfo->mDatabaseId) == &
dbInfo)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mDatabases.Get(transactionInfo->mDatabaseId) == &
dbInfo))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mDatabases.Get(transactionInfo->mDatabaseId) == &dbInfo"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8301)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabases.Get(transactionInfo->mDatabaseId) == &dbInfo"
")"); do { MOZ_CrashSequence(__null, 8301); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8302 MOZ_ASSERT(dbInfo.mEventTarget)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(dbInfo.mEventTarget)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(dbInfo.mEventTarget))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("dbInfo.mEventTarget"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8302)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo.mEventTarget"
")"); do { MOZ_CrashSequence(__null, 8302); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8303
8304 // Schedule the next write transaction if there are any queued.
8305 if (dbInfo.mRunningWriteTransaction &&
8306 dbInfo.mRunningWriteTransaction.refEquals(*transactionInfo)) {
8307 MOZ_ASSERT(transactionInfo->mIsWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(transactionInfo->mIsWriteTransaction)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(transactionInfo->mIsWriteTransaction))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("transactionInfo->mIsWriteTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8307)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "transactionInfo->mIsWriteTransaction"
")"); do { MOZ_CrashSequence(__null, 8307); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8308 MOZ_ASSERT(dbInfo.mNeedsCheckpoint)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(dbInfo.mNeedsCheckpoint)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(dbInfo.mNeedsCheckpoint))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("dbInfo.mNeedsCheckpoint"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8308)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo.mNeedsCheckpoint"
")"); do { MOZ_CrashSequence(__null, 8308); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8309
8310 dbInfo.mRunningWriteTransaction = Nothing();
8311
8312 if (!dbInfo.mScheduledWriteTransactions.IsEmpty()) {
8313 const auto nextWriteTransaction = dbInfo.mScheduledWriteTransactions[0];
8314
8315 dbInfo.mScheduledWriteTransactions.RemoveElementAt(0);
8316
8317 MOZ_ALWAYS_TRUE(ScheduleTransaction(*nextWriteTransaction,do { if ((__builtin_expect(!!(ScheduleTransaction(*nextWriteTransaction
, false)), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "ScheduleTransaction(*nextWriteTransaction, false)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8318); AnnotateMozCrashReason("MOZ_CRASH(" "ScheduleTransaction(*nextWriteTransaction, false)"
")"); do { MOZ_CrashSequence(__null, 8318); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
8318 /* aFromQueuedTransactions */ false))do { if ((__builtin_expect(!!(ScheduleTransaction(*nextWriteTransaction
, false)), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "ScheduleTransaction(*nextWriteTransaction, false)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8318); AnnotateMozCrashReason("MOZ_CRASH(" "ScheduleTransaction(*nextWriteTransaction, false)"
")"); do { MOZ_CrashSequence(__null, 8318); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
8319 }
8320 }
8321
8322 for (const auto& objectStoreName : transactionInfo->mObjectStoreNames) {
8323 TransactionInfoPair* blockInfo =
8324 dbInfo.mBlockingTransactions.Get(objectStoreName);
8325 MOZ_ASSERT(blockInfo)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(blockInfo)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(blockInfo))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("blockInfo", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8325); AnnotateMozCrashReason("MOZ_ASSERT" "(" "blockInfo" ")"
); do { MOZ_CrashSequence(__null, 8325); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8326
8327 if (transactionInfo->mIsWriteTransaction && blockInfo->mLastBlockingReads &&
8328 blockInfo->mLastBlockingReads.refEquals(*transactionInfo)) {
8329 blockInfo->mLastBlockingReads = Nothing();
8330 }
8331
8332 blockInfo->mLastBlockingWrites.RemoveElement(transactionInfo);
8333 }
8334
8335 transactionInfo->RemoveBlockingTransactions();
8336
8337 if (transactionInfo->mIsWriteTransaction) {
8338 MOZ_ASSERT(dbInfo.mWriteTransactionCount)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(dbInfo.mWriteTransactionCount)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(dbInfo.mWriteTransactionCount
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"dbInfo.mWriteTransactionCount", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8338); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo.mWriteTransactionCount"
")"); do { MOZ_CrashSequence(__null, 8338); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8339 dbInfo.mWriteTransactionCount--;
8340 } else {
8341 MOZ_ASSERT(dbInfo.mReadTransactionCount)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(dbInfo.mReadTransactionCount)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(dbInfo.mReadTransactionCount
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"dbInfo.mReadTransactionCount", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8341); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo.mReadTransactionCount"
")"); do { MOZ_CrashSequence(__null, 8341); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8342 dbInfo.mReadTransactionCount--;
8343 }
8344
8345 mTransactions.Remove(aTransactionId);
8346
8347 if (!dbInfo.TotalTransactionCount()) {
8348 MOZ_ASSERT(!dbInfo.mIdle)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!dbInfo.mIdle)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!dbInfo.mIdle))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("!dbInfo.mIdle",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8348);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "!dbInfo.mIdle" ")")
; do { MOZ_CrashSequence(__null, 8348); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8349 dbInfo.mIdle = true;
8350
8351 NoteIdleDatabase(dbInfo);
8352 }
8353}
8354
8355void ConnectionPool::ScheduleQueuedTransactions() {
8356 AssertIsOnOwningThread();
8357 MOZ_ASSERT(!mQueuedTransactions.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mQueuedTransactions.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mQueuedTransactions.IsEmpty
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!mQueuedTransactions.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8357); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mQueuedTransactions.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 8357); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8358
8359 AUTO_PROFILER_LABEL("ConnectionPool::ScheduleQueuedTransactions", DOM)mozilla::AutoProfilerLabel raiiObject8359( "ConnectionPool::ScheduleQueuedTransactions"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8360
8361 const auto foundIt = std::find_if(
8362 mQueuedTransactions.begin(), mQueuedTransactions.end(),
8363 [&me = *this](const auto& queuedTransaction) {
8364 return !me.ScheduleTransaction(*queuedTransaction,
8365 /* aFromQueuedTransactions */ true);
8366 });
8367
8368 mQueuedTransactions.RemoveElementsRange(mQueuedTransactions.begin(), foundIt);
8369
8370 AdjustIdleTimer();
8371}
8372
8373void ConnectionPool::NoteIdleDatabase(DatabaseInfo& aDatabaseInfo) {
8374 AssertIsOnOwningThread();
8375 MOZ_ASSERT(!aDatabaseInfo.TotalTransactionCount())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aDatabaseInfo.TotalTransactionCount())>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(!aDatabaseInfo.TotalTransactionCount()))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!aDatabaseInfo.TotalTransactionCount()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8375)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseInfo.TotalTransactionCount()"
")"); do { MOZ_CrashSequence(__null, 8375); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8376 MOZ_ASSERT(aDatabaseInfo.mEventTarget)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDatabaseInfo.mEventTarget)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDatabaseInfo.mEventTarget))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDatabaseInfo.mEventTarget"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8376)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseInfo.mEventTarget"
")"); do { MOZ_CrashSequence(__null, 8376); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8377 MOZ_ASSERT(!mIdleDatabases.Contains(&aDatabaseInfo))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mIdleDatabases.Contains(&aDatabaseInfo))>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(!mIdleDatabases.Contains(&aDatabaseInfo)))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!mIdleDatabases.Contains(&aDatabaseInfo)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8377)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mIdleDatabases.Contains(&aDatabaseInfo)"
")"); do { MOZ_CrashSequence(__null, 8377); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8378
8379 AUTO_PROFILER_LABEL("ConnectionPool::NoteIdleDatabase", DOM)mozilla::AutoProfilerLabel raiiObject8379( "ConnectionPool::NoteIdleDatabase"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8380
8381 const bool otherDatabasesWaiting = !mQueuedTransactions.IsEmpty();
8382
8383 // We check mShutdownRequested because when it is true, mIdleTimer is null.
8384 if (mShutdownRequested || otherDatabasesWaiting ||
8385 aDatabaseInfo.mCloseOnIdle) {
8386 // Make sure we close the connection if we're shutting down or giving the
8387 // thread to another database.
8388 CloseDatabase(aDatabaseInfo);
8389
8390 if (otherDatabasesWaiting) {
8391 ScheduleQueuedTransactions();
8392 }
8393
8394 return;
8395 }
8396
8397 mIdleDatabases.InsertElementSorted(IdleDatabaseInfo{aDatabaseInfo});
8398
8399 AdjustIdleTimer();
8400}
8401
8402void ConnectionPool::NoteClosedDatabase(DatabaseInfo& aDatabaseInfo) {
8403 AssertIsOnOwningThread();
8404 MOZ_ASSERT(aDatabaseInfo.mClosing)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDatabaseInfo.mClosing)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDatabaseInfo.mClosing))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("aDatabaseInfo.mClosing"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8404)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseInfo.mClosing"
")"); do { MOZ_CrashSequence(__null, 8404); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8405 MOZ_ASSERT(!mIdleDatabases.Contains(&aDatabaseInfo))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mIdleDatabases.Contains(&aDatabaseInfo))>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(!mIdleDatabases.Contains(&aDatabaseInfo)))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!mIdleDatabases.Contains(&aDatabaseInfo)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8405)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mIdleDatabases.Contains(&aDatabaseInfo)"
")"); do { MOZ_CrashSequence(__null, 8405); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8406
8407 AUTO_PROFILER_LABEL("ConnectionPool::NoteClosedDatabase", DOM)mozilla::AutoProfilerLabel raiiObject8407( "ConnectionPool::NoteClosedDatabase"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8408
8409 aDatabaseInfo.mClosing = false;
8410
8411 // Schedule any transactions that were started while we were closing the
8412 // connection.
8413 if (!mQueuedTransactions.IsEmpty()) {
8414 ScheduleQueuedTransactions();
8415 } else if (!aDatabaseInfo.TotalTransactionCount() && !mShutdownRequested) {
8416 AdjustIdleTimer();
8417 }
8418
8419 // Schedule any transactions that were started while we were closing the
8420 // connection.
8421 if (aDatabaseInfo.TotalTransactionCount()) {
8422 auto& scheduledTransactions =
8423 aDatabaseInfo.mTransactionsScheduledDuringClose;
8424
8425 MOZ_ASSERT(!scheduledTransactions.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!scheduledTransactions.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!scheduledTransactions.IsEmpty
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!scheduledTransactions.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8425); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!scheduledTransactions.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 8425); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8426
8427 for (const auto& scheduledTransaction : scheduledTransactions) {
8428 (void)ScheduleTransaction(*scheduledTransaction,
8429 /* aFromQueuedTransactions */ false);
8430 }
8431
8432 scheduledTransactions.Clear();
8433
8434 return;
8435 }
8436
8437 // There are no more transactions and the connection has been closed. We're
8438 // done with this database.
8439 {
8440 MutexAutoLock lock(mDatabasesMutex);
8441
8442 mDatabases.Remove(aDatabaseInfo.mDatabaseId);
8443 }
8444
8445 // That just deleted |aDatabaseInfo|, we must not access that below.
8446
8447 // See if we need to fire any complete callbacks now that the database is
8448 // finished.
8449 mCompleteCallbacks.RemoveLastElements(
8450 mCompleteCallbacks.end() -
8451 std::remove_if(mCompleteCallbacks.begin(), mCompleteCallbacks.end(),
8452 [&me = *this](const auto& completeCallback) {
8453 return me.MaybeFireCallback(completeCallback.get());
8454 }));
8455
8456 // If that was the last database and we're supposed to be shutting down then
8457 // we are finished.
8458 if (mShutdownRequested && !mDatabases.Count()) {
8459 MOZ_ASSERT(!mTransactions.Count())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mTransactions.Count())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mTransactions.Count()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!mTransactions.Count()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8459)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransactions.Count()"
")"); do { MOZ_CrashSequence(__null, 8459); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8460 Cleanup();
8461 }
8462}
8463
8464bool ConnectionPool::MaybeFireCallback(DatabaseCompleteCallback* aCallback) {
8465 AssertIsOnOwningThread();
8466 MOZ_ASSERT(aCallback)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aCallback)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aCallback))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aCallback", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8466); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aCallback" ")"
); do { MOZ_CrashSequence(__null, 8466); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8467 MOZ_ASSERT(!aCallback->mDatabaseId.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aCallback->mDatabaseId.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!aCallback->mDatabaseId.IsEmpty
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!aCallback->mDatabaseId.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8467); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aCallback->mDatabaseId.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 8467); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8468 MOZ_ASSERT(aCallback->mCallback)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aCallback->mCallback)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aCallback->mCallback))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("aCallback->mCallback"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8468)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aCallback->mCallback"
")"); do { MOZ_CrashSequence(__null, 8468); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8469
8470 AUTO_PROFILER_LABEL("ConnectionPool::MaybeFireCallback", DOM)mozilla::AutoProfilerLabel raiiObject8470( "ConnectionPool::MaybeFireCallback"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8471
8472 if (mDatabases.Get(aCallback->mDatabaseId)) {
8473 return false;
8474 }
8475
8476 (void)aCallback->mCallback->Run();
8477 return true;
8478}
8479
8480void ConnectionPool::PerformIdleDatabaseMaintenance(
8481 DatabaseInfo& aDatabaseInfo) {
8482 AssertIsOnOwningThread();
8483 MOZ_ASSERT(!aDatabaseInfo.TotalTransactionCount())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aDatabaseInfo.TotalTransactionCount())>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(!aDatabaseInfo.TotalTransactionCount()))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!aDatabaseInfo.TotalTransactionCount()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8483)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseInfo.TotalTransactionCount()"
")"); do { MOZ_CrashSequence(__null, 8483); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8484 MOZ_ASSERT(aDatabaseInfo.mEventTarget)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDatabaseInfo.mEventTarget)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDatabaseInfo.mEventTarget))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDatabaseInfo.mEventTarget"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8484)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseInfo.mEventTarget"
")"); do { MOZ_CrashSequence(__null, 8484); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8485 MOZ_ASSERT(aDatabaseInfo.mIdle)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDatabaseInfo.mIdle)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDatabaseInfo.mIdle))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("aDatabaseInfo.mIdle"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8485)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseInfo.mIdle"
")"); do { MOZ_CrashSequence(__null, 8485); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8486 MOZ_ASSERT(!aDatabaseInfo.mCloseOnIdle)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aDatabaseInfo.mCloseOnIdle)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!aDatabaseInfo.mCloseOnIdle)
)), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!aDatabaseInfo.mCloseOnIdle"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8486)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseInfo.mCloseOnIdle"
")"); do { MOZ_CrashSequence(__null, 8486); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8487 MOZ_ASSERT(!aDatabaseInfo.mClosing)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aDatabaseInfo.mClosing)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!aDatabaseInfo.mClosing))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!aDatabaseInfo.mClosing"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8487)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseInfo.mClosing"
")"); do { MOZ_CrashSequence(__null, 8487); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8488 MOZ_ASSERT(mIdleDatabases.Contains(&aDatabaseInfo))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mIdleDatabases.Contains(&aDatabaseInfo))>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mIdleDatabases.Contains(&aDatabaseInfo)))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mIdleDatabases.Contains(&aDatabaseInfo)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8488)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mIdleDatabases.Contains(&aDatabaseInfo)"
")"); do { MOZ_CrashSequence(__null, 8488); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8489 MOZ_ASSERT(!mDatabasesPerformingIdleMaintenance.Contains(&aDatabaseInfo))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDatabasesPerformingIdleMaintenance.Contains(&aDatabaseInfo
))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!mDatabasesPerformingIdleMaintenance.Contains(&aDatabaseInfo
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!mDatabasesPerformingIdleMaintenance.Contains(&aDatabaseInfo)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8489)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabasesPerformingIdleMaintenance.Contains(&aDatabaseInfo)"
")"); do { MOZ_CrashSequence(__null, 8489); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8490
8491 const bool neededCheckpoint = aDatabaseInfo.mNeedsCheckpoint;
8492
8493 aDatabaseInfo.mNeedsCheckpoint = false;
8494 aDatabaseInfo.mIdle = false;
8495
8496 auto idleConnectionRunnable =
8497 MakeRefPtr<IdleConnectionRunnable>(aDatabaseInfo, neededCheckpoint);
8498
8499 mDatabasesPerformingIdleMaintenance.AppendElement(
8500 PerformingIdleMaintenanceDatabaseInfo{aDatabaseInfo,
8501 idleConnectionRunnable});
8502
8503 MOZ_ALWAYS_SUCCEEDS(aDatabaseInfo.mEventTarget->Dispatch(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(aDatabaseInfo.mEventTarget->Dispatch( idleConnectionRunnable
.forget(), nsIEventTarget::DISPATCH_NORMAL))), 1)))), 1))) { }
else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(aDatabaseInfo.mEventTarget->Dispatch( idleConnectionRunnable.forget(), nsIEventTarget::DISPATCH_NORMAL))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8504)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aDatabaseInfo.mEventTarget->Dispatch( idleConnectionRunnable.forget(), nsIEventTarget::DISPATCH_NORMAL))"
")"); do { MOZ_CrashSequence(__null, 8504); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
8504 idleConnectionRunnable.forget(), NS_DISPATCH_NORMAL))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(aDatabaseInfo.mEventTarget->Dispatch( idleConnectionRunnable
.forget(), nsIEventTarget::DISPATCH_NORMAL))), 1)))), 1))) { }
else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(aDatabaseInfo.mEventTarget->Dispatch( idleConnectionRunnable.forget(), nsIEventTarget::DISPATCH_NORMAL))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8504)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aDatabaseInfo.mEventTarget->Dispatch( idleConnectionRunnable.forget(), nsIEventTarget::DISPATCH_NORMAL))"
")"); do { MOZ_CrashSequence(__null, 8504); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
8505}
8506
8507void ConnectionPool::CloseDatabase(DatabaseInfo& aDatabaseInfo) const {
8508 AssertIsOnOwningThread();
8509 MOZ_DIAGNOSTIC_ASSERT(!aDatabaseInfo.TotalTransactionCount())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aDatabaseInfo.TotalTransactionCount())>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(!aDatabaseInfo.TotalTransactionCount()))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!aDatabaseInfo.TotalTransactionCount()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8509)
; AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "!aDatabaseInfo.TotalTransactionCount()"
")"); do { MOZ_CrashSequence(__null, 8509); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8510 MOZ_ASSERT(aDatabaseInfo.mEventTarget)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDatabaseInfo.mEventTarget)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDatabaseInfo.mEventTarget))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDatabaseInfo.mEventTarget"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8510)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseInfo.mEventTarget"
")"); do { MOZ_CrashSequence(__null, 8510); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8511 MOZ_ASSERT(!aDatabaseInfo.mClosing)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aDatabaseInfo.mClosing)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!aDatabaseInfo.mClosing))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!aDatabaseInfo.mClosing"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8511)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseInfo.mClosing"
")"); do { MOZ_CrashSequence(__null, 8511); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8512
8513 aDatabaseInfo.mIdle = false;
8514 aDatabaseInfo.mNeedsCheckpoint = false;
8515 aDatabaseInfo.mClosing = true;
8516
8517 MOZ_ALWAYS_SUCCEEDS(aDatabaseInfo.Dispatch(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(aDatabaseInfo.Dispatch( MakeAndAddRef<CloseConnectionRunnable
>(aDatabaseInfo)))), 1)))), 1))) { } else { do { do { } while
(false); MOZ_ReportCrash("" "NS_SUCCEEDED(aDatabaseInfo.Dispatch( MakeAndAddRef<CloseConnectionRunnable>(aDatabaseInfo)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8518)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aDatabaseInfo.Dispatch( MakeAndAddRef<CloseConnectionRunnable>(aDatabaseInfo)))"
")"); do { MOZ_CrashSequence(__null, 8518); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
8518 MakeAndAddRef<CloseConnectionRunnable>(aDatabaseInfo)))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(aDatabaseInfo.Dispatch( MakeAndAddRef<CloseConnectionRunnable
>(aDatabaseInfo)))), 1)))), 1))) { } else { do { do { } while
(false); MOZ_ReportCrash("" "NS_SUCCEEDED(aDatabaseInfo.Dispatch( MakeAndAddRef<CloseConnectionRunnable>(aDatabaseInfo)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8518)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aDatabaseInfo.Dispatch( MakeAndAddRef<CloseConnectionRunnable>(aDatabaseInfo)))"
")"); do { MOZ_CrashSequence(__null, 8518); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
8519}
8520
8521bool ConnectionPool::CloseDatabaseWhenIdleInternal(
8522 const nsACString& aDatabaseId) {
8523 AssertIsOnOwningThread();
8524 MOZ_ASSERT(!aDatabaseId.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aDatabaseId.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!aDatabaseId.IsEmpty()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!aDatabaseId.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8524)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseId.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 8524); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8525
8526 AUTO_PROFILER_LABEL("ConnectionPool::CloseDatabaseWhenIdleInternal", DOM)mozilla::AutoProfilerLabel raiiObject8526( "ConnectionPool::CloseDatabaseWhenIdleInternal"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8527
8528 if (DatabaseInfo* dbInfo = mDatabases.Get(aDatabaseId)) {
8529 if (mIdleDatabases.RemoveElement(dbInfo) ||
8530 mDatabasesPerformingIdleMaintenance.RemoveElement(dbInfo)) {
8531 CloseDatabase(*dbInfo);
8532 AdjustIdleTimer();
8533 } else {
8534 dbInfo->mCloseOnIdle.EnsureFlipped();
8535 }
8536
8537 return true;
8538 }
8539
8540 return false;
8541}
8542
8543ConnectionPool::ConnectionRunnable::ConnectionRunnable(
8544 DatabaseInfo& aDatabaseInfo)
8545 : Runnable("dom::indexedDB::ConnectionPool::ConnectionRunnable"),
8546 mDatabaseInfo(aDatabaseInfo),
8547 mOwningEventTarget(GetCurrentSerialEventTarget()) {
8548 AssertIsOnBackgroundThread();
8549 MOZ_ASSERT(aDatabaseInfo.mConnectionPool)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDatabaseInfo.mConnectionPool)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDatabaseInfo.mConnectionPool
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"aDatabaseInfo.mConnectionPool", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8549); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseInfo.mConnectionPool"
")"); do { MOZ_CrashSequence(__null, 8549); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8550 aDatabaseInfo.mConnectionPool->AssertIsOnOwningThread();
8551 MOZ_ASSERT(mOwningEventTarget)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mOwningEventTarget)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOwningEventTarget))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("mOwningEventTarget"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8551)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOwningEventTarget"
")"); do { MOZ_CrashSequence(__null, 8551); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8552}
8553
8554NS_IMETHODIMPnsresult
8555ConnectionPool::IdleConnectionRunnable::Run() {
8556 MOZ_ASSERT(!mDatabaseInfo.mIdle)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDatabaseInfo.mIdle)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDatabaseInfo.mIdle))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("!mDatabaseInfo.mIdle"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8556)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabaseInfo.mIdle"
")"); do { MOZ_CrashSequence(__null, 8556); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8557
8558 const nsCOMPtr<nsIEventTarget> owningThread = std::move(mOwningEventTarget);
8559
8560 if (owningThread) {
8561 mDatabaseInfo.AssertIsOnConnectionThread();
8562
8563 // The connection could be null if EnsureConnection() didn't run or was not
8564 // successful in TransactionDatabaseOperationBase::RunOnConnectionThread().
8565 if (mDatabaseInfo.mConnection) {
8566 mDatabaseInfo.mConnection->DoIdleProcessing(mNeedsCheckpoint,
8567 mInterrupted);
8568 }
8569
8570 MOZ_ALWAYS_SUCCEEDS(owningThread->Dispatch(this, NS_DISPATCH_NORMAL))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(owningThread->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL
))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(owningThread->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8570)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(owningThread->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { MOZ_CrashSequence(__null, 8570); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
8571 return NS_OK;
8572 }
8573
8574 AssertIsOnBackgroundThread();
8575
8576 RefPtr<ConnectionPool> connectionPool = mDatabaseInfo.mConnectionPool;
8577 MOZ_ASSERT(connectionPool)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(connectionPool)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(connectionPool))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("connectionPool"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8577)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "connectionPool" ")"
); do { MOZ_CrashSequence(__null, 8577); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8578
8579 if (mDatabaseInfo.mClosing || mDatabaseInfo.TotalTransactionCount()) {
8580 MOZ_ASSERT(!connectionPool->mDatabasesPerformingIdleMaintenance.Contains(do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!connectionPool->mDatabasesPerformingIdleMaintenance
.Contains( &mDatabaseInfo))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!connectionPool->mDatabasesPerformingIdleMaintenance
.Contains( &mDatabaseInfo)))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("!connectionPool->mDatabasesPerformingIdleMaintenance.Contains( &mDatabaseInfo)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8581)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!connectionPool->mDatabasesPerformingIdleMaintenance.Contains( &mDatabaseInfo)"
")"); do { MOZ_CrashSequence(__null, 8581); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
8581 &mDatabaseInfo))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!connectionPool->mDatabasesPerformingIdleMaintenance
.Contains( &mDatabaseInfo))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!connectionPool->mDatabasesPerformingIdleMaintenance
.Contains( &mDatabaseInfo)))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("!connectionPool->mDatabasesPerformingIdleMaintenance.Contains( &mDatabaseInfo)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8581)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!connectionPool->mDatabasesPerformingIdleMaintenance.Contains( &mDatabaseInfo)"
")"); do { MOZ_CrashSequence(__null, 8581); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8582 } else {
8583 MOZ_ALWAYS_TRUE(do { if ((__builtin_expect(!!(connectionPool->mDatabasesPerformingIdleMaintenance
.RemoveElement( &mDatabaseInfo)), 1))) { } else { do { do
{ } while (false); MOZ_ReportCrash("" "connectionPool->mDatabasesPerformingIdleMaintenance.RemoveElement( &mDatabaseInfo)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8585)
; AnnotateMozCrashReason("MOZ_CRASH(" "connectionPool->mDatabasesPerformingIdleMaintenance.RemoveElement( &mDatabaseInfo)"
")"); do { MOZ_CrashSequence(__null, 8585); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
8584 connectionPool->mDatabasesPerformingIdleMaintenance.RemoveElement(do { if ((__builtin_expect(!!(connectionPool->mDatabasesPerformingIdleMaintenance
.RemoveElement( &mDatabaseInfo)), 1))) { } else { do { do
{ } while (false); MOZ_ReportCrash("" "connectionPool->mDatabasesPerformingIdleMaintenance.RemoveElement( &mDatabaseInfo)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8585)
; AnnotateMozCrashReason("MOZ_CRASH(" "connectionPool->mDatabasesPerformingIdleMaintenance.RemoveElement( &mDatabaseInfo)"
")"); do { MOZ_CrashSequence(__null, 8585); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
8585 &mDatabaseInfo))do { if ((__builtin_expect(!!(connectionPool->mDatabasesPerformingIdleMaintenance
.RemoveElement( &mDatabaseInfo)), 1))) { } else { do { do
{ } while (false); MOZ_ReportCrash("" "connectionPool->mDatabasesPerformingIdleMaintenance.RemoveElement( &mDatabaseInfo)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8585)
; AnnotateMozCrashReason("MOZ_CRASH(" "connectionPool->mDatabasesPerformingIdleMaintenance.RemoveElement( &mDatabaseInfo)"
")"); do { MOZ_CrashSequence(__null, 8585); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
8586
8587 connectionPool->NoteIdleDatabase(mDatabaseInfo);
8588 }
8589
8590 return NS_OK;
8591}
8592
8593NS_IMETHODIMPnsresult
8594ConnectionPool::CloseConnectionRunnable::Run() {
8595 AUTO_PROFILER_LABEL("ConnectionPool::CloseConnectionRunnable::Run", DOM)mozilla::AutoProfilerLabel raiiObject8595( "ConnectionPool::CloseConnectionRunnable::Run"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8596
8597 if (mOwningEventTarget) {
8598 MOZ_ASSERT(mDatabaseInfo.mClosing)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDatabaseInfo.mClosing)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDatabaseInfo.mClosing))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("mDatabaseInfo.mClosing"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8598)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabaseInfo.mClosing"
")"); do { MOZ_CrashSequence(__null, 8598); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8599
8600 const nsCOMPtr<nsIEventTarget> owningThread = std::move(mOwningEventTarget);
8601
8602 // The connection could be null if EnsureConnection() didn't run or was not
8603 // successful in TransactionDatabaseOperationBase::RunOnConnectionThread().
8604 if (mDatabaseInfo.mConnection) {
8605 mDatabaseInfo.AssertIsOnConnectionThread();
8606
8607 mDatabaseInfo.mConnection->Close();
8608
8609 IDB_DEBUG_LOG(("ConnectionPool closed connection 0x%p",
8610 mDatabaseInfo.mConnection.get()));
8611
8612 mDatabaseInfo.mConnection = nullptr;
8613
8614#ifdef DEBUG1
8615 mDatabaseInfo.mDEBUGConnectionEventTarget = nullptr;
8616#endif
8617 }
8618
8619 MOZ_ALWAYS_SUCCEEDS(owningThread->Dispatch(this, NS_DISPATCH_NORMAL))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(owningThread->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL
))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(owningThread->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8619)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(owningThread->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { MOZ_CrashSequence(__null, 8619); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
8620 return NS_OK;
8621 }
8622
8623 RefPtr<ConnectionPool> connectionPool = mDatabaseInfo.mConnectionPool;
8624 MOZ_ASSERT(connectionPool)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(connectionPool)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(connectionPool))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("connectionPool"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8624)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "connectionPool" ")"
); do { MOZ_CrashSequence(__null, 8624); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8625
8626 connectionPool->NoteClosedDatabase(mDatabaseInfo);
8627 return NS_OK;
8628}
8629
8630ConnectionPool::DatabaseInfo::DatabaseInfo(ConnectionPool* aConnectionPool,
8631 const nsACString& aDatabaseId)
8632 : mConnectionPool(aConnectionPool),
8633 mDatabaseId(aDatabaseId),
8634 mReadTransactionCount(0),
8635 mWriteTransactionCount(0),
8636 mNeedsCheckpoint(false),
8637 mIdle(false),
8638 mClosing(false)
8639#ifdef DEBUG1
8640 ,
8641 mDEBUGConnectionEventTarget(nullptr)
8642#endif
8643{
8644 AssertIsOnBackgroundThread();
8645 MOZ_ASSERT(aConnectionPool)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnectionPool)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnectionPool))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("aConnectionPool"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8645)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnectionPool" ")"
); do { MOZ_CrashSequence(__null, 8645); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8646 aConnectionPool->AssertIsOnOwningThread();
8647 MOZ_ASSERT(!aDatabaseId.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aDatabaseId.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!aDatabaseId.IsEmpty()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!aDatabaseId.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8647)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseId.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 8647); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8648
8649 MOZ_COUNT_CTOR(ConnectionPool::DatabaseInfo)do { static_assert(std::is_class_v<ConnectionPool::DatabaseInfo
>, "Token '" "ConnectionPool::DatabaseInfo" "' is not a class type."
); static_assert(!std::is_base_of_v<nsISupports, ConnectionPool
::DatabaseInfo>, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ConnectionPool::DatabaseInfo"
, sizeof(*this)); } while (0)
;
8650}
8651
8652ConnectionPool::DatabaseInfo::~DatabaseInfo() {
8653 AssertIsOnBackgroundThread();
8654 MOZ_ASSERT(!mConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mConnection))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("!mConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8654); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mConnection"
")"); do { MOZ_CrashSequence(__null, 8654); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8655 MOZ_ASSERT(mScheduledWriteTransactions.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mScheduledWriteTransactions.IsEmpty())>::isValid,
"invalid assertion condition"); if ((__builtin_expect(!!(!(!
!(mScheduledWriteTransactions.IsEmpty()))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mScheduledWriteTransactions.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8655)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mScheduledWriteTransactions.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 8655); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8656 MOZ_ASSERT(!mRunningWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mRunningWriteTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mRunningWriteTransaction)))
, 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mRunningWriteTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8656)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mRunningWriteTransaction"
")"); do { MOZ_CrashSequence(__null, 8656); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8657 MOZ_ASSERT(!TotalTransactionCount())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!TotalTransactionCount())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!TotalTransactionCount()))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("!TotalTransactionCount()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8657)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!TotalTransactionCount()"
")"); do { MOZ_CrashSequence(__null, 8657); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8658
8659 MOZ_COUNT_DTOR(ConnectionPool::DatabaseInfo)do { static_assert(std::is_class_v<ConnectionPool::DatabaseInfo
>, "Token '" "ConnectionPool::DatabaseInfo" "' is not a class type."
); static_assert(!std::is_base_of_v<nsISupports, ConnectionPool
::DatabaseInfo>, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "ConnectionPool::DatabaseInfo"
, sizeof(*this)); } while (0)
;
8660}
8661
8662nsresult ConnectionPool::DatabaseInfo::Dispatch(
8663 already_AddRefed<nsIRunnable> aRunnable) {
8664 nsCOMPtr<nsIRunnable> runnable = aRunnable;
8665
8666#ifdef DEBUG1
8667 if (kDEBUGTransactionThreadSleepMS) {
8668 runnable = MakeRefPtr<TransactionRunnable>(std::move(runnable));
8669 }
8670#endif
8671
8672 return mEventTarget->Dispatch(runnable.forget(), NS_DISPATCH_NORMALnsIEventTarget::DISPATCH_NORMAL);
8673}
8674
8675ConnectionPool::DatabaseCompleteCallback::DatabaseCompleteCallback(
8676 const nsCString& aDatabaseId, nsIRunnable* aCallback)
8677 : mDatabaseId(aDatabaseId), mCallback(aCallback) {
8678 AssertIsOnBackgroundThread();
8679 MOZ_ASSERT(!mDatabaseId.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDatabaseId.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDatabaseId.IsEmpty()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!mDatabaseId.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8679)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabaseId.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 8679); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8680 MOZ_ASSERT(aCallback)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aCallback)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aCallback))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aCallback", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8680); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aCallback" ")"
); do { MOZ_CrashSequence(__null, 8680); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8681
8682 MOZ_COUNT_CTOR(ConnectionPool::DatabaseCompleteCallback)do { static_assert(std::is_class_v<ConnectionPool::DatabaseCompleteCallback
>, "Token '" "ConnectionPool::DatabaseCompleteCallback" "' is not a class type."
); static_assert(!std::is_base_of_v<nsISupports, ConnectionPool
::DatabaseCompleteCallback>, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ConnectionPool::DatabaseCompleteCallback"
, sizeof(*this)); } while (0)
;
8683}
8684
8685ConnectionPool::DatabaseCompleteCallback::~DatabaseCompleteCallback() {
8686 AssertIsOnBackgroundThread();
8687
8688 MOZ_COUNT_DTOR(ConnectionPool::DatabaseCompleteCallback)do { static_assert(std::is_class_v<ConnectionPool::DatabaseCompleteCallback
>, "Token '" "ConnectionPool::DatabaseCompleteCallback" "' is not a class type."
); static_assert(!std::is_base_of_v<nsISupports, ConnectionPool
::DatabaseCompleteCallback>, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "ConnectionPool::DatabaseCompleteCallback"
, sizeof(*this)); } while (0)
;
8689}
8690
8691ConnectionPool::FinishCallbackWrapper::FinishCallbackWrapper(
8692 ConnectionPool* aConnectionPool, uint64_t aTransactionId,
8693 FinishCallback* aCallback)
8694 : Runnable("dom::indexedDB::ConnectionPool::FinishCallbackWrapper"),
8695 mConnectionPool(aConnectionPool),
8696 mCallback(aCallback),
8697 mOwningEventTarget(GetCurrentSerialEventTarget()),
8698 mTransactionId(aTransactionId),
8699 mHasRunOnce(false) {
8700 AssertIsOnBackgroundThread();
8701 MOZ_ASSERT(aConnectionPool)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnectionPool)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnectionPool))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("aConnectionPool"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8701)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnectionPool" ")"
); do { MOZ_CrashSequence(__null, 8701); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8702 MOZ_ASSERT(aCallback)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aCallback)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aCallback))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aCallback", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8702); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aCallback" ")"
); do { MOZ_CrashSequence(__null, 8702); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8703 MOZ_ASSERT(mOwningEventTarget)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mOwningEventTarget)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOwningEventTarget))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("mOwningEventTarget"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8703)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOwningEventTarget"
")"); do { MOZ_CrashSequence(__null, 8703); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8704}
8705
8706ConnectionPool::FinishCallbackWrapper::~FinishCallbackWrapper() {
8707 MOZ_ASSERT(!mConnectionPool)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mConnectionPool)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mConnectionPool))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!mConnectionPool"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8707)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mConnectionPool" ")"
); do { MOZ_CrashSequence(__null, 8707); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8708 MOZ_ASSERT(!mCallback)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mCallback)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mCallback))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("!mCallback", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8708); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCallback"
")"); do { MOZ_CrashSequence(__null, 8708); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8709}
8710
8711nsresult ConnectionPool::FinishCallbackWrapper::Run() {
8712 MOZ_ASSERT(mConnectionPool)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mConnectionPool)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mConnectionPool))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mConnectionPool"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8712)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnectionPool" ")"
); do { MOZ_CrashSequence(__null, 8712); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8713 MOZ_ASSERT(mCallback)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mCallback)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mCallback))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mCallback", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8713); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCallback" ")"
); do { MOZ_CrashSequence(__null, 8713); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8714 MOZ_ASSERT(mOwningEventTarget)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mOwningEventTarget)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOwningEventTarget))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("mOwningEventTarget"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8714)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOwningEventTarget"
")"); do { MOZ_CrashSequence(__null, 8714); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8715
8716 AUTO_PROFILER_LABEL("ConnectionPool::FinishCallbackWrapper::Run", DOM)mozilla::AutoProfilerLabel raiiObject8716( "ConnectionPool::FinishCallbackWrapper::Run"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8717
8718 if (!mHasRunOnce) {
8719 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8719)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 8719); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8720
8721 mHasRunOnce = true;
8722
8723 (void)mCallback->Run();
8724
8725 MOZ_ALWAYS_SUCCEEDS(mOwningEventTarget->Dispatch(this, NS_DISPATCH_NORMAL))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL
))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8725)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { MOZ_CrashSequence(__null, 8725); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
8726
8727 return NS_OK;
8728 }
8729
8730 mConnectionPool->AssertIsOnOwningThread();
8731 MOZ_ASSERT(mHasRunOnce)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mHasRunOnce)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mHasRunOnce))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mHasRunOnce", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8731); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mHasRunOnce"
")"); do { MOZ_CrashSequence(__null, 8731); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8732
8733 RefPtr<ConnectionPool> connectionPool = std::move(mConnectionPool);
8734
8735 connectionPool->FinishOp(mTransactionId);
8736
8737 RefPtr<FinishCallback> callback = std::move(mCallback);
8738
8739 callback->TransactionFinishedBeforeUnblock();
8740
8741 connectionPool->NoteFinishedTransaction(mTransactionId);
8742
8743 callback->TransactionFinishedAfterUnblock();
8744
8745 return NS_OK;
8746}
8747
8748#ifdef DEBUG1
8749
8750ConnectionPool::TransactionRunnable::TransactionRunnable(
8751 nsCOMPtr<nsIRunnable> aRunnable)
8752 : Runnable("dom::indexedDB::ConnectionPool::TransactionRunnable"),
8753 mRunnable(std::move(aRunnable)) {
8754 AssertIsOnBackgroundThread();
8755 MOZ_ASSERT(kDEBUGTransactionThreadSleepMS)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(kDEBUGTransactionThreadSleepMS)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(kDEBUGTransactionThreadSleepMS
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"kDEBUGTransactionThreadSleepMS", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8755); AnnotateMozCrashReason("MOZ_ASSERT" "(" "kDEBUGTransactionThreadSleepMS"
")"); do { MOZ_CrashSequence(__null, 8755); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8756}
8757
8758nsresult ConnectionPool::TransactionRunnable::Run() {
8759 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8759)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 8759); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8760
8761 QM_TRY(MOZ_TO_RESULT(mRunnable->Run())){auto tryResult1020 = (ToResult(mRunnable->Run())); static_assert
(std::is_empty_v<typename decltype(tryResult1020)::ok_type
>); if ((__builtin_expect(!!(tryResult1020.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(mRunnable->Run())"
, tryResult1020.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8761, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); }}
;
8762
8763 MOZ_ALWAYS_TRUE(PR_Sleep(PR_MillisecondsToInterval(do { if ((__builtin_expect(!!(PR_Sleep(PR_MillisecondsToInterval
( kDEBUGTransactionThreadSleepMS)) == PR_SUCCESS), 1))) { } else
{ do { do { } while (false); MOZ_ReportCrash("" "PR_Sleep(PR_MillisecondsToInterval( kDEBUGTransactionThreadSleepMS)) == PR_SUCCESS"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8764)
; AnnotateMozCrashReason("MOZ_CRASH(" "PR_Sleep(PR_MillisecondsToInterval( kDEBUGTransactionThreadSleepMS)) == PR_SUCCESS"
")"); do { MOZ_CrashSequence(__null, 8764); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
8764 kDEBUGTransactionThreadSleepMS)) == PR_SUCCESS)do { if ((__builtin_expect(!!(PR_Sleep(PR_MillisecondsToInterval
( kDEBUGTransactionThreadSleepMS)) == PR_SUCCESS), 1))) { } else
{ do { do { } while (false); MOZ_ReportCrash("" "PR_Sleep(PR_MillisecondsToInterval( kDEBUGTransactionThreadSleepMS)) == PR_SUCCESS"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8764)
; AnnotateMozCrashReason("MOZ_CRASH(" "PR_Sleep(PR_MillisecondsToInterval( kDEBUGTransactionThreadSleepMS)) == PR_SUCCESS"
")"); do { MOZ_CrashSequence(__null, 8764); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
8765
8766 return NS_OK;
8767}
8768
8769#endif
8770
8771ConnectionPool::IdleResource::IdleResource(const TimeStamp& aIdleTime)
8772 : mIdleTime(aIdleTime) {
8773 AssertIsOnBackgroundThread();
8774 MOZ_ASSERT(!aIdleTime.IsNull())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aIdleTime.IsNull())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!aIdleTime.IsNull()))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("!aIdleTime.IsNull()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8774)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aIdleTime.IsNull()"
")"); do { MOZ_CrashSequence(__null, 8774); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8775
8776 MOZ_COUNT_CTOR(ConnectionPool::IdleResource)do { static_assert(std::is_class_v<ConnectionPool::IdleResource
>, "Token '" "ConnectionPool::IdleResource" "' is not a class type."
); static_assert(!std::is_base_of_v<nsISupports, ConnectionPool
::IdleResource>, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ConnectionPool::IdleResource"
, sizeof(*this)); } while (0)
;
8777}
8778
8779ConnectionPool::IdleResource::~IdleResource() {
8780 AssertIsOnBackgroundThread();
8781
8782 MOZ_COUNT_DTOR(ConnectionPool::IdleResource)do { static_assert(std::is_class_v<ConnectionPool::IdleResource
>, "Token '" "ConnectionPool::IdleResource" "' is not a class type."
); static_assert(!std::is_base_of_v<nsISupports, ConnectionPool
::IdleResource>, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "ConnectionPool::IdleResource"
, sizeof(*this)); } while (0)
;
8783}
8784
8785ConnectionPool::IdleDatabaseInfo::IdleDatabaseInfo(DatabaseInfo& aDatabaseInfo)
8786 : IdleResource(
8787 TimeStamp::NowLoRes() +
8788 (aDatabaseInfo.mIdle
8789 ? TimeDuration::FromMilliseconds(kConnectionIdleMaintenanceMS)
8790 : TimeDuration::FromMilliseconds(kConnectionIdleCloseMS))),
8791 mDatabaseInfo(WrapNotNullUnchecked(&aDatabaseInfo)) {
8792 AssertIsOnBackgroundThread();
8793
8794 MOZ_COUNT_CTOR(ConnectionPool::IdleDatabaseInfo)do { static_assert(std::is_class_v<ConnectionPool::IdleDatabaseInfo
>, "Token '" "ConnectionPool::IdleDatabaseInfo" "' is not a class type."
); static_assert(!std::is_base_of_v<nsISupports, ConnectionPool
::IdleDatabaseInfo>, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ConnectionPool::IdleDatabaseInfo"
, sizeof(*this)); } while (0)
;
8795}
8796
8797ConnectionPool::IdleDatabaseInfo::~IdleDatabaseInfo() {
8798 AssertIsOnBackgroundThread();
8799
8800 MOZ_COUNT_DTOR(ConnectionPool::IdleDatabaseInfo)do { static_assert(std::is_class_v<ConnectionPool::IdleDatabaseInfo
>, "Token '" "ConnectionPool::IdleDatabaseInfo" "' is not a class type."
); static_assert(!std::is_base_of_v<nsISupports, ConnectionPool
::IdleDatabaseInfo>, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "ConnectionPool::IdleDatabaseInfo"
, sizeof(*this)); } while (0)
;
8801}
8802
8803ConnectionPool::PerformingIdleMaintenanceDatabaseInfo::
8804 PerformingIdleMaintenanceDatabaseInfo(
8805 DatabaseInfo& aDatabaseInfo,
8806 RefPtr<IdleConnectionRunnable> aIdleConnectionRunnable)
8807 : mDatabaseInfo(WrapNotNullUnchecked(&aDatabaseInfo)),
8808 mIdleConnectionRunnable(std::move(aIdleConnectionRunnable)) {
8809 AssertIsOnBackgroundThread();
8810 MOZ_ASSERT(mIdleConnectionRunnable)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mIdleConnectionRunnable)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mIdleConnectionRunnable))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("mIdleConnectionRunnable"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8810)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mIdleConnectionRunnable"
")"); do { MOZ_CrashSequence(__null, 8810); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8811
8812 MOZ_COUNT_CTOR(ConnectionPool::PerformingIdleMaintenanceDatabaseInfo)do { static_assert(std::is_class_v<ConnectionPool::PerformingIdleMaintenanceDatabaseInfo
>, "Token '" "ConnectionPool::PerformingIdleMaintenanceDatabaseInfo"
"' is not a class type."); static_assert(!std::is_base_of_v<
nsISupports, ConnectionPool::PerformingIdleMaintenanceDatabaseInfo
>, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ConnectionPool::PerformingIdleMaintenanceDatabaseInfo"
, sizeof(*this)); } while (0)
;
8813}
8814
8815ConnectionPool::PerformingIdleMaintenanceDatabaseInfo::
8816 ~PerformingIdleMaintenanceDatabaseInfo() {
8817 AssertIsOnBackgroundThread();
8818
8819 MOZ_COUNT_DTOR(ConnectionPool::PerformingIdleMaintenanceDatabaseInfo)do { static_assert(std::is_class_v<ConnectionPool::PerformingIdleMaintenanceDatabaseInfo
>, "Token '" "ConnectionPool::PerformingIdleMaintenanceDatabaseInfo"
"' is not a class type."); static_assert(!std::is_base_of_v<
nsISupports, ConnectionPool::PerformingIdleMaintenanceDatabaseInfo
>, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "ConnectionPool::PerformingIdleMaintenanceDatabaseInfo"
, sizeof(*this)); } while (0)
;
8820}
8821
8822ConnectionPool::TransactionInfo::TransactionInfo(
8823 DatabaseInfo& aDatabaseInfo, const nsID& aBackgroundChildLoggingId,
8824 const nsACString& aDatabaseId, uint64_t aTransactionId,
8825 int64_t aLoggingSerialNumber, const nsTArray<nsString>& aObjectStoreNames,
8826 bool aIsWriteTransaction, TransactionDatabaseOperationBase* aTransactionOp)
8827 : mDatabaseInfo(aDatabaseInfo),
8828 mBackgroundChildLoggingId(aBackgroundChildLoggingId),
8829 mDatabaseId(aDatabaseId),
8830 mTransactionId(aTransactionId),
8831 mLoggingSerialNumber(aLoggingSerialNumber),
8832 mObjectStoreNames(aObjectStoreNames.Clone()),
8833 mIsWriteTransaction(aIsWriteTransaction),
8834 mRunning(false),
8835 mRunningOp(false) {
8836 AssertIsOnBackgroundThread();
8837 aDatabaseInfo.mConnectionPool->AssertIsOnOwningThread();
8838
8839 MOZ_COUNT_CTOR(ConnectionPool::TransactionInfo)do { static_assert(std::is_class_v<ConnectionPool::TransactionInfo
>, "Token '" "ConnectionPool::TransactionInfo" "' is not a class type."
); static_assert(!std::is_base_of_v<nsISupports, ConnectionPool
::TransactionInfo>, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ConnectionPool::TransactionInfo"
, sizeof(*this)); } while (0)
;
8840
8841 if (aTransactionOp) {
8842 mQueuedOps.Push(aTransactionOp);
8843 }
8844}
8845
8846ConnectionPool::TransactionInfo::~TransactionInfo() {
8847 AssertIsOnBackgroundThread();
8848 MOZ_ASSERT(!mBlockedOn.Count())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mBlockedOn.Count())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mBlockedOn.Count()))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("!mBlockedOn.Count()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8848)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mBlockedOn.Count()"
")"); do { MOZ_CrashSequence(__null, 8848); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8849 MOZ_ASSERT(mQueuedOps.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mQueuedOps.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mQueuedOps.IsEmpty()))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("mQueuedOps.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8849)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mQueuedOps.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 8849); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8850 MOZ_ASSERT(!mRunning)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mRunning)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mRunning))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!mRunning", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8850); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mRunning" ")"
); do { MOZ_CrashSequence(__null, 8850); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8851 MOZ_ASSERT(!mRunningOp)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mRunningOp)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mRunningOp))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("!mRunningOp", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8851); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mRunningOp"
")"); do { MOZ_CrashSequence(__null, 8851); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8852 MOZ_ASSERT(mFinished)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mFinished)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mFinished))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mFinished", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8852); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFinished" ")"
); do { MOZ_CrashSequence(__null, 8852); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8853
8854 MOZ_COUNT_DTOR(ConnectionPool::TransactionInfo)do { static_assert(std::is_class_v<ConnectionPool::TransactionInfo
>, "Token '" "ConnectionPool::TransactionInfo" "' is not a class type."
); static_assert(!std::is_base_of_v<nsISupports, ConnectionPool
::TransactionInfo>, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "ConnectionPool::TransactionInfo"
, sizeof(*this)); } while (0)
;
8855}
8856
8857void ConnectionPool::TransactionInfo::AddBlockingTransaction(
8858 TransactionInfo& aTransactionInfo) {
8859 AssertIsOnBackgroundThread();
8860
8861 // XXX Does it really make sense to have both mBlocking and mBlockingOrdered,
8862 // just to reduce the algorithmic complexity of this Contains check? This was
8863 // mentioned in the context of Bug 1290853, but no real justification was
8864 // given. There was the suggestion of encapsulating this in an
8865 // insertion-ordered hashtable implementation, which seems like a good idea.
8866 // If we had that, this would be the appropriate data structure to use here.
8867 if (mBlocking.EnsureInserted(&aTransactionInfo)) {
8868 mBlockingOrdered.AppendElement(WrapNotNullUnchecked(&aTransactionInfo));
8869 }
8870}
8871
8872void ConnectionPool::TransactionInfo::RemoveBlockingTransactions() {
8873 AssertIsOnBackgroundThread();
8874
8875 for (const auto blockedInfo : mBlockingOrdered) {
8876 blockedInfo->MaybeUnblock(*this);
8877 }
8878
8879 mBlocking.Clear();
8880 mBlockingOrdered.Clear();
8881}
8882
8883void ConnectionPool::TransactionInfo::SetRunning() {
8884 AssertIsOnBackgroundThread();
8885 MOZ_ASSERT(!mRunning)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mRunning)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mRunning))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!mRunning", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8885); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mRunning" ")"
); do { MOZ_CrashSequence(__null, 8885); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8886
8887 AUTO_PROFILER_LABEL("ConnectionPool::FinishOp", DOM)mozilla::AutoProfilerLabel raiiObject8887( "ConnectionPool::FinishOp"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8888
8889 mRunning = true;
8890
8891 if (!mQueuedOps.IsEmpty()) {
8892 mRunningOp = true;
8893
8894 nsCOMPtr<nsIRunnable> runnable = mQueuedOps.Pop();
8895
8896 MOZ_ALWAYS_SUCCEEDS(mDatabaseInfo.Dispatch(runnable.forget()))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(mDatabaseInfo.Dispatch(runnable.forget()))), 1)))), 1))) { }
else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(mDatabaseInfo.Dispatch(runnable.forget()))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8896)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mDatabaseInfo.Dispatch(runnable.forget()))"
")"); do { MOZ_CrashSequence(__null, 8896); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
8897 }
8898}
8899
8900void ConnectionPool::TransactionInfo::StartOp(nsCOMPtr<nsIRunnable> aRunnable) {
8901 AssertIsOnBackgroundThread();
8902
8903 if (mRunning) {
8904 MOZ_ASSERT(mDatabaseInfo.mEventTarget)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDatabaseInfo.mEventTarget)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDatabaseInfo.mEventTarget))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDatabaseInfo.mEventTarget"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8904)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabaseInfo.mEventTarget"
")"); do { MOZ_CrashSequence(__null, 8904); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8905 MOZ_ASSERT(!mDatabaseInfo.mClosing)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDatabaseInfo.mClosing)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDatabaseInfo.mClosing))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!mDatabaseInfo.mClosing"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8905)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabaseInfo.mClosing"
")"); do { MOZ_CrashSequence(__null, 8905); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8906 MOZ_ASSERT_IF(mIsWriteTransaction,do { if (mIsWriteTransaction) { do { static_assert( mozilla::
detail::AssertionConditionType<decltype(mDatabaseInfo.mRunningWriteTransaction
&& mDatabaseInfo.mRunningWriteTransaction.refEquals(
*this))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mDatabaseInfo.mRunningWriteTransaction && mDatabaseInfo
.mRunningWriteTransaction.refEquals(*this)))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mDatabaseInfo.mRunningWriteTransaction && mDatabaseInfo.mRunningWriteTransaction.refEquals(*this)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8908)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabaseInfo.mRunningWriteTransaction && mDatabaseInfo.mRunningWriteTransaction.refEquals(*this)"
")"); do { MOZ_CrashSequence(__null, 8908); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
8907 mDatabaseInfo.mRunningWriteTransaction &&do { if (mIsWriteTransaction) { do { static_assert( mozilla::
detail::AssertionConditionType<decltype(mDatabaseInfo.mRunningWriteTransaction
&& mDatabaseInfo.mRunningWriteTransaction.refEquals(
*this))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mDatabaseInfo.mRunningWriteTransaction && mDatabaseInfo
.mRunningWriteTransaction.refEquals(*this)))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mDatabaseInfo.mRunningWriteTransaction && mDatabaseInfo.mRunningWriteTransaction.refEquals(*this)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8908)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabaseInfo.mRunningWriteTransaction && mDatabaseInfo.mRunningWriteTransaction.refEquals(*this)"
")"); do { MOZ_CrashSequence(__null, 8908); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
8908 mDatabaseInfo.mRunningWriteTransaction.refEquals(*this))do { if (mIsWriteTransaction) { do { static_assert( mozilla::
detail::AssertionConditionType<decltype(mDatabaseInfo.mRunningWriteTransaction
&& mDatabaseInfo.mRunningWriteTransaction.refEquals(
*this))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mDatabaseInfo.mRunningWriteTransaction && mDatabaseInfo
.mRunningWriteTransaction.refEquals(*this)))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mDatabaseInfo.mRunningWriteTransaction && mDatabaseInfo.mRunningWriteTransaction.refEquals(*this)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8908)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabaseInfo.mRunningWriteTransaction && mDatabaseInfo.mRunningWriteTransaction.refEquals(*this)"
")"); do { MOZ_CrashSequence(__null, 8908); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
8909
8910 if (!mRunningOp) {
8911 mRunningOp = true;
8912
8913 MOZ_ALWAYS_SUCCEEDS(mDatabaseInfo.Dispatch(aRunnable.forget()))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(mDatabaseInfo.Dispatch(aRunnable.forget()))), 1)))), 1))) { }
else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(mDatabaseInfo.Dispatch(aRunnable.forget()))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8913)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mDatabaseInfo.Dispatch(aRunnable.forget()))"
")"); do { MOZ_CrashSequence(__null, 8913); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
8914 } else {
8915 mQueuedOps.Push(std::move(aRunnable));
8916 }
8917 } else {
8918 mQueuedOps.Push(std::move(aRunnable));
8919 }
8920}
8921
8922void ConnectionPool::TransactionInfo::FinishOp() {
8923 AssertIsOnBackgroundThread();
8924 MOZ_ASSERT(mRunning)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mRunning)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mRunning))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mRunning", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8924); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mRunning" ")"
); do { MOZ_CrashSequence(__null, 8924); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8925 MOZ_ASSERT(mRunningOp)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mRunningOp)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mRunningOp))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mRunningOp", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8925); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mRunningOp"
")"); do { MOZ_CrashSequence(__null, 8925); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8926
8927 if (mQueuedOps.IsEmpty()) {
8928 mRunningOp = false;
8929 } else {
8930 nsCOMPtr<nsIRunnable> runnable = mQueuedOps.Pop();
8931
8932 MOZ_ALWAYS_SUCCEEDS(mDatabaseInfo.Dispatch(runnable.forget()))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(mDatabaseInfo.Dispatch(runnable.forget()))), 1)))), 1))) { }
else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(mDatabaseInfo.Dispatch(runnable.forget()))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8932)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mDatabaseInfo.Dispatch(runnable.forget()))"
")"); do { MOZ_CrashSequence(__null, 8932); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
8933 }
8934}
8935
8936void ConnectionPool::TransactionInfo::MaybeUnblock(
8937 TransactionInfo& aTransactionInfo) {
8938 AssertIsOnBackgroundThread();
8939 MOZ_ASSERT(mBlockedOn.Contains(&aTransactionInfo))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mBlockedOn.Contains(&aTransactionInfo))>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mBlockedOn.Contains(&aTransactionInfo)))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mBlockedOn.Contains(&aTransactionInfo)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8939)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mBlockedOn.Contains(&aTransactionInfo)"
")"); do { MOZ_CrashSequence(__null, 8939); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8940
8941 mBlockedOn.Remove(&aTransactionInfo);
8942 if (mBlockedOn.IsEmpty()) {
8943 ConnectionPool* connectionPool = mDatabaseInfo.mConnectionPool;
8944 MOZ_ASSERT(connectionPool)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(connectionPool)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(connectionPool))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("connectionPool"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8944)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "connectionPool" ")"
); do { MOZ_CrashSequence(__null, 8944); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8945 connectionPool->AssertIsOnOwningThread();
8946
8947 (void)connectionPool->ScheduleTransaction(
8948 *this,
8949 /* aFromQueuedTransactions */ false);
8950 }
8951}
8952
8953#if defined(DEBUG1) || defined(NS_BUILD_REFCNT_LOGGING1)
8954ConnectionPool::TransactionInfoPair::TransactionInfoPair() {
8955 AssertIsOnBackgroundThread();
8956
8957 MOZ_COUNT_CTOR(ConnectionPool::TransactionInfoPair)do { static_assert(std::is_class_v<ConnectionPool::TransactionInfoPair
>, "Token '" "ConnectionPool::TransactionInfoPair" "' is not a class type."
); static_assert(!std::is_base_of_v<nsISupports, ConnectionPool
::TransactionInfoPair>, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ConnectionPool::TransactionInfoPair"
, sizeof(*this)); } while (0)
;
8958}
8959
8960ConnectionPool::TransactionInfoPair::~TransactionInfoPair() {
8961 AssertIsOnBackgroundThread();
8962
8963 MOZ_COUNT_DTOR(ConnectionPool::TransactionInfoPair)do { static_assert(std::is_class_v<ConnectionPool::TransactionInfoPair
>, "Token '" "ConnectionPool::TransactionInfoPair" "' is not a class type."
); static_assert(!std::is_base_of_v<nsISupports, ConnectionPool
::TransactionInfoPair>, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "ConnectionPool::TransactionInfoPair"
, sizeof(*this)); } while (0)
;
8964}
8965#endif
8966
8967/*******************************************************************************
8968 * Metadata classes
8969 ******************************************************************************/
8970
8971bool FullObjectStoreMetadata::HasLiveIndexes() const {
8972 AssertIsOnBackgroundThread();
8973
8974 return std::any_of(mIndexes.Values().cbegin(), mIndexes.Values().cend(),
8975 [](const auto& entry) { return !entry->mDeleted; });
8976}
8977
8978SafeRefPtr<FullDatabaseMetadata> FullDatabaseMetadata::Duplicate() const {
8979 AssertIsOnBackgroundThread();
8980
8981 // FullDatabaseMetadata contains two hash tables of pointers that we need to
8982 // duplicate so we can't just use the copy constructor.
8983 auto newMetadata = MakeSafeRefPtr<FullDatabaseMetadata>(mCommonMetadata);
8984
8985 newMetadata->mDatabaseId = mDatabaseId;
8986 newMetadata->mFilePath = mFilePath;
8987 newMetadata->mNextObjectStoreId = mNextObjectStoreId;
8988 newMetadata->mNextIndexId = mNextIndexId;
8989
8990 for (const auto& objectStoreEntry : mObjectStores) {
8991 const auto& objectStoreValue = objectStoreEntry.GetData();
8992
8993 auto newOSMetadata = MakeSafeRefPtr<FullObjectStoreMetadata>(
8994 objectStoreValue->mCommonMetadata, [&objectStoreValue] {
8995 const auto&& srcLocked = objectStoreValue->mAutoIncrementIds.Lock();
8996 return *srcLocked;
8997 }());
8998
8999 for (const auto& indexEntry : objectStoreValue->mIndexes) {
9000 const auto& value = indexEntry.GetData();
9001
9002 auto newIndexMetadata = MakeSafeRefPtr<FullIndexMetadata>();
9003
9004 newIndexMetadata->mCommonMetadata = value->mCommonMetadata;
9005
9006 if (NS_WARN_IF(!newOSMetadata->mIndexes.InsertOrUpdate(NS_warn_if_impl(!newOSMetadata->mIndexes.InsertOrUpdate( indexEntry
.GetKey(), std::move(newIndexMetadata), fallible), "!newOSMetadata->mIndexes.InsertOrUpdate( indexEntry.GetKey(), std::move(newIndexMetadata), fallible)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9007)
9007 indexEntry.GetKey(), std::move(newIndexMetadata), fallible))NS_warn_if_impl(!newOSMetadata->mIndexes.InsertOrUpdate( indexEntry
.GetKey(), std::move(newIndexMetadata), fallible), "!newOSMetadata->mIndexes.InsertOrUpdate( indexEntry.GetKey(), std::move(newIndexMetadata), fallible)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9007)
) {
9008 return nullptr;
9009 }
9010 }
9011
9012 MOZ_ASSERT(objectStoreValue->mIndexes.Count() ==do { static_assert( mozilla::detail::AssertionConditionType<
decltype(objectStoreValue->mIndexes.Count() == newOSMetadata
->mIndexes.Count())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(objectStoreValue->mIndexes
.Count() == newOSMetadata->mIndexes.Count()))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("objectStoreValue->mIndexes.Count() == newOSMetadata->mIndexes.Count()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9013)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreValue->mIndexes.Count() == newOSMetadata->mIndexes.Count()"
")"); do { MOZ_CrashSequence(__null, 9013); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
9013 newOSMetadata->mIndexes.Count())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(objectStoreValue->mIndexes.Count() == newOSMetadata
->mIndexes.Count())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(objectStoreValue->mIndexes
.Count() == newOSMetadata->mIndexes.Count()))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("objectStoreValue->mIndexes.Count() == newOSMetadata->mIndexes.Count()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9013)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreValue->mIndexes.Count() == newOSMetadata->mIndexes.Count()"
")"); do { MOZ_CrashSequence(__null, 9013); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9014
9015 if (NS_WARN_IF(!newMetadata->mObjectStores.InsertOrUpdate(NS_warn_if_impl(!newMetadata->mObjectStores.InsertOrUpdate
( objectStoreEntry.GetKey(), std::move(newOSMetadata), fallible
), "!newMetadata->mObjectStores.InsertOrUpdate( objectStoreEntry.GetKey(), std::move(newOSMetadata), fallible)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9016)
9016 objectStoreEntry.GetKey(), std::move(newOSMetadata), fallible))NS_warn_if_impl(!newMetadata->mObjectStores.InsertOrUpdate
( objectStoreEntry.GetKey(), std::move(newOSMetadata), fallible
), "!newMetadata->mObjectStores.InsertOrUpdate( objectStoreEntry.GetKey(), std::move(newOSMetadata), fallible)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9016)
) {
9017 return nullptr;
9018 }
9019 }
9020
9021 MOZ_ASSERT(mObjectStores.Count() == newMetadata->mObjectStores.Count())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mObjectStores.Count() == newMetadata->mObjectStores
.Count())>::isValid, "invalid assertion condition"); if ((
__builtin_expect(!!(!(!!(mObjectStores.Count() == newMetadata
->mObjectStores.Count()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mObjectStores.Count() == newMetadata->mObjectStores.Count()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9021)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mObjectStores.Count() == newMetadata->mObjectStores.Count()"
")"); do { MOZ_CrashSequence(__null, 9021); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9022
9023 return newMetadata;
9024}
9025
9026DatabaseLoggingInfo::~DatabaseLoggingInfo() {
9027 AssertIsOnBackgroundThread();
9028
9029 if (gLoggingInfoHashtable) {
9030 const nsID& backgroundChildLoggingId =
9031 mLoggingInfo.backgroundChildLoggingId();
9032
9033 MOZ_ASSERT(gLoggingInfoHashtable->Get(backgroundChildLoggingId) == this)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(gLoggingInfoHashtable->Get(backgroundChildLoggingId
) == this)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(gLoggingInfoHashtable->Get(backgroundChildLoggingId
) == this))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("gLoggingInfoHashtable->Get(backgroundChildLoggingId) == this"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9033)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "gLoggingInfoHashtable->Get(backgroundChildLoggingId) == this"
")"); do { MOZ_CrashSequence(__null, 9033); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9034
9035 gLoggingInfoHashtable->Remove(backgroundChildLoggingId);
9036 }
9037}
9038
9039/*******************************************************************************
9040 * Factory
9041 ******************************************************************************/
9042
9043Factory::Factory(RefPtr<DatabaseLoggingInfo> aLoggingInfo,
9044 const nsACString& aSystemLocale)
9045 : mSystemLocale(aSystemLocale),
9046 mLoggingInfo(std::move(aLoggingInfo))
9047#ifdef DEBUG1
9048 ,
9049 mActorDestroyed(false)
9050#endif
9051{
9052 AssertIsOnBackgroundThread();
9053 MOZ_ASSERT(!QuotaClient::IsShuttingDownOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!QuotaClient::IsShuttingDownOnBackgroundThread())>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!QuotaClient::IsShuttingDownOnBackgroundThread()))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("!QuotaClient::IsShuttingDownOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9053)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!QuotaClient::IsShuttingDownOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 9053); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9054}
9055
9056Factory::~Factory() { MOZ_ASSERT(mActorDestroyed)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mActorDestroyed)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mActorDestroyed))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mActorDestroyed"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9056)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mActorDestroyed" ")"
); do { MOZ_CrashSequence(__null, 9056); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
; }
9057
9058// static
9059SafeRefPtr<Factory> Factory::Create(const LoggingInfo& aLoggingInfo,
9060 const nsACString& aSystemLocale) {
9061 AssertIsOnBackgroundThread();
9062 MOZ_ASSERT(!QuotaClient::IsShuttingDownOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!QuotaClient::IsShuttingDownOnBackgroundThread())>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!QuotaClient::IsShuttingDownOnBackgroundThread()))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("!QuotaClient::IsShuttingDownOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9062)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!QuotaClient::IsShuttingDownOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 9062); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9063
9064 // Balanced in ActoryDestroy().
9065 IncreaseBusyCount();
9066
9067 MOZ_ASSERT(gLoggingInfoHashtable)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(gLoggingInfoHashtable)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(gLoggingInfoHashtable))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("gLoggingInfoHashtable"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9067)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "gLoggingInfoHashtable"
")"); do { MOZ_CrashSequence(__null, 9067); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9068 RefPtr<DatabaseLoggingInfo> loggingInfo =
9069 gLoggingInfoHashtable->WithEntryHandle(
9070 aLoggingInfo.backgroundChildLoggingId(), [&](auto&& entry) {
9071 if (entry) {
9072 [[maybe_unused]] const auto& loggingInfo = entry.Data();
9073 MOZ_ASSERT(aLoggingInfo.backgroundChildLoggingId() ==do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aLoggingInfo.backgroundChildLoggingId() == loggingInfo
->Id())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(aLoggingInfo.backgroundChildLoggingId
() == loggingInfo->Id()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("aLoggingInfo.backgroundChildLoggingId() == loggingInfo->Id()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9074)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aLoggingInfo.backgroundChildLoggingId() == loggingInfo->Id()"
")"); do { MOZ_CrashSequence(__null, 9074); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
9074 loggingInfo->Id())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aLoggingInfo.backgroundChildLoggingId() == loggingInfo
->Id())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(aLoggingInfo.backgroundChildLoggingId
() == loggingInfo->Id()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("aLoggingInfo.backgroundChildLoggingId() == loggingInfo->Id()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9074)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aLoggingInfo.backgroundChildLoggingId() == loggingInfo->Id()"
")"); do { MOZ_CrashSequence(__null, 9074); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9075#if !FUZZING
9076 NS_WARNING_ASSERTION(do { if (!(aLoggingInfo.nextTransactionSerialNumber() == loggingInfo
->mLoggingInfo.nextTransactionSerialNumber())) { NS_DebugBreak
(NS_DEBUG_WARNING, "NextTransactionSerialNumber doesn't match!"
, "aLoggingInfo.nextTransactionSerialNumber() == loggingInfo->mLoggingInfo.nextTransactionSerialNumber()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9079)
; } } while (false)
9077 aLoggingInfo.nextTransactionSerialNumber() ==do { if (!(aLoggingInfo.nextTransactionSerialNumber() == loggingInfo
->mLoggingInfo.nextTransactionSerialNumber())) { NS_DebugBreak
(NS_DEBUG_WARNING, "NextTransactionSerialNumber doesn't match!"
, "aLoggingInfo.nextTransactionSerialNumber() == loggingInfo->mLoggingInfo.nextTransactionSerialNumber()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9079)
; } } while (false)
9078 loggingInfo->mLoggingInfo.nextTransactionSerialNumber(),do { if (!(aLoggingInfo.nextTransactionSerialNumber() == loggingInfo
->mLoggingInfo.nextTransactionSerialNumber())) { NS_DebugBreak
(NS_DEBUG_WARNING, "NextTransactionSerialNumber doesn't match!"
, "aLoggingInfo.nextTransactionSerialNumber() == loggingInfo->mLoggingInfo.nextTransactionSerialNumber()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9079)
; } } while (false)
9079 "NextTransactionSerialNumber doesn't match!")do { if (!(aLoggingInfo.nextTransactionSerialNumber() == loggingInfo
->mLoggingInfo.nextTransactionSerialNumber())) { NS_DebugBreak
(NS_DEBUG_WARNING, "NextTransactionSerialNumber doesn't match!"
, "aLoggingInfo.nextTransactionSerialNumber() == loggingInfo->mLoggingInfo.nextTransactionSerialNumber()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9079)
; } } while (false)
;
9080 NS_WARNING_ASSERTION(do { if (!(aLoggingInfo.nextVersionChangeTransactionSerialNumber
() == loggingInfo->mLoggingInfo .nextVersionChangeTransactionSerialNumber
())) { NS_DebugBreak(NS_DEBUG_WARNING, "NextVersionChangeTransactionSerialNumber doesn't match!"
, "aLoggingInfo.nextVersionChangeTransactionSerialNumber() == loggingInfo->mLoggingInfo .nextVersionChangeTransactionSerialNumber()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9084)
; } } while (false)
9081 aLoggingInfo.nextVersionChangeTransactionSerialNumber() ==do { if (!(aLoggingInfo.nextVersionChangeTransactionSerialNumber
() == loggingInfo->mLoggingInfo .nextVersionChangeTransactionSerialNumber
())) { NS_DebugBreak(NS_DEBUG_WARNING, "NextVersionChangeTransactionSerialNumber doesn't match!"
, "aLoggingInfo.nextVersionChangeTransactionSerialNumber() == loggingInfo->mLoggingInfo .nextVersionChangeTransactionSerialNumber()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9084)
; } } while (false)
9082 loggingInfo->mLoggingInfodo { if (!(aLoggingInfo.nextVersionChangeTransactionSerialNumber
() == loggingInfo->mLoggingInfo .nextVersionChangeTransactionSerialNumber
())) { NS_DebugBreak(NS_DEBUG_WARNING, "NextVersionChangeTransactionSerialNumber doesn't match!"
, "aLoggingInfo.nextVersionChangeTransactionSerialNumber() == loggingInfo->mLoggingInfo .nextVersionChangeTransactionSerialNumber()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9084)
; } } while (false)
9083 .nextVersionChangeTransactionSerialNumber(),do { if (!(aLoggingInfo.nextVersionChangeTransactionSerialNumber
() == loggingInfo->mLoggingInfo .nextVersionChangeTransactionSerialNumber
())) { NS_DebugBreak(NS_DEBUG_WARNING, "NextVersionChangeTransactionSerialNumber doesn't match!"
, "aLoggingInfo.nextVersionChangeTransactionSerialNumber() == loggingInfo->mLoggingInfo .nextVersionChangeTransactionSerialNumber()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9084)
; } } while (false)
9084 "NextVersionChangeTransactionSerialNumber doesn't match!")do { if (!(aLoggingInfo.nextVersionChangeTransactionSerialNumber
() == loggingInfo->mLoggingInfo .nextVersionChangeTransactionSerialNumber
())) { NS_DebugBreak(NS_DEBUG_WARNING, "NextVersionChangeTransactionSerialNumber doesn't match!"
, "aLoggingInfo.nextVersionChangeTransactionSerialNumber() == loggingInfo->mLoggingInfo .nextVersionChangeTransactionSerialNumber()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9084)
; } } while (false)
;
9085 NS_WARNING_ASSERTION(do { if (!(aLoggingInfo.nextRequestSerialNumber() == loggingInfo
->mLoggingInfo.nextRequestSerialNumber())) { NS_DebugBreak
(NS_DEBUG_WARNING, "NextRequestSerialNumber doesn't match!", "aLoggingInfo.nextRequestSerialNumber() == loggingInfo->mLoggingInfo.nextRequestSerialNumber()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9088)
; } } while (false)
9086 aLoggingInfo.nextRequestSerialNumber() ==do { if (!(aLoggingInfo.nextRequestSerialNumber() == loggingInfo
->mLoggingInfo.nextRequestSerialNumber())) { NS_DebugBreak
(NS_DEBUG_WARNING, "NextRequestSerialNumber doesn't match!", "aLoggingInfo.nextRequestSerialNumber() == loggingInfo->mLoggingInfo.nextRequestSerialNumber()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9088)
; } } while (false)
9087 loggingInfo->mLoggingInfo.nextRequestSerialNumber(),do { if (!(aLoggingInfo.nextRequestSerialNumber() == loggingInfo
->mLoggingInfo.nextRequestSerialNumber())) { NS_DebugBreak
(NS_DEBUG_WARNING, "NextRequestSerialNumber doesn't match!", "aLoggingInfo.nextRequestSerialNumber() == loggingInfo->mLoggingInfo.nextRequestSerialNumber()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9088)
; } } while (false)
9088 "NextRequestSerialNumber doesn't match!")do { if (!(aLoggingInfo.nextRequestSerialNumber() == loggingInfo
->mLoggingInfo.nextRequestSerialNumber())) { NS_DebugBreak
(NS_DEBUG_WARNING, "NextRequestSerialNumber doesn't match!", "aLoggingInfo.nextRequestSerialNumber() == loggingInfo->mLoggingInfo.nextRequestSerialNumber()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9088)
; } } while (false)
;
9089#endif // !FUZZING
9090 } else {
9091 entry.Insert(new DatabaseLoggingInfo(aLoggingInfo));
9092 }
9093
9094 return do_AddRef(entry.Data());
9095 });
9096
9097 return MakeSafeRefPtr<Factory>(std::move(loggingInfo), aSystemLocale);
9098}
9099
9100void Factory::ActorDestroy(ActorDestroyReason aWhy) {
9101 AssertIsOnBackgroundThread();
9102 MOZ_ASSERT(!mActorDestroyed)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mActorDestroyed)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mActorDestroyed))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!mActorDestroyed"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9102)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mActorDestroyed" ")"
); do { MOZ_CrashSequence(__null, 9102); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9103
9104#ifdef DEBUG1
9105 mActorDestroyed = true;
9106#endif
9107
9108 // Match the IncreaseBusyCount in Create().
9109 DecreaseBusyCount();
9110}
9111
9112mozilla::ipc::IPCResult Factory::RecvDeleteMe() {
9113 AssertIsOnBackgroundThread();
9114 MOZ_ASSERT(!mActorDestroyed)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mActorDestroyed)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mActorDestroyed))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!mActorDestroyed"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9114)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mActorDestroyed" ")"
); do { MOZ_CrashSequence(__null, 9114); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9115
9116 QM_WARNONLY_TRY(OkIf(PBackgroundIDBFactoryParent::Send__delete__(this))){auto tryResult1021 = (OkIf(PBackgroundIDBFactoryParent::Send__delete__
(this))); static_assert(std::is_empty_v<typename decltype(
tryResult1021)::ok_type>); if ((__builtin_expect(!!(tryResult1021
.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(PBackgroundIDBFactoryParent::Send__delete__(this))"
, tryResult1021.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9116, mozilla::dom::quota::Severity::Warning); }}
;
9117
9118 return IPC_OK()mozilla::ipc::IPCResult::Ok();
9119}
9120
9121PBackgroundIDBFactoryRequestParent*
9122Factory::AllocPBackgroundIDBFactoryRequestParent(
9123 const FactoryRequestParams& aParams) {
9124 AssertIsOnBackgroundThread();
9125 MOZ_ASSERT(aParams.type() != FactoryRequestParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() != FactoryRequestParams::T__None)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aParams.type() != FactoryRequestParams::T__None))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() != FactoryRequestParams::T__None"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9125)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != FactoryRequestParams::T__None"
")"); do { MOZ_CrashSequence(__null, 9125); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9126
9127 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread
(), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9127)
) {
9128 return nullptr;
9129 }
9130
9131 const CommonFactoryRequestParams* commonParams;
9132
9133 switch (aParams.type()) {
9134 case FactoryRequestParams::TOpenDatabaseRequestParams: {
9135 const OpenDatabaseRequestParams& params =
9136 aParams.get_OpenDatabaseRequestParams();
9137 commonParams = &params.commonParams();
9138 break;
9139 }
9140
9141 case FactoryRequestParams::TDeleteDatabaseRequestParams: {
9142 const DeleteDatabaseRequestParams& params =
9143 aParams.get_DeleteDatabaseRequestParams();
9144 commonParams = &params.commonParams();
9145 break;
9146 }
9147
9148 default:
9149 MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9149)
; AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 9149); __attribute__((nomerge
)) ::abort(); } while (false); } while (false)
;
9150 }
9151
9152 MOZ_ASSERT(commonParams)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(commonParams)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(commonParams))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("commonParams", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9152); AnnotateMozCrashReason("MOZ_ASSERT" "(" "commonParams"
")"); do { MOZ_CrashSequence(__null, 9152); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9153
9154 const DatabaseMetadata& metadata = commonParams->metadata();
9155
9156 if (NS_AUUF_OR_WARN_IF(!IsValidPersistenceType(metadata.persistenceType()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!IsValidPersistenceType(metadata.persistenceType())"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9156
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!IsValidPersistenceType(metadata.persistenceType())"
")"); do { MOZ_CrashSequence(__null, 9156); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((!IsValidPersistenceType(metadata.persistenceType())))
) {
9157 return nullptr;
9158 }
9159
9160 const PrincipalInfo& principalInfo = commonParams->principalInfo();
9161
9162 if (NS_AUUF_OR_WARN_IF(!quota::IsPrincipalInfoValid(principalInfo))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!quota::IsPrincipalInfoValid(principalInfo)" ")"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9162)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!quota::IsPrincipalInfoValid(principalInfo)"
")"); do { MOZ_CrashSequence(__null, 9162); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((!quota::IsPrincipalInfoValid(principalInfo)))
) {
9163 IPC_FAIL(this, "Invalid principal!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Invalid principal!"
))
;
9164 return nullptr;
9165 }
9166
9167 MOZ_ASSERT(principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo
|| principalInfo.type() == PrincipalInfo::TContentPrincipalInfo
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo
|| principalInfo.type() == PrincipalInfo::TContentPrincipalInfo
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || principalInfo.type() == PrincipalInfo::TContentPrincipalInfo"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9168)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || principalInfo.type() == PrincipalInfo::TContentPrincipalInfo"
")"); do { MOZ_CrashSequence(__null, 9168); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
9168 principalInfo.type() == PrincipalInfo::TContentPrincipalInfo)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo
|| principalInfo.type() == PrincipalInfo::TContentPrincipalInfo
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo
|| principalInfo.type() == PrincipalInfo::TContentPrincipalInfo
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || principalInfo.type() == PrincipalInfo::TContentPrincipalInfo"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9168)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || principalInfo.type() == PrincipalInfo::TContentPrincipalInfo"
")"); do { MOZ_CrashSequence(__null, 9168); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9169
9170 if (!BackgroundParent::ValidatePrincipalInfo(Manager(), principalInfo,
9171 PrincipalValidationOptions())) {
9172 IPC_FAIL(this, "Invalid principal!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Invalid principal!"
))
;
9173 return nullptr;
9174 }
9175
9176 /* GetPersistenceType returns PERSISTENT for system principals and internal
9177 content principals, PRIVATE for private-browsing content principals, and
9178 DEFAULT for everything else. The sent value is technically redundant and
9179 always deducible from the principal but we validate it here so that an
9180 incorrect metadata value cannot reach other parts of the code.
9181 TODO: Stop sending persistenceType from the content process and just derive it
9182 on the parent side. */
9183 if (metadata.persistenceType() !=
9184 IDBFactory::GetPersistenceType(principalInfo)) {
9185 IPC_FAIL(this, "Persistence type does not match principal!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Persistence type does not match principal!"
))
;
9186 return nullptr;
9187 }
9188
9189 Maybe<ContentParentId> contentParentId = GetContentParentId();
9190
9191 auto actor = [&]() -> RefPtr<FactoryRequestOp> {
9192 if (aParams.type() == FactoryRequestParams::TOpenDatabaseRequestParams) {
9193 return MakeRefPtr<OpenDatabaseOp>(SafeRefPtrFromThis(), contentParentId,
9194 *commonParams);
9195 } else {
9196 return MakeRefPtr<DeleteDatabaseOp>(SafeRefPtrFromThis(), contentParentId,
9197 *commonParams);
9198 }
9199 }();
9200
9201 gFactoryOps->insertBack(actor);
9202
9203 // Balanced in CleanupMetadata() which is/must always called by SendResults().
9204 IncreaseBusyCount();
9205
9206 // Transfer ownership to IPDL.
9207 return actor.forget().take();
9208}
9209
9210mozilla::ipc::IPCResult Factory::RecvPBackgroundIDBFactoryRequestConstructor(
9211 PBackgroundIDBFactoryRequestParent* aActor,
9212 const FactoryRequestParams& aParams) {
9213 AssertIsOnBackgroundThread();
9214 MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aActor)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9214); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { MOZ_CrashSequence(__null, 9214); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9215 MOZ_ASSERT(aParams.type() != FactoryRequestParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() != FactoryRequestParams::T__None)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aParams.type() != FactoryRequestParams::T__None))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() != FactoryRequestParams::T__None"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9215)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != FactoryRequestParams::T__None"
")"); do { MOZ_CrashSequence(__null, 9215); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9216 MOZ_ASSERT(!QuotaClient::IsShuttingDownOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!QuotaClient::IsShuttingDownOnBackgroundThread())>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!QuotaClient::IsShuttingDownOnBackgroundThread()))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("!QuotaClient::IsShuttingDownOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9216)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!QuotaClient::IsShuttingDownOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 9216); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9217
9218 auto* op = static_cast<FactoryRequestOp*>(aActor);
9219
9220 MOZ_ALWAYS_SUCCEEDS(NS_DispatchToCurrentThread(op))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(NS_DispatchToCurrentThread(op))), 1)))), 1))) { } else { do {
do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(NS_DispatchToCurrentThread(op))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9220)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(NS_DispatchToCurrentThread(op))"
")"); do { MOZ_CrashSequence(__null, 9220); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
9221 return IPC_OK()mozilla::ipc::IPCResult::Ok();
9222}
9223
9224bool Factory::DeallocPBackgroundIDBFactoryRequestParent(
9225 PBackgroundIDBFactoryRequestParent* aActor) {
9226 AssertIsOnBackgroundThread();
9227 MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aActor)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9227); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { MOZ_CrashSequence(__null, 9227); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9228
9229 // Transfer ownership back from IPDL.
9230 RefPtr<FactoryRequestOp> op =
9231 dont_AddRef(static_cast<FactoryRequestOp*>(aActor));
9232 return true;
9233}
9234
9235mozilla::ipc::IPCResult Factory::RecvGetDatabases(
9236 const PersistenceType& aPersistenceType,
9237 const PrincipalInfo& aPrincipalInfo, GetDatabasesResolver&& aResolve) {
9238 AssertIsOnBackgroundThread();
9239
9240 auto ResolveGetDatabasesAndReturn = [&aResolve](const nsresult rv) {
9241 aResolve(rv);
9242 return IPC_OK()mozilla::ipc::IPCResult::Ok();
9243 };
9244
9245 QM_TRY(MOZ_TO_RESULT(!QuotaClient::IsShuttingDownOnBackgroundThread()),{auto tryResult1022 = (ToResult(!QuotaClient::IsShuttingDownOnBackgroundThread
())); static_assert(std::is_empty_v<typename decltype(tryResult1022
)::ok_type>); if ((__builtin_expect(!!(tryResult1022.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1022
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(!QuotaClient::IsShuttingDownOnBackgroundThread())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9246, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(!QuotaClient::IsShuttingDownOnBackgroundThread())"
, tryTempError, ResolveGetDatabasesAndReturn); }}
9246 ResolveGetDatabasesAndReturn){auto tryResult1022 = (ToResult(!QuotaClient::IsShuttingDownOnBackgroundThread
())); static_assert(std::is_empty_v<typename decltype(tryResult1022
)::ok_type>); if ((__builtin_expect(!!(tryResult1022.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1022
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(!QuotaClient::IsShuttingDownOnBackgroundThread())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9246, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(!QuotaClient::IsShuttingDownOnBackgroundThread())"
, tryTempError, ResolveGetDatabasesAndReturn); }}
;
9247
9248 QM_TRY(MOZ_TO_RESULT(IsValidPersistenceType(aPersistenceType)),{auto tryResult1023 = (ToResult(IsValidPersistenceType(aPersistenceType
))); static_assert(std::is_empty_v<typename decltype(tryResult1023
)::ok_type>); if ((__builtin_expect(!!(tryResult1023.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1023
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(IsValidPersistenceType(aPersistenceType))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9249, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(IsValidPersistenceType(aPersistenceType))"
, tryTempError, mozilla::dom::quota::detail::IpcFailCustomRetVal
(mozilla::WrapNotNull(this))); }}
9249 QM_IPC_FAIL(this)){auto tryResult1023 = (ToResult(IsValidPersistenceType(aPersistenceType
))); static_assert(std::is_empty_v<typename decltype(tryResult1023
)::ok_type>); if ((__builtin_expect(!!(tryResult1023.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1023
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(IsValidPersistenceType(aPersistenceType))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9249, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(IsValidPersistenceType(aPersistenceType))"
, tryTempError, mozilla::dom::quota::detail::IpcFailCustomRetVal
(mozilla::WrapNotNull(this))); }}
;
9250
9251 QM_TRY(MOZ_TO_RESULT(quota::IsPrincipalInfoValid(aPrincipalInfo)),{auto tryResult1024 = (ToResult(quota::IsPrincipalInfoValid(aPrincipalInfo
))); static_assert(std::is_empty_v<typename decltype(tryResult1024
)::ok_type>); if ((__builtin_expect(!!(tryResult1024.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1024
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(quota::IsPrincipalInfoValid(aPrincipalInfo))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9252, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(quota::IsPrincipalInfoValid(aPrincipalInfo))"
, tryTempError, mozilla::dom::quota::detail::IpcFailCustomRetVal
(mozilla::WrapNotNull(this))); }}
9252 QM_IPC_FAIL(this)){auto tryResult1024 = (ToResult(quota::IsPrincipalInfoValid(aPrincipalInfo
))); static_assert(std::is_empty_v<typename decltype(tryResult1024
)::ok_type>); if ((__builtin_expect(!!(tryResult1024.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1024
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(quota::IsPrincipalInfoValid(aPrincipalInfo))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9252, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(quota::IsPrincipalInfoValid(aPrincipalInfo))"
, tryTempError, mozilla::dom::quota::detail::IpcFailCustomRetVal
(mozilla::WrapNotNull(this))); }}
;
9253
9254 MOZ_ASSERT(aPrincipalInfo.type() == PrincipalInfo::TSystemPrincipalInfo ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aPrincipalInfo.type() == PrincipalInfo::TSystemPrincipalInfo
|| aPrincipalInfo.type() == PrincipalInfo::TContentPrincipalInfo
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aPrincipalInfo.type() == PrincipalInfo::TSystemPrincipalInfo
|| aPrincipalInfo.type() == PrincipalInfo::TContentPrincipalInfo
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"aPrincipalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || aPrincipalInfo.type() == PrincipalInfo::TContentPrincipalInfo"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9255)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aPrincipalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || aPrincipalInfo.type() == PrincipalInfo::TContentPrincipalInfo"
")"); do { MOZ_CrashSequence(__null, 9255); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
9255 aPrincipalInfo.type() == PrincipalInfo::TContentPrincipalInfo)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aPrincipalInfo.type() == PrincipalInfo::TSystemPrincipalInfo
|| aPrincipalInfo.type() == PrincipalInfo::TContentPrincipalInfo
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aPrincipalInfo.type() == PrincipalInfo::TSystemPrincipalInfo
|| aPrincipalInfo.type() == PrincipalInfo::TContentPrincipalInfo
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"aPrincipalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || aPrincipalInfo.type() == PrincipalInfo::TContentPrincipalInfo"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9255)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aPrincipalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || aPrincipalInfo.type() == PrincipalInfo::TContentPrincipalInfo"
")"); do { MOZ_CrashSequence(__null, 9255); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9256
9257 QM_TRY(MOZ_TO_RESULT(BackgroundParent::ValidatePrincipalInfo({auto tryResult1025 = (ToResult(BackgroundParent::ValidatePrincipalInfo
( Manager(), aPrincipalInfo, PrincipalValidationOptions())));
static_assert(std::is_empty_v<typename decltype(tryResult1025
)::ok_type>); if ((__builtin_expect(!!(tryResult1025.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1025
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(BackgroundParent::ValidatePrincipalInfo( Manager(), aPrincipalInfo, PrincipalValidationOptions()))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9259, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(BackgroundParent::ValidatePrincipalInfo( Manager(), aPrincipalInfo, PrincipalValidationOptions()))"
, tryTempError, mozilla::dom::quota::detail::IpcFailCustomRetVal
(mozilla::WrapNotNull(this))); }}
9258 Manager(), aPrincipalInfo, PrincipalValidationOptions())),{auto tryResult1025 = (ToResult(BackgroundParent::ValidatePrincipalInfo
( Manager(), aPrincipalInfo, PrincipalValidationOptions())));
static_assert(std::is_empty_v<typename decltype(tryResult1025
)::ok_type>); if ((__builtin_expect(!!(tryResult1025.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1025
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(BackgroundParent::ValidatePrincipalInfo( Manager(), aPrincipalInfo, PrincipalValidationOptions()))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9259, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(BackgroundParent::ValidatePrincipalInfo( Manager(), aPrincipalInfo, PrincipalValidationOptions()))"
, tryTempError, mozilla::dom::quota::detail::IpcFailCustomRetVal
(mozilla::WrapNotNull(this))); }}
9259 QM_IPC_FAIL(this)){auto tryResult1025 = (ToResult(BackgroundParent::ValidatePrincipalInfo
( Manager(), aPrincipalInfo, PrincipalValidationOptions())));
static_assert(std::is_empty_v<typename decltype(tryResult1025
)::ok_type>); if ((__builtin_expect(!!(tryResult1025.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1025
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(BackgroundParent::ValidatePrincipalInfo( Manager(), aPrincipalInfo, PrincipalValidationOptions()))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9259, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(BackgroundParent::ValidatePrincipalInfo( Manager(), aPrincipalInfo, PrincipalValidationOptions()))"
, tryTempError, mozilla::dom::quota::detail::IpcFailCustomRetVal
(mozilla::WrapNotNull(this))); }}
;
9260
9261 PersistenceType persistenceType =
9262 IDBFactory::GetPersistenceType(aPrincipalInfo);
9263
9264 QM_TRY(MOZ_TO_RESULT(aPersistenceType == persistenceType), QM_IPC_FAIL(this)){auto tryResult1026 = (ToResult(aPersistenceType == persistenceType
)); static_assert(std::is_empty_v<typename decltype(tryResult1026
)::ok_type>); if ((__builtin_expect(!!(tryResult1026.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1026
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(aPersistenceType == persistenceType)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9264, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(aPersistenceType == persistenceType)"
, tryTempError, mozilla::dom::quota::detail::IpcFailCustomRetVal
(mozilla::WrapNotNull(this))); }}
;
9265
9266 Maybe<ContentParentId> contentParentId = GetContentParentId();
9267
9268 auto op = MakeRefPtr<GetDatabasesOp>(SafeRefPtrFromThis(), contentParentId,
9269 aPersistenceType, aPrincipalInfo,
9270 std::move(aResolve));
9271
9272 gFactoryOps->insertBack(op);
9273
9274 // Balanced in CleanupMetadata() which is/must always called by SendResults().
9275 IncreaseBusyCount();
9276
9277 MOZ_ALWAYS_SUCCEEDS(NS_DispatchToCurrentThread(op))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(NS_DispatchToCurrentThread(op))), 1)))), 1))) { } else { do {
do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(NS_DispatchToCurrentThread(op))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9277)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(NS_DispatchToCurrentThread(op))"
")"); do { MOZ_CrashSequence(__null, 9277); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
9278
9279 return IPC_OK()mozilla::ipc::IPCResult::Ok();
9280}
9281
9282Maybe<ContentParentId> Factory::GetContentParentId() const {
9283 uint64_t childID = BackgroundParent::GetChildID(Manager());
9284 if (childID) {
9285 // If childID is not zero we are dealing with an other-process actor. We
9286 // want to initialize OpenDatabaseOp/DeleteDatabaseOp here with the ID
9287 // (and later also Database) in that case, so Database::IsOwnedByProcess
9288 // can find Databases belonging to a particular content process when
9289 // QuotaClient::AbortOperationsForProcess is called which is currently used
9290 // to abort operations for content processes only.
9291 return Some(ContentParentId(childID));
9292 }
9293
9294 return Nothing();
9295}
9296
9297/*******************************************************************************
9298 * WaitForTransactionsHelper
9299 ******************************************************************************/
9300
9301void WaitForTransactionsHelper::WaitForTransactions() {
9302 MOZ_ASSERT(mState == State::Initial)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::Initial)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::Initial))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::Initial"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9302)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial"
")"); do { MOZ_CrashSequence(__null, 9302); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9303
9304 (void)this->Run();
9305}
9306
9307void WaitForTransactionsHelper::MaybeWaitForTransactions() {
9308 AssertIsOnBackgroundThread();
9309 MOZ_ASSERT(mState == State::Initial)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::Initial)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::Initial))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::Initial"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9309)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial"
")"); do { MOZ_CrashSequence(__null, 9309); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9310
9311 RefPtr<ConnectionPool> connectionPool = gConnectionPool.get();
9312 if (connectionPool) {
9313 mState = State::WaitingForTransactions;
9314
9315 connectionPool->WaitForDatabaseToComplete(mDatabaseId, this);
9316
9317 return;
9318 }
9319
9320 CallCallback();
9321}
9322
9323void WaitForTransactionsHelper::CallCallback() {
9324 AssertIsOnBackgroundThread();
9325 MOZ_ASSERT(mState == State::Initial ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::Initial || mState == State::WaitingForTransactions
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mState == State::Initial || mState == State::WaitingForTransactions
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State::Initial || mState == State::WaitingForTransactions"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9326)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial || mState == State::WaitingForTransactions"
")"); do { MOZ_CrashSequence(__null, 9326); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
9326 mState == State::WaitingForTransactions)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::Initial || mState == State::WaitingForTransactions
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mState == State::Initial || mState == State::WaitingForTransactions
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State::Initial || mState == State::WaitingForTransactions"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9326)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial || mState == State::WaitingForTransactions"
")"); do { MOZ_CrashSequence(__null, 9326); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9327
9328 const nsCOMPtr<nsIRunnable> callback = std::move(mCallback);
9329
9330 callback->Run();
9331
9332 mState = State::Complete;
9333}
9334
9335NS_IMETHODIMPnsresult
9336WaitForTransactionsHelper::Run() {
9337 MOZ_ASSERT(mState != State::Complete)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState != State::Complete)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState != State::Complete)))
, 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState != State::Complete"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9337)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState != State::Complete"
")"); do { MOZ_CrashSequence(__null, 9337); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9338 MOZ_ASSERT(mCallback)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mCallback)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mCallback))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mCallback", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9338); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCallback" ")"
); do { MOZ_CrashSequence(__null, 9338); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9339
9340 switch (mState) {
9341 case State::Initial:
9342 MaybeWaitForTransactions();
9343 break;
9344
9345 case State::WaitingForTransactions:
9346 CallCallback();
9347 break;
9348
9349 default:
9350 MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9350)
; AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 9350); __attribute__((nomerge
)) ::abort(); } while (false); } while (false)
;
9351 }
9352
9353 return NS_OK;
9354}
9355
9356/*******************************************************************************
9357 * Database
9358 ******************************************************************************/
9359
9360Database::Database(SafeRefPtr<Factory> aFactory,
9361 const PrincipalInfo& aPrincipalInfo,
9362 const Maybe<ContentParentId>& aOptionalContentParentId,
9363 const quota::OriginMetadata& aOriginMetadata,
9364 uint32_t aTelemetryId,
9365 SafeRefPtr<FullDatabaseMetadata> aMetadata,
9366 SafeRefPtr<DatabaseFileManager> aFileManager,
9367 ClientDirectoryLockHandle aDirectoryLockHandle,
9368 bool aInPrivateBrowsing,
9369 const Maybe<const CipherKey>& aMaybeKey)
9370 : mFactory(std::move(aFactory)),
9371 mMetadata(std::move(aMetadata)),
9372 mFileManager(std::move(aFileManager)),
9373 mDirectoryLockHandle(std::move(aDirectoryLockHandle)),
9374 mPrincipalInfo(aPrincipalInfo),
9375 mOptionalContentParentId(aOptionalContentParentId),
9376 mOriginMetadata(aOriginMetadata),
9377 mId(mMetadata->mDatabaseId),
9378 mFilePath(mMetadata->mFilePath),
9379 mKey(aMaybeKey),
9380 mTelemetryId(aTelemetryId),
9381 mPersistenceType(mMetadata->mCommonMetadata.persistenceType()),
9382 mInPrivateBrowsing(aInPrivateBrowsing),
9383 mBackgroundThread(GetCurrentSerialEventTarget())
9384#ifdef DEBUG1
9385 ,
9386 mAllBlobsUnmapped(false)
9387#endif
9388{
9389 AssertIsOnBackgroundThread();
9390 MOZ_ASSERT(mFactory)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mFactory)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mFactory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mFactory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9390); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFactory" ")"
); do { MOZ_CrashSequence(__null, 9390); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9391 MOZ_ASSERT(mMetadata)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMetadata)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mMetadata))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9391); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata" ")"
); do { MOZ_CrashSequence(__null, 9391); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9392 MOZ_ASSERT(mFileManager)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mFileManager)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mFileManager))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mFileManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9392); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileManager"
")"); do { MOZ_CrashSequence(__null, 9392); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9393
9394 MOZ_ASSERT(mDirectoryLockHandle)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDirectoryLockHandle)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDirectoryLockHandle))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("mDirectoryLockHandle"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9394)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLockHandle"
")"); do { MOZ_CrashSequence(__null, 9394); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9395 MOZ_ASSERT(mDirectoryLockHandle->Id() >= 0)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDirectoryLockHandle->Id() >= 0)>::isValid,
"invalid assertion condition"); if ((__builtin_expect(!!(!(!
!(mDirectoryLockHandle->Id() >= 0))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mDirectoryLockHandle->Id() >= 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9395)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLockHandle->Id() >= 0"
")"); do { MOZ_CrashSequence(__null, 9395); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9396 mDirectoryLockId = mDirectoryLockHandle->Id();
9397}
9398
9399template <typename T>
9400bool Database::InvalidateAll(const nsTBaseHashSet<nsPtrHashKey<T>>& aTable) {
9401 AssertIsOnBackgroundThread();
9402
9403 const uint32_t count = aTable.Count();
9404 if (!count) {
9405 return true;
9406 }
9407
9408 // XXX Does this really need to be fallible?
9409 QM_TRY_INSPECT(const auto& elementsToInvalidate,auto tryResult1027 = (TransformIntoNewArray( aTable, [](const
auto& entry) { return entry; }, fallible)); if ((__builtin_expect
(!!(tryResult1027.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1027.unwrapErr(); mozilla::dom::quota::HandleError
("TransformIntoNewArray( aTable, [](const auto& entry) { return entry; }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9412, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( aTable, [](const auto& entry) { return entry; }, fallible)"
, tryTempError, false); } const auto& elementsToInvalidate
= tryResult1027.inspect();
9410 TransformIntoNewArray(auto tryResult1027 = (TransformIntoNewArray( aTable, [](const
auto& entry) { return entry; }, fallible)); if ((__builtin_expect
(!!(tryResult1027.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1027.unwrapErr(); mozilla::dom::quota::HandleError
("TransformIntoNewArray( aTable, [](const auto& entry) { return entry; }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9412, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( aTable, [](const auto& entry) { return entry; }, fallible)"
, tryTempError, false); } const auto& elementsToInvalidate
= tryResult1027.inspect();
9411 aTable, [](const auto& entry) { return entry; }, fallible),auto tryResult1027 = (TransformIntoNewArray( aTable, [](const
auto& entry) { return entry; }, fallible)); if ((__builtin_expect
(!!(tryResult1027.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1027.unwrapErr(); mozilla::dom::quota::HandleError
("TransformIntoNewArray( aTable, [](const auto& entry) { return entry; }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9412, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( aTable, [](const auto& entry) { return entry; }, fallible)"
, tryTempError, false); } const auto& elementsToInvalidate
= tryResult1027.inspect();
9412 false)auto tryResult1027 = (TransformIntoNewArray( aTable, [](const
auto& entry) { return entry; }, fallible)); if ((__builtin_expect
(!!(tryResult1027.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1027.unwrapErr(); mozilla::dom::quota::HandleError
("TransformIntoNewArray( aTable, [](const auto& entry) { return entry; }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9412, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( aTable, [](const auto& entry) { return entry; }, fallible)"
, tryTempError, false); } const auto& elementsToInvalidate
= tryResult1027.inspect();
;
9413
9414 for (const auto& elementToInvalidate : elementsToInvalidate) {
9415 MOZ_ASSERT(elementToInvalidate)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(elementToInvalidate)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(elementToInvalidate))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("elementToInvalidate"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9415)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "elementToInvalidate"
")"); do { MOZ_CrashSequence(__null, 9415); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9416
9417 elementToInvalidate->Invalidate();
9418 }
9419
9420 return true;
9421}
9422
9423void Database::Invalidate() {
9424 AssertIsOnBackgroundThread();
9425
9426 if (mInvalidated) {
9427 return;
9428 }
9429
9430 mInvalidated.Flip();
9431
9432 if (mActorWasAlive && !mActorDestroyed) {
9433 (void)SendInvalidate();
9434 }
9435
9436 QM_WARNONLY_TRY(OkIf(InvalidateAll(mTransactions))){auto tryResult1028 = (OkIf(InvalidateAll(mTransactions))); static_assert
(std::is_empty_v<typename decltype(tryResult1028)::ok_type
>); if ((__builtin_expect(!!(tryResult1028.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(InvalidateAll(mTransactions))"
, tryResult1028.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9436, mozilla::dom::quota::Severity::Warning); }}
;
9437
9438 MOZ_ALWAYS_TRUE(CloseInternal())do { if ((__builtin_expect(!!(CloseInternal()), 1))) { } else
{ do { do { } while (false); MOZ_ReportCrash("" "CloseInternal()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9438)
; AnnotateMozCrashReason("MOZ_CRASH(" "CloseInternal()" ")");
do { MOZ_CrashSequence(__null, 9438); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
9439}
9440
9441nsresult Database::EnsureConnection() {
9442 MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9442)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { MOZ_CrashSequence(__null, 9442); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9443 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9443)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 9443); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9444
9445 AUTO_PROFILER_LABEL("Database::EnsureConnection", DOM)mozilla::AutoProfilerLabel raiiObject9445( "Database::EnsureConnection"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
9446
9447 if (!mConnection || !mConnection->HasStorageConnection()) {
9448 QM_TRY_UNWRAP(mConnection, gConnectionPool->GetOrCreateConnection(*this))auto tryResult1029 = (gConnectionPool->GetOrCreateConnection
(*this)); if ((__builtin_expect(!!(tryResult1029.isErr()), 0)
)) { mozilla::dom::quota::HandleError("gConnectionPool->GetOrCreateConnection(*this)"
, tryResult1029.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9448, mozilla::dom::quota::Severity::Error); return tryResult1029
.propagateErr(); } mConnection = tryResult1029.unwrap();
;
9449 }
9450
9451 AssertIsOnConnectionThread();
9452
9453 return NS_OK;
9454}
9455
9456bool Database::RegisterTransaction(TransactionBase& aTransaction) {
9457 AssertIsOnBackgroundThread();
9458 MOZ_ASSERT(!mTransactions.Contains(&aTransaction))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mTransactions.Contains(&aTransaction))>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(!mTransactions.Contains(&aTransaction)))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("!mTransactions.Contains(&aTransaction)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9458)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransactions.Contains(&aTransaction)"
")"); do { MOZ_CrashSequence(__null, 9458); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9459 MOZ_ASSERT(mDirectoryLockHandle)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDirectoryLockHandle)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDirectoryLockHandle))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("mDirectoryLockHandle"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9459)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLockHandle"
")"); do { MOZ_CrashSequence(__null, 9459); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9460 MOZ_ASSERT(!mInvalidated)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mInvalidated)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mInvalidated))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("!mInvalidated",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9460);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInvalidated" ")")
; do { MOZ_CrashSequence(__null, 9460); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9461 MOZ_ASSERT(!mClosed)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mClosed)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mClosed))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!mClosed", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9461); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mClosed" ")"
); do { MOZ_CrashSequence(__null, 9461); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9462
9463 if (NS_WARN_IF(!mTransactions.Insert(&aTransaction, fallible))NS_warn_if_impl(!mTransactions.Insert(&aTransaction, fallible
), "!mTransactions.Insert(&aTransaction, fallible)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9463)
) {
9464 return false;
9465 }
9466
9467 return true;
9468}
9469
9470void Database::UnregisterTransaction(TransactionBase& aTransaction) {
9471 AssertIsOnBackgroundThread();
9472 MOZ_ASSERT(mTransactions.Contains(&aTransaction))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mTransactions.Contains(&aTransaction))>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mTransactions.Contains(&aTransaction)))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mTransactions.Contains(&aTransaction)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9472)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransactions.Contains(&aTransaction)"
")"); do { MOZ_CrashSequence(__null, 9472); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9473
9474 mTransactions.Remove(&aTransaction);
9475
9476 MaybeCloseConnection();
9477}
9478
9479void Database::SetActorAlive() {
9480 AssertIsOnBackgroundThread();
9481 MOZ_ASSERT(!mActorDestroyed)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mActorDestroyed)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mActorDestroyed))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!mActorDestroyed"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9481)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mActorDestroyed" ")"
); do { MOZ_CrashSequence(__null, 9481); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9482
9483 mActorWasAlive.Flip();
9484}
9485
9486void Database::MapBlob(const IPCBlob& aIPCBlob,
9487 SafeRefPtr<DatabaseFileInfo> aFileInfo) {
9488 AssertIsOnBackgroundThread();
9489
9490 const RemoteLazyStream& stream = aIPCBlob.inputStream();
9491 MOZ_ASSERT(stream.type() == RemoteLazyStream::TRemoteLazyInputStream)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(stream.type() == RemoteLazyStream::TRemoteLazyInputStream
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(stream.type() == RemoteLazyStream::TRemoteLazyInputStream
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"stream.type() == RemoteLazyStream::TRemoteLazyInputStream", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "stream.type() == RemoteLazyStream::TRemoteLazyInputStream"
")"); do { MOZ_CrashSequence(__null, 9491); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9492
9493 nsID id{};
9494 MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(stream.get_RemoteLazyInputStream()->GetInternalStreamID(id
))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(stream.get_RemoteLazyInputStream()->GetInternalStreamID(id))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9495)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(stream.get_RemoteLazyInputStream()->GetInternalStreamID(id))"
")"); do { MOZ_CrashSequence(__null, 9495); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
9495 stream.get_RemoteLazyInputStream()->GetInternalStreamID(id))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(stream.get_RemoteLazyInputStream()->GetInternalStreamID(id
))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(stream.get_RemoteLazyInputStream()->GetInternalStreamID(id))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9495)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(stream.get_RemoteLazyInputStream()->GetInternalStreamID(id))"
")"); do { MOZ_CrashSequence(__null, 9495); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
9496
9497 MOZ_ASSERT(!mMappedBlobs.Contains(id))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mMappedBlobs.Contains(id))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mMappedBlobs.Contains(id)))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mMappedBlobs.Contains(id)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9497)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mMappedBlobs.Contains(id)"
")"); do { MOZ_CrashSequence(__null, 9497); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9498 mMappedBlobs.InsertOrUpdate(id, std::move(aFileInfo));
9499
9500 RefPtr<UnmapBlobCallback> callback =
9501 new UnmapBlobCallback(SafeRefPtrFromThis());
9502
9503 auto storage = RemoteLazyInputStreamStorage::Get();
9504 MOZ_ASSERT(storage.isOk())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(storage.isOk())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(storage.isOk()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("storage.isOk()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9504)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "storage.isOk()" ")"
); do { MOZ_CrashSequence(__null, 9504); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9505 storage.inspect()->StoreCallback(id, callback);
9506}
9507
9508void Database::Stringify(nsACString& aResult) const {
9509 AssertIsOnBackgroundThread();
9510
9511 constexpr auto kQuotaGenericDelimiterString = "|"_ns;
9512
9513 aResult.Append(
9514 "DirectoryLock:"_ns + IntToCString(!!mDirectoryLockHandle) +
9515 kQuotaGenericDelimiterString +
9516 //
9517 "Transactions:"_ns + IntToCString(mTransactions.Count()) +
9518 kQuotaGenericDelimiterString +
9519 //
9520 "OtherProcessActor:"_ns +
9521 IntToCString(
9522 BackgroundParent::IsOtherProcessActor(GetBackgroundParent())) +
9523 kQuotaGenericDelimiterString +
9524 //
9525 "Origin:"_ns + AnonymizedOriginString(mOriginMetadata.mOrigin) +
9526 kQuotaGenericDelimiterString +
9527 //
9528 "PersistenceType:"_ns + PersistenceTypeToString(mPersistenceType) +
9529 kQuotaGenericDelimiterString +
9530 //
9531 "Closed:"_ns + IntToCString(static_cast<bool>(mClosed)) +
9532 kQuotaGenericDelimiterString +
9533 //
9534 "Invalidated:"_ns + IntToCString(static_cast<bool>(mInvalidated)) +
9535 kQuotaGenericDelimiterString +
9536 //
9537 "ActorWasAlive:"_ns + IntToCString(static_cast<bool>(mActorWasAlive)) +
9538 kQuotaGenericDelimiterString +
9539 //
9540 "ActorDestroyed:"_ns + IntToCString(static_cast<bool>(mActorDestroyed)));
9541}
9542
9543SafeRefPtr<DatabaseFileInfo> Database::GetBlob(const IPCBlob& aIPCBlob) {
9544 AssertIsOnBackgroundThread();
9545
9546 RefPtr<RemoteLazyInputStream> lazyStream;
9547 switch (aIPCBlob.inputStream().type()) {
9548 case RemoteLazyStream::TIPCStream: {
9549 const InputStreamParams& inputStreamParams =
9550 aIPCBlob.inputStream().get_IPCStream().stream();
9551 if (inputStreamParams.type() !=
9552 InputStreamParams::TRemoteLazyInputStreamParams) {
9553 return nullptr;
9554 }
9555 lazyStream = inputStreamParams.get_RemoteLazyInputStreamParams().stream();
9556 break;
9557 }
9558 case RemoteLazyStream::TRemoteLazyInputStream:
9559 lazyStream = aIPCBlob.inputStream().get_RemoteLazyInputStream();
9560 break;
9561 default:
9562 MOZ_ASSERT_UNREACHABLE("Unknown RemoteLazyStream type")do { static_assert( mozilla::detail::AssertionConditionType<
decltype(false)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("false" " (" "MOZ_ASSERT_UNREACHABLE: "
"Unknown RemoteLazyStream type" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9562); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"MOZ_ASSERT_UNREACHABLE: " "Unknown RemoteLazyStream type" ")"
); do { MOZ_CrashSequence(__null, 9562); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9563 return nullptr;
9564 }
9565
9566 if (!lazyStream) {
9567 MOZ_ASSERT_UNREACHABLE("Unexpected null stream")do { static_assert( mozilla::detail::AssertionConditionType<
decltype(false)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("false" " (" "MOZ_ASSERT_UNREACHABLE: "
"Unexpected null stream" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9567); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"MOZ_ASSERT_UNREACHABLE: " "Unexpected null stream" ")"); do
{ MOZ_CrashSequence(__null, 9567); __attribute__((nomerge)) ::
abort(); } while (false); } } while (false)
;
9568 return nullptr;
9569 }
9570
9571 nsID id{};
9572 nsresult rv = lazyStream->GetInternalStreamID(id);
9573 if (NS_FAILED(rv)((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) {
9574 MOZ_ASSERT_UNREACHABLE(do { static_assert( mozilla::detail::AssertionConditionType<
decltype(false)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("false" " (" "MOZ_ASSERT_UNREACHABLE: "
"Received RemoteLazyInputStream doesn't have an actor connection"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9575
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "MOZ_ASSERT_UNREACHABLE: "
"Received RemoteLazyInputStream doesn't have an actor connection"
")"); do { MOZ_CrashSequence(__null, 9575); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
9575 "Received RemoteLazyInputStream doesn't have an actor connection")do { static_assert( mozilla::detail::AssertionConditionType<
decltype(false)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("false" " (" "MOZ_ASSERT_UNREACHABLE: "
"Received RemoteLazyInputStream doesn't have an actor connection"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9575
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "MOZ_ASSERT_UNREACHABLE: "
"Received RemoteLazyInputStream doesn't have an actor connection"
")"); do { MOZ_CrashSequence(__null, 9575); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9576 return nullptr;
9577 }
9578
9579 const auto fileInfo = mMappedBlobs.Lookup(id);
9580 return fileInfo ? fileInfo->clonePtr() : nullptr;
9581}
9582
9583void Database::UnmapBlob(const nsID& aID) {
9584 AssertIsOnBackgroundThread();
9585
9586 MOZ_ASSERT_IF(!mAllBlobsUnmapped, mMappedBlobs.Contains(aID))do { if (!mAllBlobsUnmapped) { do { static_assert( mozilla::detail
::AssertionConditionType<decltype(mMappedBlobs.Contains(aID
))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mMappedBlobs.Contains(aID)))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("mMappedBlobs.Contains(aID)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9586)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMappedBlobs.Contains(aID)"
")"); do { MOZ_CrashSequence(__null, 9586); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
9587 mMappedBlobs.Remove(aID);
9588}
9589
9590void Database::UnmapAllBlobs() {
9591 AssertIsOnBackgroundThread();
9592
9593#ifdef DEBUG1
9594 mAllBlobsUnmapped = true;
9595#endif
9596
9597 mMappedBlobs.Clear();
9598}
9599
9600bool Database::CloseInternal() {
9601 AssertIsOnBackgroundThread();
9602
9603 if (mClosed) {
9604 if (NS_WARN_IF(!IsInvalidated())NS_warn_if_impl(!IsInvalidated(), "!IsInvalidated()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9604)
) {
9605 // Signal misbehaving child for sending the close message twice.
9606 return false;
9607 }
9608
9609 // Ignore harmless race when we just invalidated the database.
9610 return true;
9611 }
9612
9613 mClosed.Flip();
9614
9615 if (gConnectionPool) {
9616 gConnectionPool->CloseDatabaseWhenIdle(Id());
9617 }
9618
9619 DatabaseActorInfo* info;
9620 MOZ_ALWAYS_TRUE(gLiveDatabaseHashtable->Get(Id(), &info))do { if ((__builtin_expect(!!(gLiveDatabaseHashtable->Get(
Id(), &info)), 1))) { } else { do { do { } while (false);
MOZ_ReportCrash("" "gLiveDatabaseHashtable->Get(Id(), &info)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9620)
; AnnotateMozCrashReason("MOZ_CRASH(" "gLiveDatabaseHashtable->Get(Id(), &info)"
")"); do { MOZ_CrashSequence(__null, 9620); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
9621
9622 MOZ_ASSERT(info->mLiveDatabases.contains(this))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(info->mLiveDatabases.contains(this))>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(info->mLiveDatabases.contains(this)))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("info->mLiveDatabases.contains(this)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9622)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "info->mLiveDatabases.contains(this)"
")"); do { MOZ_CrashSequence(__null, 9622); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9623
9624 if (info->mWaitingFactoryOp) {
9625 info->mWaitingFactoryOp->NoteDatabaseClosed(this);
9626 }
9627
9628 MaybeCloseConnection();
9629
9630 return true;
9631}
9632
9633void Database::MaybeCloseConnection() {
9634 AssertIsOnBackgroundThread();
9635
9636 if (!mTransactions.Count() && IsClosed() && mDirectoryLockHandle) {
9637 nsCOMPtr<nsIRunnable> callback =
9638 NewRunnableMethod("dom::indexedDB::Database::ConnectionClosedCallback",
9639 this, &Database::ConnectionClosedCallback);
9640
9641 RefPtr<WaitForTransactionsHelper> helper =
9642 new WaitForTransactionsHelper(Id(), callback);
9643 helper->WaitForTransactions();
9644 }
9645}
9646
9647void Database::ConnectionClosedCallback() {
9648 AssertIsOnBackgroundThread();
9649 MOZ_ASSERT(mClosed)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mClosed)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mClosed))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mClosed", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9649); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mClosed" ")"
); do { MOZ_CrashSequence(__null, 9649); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9650 MOZ_ASSERT(!mTransactions.Count())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mTransactions.Count())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mTransactions.Count()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!mTransactions.Count()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9650)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransactions.Count()"
")"); do { MOZ_CrashSequence(__null, 9650); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9651
9652 {
9653 auto destroyingDirectoryLockHandle = std::move(mDirectoryLockHandle);
9654 }
9655
9656 CleanupMetadata();
9657
9658 UnmapAllBlobs();
9659
9660 if (IsInvalidated() && IsActorAlive()) {
9661 // Step 3 and 4 of "5.2 Closing a Database":
9662 // 1. Wait for all transactions to complete.
9663 // 2. Fire a close event if forced flag is set, i.e., IsInvalidated() in our
9664 // implementation.
9665 (void)SendCloseAfterInvalidationComplete();
9666 }
9667}
9668
9669void Database::CleanupMetadata() {
9670 AssertIsOnBackgroundThread();
9671
9672 DatabaseActorInfo* info;
9673 MOZ_ALWAYS_TRUE(gLiveDatabaseHashtable->Get(Id(), &info))do { if ((__builtin_expect(!!(gLiveDatabaseHashtable->Get(
Id(), &info)), 1))) { } else { do { do { } while (false);
MOZ_ReportCrash("" "gLiveDatabaseHashtable->Get(Id(), &info)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9673)
; AnnotateMozCrashReason("MOZ_CRASH(" "gLiveDatabaseHashtable->Get(Id(), &info)"
")"); do { MOZ_CrashSequence(__null, 9673); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
9674 removeFrom(info->mLiveDatabases);
9675
9676 QuotaManager::MaybeRecordQuotaClientShutdownStep(
9677 quota::Client::IDB, "Live database entry removed"_ns);
9678
9679 if (info->mLiveDatabases.isEmpty()) {
9680 MOZ_ASSERT(!info->mWaitingFactoryOp ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!info->mWaitingFactoryOp || !info->mWaitingFactoryOp
->HasBlockedDatabases())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!info->mWaitingFactoryOp ||
!info->mWaitingFactoryOp->HasBlockedDatabases()))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("!info->mWaitingFactoryOp || !info->mWaitingFactoryOp->HasBlockedDatabases()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9681)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp || !info->mWaitingFactoryOp->HasBlockedDatabases()"
")"); do { MOZ_CrashSequence(__null, 9681); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
9681 !info->mWaitingFactoryOp->HasBlockedDatabases())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!info->mWaitingFactoryOp || !info->mWaitingFactoryOp
->HasBlockedDatabases())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!info->mWaitingFactoryOp ||
!info->mWaitingFactoryOp->HasBlockedDatabases()))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("!info->mWaitingFactoryOp || !info->mWaitingFactoryOp->HasBlockedDatabases()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9681)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp || !info->mWaitingFactoryOp->HasBlockedDatabases()"
")"); do { MOZ_CrashSequence(__null, 9681); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9682 gLiveDatabaseHashtable->Remove(Id());
9683
9684 QuotaManager::MaybeRecordQuotaClientShutdownStep(
9685 quota::Client::IDB, "gLiveDatabaseHashtable entry removed"_ns);
9686 }
9687
9688 // Match the IncreaseBusyCount in OpenDatabaseOp::EnsureDatabaseActor().
9689 DecreaseBusyCount();
9690}
9691
9692void Database::ActorDestroy(ActorDestroyReason aWhy) {
9693 AssertIsOnBackgroundThread();
9694
9695 mActorDestroyed.Flip();
9696
9697 if (!IsInvalidated()) {
9698 Invalidate();
9699 }
9700}
9701
9702PBackgroundIDBDatabaseFileParent*
9703Database::AllocPBackgroundIDBDatabaseFileParent(const IPCBlob& aIPCBlob) {
9704 AssertIsOnBackgroundThread();
9705
9706 SafeRefPtr<DatabaseFileInfo> fileInfo = GetBlob(aIPCBlob);
9707 RefPtr<DatabaseFile> actor;
9708
9709 if (fileInfo) {
9710 actor = new DatabaseFile(std::move(fileInfo));
9711 } else {
9712 // This is a blob we haven't seen before.
9713 fileInfo = mFileManager->CreateFileInfo();
9714 if (NS_WARN_IF(!fileInfo)NS_warn_if_impl(!fileInfo, "!fileInfo", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9714)
) {
9715 return nullptr;
9716 }
9717
9718 actor = new DatabaseFile(IPCBlobUtils::Deserialize(aIPCBlob),
9719 std::move(fileInfo));
9720 }
9721
9722 MOZ_ASSERT(actor)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(actor)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(actor))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("actor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9722); AnnotateMozCrashReason("MOZ_ASSERT" "(" "actor" ")")
; do { MOZ_CrashSequence(__null, 9722); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9723
9724 return actor.forget().take();
9725}
9726
9727bool Database::DeallocPBackgroundIDBDatabaseFileParent(
9728 PBackgroundIDBDatabaseFileParent* aActor) {
9729 AssertIsOnBackgroundThread();
9730 MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aActor)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9730); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { MOZ_CrashSequence(__null, 9730); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9731
9732 RefPtr<DatabaseFile> actor = dont_AddRef(static_cast<DatabaseFile*>(aActor));
9733 return true;
9734}
9735
9736already_AddRefed<PBackgroundIDBTransactionParent>
9737Database::AllocPBackgroundIDBTransactionParent(
9738 const nsTArray<nsString>& aObjectStoreNames, const Mode& aMode,
9739 const Durability& aDurability) {
9740 AssertIsOnBackgroundThread();
9741
9742 // Once a database is closed it must not try to open new transactions.
9743 if (NS_WARN_IF(mClosed)NS_warn_if_impl(mClosed, "mClosed", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9743)
) {
9744 MOZ_ASSERT_UNLESS_FUZZING(mInvalidated)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mInvalidated)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mInvalidated))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mInvalidated", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9744); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInvalidated"
")"); do { MOZ_CrashSequence(__null, 9744); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9745 return nullptr;
9746 }
9747
9748 if (NS_AUUF_OR_WARN_IF(aObjectStoreNames.IsEmpty())[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "aObjectStoreNames.IsEmpty()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9748); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"aObjectStoreNames.IsEmpty()" ")"); do { MOZ_CrashSequence(__null
, 9748); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); } return aCond; }((aObjectStoreNames.IsEmpty
()))
) {
9749 return nullptr;
9750 }
9751
9752 if (NS_AUUF_OR_WARN_IF(aMode != IDBTransaction::Mode::ReadOnly &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "aMode != IDBTransaction::Mode::ReadOnly && aMode != IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode::Cleanup"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9755
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aMode != IDBTransaction::Mode::ReadOnly && aMode != IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode::Cleanup"
")"); do { MOZ_CrashSequence(__null, 9755); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((aMode != IDBTransaction::Mode::ReadOnly && aMode
!= IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction
::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode
::Cleanup))
9753 aMode != IDBTransaction::Mode::ReadWrite &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "aMode != IDBTransaction::Mode::ReadOnly && aMode != IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode::Cleanup"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9755
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aMode != IDBTransaction::Mode::ReadOnly && aMode != IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode::Cleanup"
")"); do { MOZ_CrashSequence(__null, 9755); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((aMode != IDBTransaction::Mode::ReadOnly && aMode
!= IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction
::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode
::Cleanup))
9754 aMode != IDBTransaction::Mode::ReadWriteFlush &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "aMode != IDBTransaction::Mode::ReadOnly && aMode != IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode::Cleanup"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9755
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aMode != IDBTransaction::Mode::ReadOnly && aMode != IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode::Cleanup"
")"); do { MOZ_CrashSequence(__null, 9755); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((aMode != IDBTransaction::Mode::ReadOnly && aMode
!= IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction
::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode
::Cleanup))
9755 aMode != IDBTransaction::Mode::Cleanup)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "aMode != IDBTransaction::Mode::ReadOnly && aMode != IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode::Cleanup"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9755
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aMode != IDBTransaction::Mode::ReadOnly && aMode != IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode::Cleanup"
")"); do { MOZ_CrashSequence(__null, 9755); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((aMode != IDBTransaction::Mode::ReadOnly && aMode
!= IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction
::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode
::Cleanup))
) {
9756 return nullptr;
9757 }
9758
9759 if (NS_AUUF_OR_WARN_IF(aDurability != IDBTransaction::Durability::Default &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "aDurability != IDBTransaction::Durability::Default && aDurability != IDBTransaction::Durability::Strict && aDurability != IDBTransaction::Durability::Relaxed"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9761
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aDurability != IDBTransaction::Durability::Default && aDurability != IDBTransaction::Durability::Strict && aDurability != IDBTransaction::Durability::Relaxed"
")"); do { MOZ_CrashSequence(__null, 9761); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((aDurability != IDBTransaction::Durability::Default &&
aDurability != IDBTransaction::Durability::Strict &&
aDurability != IDBTransaction::Durability::Relaxed))
9760 aDurability != IDBTransaction::Durability::Strict &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "aDurability != IDBTransaction::Durability::Default && aDurability != IDBTransaction::Durability::Strict && aDurability != IDBTransaction::Durability::Relaxed"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9761
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aDurability != IDBTransaction::Durability::Default && aDurability != IDBTransaction::Durability::Strict && aDurability != IDBTransaction::Durability::Relaxed"
")"); do { MOZ_CrashSequence(__null, 9761); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((aDurability != IDBTransaction::Durability::Default &&
aDurability != IDBTransaction::Durability::Strict &&
aDurability != IDBTransaction::Durability::Relaxed))
9761 aDurability != IDBTransaction::Durability::Relaxed)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "aDurability != IDBTransaction::Durability::Default && aDurability != IDBTransaction::Durability::Strict && aDurability != IDBTransaction::Durability::Relaxed"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9761
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aDurability != IDBTransaction::Durability::Default && aDurability != IDBTransaction::Durability::Strict && aDurability != IDBTransaction::Durability::Relaxed"
")"); do { MOZ_CrashSequence(__null, 9761); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((aDurability != IDBTransaction::Durability::Default &&
aDurability != IDBTransaction::Durability::Strict &&
aDurability != IDBTransaction::Durability::Relaxed))
) {
9762 return nullptr;
9763 }
9764
9765 const ObjectStoreTable& objectStores = mMetadata->mObjectStores;
9766 const uint32_t nameCount = aObjectStoreNames.Length();
9767
9768 if (NS_AUUF_OR_WARN_IF(nameCount > objectStores.Count())[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "nameCount > objectStores.Count()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9768); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"nameCount > objectStores.Count()" ")"); do { MOZ_CrashSequence
(__null, 9768); __attribute__((nomerge)) ::abort(); } while (
false); } } while (false); } return aCond; }((nameCount > objectStores
.Count()))
) {
9769 return nullptr;
9770 }
9771
9772 QM_TRY_UNWRAP(auto tryResult1030 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9783
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9793)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9798); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9798); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult1030.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1030.unwrapErr(); mozilla::dom::quota::HandleError
("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9805, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1030
.unwrap();
9773 auto objectStoreMetadatas,auto tryResult1030 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9783
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9793)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9798); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9798); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult1030.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1030.unwrapErr(); mozilla::dom::quota::HandleError
("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9805, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1030
.unwrap();
9774 TransformIntoNewArrayAbortOnErr(auto tryResult1030 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9783
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9793)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9798); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9798); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult1030.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1030.unwrapErr(); mozilla::dom::quota::HandleError
("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9805, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1030
.unwrap();
9775 aObjectStoreNames,auto tryResult1030 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9783
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9793)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9798); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9798); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult1030.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1030.unwrapErr(); mozilla::dom::quota::HandleError
("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9805, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1030
.unwrap();
9776 [lastName = Maybe<const nsString&>{},auto tryResult1030 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9783
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9793)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9798); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9798); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult1030.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1030.unwrapErr(); mozilla::dom::quota::HandleError
("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9805, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1030
.unwrap();
9777 &objectStores](const nsString& name) mutableauto tryResult1030 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9783
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9793)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9798); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9798); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult1030.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1030.unwrapErr(); mozilla::dom::quota::HandleError
("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9805, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1030
.unwrap();
9778 -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>,auto tryResult1030 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9783
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9793)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9798); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9798); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult1030.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1030.unwrapErr(); mozilla::dom::quota::HandleError
("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9805, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1030
.unwrap();
9779 nsresult> {auto tryResult1030 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9783
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9793)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9798); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9798); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult1030.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1030.unwrapErr(); mozilla::dom::quota::HandleError
("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9805, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1030
.unwrap();
9780 if (lastName) {auto tryResult1030 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9783
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9793)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9798); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9798); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult1030.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1030.unwrapErr(); mozilla::dom::quota::HandleError
("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9805, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1030
.unwrap();
9781 // Make sure that this name is sorted properly and not aauto tryResult1030 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9783
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9793)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9798); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9798); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult1030.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1030.unwrapErr(); mozilla::dom::quota::HandleError
("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9805, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1030
.unwrap();
9782 // duplicate.auto tryResult1030 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9783
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9793)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9798); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9798); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult1030.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1030.unwrapErr(); mozilla::dom::quota::HandleError
("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9805, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1030
.unwrap();
9783 if (NS_AUUF_OR_WARN_IF(name <= lastName.ref())) {auto tryResult1030 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9783
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9793)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9798); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9798); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult1030.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1030.unwrapErr(); mozilla::dom::quota::HandleError
("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9805, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1030
.unwrap();
9784 return Err(NS_ERROR_FAILURE);auto tryResult1030 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9783
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9793)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9798); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9798); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult1030.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1030.unwrapErr(); mozilla::dom::quota::HandleError
("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9805, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1030
.unwrap();
9785 }auto tryResult1030 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9783
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9793)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9798); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9798); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult1030.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1030.unwrapErr(); mozilla::dom::quota::HandleError
("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9805, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1030
.unwrap();
9786 }auto tryResult1030 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9783
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9793)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9798); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9798); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult1030.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1030.unwrapErr(); mozilla::dom::quota::HandleError
("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9805, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1030
.unwrap();
9787 lastName = SomeRef(name);auto tryResult1030 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9783
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9793)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9798); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9798); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult1030.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1030.unwrapErr(); mozilla::dom::quota::HandleError
("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9805, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1030
.unwrap();
9788
9789 const auto foundIt =auto tryResult1030 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9783
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9793)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9798); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9798); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult1030.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1030.unwrapErr(); mozilla::dom::quota::HandleError
("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9805, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1030
.unwrap();
9790 std::find_if(objectStores.cbegin(), objectStores.cend(),auto tryResult1030 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9783
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9793)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9798); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9798); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult1030.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1030.unwrapErr(); mozilla::dom::quota::HandleError
("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9805, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1030
.unwrap();
9791 [&name](const auto& entry) {auto tryResult1030 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9783
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9793)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9798); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9798); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult1030.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1030.unwrapErr(); mozilla::dom::quota::HandleError
("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9805, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1030
.unwrap();
9792 const auto& value = entry.GetData();auto tryResult1030 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9783
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9793)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9798); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9798); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult1030.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1030.unwrapErr(); mozilla::dom::quota::HandleError
("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9805, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1030
.unwrap();
9793 MOZ_ASSERT(entry.GetKey());auto tryResult1030 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9783
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9793)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9798); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9798); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult1030.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1030.unwrapErr(); mozilla::dom::quota::HandleError
("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9805, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1030
.unwrap();
9794 return name == value->mCommonMetadata.name() &&auto tryResult1030 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9783
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9793)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9798); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9798); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult1030.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1030.unwrapErr(); mozilla::dom::quota::HandleError
("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9805, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1030
.unwrap();
9795 !value->mDeleted;auto tryResult1030 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9783
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9793)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9798); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9798); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult1030.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1030.unwrapErr(); mozilla::dom::quota::HandleError
("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9805, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1030
.unwrap();
9796 });auto tryResult1030 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9783
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9793)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9798); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9798); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult1030.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1030.unwrapErr(); mozilla::dom::quota::HandleError
("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9805, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1030
.unwrap();
9797 if (foundIt == objectStores.cend()) {auto tryResult1030 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9783
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9793)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9798); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9798); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult1030.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1030.unwrapErr(); mozilla::dom::quota::HandleError
("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9805, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1030
.unwrap();
9798 MOZ_ASSERT_UNLESS_FUZZING(false, "ObjectStore not found.");auto tryResult1030 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9783
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9793)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9798); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9798); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult1030.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1030.unwrapErr(); mozilla::dom::quota::HandleError
("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9805, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1030
.unwrap();
9799 return Err(NS_ERROR_FAILURE);auto tryResult1030 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9783
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9793)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9798); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9798); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult1030.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1030.unwrapErr(); mozilla::dom::quota::HandleError
("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9805, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1030
.unwrap();
9800 }auto tryResult1030 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9783
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9793)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9798); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9798); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult1030.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1030.unwrapErr(); mozilla::dom::quota::HandleError
("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9805, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1030
.unwrap();
9801
9802 return foundIt->GetData().clonePtr();auto tryResult1030 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9783
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9793)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9798); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9798); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult1030.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1030.unwrapErr(); mozilla::dom::quota::HandleError
("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9805, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1030
.unwrap();
9803 },auto tryResult1030 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9783
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9793)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9798); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9798); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult1030.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1030.unwrapErr(); mozilla::dom::quota::HandleError
("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9805, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1030
.unwrap();
9804 fallible),auto tryResult1030 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9783
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9793)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9798); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9798); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult1030.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1030.unwrapErr(); mozilla::dom::quota::HandleError
("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9805, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1030
.unwrap();
9805 nullptr)auto tryResult1030 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9783
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9793)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9798); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9798); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult1030.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1030.unwrapErr(); mozilla::dom::quota::HandleError
("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9805, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9783); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9783); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9793); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9793); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9798); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9798); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1030
.unwrap();
;
9806
9807 return MakeSafeRefPtr<NormalTransaction>(SafeRefPtrFromThis(), aMode,
9808 aDurability,
9809 std::move(objectStoreMetadatas))
9810 .forget();
9811}
9812
9813mozilla::ipc::IPCResult Database::RecvPBackgroundIDBTransactionConstructor(
9814 PBackgroundIDBTransactionParent* aActor,
9815 nsTArray<nsString>&& aObjectStoreNames, const Mode& aMode,
9816 const Durability& aDurability) {
9817 AssertIsOnBackgroundThread();
9818 MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aActor)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9818); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { MOZ_CrashSequence(__null, 9818); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9819 MOZ_ASSERT(!aObjectStoreNames.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aObjectStoreNames.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!aObjectStoreNames.IsEmpty()
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"!aObjectStoreNames.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9819); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aObjectStoreNames.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 9819); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9820 MOZ_ASSERT(aMode == IDBTransaction::Mode::ReadOnly ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction
::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush
|| aMode == IDBTransaction::Mode::Cleanup)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aMode == IDBTransaction::Mode
::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode
== IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction
::Mode::Cleanup))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction::Mode::Cleanup"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9823)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction::Mode::Cleanup"
")"); do { MOZ_CrashSequence(__null, 9823); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
9821 aMode == IDBTransaction::Mode::ReadWrite ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction
::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush
|| aMode == IDBTransaction::Mode::Cleanup)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aMode == IDBTransaction::Mode
::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode
== IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction
::Mode::Cleanup))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction::Mode::Cleanup"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9823)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction::Mode::Cleanup"
")"); do { MOZ_CrashSequence(__null, 9823); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
9822 aMode == IDBTransaction::Mode::ReadWriteFlush ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction
::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush
|| aMode == IDBTransaction::Mode::Cleanup)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aMode == IDBTransaction::Mode
::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode
== IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction
::Mode::Cleanup))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction::Mode::Cleanup"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9823)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction::Mode::Cleanup"
")"); do { MOZ_CrashSequence(__null, 9823); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
9823 aMode == IDBTransaction::Mode::Cleanup)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction
::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush
|| aMode == IDBTransaction::Mode::Cleanup)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aMode == IDBTransaction::Mode
::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode
== IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction
::Mode::Cleanup))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction::Mode::Cleanup"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9823)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction::Mode::Cleanup"
")"); do { MOZ_CrashSequence(__null, 9823); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9824 MOZ_ASSERT(aDurability == IDBTransaction::Durability::Default ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDurability == IDBTransaction::Durability::Default ||
aDurability == IDBTransaction::Durability::Strict || aDurability
== IDBTransaction::Durability::Relaxed)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDurability == IDBTransaction
::Durability::Default || aDurability == IDBTransaction::Durability
::Strict || aDurability == IDBTransaction::Durability::Relaxed
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"aDurability == IDBTransaction::Durability::Default || aDurability == IDBTransaction::Durability::Strict || aDurability == IDBTransaction::Durability::Relaxed"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9826)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDurability == IDBTransaction::Durability::Default || aDurability == IDBTransaction::Durability::Strict || aDurability == IDBTransaction::Durability::Relaxed"
")"); do { MOZ_CrashSequence(__null, 9826); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
9825 aDurability == IDBTransaction::Durability::Strict ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDurability == IDBTransaction::Durability::Default ||
aDurability == IDBTransaction::Durability::Strict || aDurability
== IDBTransaction::Durability::Relaxed)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDurability == IDBTransaction
::Durability::Default || aDurability == IDBTransaction::Durability
::Strict || aDurability == IDBTransaction::Durability::Relaxed
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"aDurability == IDBTransaction::Durability::Default || aDurability == IDBTransaction::Durability::Strict || aDurability == IDBTransaction::Durability::Relaxed"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9826)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDurability == IDBTransaction::Durability::Default || aDurability == IDBTransaction::Durability::Strict || aDurability == IDBTransaction::Durability::Relaxed"
")"); do { MOZ_CrashSequence(__null, 9826); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
9826 aDurability == IDBTransaction::Durability::Relaxed)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDurability == IDBTransaction::Durability::Default ||
aDurability == IDBTransaction::Durability::Strict || aDurability
== IDBTransaction::Durability::Relaxed)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDurability == IDBTransaction
::Durability::Default || aDurability == IDBTransaction::Durability
::Strict || aDurability == IDBTransaction::Durability::Relaxed
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"aDurability == IDBTransaction::Durability::Default || aDurability == IDBTransaction::Durability::Strict || aDurability == IDBTransaction::Durability::Relaxed"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9826)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDurability == IDBTransaction::Durability::Default || aDurability == IDBTransaction::Durability::Strict || aDurability == IDBTransaction::Durability::Relaxed"
")"); do { MOZ_CrashSequence(__null, 9826); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9827 MOZ_ASSERT(!mClosed)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mClosed)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mClosed))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!mClosed", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9827); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mClosed" ")"
); do { MOZ_CrashSequence(__null, 9827); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9828
9829 if (IsInvalidated()) {
9830 // This is an expected race. We don't want the child to die here, just don't
9831 // actually do any work.
9832 return IPC_OK()mozilla::ipc::IPCResult::Ok();
9833 }
9834
9835 if (!gConnectionPool) {
9836 gConnectionPool = new ConnectionPool();
9837 }
9838
9839 auto* transaction = static_cast<NormalTransaction*>(aActor);
9840
9841 RefPtr<StartTransactionOp> startOp = new StartTransactionOp(
9842 SafeRefPtr{transaction, AcquireStrongRefFromRawPtr{}});
9843
9844 uint64_t transactionId = startOp->StartOnConnectionPool(
9845 GetLoggingInfo()->Id(), mMetadata->mDatabaseId,
9846 transaction->LoggingSerialNumber(), aObjectStoreNames,
9847 aMode != IDBTransaction::Mode::ReadOnly);
9848
9849 transaction->Init(transactionId);
9850
9851 if (NS_WARN_IF(!RegisterTransaction(*transaction))NS_warn_if_impl(!RegisterTransaction(*transaction), "!RegisterTransaction(*transaction)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9851)
) {
9852 IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9852, idbInternalErrMsg.get()); } while (0)
;
9853 transaction->Abort(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR, /* aForce */ false);
9854 return IPC_OK()mozilla::ipc::IPCResult::Ok();
9855 }
9856
9857 return IPC_OK()mozilla::ipc::IPCResult::Ok();
9858}
9859
9860mozilla::ipc::IPCResult Database::RecvDeleteMe() {
9861 AssertIsOnBackgroundThread();
9862 MOZ_ASSERT(!mActorDestroyed)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mActorDestroyed)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mActorDestroyed))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!mActorDestroyed"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9862)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mActorDestroyed" ")"
); do { MOZ_CrashSequence(__null, 9862); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9863
9864 QM_WARNONLY_TRY(OkIf(PBackgroundIDBDatabaseParent::Send__delete__(this))){auto tryResult1031 = (OkIf(PBackgroundIDBDatabaseParent::Send__delete__
(this))); static_assert(std::is_empty_v<typename decltype(
tryResult1031)::ok_type>); if ((__builtin_expect(!!(tryResult1031
.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(PBackgroundIDBDatabaseParent::Send__delete__(this))"
, tryResult1031.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9864, mozilla::dom::quota::Severity::Warning); }}
;
9865
9866 return IPC_OK()mozilla::ipc::IPCResult::Ok();
9867}
9868
9869mozilla::ipc::IPCResult Database::RecvBlocked() {
9870 AssertIsOnBackgroundThread();
9871
9872 if (NS_WARN_IF(mClosed)NS_warn_if_impl(mClosed, "mClosed", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9872)
) {
9873 // Even though the sender checks the DB for not being closed, too,
9874 // there is a potential race with an ongoing origin clearing which
9875 // might have invalidated the DB in the meantime. Just ignore.
9876 return IPC_OK()mozilla::ipc::IPCResult::Ok();
9877 }
9878
9879 DatabaseActorInfo* info;
9880 MOZ_ALWAYS_TRUE(gLiveDatabaseHashtable->Get(Id(), &info))do { if ((__builtin_expect(!!(gLiveDatabaseHashtable->Get(
Id(), &info)), 1))) { } else { do { do { } while (false);
MOZ_ReportCrash("" "gLiveDatabaseHashtable->Get(Id(), &info)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9880)
; AnnotateMozCrashReason("MOZ_CRASH(" "gLiveDatabaseHashtable->Get(Id(), &info)"
")"); do { MOZ_CrashSequence(__null, 9880); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
9881 MOZ_ASSERT(info->mLiveDatabases.contains(this))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(info->mLiveDatabases.contains(this))>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(info->mLiveDatabases.contains(this)))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("info->mLiveDatabases.contains(this)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9881)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "info->mLiveDatabases.contains(this)"
")"); do { MOZ_CrashSequence(__null, 9881); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9882
9883 if (NS_WARN_IF(!info->mWaitingFactoryOp)NS_warn_if_impl(!info->mWaitingFactoryOp, "!info->mWaitingFactoryOp"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9883)
) {
9884 return IPC_FAIL(this, "Database info has no mWaitingFactoryOp!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Database info has no mWaitingFactoryOp!"
))
;
9885 }
9886
9887 info->mWaitingFactoryOp->NoteDatabaseBlocked(this);
9888
9889 return IPC_OK()mozilla::ipc::IPCResult::Ok();
9890}
9891
9892mozilla::ipc::IPCResult Database::RecvClose() {
9893 AssertIsOnBackgroundThread();
9894
9895 if (NS_WARN_IF(!CloseInternal())NS_warn_if_impl(!CloseInternal(), "!CloseInternal()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9895)
) {
9896 return IPC_FAIL(this, "CloseInternal failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("CloseInternal failed!"
))
;
9897 }
9898
9899 return IPC_OK()mozilla::ipc::IPCResult::Ok();
9900}
9901
9902void Database::StartTransactionOp::RunOnConnectionThread() {
9903 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9903)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 9903); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9904 MOZ_ASSERT(!HasFailed())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!HasFailed())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!HasFailed()))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("!HasFailed()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9904); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!HasFailed()"
")"); do { MOZ_CrashSequence(__null, 9904); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9905
9906 IDB_LOG_MARK_PARENT_TRANSACTION("Beginning database work", "DB Start",mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" ": " "Beginning database work"
, "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" ": " "DB Start",
mozilla::dom::indexedDB::LoggingIdString<true>(mBackgroundChildLoggingId
).get(), mTransactionLoggingSerialNumber)
9907 IDB_LOG_ID_STRING(mBackgroundChildLoggingId),mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" ": " "Beginning database work"
, "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" ": " "DB Start",
mozilla::dom::indexedDB::LoggingIdString<true>(mBackgroundChildLoggingId
).get(), mTransactionLoggingSerialNumber)
9908 mTransactionLoggingSerialNumber)mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" ": " "Beginning database work"
, "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" ": " "DB Start",
mozilla::dom::indexedDB::LoggingIdString<true>(mBackgroundChildLoggingId
).get(), mTransactionLoggingSerialNumber)
;
9909
9910 TransactionDatabaseOperationBase::RunOnConnectionThread();
9911}
9912
9913nsresult Database::StartTransactionOp::DoDatabaseWork(
9914 DatabaseConnection* aConnection) {
9915 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9915); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 9915); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9916 aConnection->AssertIsOnConnectionThread();
9917
9918 Transaction().SetActiveOnConnectionThread();
9919
9920 if (Transaction().GetMode() == IDBTransaction::Mode::Cleanup) {
9921 DebugOnly<nsresult> rv = aConnection->DisableQuotaChecks();
9922 NS_WARNING_ASSERTION(NS_SUCCEEDED(rv),do { if (!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1
))))) { NS_DebugBreak(NS_DEBUG_WARNING, "DisableQuotaChecks failed, trying to continue "
"cleanup transaction with quota checks enabled", "NS_SUCCEEDED(rv)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9924)
; } } while (false)
9923 "DisableQuotaChecks failed, trying to continue "do { if (!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1
))))) { NS_DebugBreak(NS_DEBUG_WARNING, "DisableQuotaChecks failed, trying to continue "
"cleanup transaction with quota checks enabled", "NS_SUCCEEDED(rv)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9924)
; } } while (false)
9924 "cleanup transaction with quota checks enabled")do { if (!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1
))))) { NS_DebugBreak(NS_DEBUG_WARNING, "DisableQuotaChecks failed, trying to continue "
"cleanup transaction with quota checks enabled", "NS_SUCCEEDED(rv)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9924)
; } } while (false)
;
9925 }
9926
9927 if (Transaction().GetMode() != IDBTransaction::Mode::ReadOnly) {
9928 QM_TRY(MOZ_TO_RESULT({auto tryResult1032 = (ToResult(aConnection->BeginWriteTransaction
(Transaction().GetDurability()))); static_assert(std::is_empty_v
<typename decltype(tryResult1032)::ok_type>); if ((__builtin_expect
(!!(tryResult1032.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->BeginWriteTransaction(Transaction().GetDurability()))"
, tryResult1032.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9929, mozilla::dom::quota::Severity::Error); return tryResult1032
.propagateErr(); }}
9929 aConnection->BeginWriteTransaction(Transaction().GetDurability()))){auto tryResult1032 = (ToResult(aConnection->BeginWriteTransaction
(Transaction().GetDurability()))); static_assert(std::is_empty_v
<typename decltype(tryResult1032)::ok_type>); if ((__builtin_expect
(!!(tryResult1032.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->BeginWriteTransaction(Transaction().GetDurability()))"
, tryResult1032.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9929, mozilla::dom::quota::Severity::Error); return tryResult1032
.propagateErr(); }}
;
9930 }
9931
9932 return NS_OK;
9933}
9934
9935TransactionOpResult Database::StartTransactionOp::SendSuccessResult() {
9936 // We don't need to do anything here.
9937 return NS_OK;
9938}
9939
9940bool Database::StartTransactionOp::SendFailureResult(
9941 const TransactionOpResult& /* aResult */) {
9942 IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9942, idbInternalErrMsg.get()); } while (0)
;
9943
9944 // Abort the transaction.
9945 return false;
9946}
9947
9948void Database::StartTransactionOp::Cleanup() {
9949#ifdef DEBUG1
9950 // StartTransactionOp is not a normal database operation that is tied to an
9951 // actor. Do this to make our assertions happy.
9952 NoteActorDestroyed();
9953#endif
9954
9955 TransactionDatabaseOperationBase::Cleanup();
9956}
9957
9958/*******************************************************************************
9959 * TransactionBase
9960 ******************************************************************************/
9961
9962TransactionBase::TransactionBase(SafeRefPtr<Database> aDatabase, Mode aMode,
9963 Durability aDurability)
9964 : mDatabase(std::move(aDatabase)),
9965 mDatabaseId(mDatabase->Id()),
9966 mLoggingSerialNumber(
9967 mDatabase->GetLoggingInfo()->NextTransactionSN(aMode)),
9968 mActiveRequestCount(0),
9969 mInvalidatedOnAnyThread(false),
9970 mMode(aMode),
9971 mDurability(aDurability),
9972 mResultCode(NS_OK) {
9973 AssertIsOnBackgroundThread();
9974 MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDatabase)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9974); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")"
); do { MOZ_CrashSequence(__null, 9974); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9975 MOZ_ASSERT(mLoggingSerialNumber)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mLoggingSerialNumber)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mLoggingSerialNumber))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("mLoggingSerialNumber"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9975)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLoggingSerialNumber"
")"); do { MOZ_CrashSequence(__null, 9975); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9976}
9977
9978TransactionBase::~TransactionBase() {
9979 MOZ_ASSERT(!mActiveRequestCount)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mActiveRequestCount)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mActiveRequestCount))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("!mActiveRequestCount"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9979)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mActiveRequestCount"
")"); do { MOZ_CrashSequence(__null, 9979); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9980 MOZ_ASSERT(mActorDestroyed)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mActorDestroyed)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mActorDestroyed))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mActorDestroyed"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9980)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mActorDestroyed" ")"
); do { MOZ_CrashSequence(__null, 9980); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9981 MOZ_ASSERT_IF(mInitialized, mCommittedOrAborted)do { if (mInitialized) { do { static_assert( mozilla::detail::
AssertionConditionType<decltype(mCommittedOrAborted)>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mCommittedOrAborted))), 0))) { do { } while (false);
MOZ_ReportAssertionFailure("mCommittedOrAborted", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9981); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCommittedOrAborted"
")"); do { MOZ_CrashSequence(__null, 9981); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
9982}
9983
9984void TransactionBase::Abort(nsresult aResultCode, bool aForce) {
9985 AssertIsOnBackgroundThread();
9986 MOZ_ASSERT(NS_FAILED(aResultCode))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(((bool)(__builtin_expect(!!(NS_FAILED_impl(aResultCode
)), 0))))>::isValid, "invalid assertion condition"); if ((
__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(NS_FAILED_impl
(aResultCode)), 0)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(NS_FAILED_impl(aResultCode)), 0)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9986)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(NS_FAILED_impl(aResultCode)), 0)))"
")"); do { MOZ_CrashSequence(__null, 9986); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9987
9988 if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
) {
9989 mResultCode = aResultCode;
9990 }
9991
9992 if (aForce) {
9993 mForceAborted.EnsureFlipped();
9994 }
9995
9996 MaybeCommitOrAbort();
9997}
9998
9999mozilla::ipc::IPCResult TransactionBase::RecvCommit(
10000 IProtocol* aActor, const Maybe<int64_t> aLastRequest) {
10001 AssertIsOnBackgroundThread();
10002
10003 if (NS_WARN_IF(mCommitOrAbortReceived)NS_warn_if_impl(mCommitOrAbortReceived, "mCommitOrAbortReceived"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10003
)
) {
10004 return IPC_FAIL(mozilla::ipc::IPCResult::Fail(WrapNotNull(aActor), __func__, (
"Attempt to commit an already comitted/aborted transaction!")
)
10005 aActor, "Attempt to commit an already comitted/aborted transaction!")mozilla::ipc::IPCResult::Fail(WrapNotNull(aActor), __func__, (
"Attempt to commit an already comitted/aborted transaction!")
)
;
10006 }
10007
10008 mCommitOrAbortReceived.Flip();
10009 mLastRequestBeforeCommit.init(aLastRequest);
10010 MaybeCommitOrAbort();
10011
10012 return IPC_OK()mozilla::ipc::IPCResult::Ok();
10013}
10014
10015mozilla::ipc::IPCResult TransactionBase::RecvAbort(IProtocol* aActor,
10016 nsresult aResultCode) {
10017 AssertIsOnBackgroundThread();
10018
10019 if (NS_WARN_IF(NS_SUCCEEDED(aResultCode))NS_warn_if_impl(((bool)(__builtin_expect(!!(!NS_FAILED_impl(aResultCode
)), 1))), "NS_SUCCEEDED(aResultCode)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10019)
) {
10020 return IPC_FAIL(aActor, "aResultCode must not be a success code!")mozilla::ipc::IPCResult::Fail(WrapNotNull(aActor), __func__, (
"aResultCode must not be a success code!"))
;
10021 }
10022
10023 if (NS_WARN_IF(NS_ERROR_GET_MODULE(aResultCode) !=NS_warn_if_impl(NS_ERROR_GET_MODULE(aResultCode) != 33, "NS_ERROR_GET_MODULE(aResultCode) != NS_ERROR_MODULE_DOM_INDEXEDDB"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10024
)
10024 NS_ERROR_MODULE_DOM_INDEXEDDB)NS_warn_if_impl(NS_ERROR_GET_MODULE(aResultCode) != 33, "NS_ERROR_GET_MODULE(aResultCode) != NS_ERROR_MODULE_DOM_INDEXEDDB"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10024
)
) {
10025 return IPC_FAIL(aActor, "aResultCode does not refer to IndexedDB!")mozilla::ipc::IPCResult::Fail(WrapNotNull(aActor), __func__, (
"aResultCode does not refer to IndexedDB!"))
;
10026 }
10027
10028 if (NS_WARN_IF(mCommitOrAbortReceived)NS_warn_if_impl(mCommitOrAbortReceived, "mCommitOrAbortReceived"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10028
)
) {
10029 return IPC_FAIL(mozilla::ipc::IPCResult::Fail(WrapNotNull(aActor), __func__, (
"Attempt to abort an already comitted/aborted transaction!"))
10030 aActor, "Attempt to abort an already comitted/aborted transaction!")mozilla::ipc::IPCResult::Fail(WrapNotNull(aActor), __func__, (
"Attempt to abort an already comitted/aborted transaction!"))
;
10031 }
10032
10033 mCommitOrAbortReceived.Flip();
10034 Abort(aResultCode, /* aForce */ false);
10035
10036 return IPC_OK()mozilla::ipc::IPCResult::Ok();
10037}
10038
10039void TransactionBase::CommitOrAbort() {
10040 AssertIsOnBackgroundThread();
10041
10042 mCommittedOrAborted.Flip();
10043
10044 if (!mInitialized) {
10045 return;
10046 }
10047
10048 // In case of a failed request and explicitly committed transaction, abort
10049 // (cf. https://w3c.github.io/IndexedDB/#async-execute-request step 5.3
10050 // vs. 5.4). It's worth emphasizing this can only happen here when we are
10051 // committing explicitly, otherwise the decision is made by the child.
10052 if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
&& mLastFailedRequest &&
10053 *mLastRequestBeforeCommit &&
10054 *mLastFailedRequest == **mLastRequestBeforeCommit) {
10055 mResultCode = NS_ERROR_DOM_INDEXEDDB_ABORT_ERR;
10056 }
10057
10058 RefPtr<CommitOp> commitOp =
10059 new CommitOp(SafeRefPtrFromThis(), ClampResultCode(mResultCode));
10060
10061 gConnectionPool->Finish(TransactionId(), commitOp);
10062}
10063
10064SafeRefPtr<FullObjectStoreMetadata>
10065TransactionBase::GetMetadataForObjectStoreId(
10066 IndexOrObjectStoreId aObjectStoreId) const {
10067 AssertIsOnBackgroundThread();
10068 MOZ_ASSERT(aObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aObjectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aObjectStoreId))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("aObjectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10068
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aObjectStoreId" ")"
); do { MOZ_CrashSequence(__null, 10068); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10069
10070 if (!aObjectStoreId) {
10071 return nullptr;
10072 }
10073
10074 auto metadata = mDatabase->Metadata().mObjectStores.Lookup(aObjectStoreId);
10075 if (!metadata || (*metadata)->mDeleted) {
10076 return nullptr;
10077 }
10078
10079 MOZ_ASSERT((*metadata)->mCommonMetadata.id() == aObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType<
decltype((*metadata)->mCommonMetadata.id() == aObjectStoreId
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!((*metadata)->mCommonMetadata.id() == aObjectStoreId
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"(*metadata)->mCommonMetadata.id() == aObjectStoreId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10079); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*metadata)->mCommonMetadata.id() == aObjectStoreId"
")"); do { MOZ_CrashSequence(__null, 10079); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10080
10081 return metadata->clonePtr();
10082}
10083
10084SafeRefPtr<FullIndexMetadata> TransactionBase::GetMetadataForIndexId(
10085 FullObjectStoreMetadata& aObjectStoreMetadata,
10086 IndexOrObjectStoreId aIndexId) const {
10087 AssertIsOnBackgroundThread();
10088 MOZ_ASSERT(aIndexId)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aIndexId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aIndexId))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aIndexId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10088); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aIndexId" ")"
); do { MOZ_CrashSequence(__null, 10088); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10089
10090 if (!aIndexId) {
10091 return nullptr;
10092 }
10093
10094 auto metadata = aObjectStoreMetadata.mIndexes.Lookup(aIndexId);
10095 if (!metadata || (*metadata)->mDeleted) {
10096 return nullptr;
10097 }
10098
10099 MOZ_ASSERT((*metadata)->mCommonMetadata.id() == aIndexId)do { static_assert( mozilla::detail::AssertionConditionType<
decltype((*metadata)->mCommonMetadata.id() == aIndexId)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!((*metadata)->mCommonMetadata.id() == aIndexId))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("(*metadata)->mCommonMetadata.id() == aIndexId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10099
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*metadata)->mCommonMetadata.id() == aIndexId"
")"); do { MOZ_CrashSequence(__null, 10099); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10100
10101 return metadata->clonePtr();
10102}
10103
10104void TransactionBase::NoteModifiedAutoIncrementObjectStore(
10105 const SafeRefPtr<FullObjectStoreMetadata>& aMetadata) {
10106 AssertIsOnConnectionThread();
10107
10108 if (!mModifiedAutoIncrementObjectStoreMetadataArray.Contains(aMetadata)) {
10109 mModifiedAutoIncrementObjectStoreMetadataArray.AppendElement(
10110 aMetadata.clonePtr());
10111 }
10112}
10113
10114void TransactionBase::ForgetModifiedAutoIncrementObjectStore(
10115 FullObjectStoreMetadata& aMetadata) {
10116 AssertIsOnConnectionThread();
10117
10118 mModifiedAutoIncrementObjectStoreMetadataArray.RemoveElement(&aMetadata);
10119}
10120
10121bool TransactionBase::VerifyRequestParams(const RequestParams& aParams) const {
10122 AssertIsOnBackgroundThread();
10123 MOZ_ASSERT(aParams.type() != RequestParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() != RequestParams::T__None)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(aParams.type() != RequestParams::T__None))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aParams.type() != RequestParams::T__None"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10123
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != RequestParams::T__None"
")"); do { MOZ_CrashSequence(__null, 10123); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10124
10125 switch (aParams.type()) {
10126 case RequestParams::TObjectStoreAddParams: {
10127 const ObjectStoreAddPutParams& params =
10128 aParams.get_ObjectStoreAddParams().commonParams();
10129 if (NS_AUUF_OR_WARN_IF(!VerifyRequestParams(params))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!VerifyRequestParams(params)" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10129); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!VerifyRequestParams(params)" ")"); do { MOZ_CrashSequence(
__null, 10129); __attribute__((nomerge)) ::abort(); } while (
false); } } while (false); } return aCond; }((!VerifyRequestParams
(params)))
) {
10130 return false;
10131 }
10132 break;
10133 }
10134
10135 case RequestParams::TObjectStorePutParams: {
10136 const ObjectStoreAddPutParams& params =
10137 aParams.get_ObjectStorePutParams().commonParams();
10138 if (NS_AUUF_OR_WARN_IF(!VerifyRequestParams(params))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!VerifyRequestParams(params)" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10138); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!VerifyRequestParams(params)" ")"); do { MOZ_CrashSequence(
__null, 10138); __attribute__((nomerge)) ::abort(); } while (
false); } } while (false); } return aCond; }((!VerifyRequestParams
(params)))
) {
10139 return false;
10140 }
10141 break;
10142 }
10143
10144 case RequestParams::TObjectStoreGetParams: {
10145 const ObjectStoreGetParams& params = aParams.get_ObjectStoreGetParams();
10146 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
10147 GetMetadataForObjectStoreId(params.objectStoreId());
10148 if (NS_AUUF_OR_WARN_IF(!objectStoreMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!objectStoreMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10148); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10148
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((!objectStoreMetadata))
) {
10149 return false;
10150 }
10151 if (NS_AUUF_OR_WARN_IF(!VerifyRequestParams(params.keyRange()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!VerifyRequestParams(params.keyRange())" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10151); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!VerifyRequestParams(params.keyRange())" ")"); do { MOZ_CrashSequence
(__null, 10151); __attribute__((nomerge)) ::abort(); } while (
false); } } while (false); } return aCond; }((!VerifyRequestParams
(params.keyRange())))
) {
10152 return false;
10153 }
10154 break;
10155 }
10156
10157 case RequestParams::TObjectStoreGetKeyParams: {
10158 const ObjectStoreGetKeyParams& params =
10159 aParams.get_ObjectStoreGetKeyParams();
10160 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
10161 GetMetadataForObjectStoreId(params.objectStoreId());
10162 if (NS_AUUF_OR_WARN_IF(!objectStoreMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!objectStoreMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10162); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10162
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((!objectStoreMetadata))
) {
10163 return false;
10164 }
10165 if (NS_AUUF_OR_WARN_IF(!VerifyRequestParams(params.keyRange()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!VerifyRequestParams(params.keyRange())" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10165); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!VerifyRequestParams(params.keyRange())" ")"); do { MOZ_CrashSequence
(__null, 10165); __attribute__((nomerge)) ::abort(); } while (
false); } } while (false); } return aCond; }((!VerifyRequestParams
(params.keyRange())))
) {
10166 return false;
10167 }
10168 break;
10169 }
10170
10171 case RequestParams::TObjectStoreGetAllParams: {
10172 const ObjectStoreGetAllParams& params =
10173 aParams.get_ObjectStoreGetAllParams();
10174 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
10175 GetMetadataForObjectStoreId(params.objectStoreId());
10176 if (NS_AUUF_OR_WARN_IF(!objectStoreMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!objectStoreMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10176); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10176
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((!objectStoreMetadata))
) {
10177 return false;
10178 }
10179 if (NS_AUUF_OR_WARN_IF([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!VerifyRequestParams(params.options().optionalKeyRange())"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10180
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.options().optionalKeyRange())"
")"); do { MOZ_CrashSequence(__null, 10180); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((!VerifyRequestParams(params.options().optionalKeyRange
())))
10180 !VerifyRequestParams(params.options().optionalKeyRange()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!VerifyRequestParams(params.options().optionalKeyRange())"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10180
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.options().optionalKeyRange())"
")"); do { MOZ_CrashSequence(__null, 10180); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((!VerifyRequestParams(params.options().optionalKeyRange
())))
) {
10181 return false;
10182 }
10183 break;
10184 }
10185
10186 case RequestParams::TObjectStoreGetAllKeysParams: {
10187 const ObjectStoreGetAllKeysParams& params =
10188 aParams.get_ObjectStoreGetAllKeysParams();
10189 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
10190 GetMetadataForObjectStoreId(params.objectStoreId());
10191 if (NS_AUUF_OR_WARN_IF(!objectStoreMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!objectStoreMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10191); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10191
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((!objectStoreMetadata))
) {
10192 return false;
10193 }
10194 if (NS_AUUF_OR_WARN_IF([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!VerifyRequestParams(params.options().optionalKeyRange())"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10195
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.options().optionalKeyRange())"
")"); do { MOZ_CrashSequence(__null, 10195); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((!VerifyRequestParams(params.options().optionalKeyRange
())))
10195 !VerifyRequestParams(params.options().optionalKeyRange()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!VerifyRequestParams(params.options().optionalKeyRange())"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10195
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.options().optionalKeyRange())"
")"); do { MOZ_CrashSequence(__null, 10195); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((!VerifyRequestParams(params.options().optionalKeyRange
())))
) {
10196 return false;
10197 }
10198 break;
10199 }
10200
10201 case RequestParams::TObjectStoreGetAllRecordsParams: {
10202 const ObjectStoreGetAllRecordsParams& params =
10203 aParams.get_ObjectStoreGetAllRecordsParams();
10204 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
10205 GetMetadataForObjectStoreId(params.objectStoreId());
10206 if (NS_AUUF_OR_WARN_IF(!objectStoreMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!objectStoreMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10206); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10206
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((!objectStoreMetadata))
) {
10207 return false;
10208 }
10209 if (NS_AUUF_OR_WARN_IF([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!VerifyRequestParams(params.options().optionalKeyRange())"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10210
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.options().optionalKeyRange())"
")"); do { MOZ_CrashSequence(__null, 10210); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((!VerifyRequestParams(params.options().optionalKeyRange
())))
10210 !VerifyRequestParams(params.options().optionalKeyRange()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!VerifyRequestParams(params.options().optionalKeyRange())"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10210
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.options().optionalKeyRange())"
")"); do { MOZ_CrashSequence(__null, 10210); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((!VerifyRequestParams(params.options().optionalKeyRange
())))
) {
10211 return false;
10212 }
10213 break;
10214 }
10215
10216 case RequestParams::TObjectStoreDeleteParams: {
10217 if (NS_AUUF_OR_WARN_IF(mMode != IDBTransaction::Mode::ReadWrite &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10220
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 10220); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((mMode != IDBTransaction::Mode::ReadWrite &&
mMode != IDBTransaction::Mode::ReadWriteFlush && mMode
!= IDBTransaction::Mode::Cleanup && mMode != IDBTransaction
::Mode::VersionChange))
10218 mMode != IDBTransaction::Mode::ReadWriteFlush &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10220
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 10220); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((mMode != IDBTransaction::Mode::ReadWrite &&
mMode != IDBTransaction::Mode::ReadWriteFlush && mMode
!= IDBTransaction::Mode::Cleanup && mMode != IDBTransaction
::Mode::VersionChange))
10219 mMode != IDBTransaction::Mode::Cleanup &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10220
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 10220); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((mMode != IDBTransaction::Mode::ReadWrite &&
mMode != IDBTransaction::Mode::ReadWriteFlush && mMode
!= IDBTransaction::Mode::Cleanup && mMode != IDBTransaction
::Mode::VersionChange))
10220 mMode != IDBTransaction::Mode::VersionChange)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10220
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 10220); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((mMode != IDBTransaction::Mode::ReadWrite &&
mMode != IDBTransaction::Mode::ReadWriteFlush && mMode
!= IDBTransaction::Mode::Cleanup && mMode != IDBTransaction
::Mode::VersionChange))
) {
10221 return false;
10222 }
10223
10224 const ObjectStoreDeleteParams& params =
10225 aParams.get_ObjectStoreDeleteParams();
10226 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
10227 GetMetadataForObjectStoreId(params.objectStoreId());
10228 if (NS_AUUF_OR_WARN_IF(!objectStoreMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!objectStoreMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10228); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10228
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((!objectStoreMetadata))
) {
10229 return false;
10230 }
10231 if (NS_AUUF_OR_WARN_IF(!VerifyRequestParams(params.keyRange()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!VerifyRequestParams(params.keyRange())" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10231); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!VerifyRequestParams(params.keyRange())" ")"); do { MOZ_CrashSequence
(__null, 10231); __attribute__((nomerge)) ::abort(); } while (
false); } } while (false); } return aCond; }((!VerifyRequestParams
(params.keyRange())))
) {
10232 return false;
10233 }
10234 break;
10235 }
10236
10237 case RequestParams::TObjectStoreClearParams: {
10238 if (NS_AUUF_OR_WARN_IF(mMode != IDBTransaction::Mode::ReadWrite &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10241
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 10241); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((mMode != IDBTransaction::Mode::ReadWrite &&
mMode != IDBTransaction::Mode::ReadWriteFlush && mMode
!= IDBTransaction::Mode::Cleanup && mMode != IDBTransaction
::Mode::VersionChange))
10239 mMode != IDBTransaction::Mode::ReadWriteFlush &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10241
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 10241); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((mMode != IDBTransaction::Mode::ReadWrite &&
mMode != IDBTransaction::Mode::ReadWriteFlush && mMode
!= IDBTransaction::Mode::Cleanup && mMode != IDBTransaction
::Mode::VersionChange))
10240 mMode != IDBTransaction::Mode::Cleanup &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10241
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 10241); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((mMode != IDBTransaction::Mode::ReadWrite &&
mMode != IDBTransaction::Mode::ReadWriteFlush && mMode
!= IDBTransaction::Mode::Cleanup && mMode != IDBTransaction
::Mode::VersionChange))
10241 mMode != IDBTransaction::Mode::VersionChange)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10241
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 10241); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((mMode != IDBTransaction::Mode::ReadWrite &&
mMode != IDBTransaction::Mode::ReadWriteFlush && mMode
!= IDBTransaction::Mode::Cleanup && mMode != IDBTransaction
::Mode::VersionChange))
) {
10242 return false;
10243 }
10244
10245 const ObjectStoreClearParams& params =
10246 aParams.get_ObjectStoreClearParams();
10247 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
10248 GetMetadataForObjectStoreId(params.objectStoreId());
10249 if (NS_AUUF_OR_WARN_IF(!objectStoreMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!objectStoreMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10249); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10249
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((!objectStoreMetadata))
) {
10250 return false;
10251 }
10252 break;
10253 }
10254
10255 case RequestParams::TObjectStoreCountParams: {
10256 const ObjectStoreCountParams& params =
10257 aParams.get_ObjectStoreCountParams();
10258 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
10259 GetMetadataForObjectStoreId(params.objectStoreId());
10260 if (NS_AUUF_OR_WARN_IF(!objectStoreMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!objectStoreMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10260); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10260
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((!objectStoreMetadata))
) {
10261 return false;
10262 }
10263 if (NS_AUUF_OR_WARN_IF(!VerifyRequestParams(params.optionalKeyRange()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!VerifyRequestParams(params.optionalKeyRange())"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10263
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.optionalKeyRange())"
")"); do { MOZ_CrashSequence(__null, 10263); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((!VerifyRequestParams(params.optionalKeyRange())))
) {
10264 return false;
10265 }
10266 break;
10267 }
10268
10269 case RequestParams::TIndexGetParams: {
10270 const IndexGetParams& params = aParams.get_IndexGetParams();
10271 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
10272 GetMetadataForObjectStoreId(params.objectStoreId());
10273 if (NS_AUUF_OR_WARN_IF(!objectStoreMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!objectStoreMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10273); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10273
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((!objectStoreMetadata))
) {
10274 return false;
10275 }
10276 const SafeRefPtr<FullIndexMetadata> indexMetadata =
10277 GetMetadataForIndexId(*objectStoreMetadata, params.indexId());
10278 if (NS_AUUF_OR_WARN_IF(!indexMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!indexMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10278); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!indexMetadata" ")"); do { MOZ_CrashSequence(__null, 10278)
; __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((!indexMetadata))
) {
10279 return false;
10280 }
10281 if (NS_AUUF_OR_WARN_IF(!VerifyRequestParams(params.keyRange()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!VerifyRequestParams(params.keyRange())" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10281); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!VerifyRequestParams(params.keyRange())" ")"); do { MOZ_CrashSequence
(__null, 10281); __attribute__((nomerge)) ::abort(); } while (
false); } } while (false); } return aCond; }((!VerifyRequestParams
(params.keyRange())))
) {
10282 return false;
10283 }
10284 break;
10285 }
10286
10287 case RequestParams::TIndexGetKeyParams: {
10288 const IndexGetKeyParams& params = aParams.get_IndexGetKeyParams();
10289 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
10290 GetMetadataForObjectStoreId(params.objectStoreId());
10291 if (NS_AUUF_OR_WARN_IF(!objectStoreMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!objectStoreMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10291); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10291
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((!objectStoreMetadata))
) {
10292 return false;
10293 }
10294 const SafeRefPtr<FullIndexMetadata> indexMetadata =
10295 GetMetadataForIndexId(*objectStoreMetadata, params.indexId());
10296 if (NS_AUUF_OR_WARN_IF(!indexMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!indexMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10296); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!indexMetadata" ")"); do { MOZ_CrashSequence(__null, 10296)
; __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((!indexMetadata))
) {
10297 return false;
10298 }
10299 if (NS_AUUF_OR_WARN_IF(!VerifyRequestParams(params.keyRange()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!VerifyRequestParams(params.keyRange())" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10299); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!VerifyRequestParams(params.keyRange())" ")"); do { MOZ_CrashSequence
(__null, 10299); __attribute__((nomerge)) ::abort(); } while (
false); } } while (false); } return aCond; }((!VerifyRequestParams
(params.keyRange())))
) {
10300 return false;
10301 }
10302 break;
10303 }
10304
10305 case RequestParams::TIndexGetAllParams: {
10306 const IndexGetAllParams& params = aParams.get_IndexGetAllParams();
10307 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
10308 GetMetadataForObjectStoreId(params.objectStoreId());
10309 if (NS_AUUF_OR_WARN_IF(!objectStoreMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!objectStoreMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10309); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10309
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((!objectStoreMetadata))
) {
10310 return false;
10311 }
10312 const SafeRefPtr<FullIndexMetadata> indexMetadata =
10313 GetMetadataForIndexId(*objectStoreMetadata, params.indexId());
10314 if (NS_AUUF_OR_WARN_IF(!indexMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!indexMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10314); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!indexMetadata" ")"); do { MOZ_CrashSequence(__null, 10314)
; __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((!indexMetadata))
) {
10315 return false;
10316 }
10317 if (NS_AUUF_OR_WARN_IF([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!VerifyRequestParams(params.options().optionalKeyRange())"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10318
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.options().optionalKeyRange())"
")"); do { MOZ_CrashSequence(__null, 10318); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((!VerifyRequestParams(params.options().optionalKeyRange
())))
10318 !VerifyRequestParams(params.options().optionalKeyRange()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!VerifyRequestParams(params.options().optionalKeyRange())"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10318
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.options().optionalKeyRange())"
")"); do { MOZ_CrashSequence(__null, 10318); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((!VerifyRequestParams(params.options().optionalKeyRange
())))
) {
10319 return false;
10320 }
10321 break;
10322 }
10323
10324 case RequestParams::TIndexGetAllKeysParams: {
10325 const IndexGetAllKeysParams& params = aParams.get_IndexGetAllKeysParams();
10326 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
10327 GetMetadataForObjectStoreId(params.objectStoreId());
10328 if (NS_AUUF_OR_WARN_IF(!objectStoreMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!objectStoreMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10328); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10328
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((!objectStoreMetadata))
) {
10329 return false;
10330 }
10331 const SafeRefPtr<FullIndexMetadata> indexMetadata =
10332 GetMetadataForIndexId(*objectStoreMetadata, params.indexId());
10333 if (NS_AUUF_OR_WARN_IF(!indexMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!indexMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10333); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!indexMetadata" ")"); do { MOZ_CrashSequence(__null, 10333)
; __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((!indexMetadata))
) {
10334 return false;
10335 }
10336 if (NS_AUUF_OR_WARN_IF([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!VerifyRequestParams(params.options().optionalKeyRange())"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10337
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.options().optionalKeyRange())"
")"); do { MOZ_CrashSequence(__null, 10337); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((!VerifyRequestParams(params.options().optionalKeyRange
())))
10337 !VerifyRequestParams(params.options().optionalKeyRange()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!VerifyRequestParams(params.options().optionalKeyRange())"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10337
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.options().optionalKeyRange())"
")"); do { MOZ_CrashSequence(__null, 10337); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((!VerifyRequestParams(params.options().optionalKeyRange
())))
) {
10338 return false;
10339 }
10340 break;
10341 }
10342
10343 case RequestParams::TIndexGetAllRecordsParams: {
10344 const IndexGetAllRecordsParams& params =
10345 aParams.get_IndexGetAllRecordsParams();
10346 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
10347 GetMetadataForObjectStoreId(params.objectStoreId());
10348 if (NS_AUUF_OR_WARN_IF(!objectStoreMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!objectStoreMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10348); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10348
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((!objectStoreMetadata))
) {
10349 return false;
10350 }
10351 const SafeRefPtr<FullIndexMetadata> indexMetadata =
10352 GetMetadataForIndexId(*objectStoreMetadata, params.indexId());
10353 if (NS_AUUF_OR_WARN_IF(!indexMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!indexMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!indexMetadata" ")"); do { MOZ_CrashSequence(__null, 10353)
; __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((!indexMetadata))
) {
10354 return false;
10355 }
10356 if (NS_AUUF_OR_WARN_IF([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!VerifyRequestParams(params.options().optionalKeyRange())"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10357
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.options().optionalKeyRange())"
")"); do { MOZ_CrashSequence(__null, 10357); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((!VerifyRequestParams(params.options().optionalKeyRange
())))
10357 !VerifyRequestParams(params.options().optionalKeyRange()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!VerifyRequestParams(params.options().optionalKeyRange())"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10357
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.options().optionalKeyRange())"
")"); do { MOZ_CrashSequence(__null, 10357); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((!VerifyRequestParams(params.options().optionalKeyRange
())))
) {
10358 return false;
10359 }
10360 break;
10361 }
10362
10363 case RequestParams::TIndexCountParams: {
10364 const IndexCountParams& params = aParams.get_IndexCountParams();
10365 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
10366 GetMetadataForObjectStoreId(params.objectStoreId());
10367 if (NS_AUUF_OR_WARN_IF(!objectStoreMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!objectStoreMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10367); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10367
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((!objectStoreMetadata))
) {
10368 return false;
10369 }
10370 const SafeRefPtr<FullIndexMetadata> indexMetadata =
10371 GetMetadataForIndexId(*objectStoreMetadata, params.indexId());
10372 if (NS_AUUF_OR_WARN_IF(!indexMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!indexMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10372); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!indexMetadata" ")"); do { MOZ_CrashSequence(__null, 10372)
; __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((!indexMetadata))
) {
10373 return false;
10374 }
10375 if (NS_AUUF_OR_WARN_IF(!VerifyRequestParams(params.optionalKeyRange()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!VerifyRequestParams(params.optionalKeyRange())"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10375
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.optionalKeyRange())"
")"); do { MOZ_CrashSequence(__null, 10375); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((!VerifyRequestParams(params.optionalKeyRange())))
) {
10376 return false;
10377 }
10378 break;
10379 }
10380
10381 default:
10382 MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10382
); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 10382); __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
10383 }
10384
10385 return true;
10386}
10387
10388bool TransactionBase::VerifyRequestParams(
10389 const SerializedKeyRange& aParams) const {
10390 AssertIsOnBackgroundThread();
10391
10392 // XXX Check more here?
10393
10394 if (aParams.isOnly()) {
10395 if (NS_AUUF_OR_WARN_IF(aParams.lower().IsUnset())[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "aParams.lower().IsUnset()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10395); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"aParams.lower().IsUnset()" ")"); do { MOZ_CrashSequence(__null
, 10395); __attribute__((nomerge)) ::abort(); } while (false)
; } } while (false); } return aCond; }((aParams.lower().IsUnset
()))
) {
10396 return false;
10397 }
10398 if (NS_AUUF_OR_WARN_IF(!aParams.upper().IsUnset())[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!aParams.upper().IsUnset()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10398); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!aParams.upper().IsUnset()" ")"); do { MOZ_CrashSequence(__null
, 10398); __attribute__((nomerge)) ::abort(); } while (false)
; } } while (false); } return aCond; }((!aParams.upper().IsUnset
()))
) {
10399 return false;
10400 }
10401 if (NS_AUUF_OR_WARN_IF(aParams.lowerOpen())[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "aParams.lowerOpen()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10401); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"aParams.lowerOpen()" ")"); do { MOZ_CrashSequence(__null, 10401
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((aParams.lowerOpen()))
) {
10402 return false;
10403 }
10404 if (NS_AUUF_OR_WARN_IF(aParams.upperOpen())[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "aParams.upperOpen()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10404); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"aParams.upperOpen()" ")"); do { MOZ_CrashSequence(__null, 10404
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((aParams.upperOpen()))
) {
10405 return false;
10406 }
10407 } else if (NS_AUUF_OR_WARN_IF(aParams.lower().IsUnset() &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "aParams.lower().IsUnset() && aParams.upper().IsUnset()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10408
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aParams.lower().IsUnset() && aParams.upper().IsUnset()"
")"); do { MOZ_CrashSequence(__null, 10408); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((aParams.lower().IsUnset() && aParams.upper
().IsUnset()))
10408 aParams.upper().IsUnset())[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "aParams.lower().IsUnset() && aParams.upper().IsUnset()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10408
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aParams.lower().IsUnset() && aParams.upper().IsUnset()"
")"); do { MOZ_CrashSequence(__null, 10408); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((aParams.lower().IsUnset() && aParams.upper
().IsUnset()))
) {
10409 return false;
10410 }
10411
10412 return true;
10413}
10414
10415bool TransactionBase::VerifyRequestParams(
10416 const ObjectStoreAddPutParams& aParams) const {
10417 AssertIsOnBackgroundThread();
10418
10419 if (NS_AUUF_OR_WARN_IF(mMode != IDBTransaction::Mode::ReadWrite &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::VersionChange"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10421
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 10421); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((mMode != IDBTransaction::Mode::ReadWrite &&
mMode != IDBTransaction::Mode::ReadWriteFlush && mMode
!= IDBTransaction::Mode::VersionChange))
10420 mMode != IDBTransaction::Mode::ReadWriteFlush &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::VersionChange"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10421
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 10421); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((mMode != IDBTransaction::Mode::ReadWrite &&
mMode != IDBTransaction::Mode::ReadWriteFlush && mMode
!= IDBTransaction::Mode::VersionChange))
10421 mMode != IDBTransaction::Mode::VersionChange)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::VersionChange"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10421
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 10421); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((mMode != IDBTransaction::Mode::ReadWrite &&
mMode != IDBTransaction::Mode::ReadWriteFlush && mMode
!= IDBTransaction::Mode::VersionChange))
) {
10422 return false;
10423 }
10424
10425 SafeRefPtr<FullObjectStoreMetadata> objMetadata =
10426 GetMetadataForObjectStoreId(aParams.objectStoreId());
10427 if (NS_AUUF_OR_WARN_IF(!objMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!objMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10427); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objMetadata" ")"); do { MOZ_CrashSequence(__null, 10427); __attribute__
((nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((!objMetadata))
) {
10428 return false;
10429 }
10430
10431 if (NS_AUUF_OR_WARN_IF(!aParams.cloneInfo().data().data.Size())[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!aParams.cloneInfo().data().data.Size()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10431); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!aParams.cloneInfo().data().data.Size()" ")"); do { MOZ_CrashSequence
(__null, 10431); __attribute__((nomerge)) ::abort(); } while (
false); } } while (false); } return aCond; }((!aParams.cloneInfo
().data().data.Size()))
) {
10432 return false;
10433 }
10434
10435 if (objMetadata->mCommonMetadata.autoIncrement() &&
10436 objMetadata->mCommonMetadata.keyPath().IsValid() &&
10437 aParams.key().IsUnset()) {
10438 const SerializedStructuredCloneWriteInfo& cloneInfo = aParams.cloneInfo();
10439
10440 if (NS_AUUF_OR_WARN_IF(!cloneInfo.offsetToKeyProp())[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!cloneInfo.offsetToKeyProp()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10440); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!cloneInfo.offsetToKeyProp()" ")"); do { MOZ_CrashSequence(
__null, 10440); __attribute__((nomerge)) ::abort(); } while (
false); } } while (false); } return aCond; }((!cloneInfo.offsetToKeyProp
()))
) {
10441 return false;
10442 }
10443
10444 if (NS_AUUF_OR_WARN_IF(cloneInfo.data().data.Size() < sizeof(uint64_t))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "cloneInfo.data().data.Size() < sizeof(uint64_t)"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10444
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "cloneInfo.data().data.Size() < sizeof(uint64_t)"
")"); do { MOZ_CrashSequence(__null, 10444); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((cloneInfo.data().data.Size() < sizeof(uint64_t)
))
) {
10445 return false;
10446 }
10447
10448 if (NS_AUUF_OR_WARN_IF(cloneInfo.offsetToKeyProp() >[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "cloneInfo.offsetToKeyProp() > (cloneInfo.data().data.Size() - sizeof(uint64_t))"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10449
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "cloneInfo.offsetToKeyProp() > (cloneInfo.data().data.Size() - sizeof(uint64_t))"
")"); do { MOZ_CrashSequence(__null, 10449); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((cloneInfo.offsetToKeyProp() > (cloneInfo.data()
.data.Size() - sizeof(uint64_t))))
10449 (cloneInfo.data().data.Size() - sizeof(uint64_t)))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "cloneInfo.offsetToKeyProp() > (cloneInfo.data().data.Size() - sizeof(uint64_t))"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10449
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "cloneInfo.offsetToKeyProp() > (cloneInfo.data().data.Size() - sizeof(uint64_t))"
")"); do { MOZ_CrashSequence(__null, 10449); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((cloneInfo.offsetToKeyProp() > (cloneInfo.data()
.data.Size() - sizeof(uint64_t))))
) {
10450 return false;
10451 }
10452 } else if (NS_AUUF_OR_WARN_IF(aParams.cloneInfo().offsetToKeyProp())[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "aParams.cloneInfo().offsetToKeyProp()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10452); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"aParams.cloneInfo().offsetToKeyProp()" ")"); do { MOZ_CrashSequence
(__null, 10452); __attribute__((nomerge)) ::abort(); } while (
false); } } while (false); } return aCond; }((aParams.cloneInfo
().offsetToKeyProp()))
) {
10453 return false;
10454 }
10455
10456 for (const auto& updateInfo : aParams.indexUpdateInfos()) {
10457 SafeRefPtr<FullIndexMetadata> indexMetadata =
10458 GetMetadataForIndexId(*objMetadata, updateInfo.indexId());
10459 if (NS_AUUF_OR_WARN_IF(!indexMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!indexMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10459); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!indexMetadata" ")"); do { MOZ_CrashSequence(__null, 10459)
; __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((!indexMetadata))
) {
10460 return false;
10461 }
10462
10463 if (NS_AUUF_OR_WARN_IF(updateInfo.value().IsUnset())[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "updateInfo.value().IsUnset()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10463); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"updateInfo.value().IsUnset()" ")"); do { MOZ_CrashSequence(
__null, 10463); __attribute__((nomerge)) ::abort(); } while (
false); } } while (false); } return aCond; }((updateInfo.value
().IsUnset()))
) {
10464 return false;
10465 }
10466
10467 MOZ_ASSERT(!updateInfo.value().GetBuffer().IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!updateInfo.value().GetBuffer().IsEmpty())>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(!updateInfo.value().GetBuffer().IsEmpty()))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("!updateInfo.value().GetBuffer().IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10467
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!updateInfo.value().GetBuffer().IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 10467); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10468 }
10469
10470 for (const FileAddInfo& fileAddInfo : aParams.fileAddInfos()) {
10471 const PBackgroundIDBDatabaseFileParent* file =
10472 fileAddInfo.file().AsParent();
10473
10474 switch (fileAddInfo.type()) {
10475 case StructuredCloneFileBase::eBlob:
10476 if (NS_AUUF_OR_WARN_IF(!file)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!file" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10476); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!file" ")"); do { MOZ_CrashSequence(__null, 10476); __attribute__
((nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((!file))
) {
10477 return false;
10478 }
10479
10480 // Reject actors managed by a different Database
10481 if (NS_AUUF_OR_WARN_IF(file->Manager() !=[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "file->Manager() != static_cast<const PBackgroundIDBDatabaseParent*>( &GetDatabase())"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10483
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "file->Manager() != static_cast<const PBackgroundIDBDatabaseParent*>( &GetDatabase())"
")"); do { MOZ_CrashSequence(__null, 10483); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((file->Manager() != static_cast<const PBackgroundIDBDatabaseParent
*>( &GetDatabase())))
10482 static_cast<const PBackgroundIDBDatabaseParent*>([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "file->Manager() != static_cast<const PBackgroundIDBDatabaseParent*>( &GetDatabase())"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10483
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "file->Manager() != static_cast<const PBackgroundIDBDatabaseParent*>( &GetDatabase())"
")"); do { MOZ_CrashSequence(__null, 10483); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((file->Manager() != static_cast<const PBackgroundIDBDatabaseParent
*>( &GetDatabase())))
10483 &GetDatabase()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "file->Manager() != static_cast<const PBackgroundIDBDatabaseParent*>( &GetDatabase())"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10483
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "file->Manager() != static_cast<const PBackgroundIDBDatabaseParent*>( &GetDatabase())"
")"); do { MOZ_CrashSequence(__null, 10483); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((file->Manager() != static_cast<const PBackgroundIDBDatabaseParent
*>( &GetDatabase())))
) {
10484 return false;
10485 }
10486 break;
10487
10488 case StructuredCloneFileBase::eMutableFile: {
10489 return false;
10490 }
10491
10492 case StructuredCloneFileBase::eStructuredClone:
10493 case StructuredCloneFileBase::eWasmBytecode:
10494 case StructuredCloneFileBase::eWasmCompiled:
10495 case StructuredCloneFileBase::eEndGuard:
10496 MOZ_ASSERT_UNLESS_FUZZING(false, "Unsupported.")do { static_assert( mozilla::detail::AssertionConditionType<
decltype(false)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("false" " (" "Unsupported."
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10496
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "Unsupported."
")"); do { MOZ_CrashSequence(__null, 10496); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10497 return false;
10498
10499 default:
10500 MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10500
); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 10500); __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
10501 }
10502 }
10503
10504 return true;
10505}
10506
10507bool TransactionBase::VerifyRequestParams(
10508 const Maybe<SerializedKeyRange>& aParams) const {
10509 AssertIsOnBackgroundThread();
10510
10511 if (aParams.isSome()) {
10512 if (NS_AUUF_OR_WARN_IF(!VerifyRequestParams(aParams.ref()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!VerifyRequestParams(aParams.ref())" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10512); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!VerifyRequestParams(aParams.ref())" ")"); do { MOZ_CrashSequence
(__null, 10512); __attribute__((nomerge)) ::abort(); } while (
false); } } while (false); } return aCond; }((!VerifyRequestParams
(aParams.ref())))
) {
10513 return false;
10514 }
10515 }
10516
10517 return true;
10518}
10519
10520void TransactionBase::NoteActiveRequest() {
10521 AssertIsOnBackgroundThread();
10522 MOZ_ASSERT(mActiveRequestCount < UINT64_MAX)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mActiveRequestCount < (18446744073709551615UL))>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mActiveRequestCount < (18446744073709551615UL))))
, 0))) { do { } while (false); MOZ_ReportAssertionFailure("mActiveRequestCount < (18446744073709551615UL)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10522
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mActiveRequestCount < (18446744073709551615UL)"
")"); do { MOZ_CrashSequence(__null, 10522); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10523
10524 mActiveRequestCount++;
10525}
10526
10527void TransactionBase::NoteFinishedRequest(const int64_t aRequestId,
10528 const nsresult aResultCode) {
10529 AssertIsOnBackgroundThread();
10530 MOZ_ASSERT(mActiveRequestCount)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mActiveRequestCount)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mActiveRequestCount))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("mActiveRequestCount"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10530
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mActiveRequestCount"
")"); do { MOZ_CrashSequence(__null, 10530); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10531
10532 mActiveRequestCount--;
10533
10534 if (NS_FAILED(aResultCode)((bool)(__builtin_expect(!!(NS_FAILED_impl(aResultCode)), 0))
)
) {
10535 mLastFailedRequest = Some(aRequestId);
10536 }
10537
10538 MaybeCommitOrAbort();
10539}
10540
10541void TransactionBase::Invalidate() {
10542 AssertIsOnBackgroundThread();
10543 MOZ_ASSERT(mInvalidated == mInvalidatedOnAnyThread)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mInvalidated == mInvalidatedOnAnyThread)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mInvalidated == mInvalidatedOnAnyThread))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mInvalidated == mInvalidatedOnAnyThread"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10543
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInvalidated == mInvalidatedOnAnyThread"
")"); do { MOZ_CrashSequence(__null, 10543); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10544
10545 if (!mInvalidated) {
10546 mInvalidated.Flip();
10547 mInvalidatedOnAnyThread = true;
10548
10549 Abort(NS_ERROR_DOM_INDEXEDDB_ABORT_ERR, /* aForce */ false);
10550 }
10551}
10552
10553PBackgroundIDBRequestParent* TransactionBase::AllocRequest(
10554 const int64_t aRequestId, RequestParams&& aParams, bool aTrustParams) {
10555 AssertIsOnBackgroundThread();
10556 MOZ_ASSERT(aParams.type() != RequestParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() != RequestParams::T__None)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(aParams.type() != RequestParams::T__None))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aParams.type() != RequestParams::T__None"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10556
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != RequestParams::T__None"
")"); do { MOZ_CrashSequence(__null, 10556); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10557
10558#ifdef DEBUG1
10559 // Always verify parameters in DEBUG builds!
10560 aTrustParams = false;
10561#endif
10562
10563 if (NS_AUUF_OR_WARN_IF(!aTrustParams && !VerifyRequestParams(aParams))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!aTrustParams && !VerifyRequestParams(aParams)"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10563
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!aTrustParams && !VerifyRequestParams(aParams)"
")"); do { MOZ_CrashSequence(__null, 10563); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((!aTrustParams && !VerifyRequestParams(aParams
)))
) {
10564 return nullptr;
10565 }
10566
10567 if (NS_AUUF_OR_WARN_IF(mCommitOrAbortReceived)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "mCommitOrAbortReceived" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10567); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"mCommitOrAbortReceived" ")"); do { MOZ_CrashSequence(__null
, 10567); __attribute__((nomerge)) ::abort(); } while (false)
; } } while (false); } return aCond; }((mCommitOrAbortReceived
))
) {
10568 return nullptr;
10569 }
10570
10571 RefPtr<NormalTransactionOp> actor;
10572
10573 switch (aParams.type()) {
10574 case RequestParams::TObjectStoreAddParams:
10575 case RequestParams::TObjectStorePutParams:
10576 actor = new ObjectStoreAddOrPutRequestOp(SafeRefPtrFromThis(), aRequestId,
10577 std::move(aParams));
10578 break;
10579
10580 case RequestParams::TObjectStoreGetParams:
10581 actor =
10582 new ObjectStoreGetRequestOp(SafeRefPtrFromThis(), aRequestId, aParams,
10583 /* aGetAll */ false);
10584 break;
10585
10586 case RequestParams::TObjectStoreGetAllParams:
10587 actor =
10588 new ObjectStoreGetRequestOp(SafeRefPtrFromThis(), aRequestId, aParams,
10589 /* aGetAll */ true);
10590 break;
10591
10592 case RequestParams::TObjectStoreGetKeyParams:
10593 actor = new ObjectStoreGetKeyRequestOp(SafeRefPtrFromThis(), aRequestId,
10594 aParams,
10595 /* aGetAll */ false);
10596 break;
10597
10598 case RequestParams::TObjectStoreGetAllKeysParams:
10599 actor = new ObjectStoreGetKeyRequestOp(SafeRefPtrFromThis(), aRequestId,
10600 aParams,
10601 /* aGetAll */ true);
10602 break;
10603
10604 case RequestParams::TObjectStoreGetAllRecordsParams:
10605 actor = new ObjectStoreGetAllRecordsRequestOp(SafeRefPtrFromThis(),
10606 aRequestId, aParams);
10607 break;
10608
10609 case RequestParams::TObjectStoreDeleteParams:
10610 actor =
10611 new ObjectStoreDeleteRequestOp(SafeRefPtrFromThis(), aRequestId,
10612 aParams.get_ObjectStoreDeleteParams());
10613 break;
10614
10615 case RequestParams::TObjectStoreClearParams:
10616 actor =
10617 new ObjectStoreClearRequestOp(SafeRefPtrFromThis(), aRequestId,
10618 aParams.get_ObjectStoreClearParams());
10619 break;
10620
10621 case RequestParams::TObjectStoreCountParams:
10622 actor =
10623 new ObjectStoreCountRequestOp(SafeRefPtrFromThis(), aRequestId,
10624 aParams.get_ObjectStoreCountParams());
10625 break;
10626
10627 case RequestParams::TIndexGetParams:
10628 actor = new IndexGetRequestOp(SafeRefPtrFromThis(), aRequestId, aParams,
10629 /* aGetAll */ false);
10630 break;
10631
10632 case RequestParams::TIndexGetKeyParams:
10633 actor =
10634 new IndexGetKeyRequestOp(SafeRefPtrFromThis(), aRequestId, aParams,
10635 /* aGetAll */ false);
10636 break;
10637
10638 case RequestParams::TIndexGetAllParams:
10639 actor = new IndexGetRequestOp(SafeRefPtrFromThis(), aRequestId, aParams,
10640 /* aGetAll */ true);
10641 break;
10642
10643 case RequestParams::TIndexGetAllKeysParams:
10644 actor =
10645 new IndexGetKeyRequestOp(SafeRefPtrFromThis(), aRequestId, aParams,
10646 /* aGetAll */ true);
10647 break;
10648
10649 case RequestParams::TIndexGetAllRecordsParams:
10650 actor = new IndexGetAllRecordsRequestOp(SafeRefPtrFromThis(), aRequestId,
10651 aParams);
10652 break;
10653
10654 case RequestParams::TIndexCountParams:
10655 actor =
10656 new IndexCountRequestOp(SafeRefPtrFromThis(), aRequestId, aParams);
10657 break;
10658
10659 default:
10660 MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10660
); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 10660); __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
10661 }
10662
10663 MOZ_ASSERT(actor)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(actor)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(actor))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("actor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10663); AnnotateMozCrashReason("MOZ_ASSERT" "(" "actor" ")"
); do { MOZ_CrashSequence(__null, 10663); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10664
10665 // Transfer ownership to IPDL.
10666 return actor.forget().take();
10667}
10668
10669bool TransactionBase::StartRequest(PBackgroundIDBRequestParent* aActor) {
10670 AssertIsOnBackgroundThread();
10671 MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aActor)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10671); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { MOZ_CrashSequence(__null, 10671); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10672
10673 auto* op = static_cast<NormalTransactionOp*>(aActor);
10674
10675 if (NS_WARN_IF(!op->Init(*this))NS_warn_if_impl(!op->Init(*this), "!op->Init(*this)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10675)
) {
10676 op->Cleanup();
10677 return false;
10678 }
10679
10680 op->DispatchToConnectionPool();
10681 return true;
10682}
10683
10684bool TransactionBase::DeallocRequest(
10685 PBackgroundIDBRequestParent* const aActor) {
10686 AssertIsOnBackgroundThread();
10687 MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aActor)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10687); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { MOZ_CrashSequence(__null, 10687); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10688
10689 // Transfer ownership back from IPDL.
10690 const RefPtr<NormalTransactionOp> actor =
10691 dont_AddRef(static_cast<NormalTransactionOp*>(aActor));
10692 return true;
10693}
10694
10695already_AddRefed<PBackgroundIDBCursorParent> TransactionBase::AllocCursor(
10696 const OpenCursorParams& aParams, bool aTrustParams) {
10697 AssertIsOnBackgroundThread();
10698 MOZ_ASSERT(aParams.type() != OpenCursorParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() != OpenCursorParams::T__None)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(aParams.type() != OpenCursorParams::T__None))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("aParams.type() != OpenCursorParams::T__None"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10698
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != OpenCursorParams::T__None"
")"); do { MOZ_CrashSequence(__null, 10698); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10699
10700#ifdef DEBUG1
10701 // Always verify parameters in DEBUG builds!
10702 aTrustParams = false;
10703#endif
10704
10705 const OpenCursorParams::Type type = aParams.type();
10706 SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata;
10707 SafeRefPtr<FullIndexMetadata> indexMetadata;
10708 CursorBase::Direction direction;
10709
10710 // First extract the parameters common to all open cursor variants.
10711 const auto& commonParams = GetCommonOpenCursorParams(aParams);
10712 objectStoreMetadata =
10713 GetMetadataForObjectStoreId(commonParams.objectStoreId());
10714 if (NS_AUUF_OR_WARN_IF(!objectStoreMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!objectStoreMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10714); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10714
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((!objectStoreMetadata))
) {
10715 return nullptr;
10716 }
10717 if (!aTrustParams && NS_AUUF_OR_WARN_IF(!VerifyRequestParams([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!VerifyRequestParams( commonParams.optionalKeyRange())"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10718
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams( commonParams.optionalKeyRange())"
")"); do { MOZ_CrashSequence(__null, 10718); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((!VerifyRequestParams( commonParams.optionalKeyRange
())))
10718 commonParams.optionalKeyRange()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!VerifyRequestParams( commonParams.optionalKeyRange())"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10718
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams( commonParams.optionalKeyRange())"
")"); do { MOZ_CrashSequence(__null, 10718); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((!VerifyRequestParams( commonParams.optionalKeyRange
())))
) {
10719 return nullptr;
10720 }
10721 direction = commonParams.direction();
10722
10723 // Now, for the index open cursor variants, extract the additional parameter.
10724 if (type == OpenCursorParams::TIndexOpenCursorParams ||
10725 type == OpenCursorParams::TIndexOpenKeyCursorParams) {
10726 const auto& commonIndexParams = GetCommonIndexOpenCursorParams(aParams);
10727 indexMetadata = GetMetadataForIndexId(*objectStoreMetadata,
10728 commonIndexParams.indexId());
10729 if (NS_AUUF_OR_WARN_IF(!indexMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!indexMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10729); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!indexMetadata" ")"); do { MOZ_CrashSequence(__null, 10729)
; __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((!indexMetadata))
) {
10730 return nullptr;
10731 }
10732 }
10733
10734 if (NS_AUUF_OR_WARN_IF(mCommitOrAbortReceived)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "mCommitOrAbortReceived" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10734); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"mCommitOrAbortReceived" ")"); do { MOZ_CrashSequence(__null
, 10734); __attribute__((nomerge)) ::abort(); } while (false)
; } } while (false); } return aCond; }((mCommitOrAbortReceived
))
) {
10735 return nullptr;
10736 }
10737
10738 // Create Cursor and transfer ownership to IPDL.
10739 switch (type) {
10740 case OpenCursorParams::TObjectStoreOpenCursorParams:
10741 MOZ_ASSERT(!indexMetadata)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!indexMetadata)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!indexMetadata))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!indexMetadata"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10741
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!indexMetadata" ")"
); do { MOZ_CrashSequence(__null, 10741); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10742 return MakeAndAddRef<Cursor<IDBCursorType::ObjectStore>>(
10743 SafeRefPtrFromThis(), std::move(objectStoreMetadata), direction,
10744 CursorBase::ConstructFromTransactionBase{});
10745 case OpenCursorParams::TObjectStoreOpenKeyCursorParams:
10746 MOZ_ASSERT(!indexMetadata)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!indexMetadata)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!indexMetadata))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!indexMetadata"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10746
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!indexMetadata" ")"
); do { MOZ_CrashSequence(__null, 10746); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10747 return MakeAndAddRef<Cursor<IDBCursorType::ObjectStoreKey>>(
10748 SafeRefPtrFromThis(), std::move(objectStoreMetadata), direction,
10749 CursorBase::ConstructFromTransactionBase{});
10750 case OpenCursorParams::TIndexOpenCursorParams:
10751 return MakeAndAddRef<Cursor<IDBCursorType::Index>>(
10752 SafeRefPtrFromThis(), std::move(objectStoreMetadata),
10753 std::move(indexMetadata), direction,
10754 CursorBase::ConstructFromTransactionBase{});
10755 case OpenCursorParams::TIndexOpenKeyCursorParams:
10756 return MakeAndAddRef<Cursor<IDBCursorType::IndexKey>>(
10757 SafeRefPtrFromThis(), std::move(objectStoreMetadata),
10758 std::move(indexMetadata), direction,
10759 CursorBase::ConstructFromTransactionBase{});
10760 default:
10761 MOZ_CRASH("Cannot get here.")do { do { } while (false); MOZ_ReportCrash("" "Cannot get here."
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10761
); AnnotateMozCrashReason("MOZ_CRASH(" "Cannot get here." ")"
); do { MOZ_CrashSequence(__null, 10761); __attribute__((nomerge
)) ::abort(); } while (false); } while (false)
;
10762 }
10763}
10764
10765bool TransactionBase::StartCursor(PBackgroundIDBCursorParent* const aActor,
10766 const int64_t aRequestId,
10767 const OpenCursorParams& aParams) {
10768 AssertIsOnBackgroundThread();
10769 MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aActor)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10769); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { MOZ_CrashSequence(__null, 10769); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10770 MOZ_ASSERT(aParams.type() != OpenCursorParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() != OpenCursorParams::T__None)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(aParams.type() != OpenCursorParams::T__None))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("aParams.type() != OpenCursorParams::T__None"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10770
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != OpenCursorParams::T__None"
")"); do { MOZ_CrashSequence(__null, 10770); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10771
10772 auto* const op = static_cast<CursorBase*>(aActor);
10773
10774 if (NS_WARN_IF(!op->Start(aRequestId, aParams))NS_warn_if_impl(!op->Start(aRequestId, aParams), "!op->Start(aRequestId, aParams)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10774
)
) {
10775 return false;
10776 }
10777
10778 return true;
10779}
10780
10781/*******************************************************************************
10782 * NormalTransaction
10783 ******************************************************************************/
10784
10785NormalTransaction::NormalTransaction(
10786 SafeRefPtr<Database> aDatabase, TransactionBase::Mode aMode,
10787 TransactionBase::Durability aDurability,
10788 nsTArray<SafeRefPtr<FullObjectStoreMetadata>>&& aObjectStores)
10789 : TransactionBase(std::move(aDatabase), aMode, aDurability),
10790 mObjectStores{std::move(aObjectStores)} {
10791 AssertIsOnBackgroundThread();
10792 MOZ_ASSERT(!mObjectStores.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mObjectStores.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mObjectStores.IsEmpty()))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("!mObjectStores.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10792
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mObjectStores.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 10792); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10793}
10794
10795bool NormalTransaction::IsSameProcessActor() {
10796 AssertIsOnBackgroundThread();
10797
10798 PBackgroundParent* const actor = Manager()->Manager()->Manager();
10799 MOZ_ASSERT(actor)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(actor)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(actor))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("actor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10799); AnnotateMozCrashReason("MOZ_ASSERT" "(" "actor" ")"
); do { MOZ_CrashSequence(__null, 10799); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10800
10801 return !BackgroundParent::IsOtherProcessActor(actor);
10802}
10803
10804void NormalTransaction::SendCompleteNotification(nsresult aResult) {
10805 AssertIsOnBackgroundThread();
10806
10807 if (!IsActorDestroyed()) {
10808 (void)SendComplete(aResult);
10809 }
10810}
10811
10812void NormalTransaction::ActorDestroy(ActorDestroyReason aWhy) {
10813 AssertIsOnBackgroundThread();
10814
10815 NoteActorDestroyed();
10816
10817 if (!mCommittedOrAborted) {
10818 if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
) {
10819 IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10819, idbInternalErrMsg.get()); } while (0)
;
10820 mResultCode = NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
10821 }
10822
10823 mForceAborted.EnsureFlipped();
10824
10825 MaybeCommitOrAbort();
10826 }
10827}
10828
10829mozilla::ipc::IPCResult NormalTransaction::RecvDeleteMe() {
10830 AssertIsOnBackgroundThread();
10831 MOZ_ASSERT(!IsActorDestroyed())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsActorDestroyed())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsActorDestroyed()))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("!IsActorDestroyed()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10831
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()"
")"); do { MOZ_CrashSequence(__null, 10831); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10832
10833 QM_WARNONLY_TRY(OkIf(PBackgroundIDBTransactionParent::Send__delete__(this))){auto tryResult1033 = (OkIf(PBackgroundIDBTransactionParent::
Send__delete__(this))); static_assert(std::is_empty_v<typename
decltype(tryResult1033)::ok_type>); if ((__builtin_expect
(!!(tryResult1033.isErr()), 0))) { mozilla::dom::quota::HandleError
("OkIf(PBackgroundIDBTransactionParent::Send__delete__(this))"
, tryResult1033.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10833, mozilla::dom::quota::Severity::Warning); }}
;
10834
10835 return IPC_OK()mozilla::ipc::IPCResult::Ok();
10836}
10837
10838mozilla::ipc::IPCResult NormalTransaction::RecvCommit(
10839 const Maybe<int64_t>& aLastRequest) {
10840 AssertIsOnBackgroundThread();
10841
10842 return TransactionBase::RecvCommit(this, aLastRequest);
10843}
10844
10845mozilla::ipc::IPCResult NormalTransaction::RecvAbort(
10846 const nsresult& aResultCode) {
10847 AssertIsOnBackgroundThread();
10848
10849 return TransactionBase::RecvAbort(this, aResultCode);
10850}
10851
10852PBackgroundIDBRequestParent*
10853NormalTransaction::AllocPBackgroundIDBRequestParent(
10854 const int64_t& aRequestId, const RequestParams& aParams) {
10855 AssertIsOnBackgroundThread();
10856 MOZ_ASSERT(aParams.type() != RequestParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() != RequestParams::T__None)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(aParams.type() != RequestParams::T__None))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aParams.type() != RequestParams::T__None"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10856
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != RequestParams::T__None"
")"); do { MOZ_CrashSequence(__null, 10856); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10857
10858 return AllocRequest(aRequestId,
10859 std::move(const_cast<RequestParams&>(aParams)),
10860 IsSameProcessActor());
10861}
10862
10863mozilla::ipc::IPCResult NormalTransaction::RecvPBackgroundIDBRequestConstructor(
10864 PBackgroundIDBRequestParent* const aActor, const int64_t& aRequestId,
10865 const RequestParams& aParams) {
10866 AssertIsOnBackgroundThread();
10867 MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aActor)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10867); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { MOZ_CrashSequence(__null, 10867); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10868 MOZ_ASSERT(aParams.type() != RequestParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() != RequestParams::T__None)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(aParams.type() != RequestParams::T__None))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aParams.type() != RequestParams::T__None"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10868
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != RequestParams::T__None"
")"); do { MOZ_CrashSequence(__null, 10868); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10869
10870 if (!StartRequest(aActor)) {
10871 return IPC_FAIL(this, "StartRequest failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("StartRequest failed!"
))
;
10872 }
10873 return IPC_OK()mozilla::ipc::IPCResult::Ok();
10874}
10875
10876bool NormalTransaction::DeallocPBackgroundIDBRequestParent(
10877 PBackgroundIDBRequestParent* const aActor) {
10878 AssertIsOnBackgroundThread();
10879 MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aActor)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10879); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { MOZ_CrashSequence(__null, 10879); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10880
10881 return DeallocRequest(aActor);
10882}
10883
10884already_AddRefed<PBackgroundIDBCursorParent>
10885NormalTransaction::AllocPBackgroundIDBCursorParent(
10886 const int64_t& aRequestId, const OpenCursorParams& aParams) {
10887 AssertIsOnBackgroundThread();
10888
10889 return AllocCursor(aParams, IsSameProcessActor());
10890}
10891
10892mozilla::ipc::IPCResult NormalTransaction::RecvPBackgroundIDBCursorConstructor(
10893 PBackgroundIDBCursorParent* const aActor, const int64_t& aRequestId,
10894 const OpenCursorParams& aParams) {
10895 AssertIsOnBackgroundThread();
10896 MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aActor)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10896); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { MOZ_CrashSequence(__null, 10896); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10897 MOZ_ASSERT(aParams.type() != OpenCursorParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() != OpenCursorParams::T__None)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(aParams.type() != OpenCursorParams::T__None))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("aParams.type() != OpenCursorParams::T__None"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10897
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != OpenCursorParams::T__None"
")"); do { MOZ_CrashSequence(__null, 10897); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10898
10899 if (!StartCursor(aActor, aRequestId, aParams)) {
10900 return IPC_FAIL(this, "StartCursor failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("StartCursor failed!"
))
;
10901 }
10902 return IPC_OK()mozilla::ipc::IPCResult::Ok();
10903}
10904
10905/*******************************************************************************
10906 * VersionChangeTransaction
10907 ******************************************************************************/
10908
10909VersionChangeTransaction::VersionChangeTransaction(
10910 OpenDatabaseOp* aOpenDatabaseOp)
10911 : TransactionBase(aOpenDatabaseOp->mDatabase.clonePtr(),
10912 IDBTransaction::Mode::VersionChange,
10913 // VersionChange must not change durability.
10914 IDBTransaction::Durability::Default), // Not used.
10915 mOpenDatabaseOp(aOpenDatabaseOp) {
10916 AssertIsOnBackgroundThread();
10917 MOZ_ASSERT(aOpenDatabaseOp)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aOpenDatabaseOp)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aOpenDatabaseOp))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("aOpenDatabaseOp"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10917
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aOpenDatabaseOp" ")"
); do { MOZ_CrashSequence(__null, 10917); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10918}
10919
10920VersionChangeTransaction::~VersionChangeTransaction() {
10921#ifdef DEBUG1
10922 // Silence the base class' destructor assertion if we never made this actor
10923 // live.
10924 FakeActorDestroyed();
10925#endif
10926}
10927
10928bool VersionChangeTransaction::IsSameProcessActor() {
10929 AssertIsOnBackgroundThread();
10930
10931 PBackgroundParent* actor = Manager()->Manager()->Manager();
10932 MOZ_ASSERT(actor)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(actor)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(actor))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("actor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10932); AnnotateMozCrashReason("MOZ_ASSERT" "(" "actor" ")"
); do { MOZ_CrashSequence(__null, 10932); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10933
10934 return !BackgroundParent::IsOtherProcessActor(actor);
10935}
10936
10937void VersionChangeTransaction::SetActorAlive() {
10938 AssertIsOnBackgroundThread();
10939 MOZ_ASSERT(!IsActorDestroyed())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsActorDestroyed())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsActorDestroyed()))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("!IsActorDestroyed()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10939
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()"
")"); do { MOZ_CrashSequence(__null, 10939); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10940
10941 mActorWasAlive.Flip();
10942}
10943
10944bool VersionChangeTransaction::CopyDatabaseMetadata() {
10945 AssertIsOnBackgroundThread();
10946 MOZ_ASSERT(!mOldMetadata)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mOldMetadata)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mOldMetadata))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("!mOldMetadata",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10946)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mOldMetadata" ")"
); do { MOZ_CrashSequence(__null, 10946); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10947
10948 const auto& origMetadata = GetDatabase().Metadata();
10949
10950 SafeRefPtr<FullDatabaseMetadata> newMetadata = origMetadata.Duplicate();
10951 if (NS_WARN_IF(!newMetadata)NS_warn_if_impl(!newMetadata, "!newMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10951)
) {
10952 return false;
10953 }
10954
10955 // Replace the live metadata with the new mutable copy.
10956 DatabaseActorInfo* info;
10957 MOZ_ALWAYS_TRUE(gLiveDatabaseHashtable->Get(origMetadata.mDatabaseId, &info))do { if ((__builtin_expect(!!(gLiveDatabaseHashtable->Get(
origMetadata.mDatabaseId, &info)), 1))) { } else { do { do
{ } while (false); MOZ_ReportCrash("" "gLiveDatabaseHashtable->Get(origMetadata.mDatabaseId, &info)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10957
); AnnotateMozCrashReason("MOZ_CRASH(" "gLiveDatabaseHashtable->Get(origMetadata.mDatabaseId, &info)"
")"); do { MOZ_CrashSequence(__null, 10957); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
10958 MOZ_ASSERT(!info->mLiveDatabases.isEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!info->mLiveDatabases.isEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!info->mLiveDatabases.isEmpty
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!info->mLiveDatabases.isEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10958); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mLiveDatabases.isEmpty()"
")"); do { MOZ_CrashSequence(__null, 10958); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10959 MOZ_ASSERT(info->mMetadata == &origMetadata)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(info->mMetadata == &origMetadata)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(info->mMetadata == &origMetadata))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("info->mMetadata == &origMetadata"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10959
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "info->mMetadata == &origMetadata"
")"); do { MOZ_CrashSequence(__null, 10959); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10960
10961 mOldMetadata = std::move(info->mMetadata);
10962 info->mMetadata = std::move(newMetadata);
10963
10964 // Replace metadata pointers for all live databases.
10965 for (Database* const liveDatabase : info->mLiveDatabases) {
10966 liveDatabase->mMetadata = info->mMetadata.clonePtr();
10967 }
10968
10969 return true;
10970}
10971
10972void VersionChangeTransaction::UpdateMetadata(nsresult aResult) {
10973 AssertIsOnBackgroundThread();
10974 MOZ_ASSERT(mOpenDatabaseOp)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mOpenDatabaseOp)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOpenDatabaseOp))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mOpenDatabaseOp"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10974
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp" ")"
); do { MOZ_CrashSequence(__null, 10974); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10975 MOZ_ASSERT(!!mActorWasAlive == !!mOpenDatabaseOp->mDatabase)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!!mActorWasAlive == !!mOpenDatabaseOp->mDatabase)
>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!!mActorWasAlive == !!mOpenDatabaseOp->mDatabase)
)), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!!mActorWasAlive == !!mOpenDatabaseOp->mDatabase"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10975
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!!mActorWasAlive == !!mOpenDatabaseOp->mDatabase"
")"); do { MOZ_CrashSequence(__null, 10975); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10976 MOZ_ASSERT_IF(mActorWasAlive, !mOpenDatabaseOp->mDatabaseId.ref().IsEmpty())do { if (mActorWasAlive) { do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!mOpenDatabaseOp->mDatabaseId
.ref().IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mOpenDatabaseOp->mDatabaseId
.ref().IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!mOpenDatabaseOp->mDatabaseId.ref().IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10976); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mOpenDatabaseOp->mDatabaseId.ref().IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 10976); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
10977
10978 if (IsActorDestroyed() || !mActorWasAlive) {
10979 return;
10980 }
10981
10982 SafeRefPtr<FullDatabaseMetadata> oldMetadata = std::move(mOldMetadata);
10983
10984 DatabaseActorInfo* info;
10985 if (!gLiveDatabaseHashtable->Get(oldMetadata->mDatabaseId, &info)) {
10986 return;
10987 }
10988
10989 MOZ_ASSERT(!info->mLiveDatabases.isEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!info->mLiveDatabases.isEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!info->mLiveDatabases.isEmpty
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!info->mLiveDatabases.isEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10989); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mLiveDatabases.isEmpty()"
")"); do { MOZ_CrashSequence(__null, 10989); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10990
10991 if (NS_SUCCEEDED(aResult)((bool)(__builtin_expect(!!(!NS_FAILED_impl(aResult)), 1)))) {
10992 // Remove all deleted objectStores and indexes, then mark immutable.
10993 info->mMetadata->mObjectStores.RemoveIf([](const auto& objectStoreIter) {
10994 MOZ_ASSERT(objectStoreIter.Key())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(objectStoreIter.Key())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(objectStoreIter.Key()))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreIter.Key()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10994
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreIter.Key()"
")"); do { MOZ_CrashSequence(__null, 10994); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10995 const SafeRefPtr<FullObjectStoreMetadata>& metadata =
10996 objectStoreIter.Data();
10997 MOZ_ASSERT(metadata)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(metadata)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10997); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 10997); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10998
10999 if (metadata->mDeleted) {
11000 return true;
11001 }
11002
11003 metadata->mIndexes.RemoveIf([](const auto& indexIter) -> bool {
11004 MOZ_ASSERT(indexIter.Key())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(indexIter.Key())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(indexIter.Key()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("indexIter.Key()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11004
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexIter.Key()" ")"
); do { MOZ_CrashSequence(__null, 11004); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
11005 const SafeRefPtr<FullIndexMetadata>& index = indexIter.Data();
11006 MOZ_ASSERT(index)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(index)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(index))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("index", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11006); AnnotateMozCrashReason("MOZ_ASSERT" "(" "index" ")"
); do { MOZ_CrashSequence(__null, 11006); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
11007
11008 return index->mDeleted;
11009 });
11010 metadata->mIndexes.MarkImmutable();
11011
11012 return false;
11013 });
11014
11015 info->mMetadata->mObjectStores.MarkImmutable();
11016 } else {
11017 // Replace metadata pointers for all live databases.
11018 info->mMetadata = std::move(oldMetadata);
11019
11020 for (Database* const liveDatabase : info->mLiveDatabases) {
11021 liveDatabase->mMetadata = info->mMetadata.clonePtr();
11022 }
11023 }
11024}
11025
11026void VersionChangeTransaction::SendCompleteNotification(nsresult aResult) {
11027 AssertIsOnBackgroundThread();
11028 MOZ_ASSERT(mOpenDatabaseOp)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mOpenDatabaseOp)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOpenDatabaseOp))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mOpenDatabaseOp"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11028
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp" ")"
); do { MOZ_CrashSequence(__null, 11028); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
11029 MOZ_ASSERT(!mOpenDatabaseOp->mCompleteCallback)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mOpenDatabaseOp->mCompleteCallback)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(!mOpenDatabaseOp->mCompleteCallback))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!mOpenDatabaseOp->mCompleteCallback"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11029
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mOpenDatabaseOp->mCompleteCallback"
")"); do { MOZ_CrashSequence(__null, 11029); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11030 MOZ_ASSERT_IF(!mActorWasAlive, mOpenDatabaseOp->HasFailed())do { if (!mActorWasAlive) { do { static_assert( mozilla::detail
::AssertionConditionType<decltype(mOpenDatabaseOp->HasFailed
())>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mOpenDatabaseOp->HasFailed()))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mOpenDatabaseOp->HasFailed()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11030
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->HasFailed()"
")"); do { MOZ_CrashSequence(__null, 11030); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
11031 MOZ_ASSERT_IF(!mActorWasAlive, mOpenDatabaseOp->mState >do { if (!mActorWasAlive) { do { static_assert( mozilla::detail
::AssertionConditionType<decltype(mOpenDatabaseOp->mState
> OpenDatabaseOp::State::SendingResults)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOpenDatabaseOp->mState >
OpenDatabaseOp::State::SendingResults))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mOpenDatabaseOp->mState > OpenDatabaseOp::State::SendingResults"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11032
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->mState > OpenDatabaseOp::State::SendingResults"
")"); do { MOZ_CrashSequence(__null, 11032); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
11032 OpenDatabaseOp::State::SendingResults)do { if (!mActorWasAlive) { do { static_assert( mozilla::detail
::AssertionConditionType<decltype(mOpenDatabaseOp->mState
> OpenDatabaseOp::State::SendingResults)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOpenDatabaseOp->mState >
OpenDatabaseOp::State::SendingResults))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mOpenDatabaseOp->mState > OpenDatabaseOp::State::SendingResults"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11032
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->mState > OpenDatabaseOp::State::SendingResults"
")"); do { MOZ_CrashSequence(__null, 11032); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
11033
11034 const RefPtr<OpenDatabaseOp> openDatabaseOp = std::move(mOpenDatabaseOp);
11035
11036 if (!mActorWasAlive) {
11037 return;
11038 }
11039
11040 openDatabaseOp->mCompleteCallback =
11041 [self = SafeRefPtr{this, AcquireStrongRefFromRawPtr{}}, aResult]() {
11042 if (!self->IsActorDestroyed()) {
11043 (void)self->SendComplete(aResult);
11044 }
11045 };
11046
11047 auto handleError = [openDatabaseOp](const nsresult rv) {
11048 openDatabaseOp->SetFailureCodeIfUnset(NS_ERROR_DOM_INDEXEDDB_ABORT_ERR);
11049
11050 openDatabaseOp->mState = OpenDatabaseOp::State::SendingResults;
11051
11052 MOZ_ALWAYS_SUCCEEDS(openDatabaseOp->Run())do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(openDatabaseOp->Run())), 1)))), 1))) { } else { do { do {
} while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(openDatabaseOp->Run())"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11052
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(openDatabaseOp->Run())"
")"); do { MOZ_CrashSequence(__null, 11052); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
11053 };
11054
11055 if (NS_FAILED(aResult)((bool)(__builtin_expect(!!(NS_FAILED_impl(aResult)), 0)))) {
11056 // 3.3.1 Opening a database:
11057 // "If the upgrade transaction was aborted, run the steps for closing a
11058 // database connection with connection, create and return a new AbortError
11059 // exception and abort these steps."
11060 handleError(NS_ERROR_DOM_INDEXEDDB_ABORT_ERR);
11061 return;
11062 }
11063
11064 openDatabaseOp->mState = OpenDatabaseOp::State::DatabaseWorkVersionUpdate;
11065
11066 QuotaManager* const quotaManager = QuotaManager::Get();
11067 MOZ_ASSERT(quotaManager)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(quotaManager)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(quotaManager))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("quotaManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11067); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { MOZ_CrashSequence(__null, 11067); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11068
11069 QM_TRY(MOZ_TO_RESULT(quotaManager->IOThread()->Dispatch(openDatabaseOp,{auto tryResult1034 = (ToResult(quotaManager->IOThread()->
Dispatch(openDatabaseOp, nsIEventTarget::DISPATCH_NORMAL)) .mapErr
( [](const auto) { return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
})); static_assert(std::is_empty_v<typename decltype(tryResult1034
)::ok_type>); if ((__builtin_expect(!!(tryResult1034.isErr
()), 0))) { auto tryTempError = tryResult1034.unwrapErr(); mozilla
::dom::quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(openDatabaseOp, nsIEventTarget::DISPATCH_NORMAL)) .mapErr( [](const auto) { return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11073, mozilla::dom::quota::Severity::Error); handleError(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return ; }}
11070 NS_DISPATCH_NORMAL)){auto tryResult1034 = (ToResult(quotaManager->IOThread()->
Dispatch(openDatabaseOp, nsIEventTarget::DISPATCH_NORMAL)) .mapErr
( [](const auto) { return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
})); static_assert(std::is_empty_v<typename decltype(tryResult1034
)::ok_type>); if ((__builtin_expect(!!(tryResult1034.isErr
()), 0))) { auto tryTempError = tryResult1034.unwrapErr(); mozilla
::dom::quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(openDatabaseOp, nsIEventTarget::DISPATCH_NORMAL)) .mapErr( [](const auto) { return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11073, mozilla::dom::quota::Severity::Error); handleError(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return ; }}
11071 .mapErr({auto tryResult1034 = (ToResult(quotaManager->IOThread()->
Dispatch(openDatabaseOp, nsIEventTarget::DISPATCH_NORMAL)) .mapErr
( [](const auto) { return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
})); static_assert(std::is_empty_v<typename decltype(tryResult1034
)::ok_type>); if ((__builtin_expect(!!(tryResult1034.isErr
()), 0))) { auto tryTempError = tryResult1034.unwrapErr(); mozilla
::dom::quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(openDatabaseOp, nsIEventTarget::DISPATCH_NORMAL)) .mapErr( [](const auto) { return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11073, mozilla::dom::quota::Severity::Error); handleError(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return ; }}
11072 [](const auto) { return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; }),{auto tryResult1034 = (ToResult(quotaManager->IOThread()->
Dispatch(openDatabaseOp, nsIEventTarget::DISPATCH_NORMAL)) .mapErr
( [](const auto) { return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
})); static_assert(std::is_empty_v<typename decltype(tryResult1034
)::ok_type>); if ((__builtin_expect(!!(tryResult1034.isErr
()), 0))) { auto tryTempError = tryResult1034.unwrapErr(); mozilla
::dom::quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(openDatabaseOp, nsIEventTarget::DISPATCH_NORMAL)) .mapErr( [](const auto) { return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11073, mozilla::dom::quota::Severity::Error); handleError(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return ; }}
11073 QM_VOID, handleError){auto tryResult1034 = (ToResult(quotaManager->IOThread()->
Dispatch(openDatabaseOp, nsIEventTarget::DISPATCH_NORMAL)) .mapErr
( [](const auto) { return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
})); static_assert(std::is_empty_v<typename decltype(tryResult1034
)::ok_type>); if ((__builtin_expect(!!(tryResult1034.isErr
()), 0))) { auto tryTempError = tryResult1034.unwrapErr(); mozilla
::dom::quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(openDatabaseOp, nsIEventTarget::DISPATCH_NORMAL)) .mapErr( [](const auto) { return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11073, mozilla::dom::quota::Severity::Error); handleError(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return ; }}
;
11074}
11075
11076void VersionChangeTransaction::ActorDestroy(ActorDestroyReason aWhy) {
11077 AssertIsOnBackgroundThread();
11078
11079 NoteActorDestroyed();
11080
11081 if (!mCommittedOrAborted) {
11082 if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
) {
11083 IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11083, idbInternalErrMsg.get()); } while (0)
;
11084 mResultCode = NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
11085 }
11086
11087 mForceAborted.EnsureFlipped();
11088
11089 MaybeCommitOrAbort();
11090 }
11091}
11092
11093mozilla::ipc::IPCResult VersionChangeTransaction::RecvDeleteMe() {
11094 AssertIsOnBackgroundThread();
11095 MOZ_ASSERT(!IsActorDestroyed())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsActorDestroyed())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsActorDestroyed()))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("!IsActorDestroyed()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11095
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()"
")"); do { MOZ_CrashSequence(__null, 11095); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11096
11097 QM_WARNONLY_TRY({auto tryResult1035 = (OkIf(PBackgroundIDBVersionChangeTransactionParent
::Send__delete__(this))); static_assert(std::is_empty_v<typename
decltype(tryResult1035)::ok_type>); if ((__builtin_expect
(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError
("OkIf(PBackgroundIDBVersionChangeTransactionParent::Send__delete__(this))"
, tryResult1035.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11098, mozilla::dom::quota::Severity::Warning); }}
11098 OkIf(PBackgroundIDBVersionChangeTransactionParent::Send__delete__(this))){auto tryResult1035 = (OkIf(PBackgroundIDBVersionChangeTransactionParent
::Send__delete__(this))); static_assert(std::is_empty_v<typename
decltype(tryResult1035)::ok_type>); if ((__builtin_expect
(!!(tryResult1035.isErr()), 0))) { mozilla::dom::quota::HandleError
("OkIf(PBackgroundIDBVersionChangeTransactionParent::Send__delete__(this))"
, tryResult1035.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11098, mozilla::dom::quota::Severity::Warning); }}
;
11099
11100 return IPC_OK()mozilla::ipc::IPCResult::Ok();
11101}
11102
11103mozilla::ipc::IPCResult VersionChangeTransaction::RecvCommit(
11104 const Maybe<int64_t>& aLastRequest) {
11105 AssertIsOnBackgroundThread();
11106
11107 return TransactionBase::RecvCommit(this, aLastRequest);
11108}
11109
11110mozilla::ipc::IPCResult VersionChangeTransaction::RecvAbort(
11111 const nsresult& aResultCode) {
11112 AssertIsOnBackgroundThread();
11113
11114 return TransactionBase::RecvAbort(this, aResultCode);
11115}
11116
11117mozilla::ipc::IPCResult VersionChangeTransaction::RecvCreateObjectStore(
11118 const ObjectStoreMetadata& aMetadata) {
11119 AssertIsOnBackgroundThread();
11120
11121 if (NS_WARN_IF(!aMetadata.id())NS_warn_if_impl(!aMetadata.id(), "!aMetadata.id()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11121)
) {
11122 return IPC_FAIL(this, "No metadata ID!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No metadata ID!"
))
;
11123 }
11124
11125 const SafeRefPtr<FullDatabaseMetadata> dbMetadata =
11126 GetDatabase().MetadataPtr();
11127
11128 if (NS_WARN_IF(aMetadata.id() != dbMetadata->mNextObjectStoreId)NS_warn_if_impl(aMetadata.id() != dbMetadata->mNextObjectStoreId
, "aMetadata.id() != dbMetadata->mNextObjectStoreId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11128)
) {
11129 return IPC_FAIL(this, "Requested metadata ID does not match next ID!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Requested metadata ID does not match next ID!"
))
;
11130 }
11131
11132 if (NS_WARN_IF(NS_warn_if_impl(MatchMetadataNameOrId(dbMetadata->mObjectStores
, aMetadata.id(), SomeRef<const nsAString&>(aMetadata
.name())) .isSome(), "MatchMetadataNameOrId(dbMetadata->mObjectStores, aMetadata.id(), SomeRef<const nsAString&>(aMetadata.name())) .isSome()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11135
)
11133 MatchMetadataNameOrId(dbMetadata->mObjectStores, aMetadata.id(),NS_warn_if_impl(MatchMetadataNameOrId(dbMetadata->mObjectStores
, aMetadata.id(), SomeRef<const nsAString&>(aMetadata
.name())) .isSome(), "MatchMetadataNameOrId(dbMetadata->mObjectStores, aMetadata.id(), SomeRef<const nsAString&>(aMetadata.name())) .isSome()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11135
)
11134 SomeRef<const nsAString&>(aMetadata.name()))NS_warn_if_impl(MatchMetadataNameOrId(dbMetadata->mObjectStores
, aMetadata.id(), SomeRef<const nsAString&>(aMetadata
.name())) .isSome(), "MatchMetadataNameOrId(dbMetadata->mObjectStores, aMetadata.id(), SomeRef<const nsAString&>(aMetadata.name())) .isSome()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11135
)
11135 .isSome())NS_warn_if_impl(MatchMetadataNameOrId(dbMetadata->mObjectStores
, aMetadata.id(), SomeRef<const nsAString&>(aMetadata
.name())) .isSome(), "MatchMetadataNameOrId(dbMetadata->mObjectStores, aMetadata.id(), SomeRef<const nsAString&>(aMetadata.name())) .isSome()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11135
)
) {
11136 return IPC_FAIL(this, "MatchMetadataNameOrId failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("MatchMetadataNameOrId failed!"
))
;
11137 }
11138
11139 if (NS_WARN_IF(mCommitOrAbortReceived)NS_warn_if_impl(mCommitOrAbortReceived, "mCommitOrAbortReceived"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11139
)
) {
11140 return IPC_FAIL(this, "Transaction is already committed/aborted!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Transaction is already committed/aborted!"
))
;
11141 }
11142
11143 const int64_t initialAutoIncrementId = aMetadata.autoIncrement() ? 1 : 0;
11144 auto newMetadata = MakeSafeRefPtr<FullObjectStoreMetadata>(
11145 aMetadata, FullObjectStoreMetadata::AutoIncrementIds{
11146 initialAutoIncrementId, initialAutoIncrementId});
11147
11148 if (NS_WARN_IF(!dbMetadata->mObjectStores.InsertOrUpdate(NS_warn_if_impl(!dbMetadata->mObjectStores.InsertOrUpdate(
aMetadata.id(), std::move(newMetadata), fallible), "!dbMetadata->mObjectStores.InsertOrUpdate( aMetadata.id(), std::move(newMetadata), fallible)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11149
)
11149 aMetadata.id(), std::move(newMetadata), fallible))NS_warn_if_impl(!dbMetadata->mObjectStores.InsertOrUpdate(
aMetadata.id(), std::move(newMetadata), fallible), "!dbMetadata->mObjectStores.InsertOrUpdate( aMetadata.id(), std::move(newMetadata), fallible)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11149
)
) {
11150 return IPC_FAIL(this, "mObjectStores.InsertOrUpdate failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("mObjectStores.InsertOrUpdate failed!"
))
;
11151 }
11152
11153 dbMetadata->mNextObjectStoreId++;
11154
11155 RefPtr<CreateObjectStoreOp> op = new CreateObjectStoreOp(
11156 SafeRefPtrFromThis().downcast<VersionChangeTransaction>(), aMetadata);
11157
11158 if (NS_WARN_IF(!op->Init(*this))NS_warn_if_impl(!op->Init(*this), "!op->Init(*this)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11158)
) {
11159 op->Cleanup();
11160 return IPC_FAIL(this, "ObjectStoreOp initialization failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("ObjectStoreOp initialization failed!"
))
;
11161 }
11162
11163 op->DispatchToConnectionPool();
11164
11165 return IPC_OK()mozilla::ipc::IPCResult::Ok();
11166}
11167
11168mozilla::ipc::IPCResult VersionChangeTransaction::RecvDeleteObjectStore(
11169 const IndexOrObjectStoreId& aObjectStoreId) {
11170 AssertIsOnBackgroundThread();
11171
11172 if (NS_WARN_IF(!aObjectStoreId)NS_warn_if_impl(!aObjectStoreId, "!aObjectStoreId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11172)
) {
11173 return IPC_FAIL(this, "No ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No ObjectStoreId!"
))
;
11174 }
11175
11176 const auto& dbMetadata = GetDatabase().Metadata();
11177 MOZ_ASSERT(dbMetadata.mNextObjectStoreId > 0)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(dbMetadata.mNextObjectStoreId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(dbMetadata.mNextObjectStoreId
> 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("dbMetadata.mNextObjectStoreId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11177); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbMetadata.mNextObjectStoreId > 0"
")"); do { MOZ_CrashSequence(__null, 11177); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11178
11179 if (NS_WARN_IF(aObjectStoreId >= dbMetadata.mNextObjectStoreId)NS_warn_if_impl(aObjectStoreId >= dbMetadata.mNextObjectStoreId
, "aObjectStoreId >= dbMetadata.mNextObjectStoreId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11179)
) {
11180 return IPC_FAIL(this, "Invalid ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Invalid ObjectStoreId!"
))
;
11181 }
11182
11183 SafeRefPtr<FullObjectStoreMetadata> foundMetadata =
11184 GetMetadataForObjectStoreId(aObjectStoreId);
11185
11186 if (NS_WARN_IF(!foundMetadata)NS_warn_if_impl(!foundMetadata, "!foundMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11186)
) {
11187 return IPC_FAIL(this, "No metadata found for ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No metadata found for ObjectStoreId!"
))
;
11188 }
11189
11190 if (NS_WARN_IF(mCommitOrAbortReceived)NS_warn_if_impl(mCommitOrAbortReceived, "mCommitOrAbortReceived"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11190
)
) {
11191 return IPC_FAIL(this, "Transaction is already committed/aborted!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Transaction is already committed/aborted!"
))
;
11192 }
11193
11194 foundMetadata->mDeleted.Flip();
11195
11196 DebugOnly<bool> foundTargetId = false;
11197 const bool isLastObjectStore = std::all_of(
11198 dbMetadata.mObjectStores.begin(), dbMetadata.mObjectStores.end(),
11199 [&foundTargetId, aObjectStoreId](const auto& objectStoreEntry) -> bool {
11200 if (uint64_t(aObjectStoreId) == objectStoreEntry.GetKey()) {
11201 foundTargetId = true;
11202 return true;
11203 }
11204
11205 return objectStoreEntry.GetData()->mDeleted;
11206 });
11207 MOZ_ASSERT_IF(isLastObjectStore, foundTargetId)do { if (isLastObjectStore) { do { static_assert( mozilla::detail
::AssertionConditionType<decltype(foundTargetId)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(foundTargetId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("foundTargetId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11207); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foundTargetId"
")"); do { MOZ_CrashSequence(__null, 11207); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
11208
11209 RefPtr<DeleteObjectStoreOp> op = new DeleteObjectStoreOp(
11210 SafeRefPtrFromThis().downcast<VersionChangeTransaction>(),
11211 std::move(foundMetadata), isLastObjectStore);
11212
11213 if (NS_WARN_IF(!op->Init(*this))NS_warn_if_impl(!op->Init(*this), "!op->Init(*this)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11213)
) {
11214 op->Cleanup();
11215 return IPC_FAIL(this, "ObjectStoreOp initialization failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("ObjectStoreOp initialization failed!"
))
;
11216 }
11217
11218 op->DispatchToConnectionPool();
11219
11220 return IPC_OK()mozilla::ipc::IPCResult::Ok();
11221}
11222
11223mozilla::ipc::IPCResult VersionChangeTransaction::RecvRenameObjectStore(
11224 const IndexOrObjectStoreId& aObjectStoreId, const nsAString& aName) {
11225 AssertIsOnBackgroundThread();
11226
11227 if (NS_WARN_IF(!aObjectStoreId)NS_warn_if_impl(!aObjectStoreId, "!aObjectStoreId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11227)
) {
11228 return IPC_FAIL(this, "No ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No ObjectStoreId!"
))
;
11229 }
11230
11231 {
11232 const auto& dbMetadata = GetDatabase().Metadata();
11233 MOZ_ASSERT(dbMetadata.mNextObjectStoreId > 0)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(dbMetadata.mNextObjectStoreId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(dbMetadata.mNextObjectStoreId
> 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("dbMetadata.mNextObjectStoreId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11233); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbMetadata.mNextObjectStoreId > 0"
")"); do { MOZ_CrashSequence(__null, 11233); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11234
11235 if (NS_WARN_IF(aObjectStoreId >= dbMetadata.mNextObjectStoreId)NS_warn_if_impl(aObjectStoreId >= dbMetadata.mNextObjectStoreId
, "aObjectStoreId >= dbMetadata.mNextObjectStoreId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11235)
) {
11236 return IPC_FAIL(this, "Invalid ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Invalid ObjectStoreId!"
))
;
11237 }
11238 }
11239
11240 SafeRefPtr<FullObjectStoreMetadata> foundMetadata =
11241 GetMetadataForObjectStoreId(aObjectStoreId);
11242
11243 if (NS_WARN_IF(!foundMetadata)NS_warn_if_impl(!foundMetadata, "!foundMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11243)
) {
11244 return IPC_FAIL(this, "No metadata found for ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No metadata found for ObjectStoreId!"
))
;
11245 }
11246
11247 if (NS_WARN_IF(mCommitOrAbortReceived)NS_warn_if_impl(mCommitOrAbortReceived, "mCommitOrAbortReceived"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11247
)
) {
11248 return IPC_FAIL(this, "Transaction is already committed/aborted!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Transaction is already committed/aborted!"
))
;
11249 }
11250
11251 foundMetadata->mCommonMetadata.name() = aName;
11252
11253 RefPtr<RenameObjectStoreOp> renameOp = new RenameObjectStoreOp(
11254 SafeRefPtrFromThis().downcast<VersionChangeTransaction>(),
11255 *foundMetadata);
11256
11257 if (NS_WARN_IF(!renameOp->Init(*this))NS_warn_if_impl(!renameOp->Init(*this), "!renameOp->Init(*this)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11257
)
) {
11258 renameOp->Cleanup();
11259 return IPC_FAIL(this, "ObjectStoreOp initialization failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("ObjectStoreOp initialization failed!"
))
;
11260 }
11261
11262 renameOp->DispatchToConnectionPool();
11263
11264 return IPC_OK()mozilla::ipc::IPCResult::Ok();
11265}
11266
11267mozilla::ipc::IPCResult VersionChangeTransaction::RecvCreateIndex(
11268 const IndexOrObjectStoreId& aObjectStoreId,
11269 const IndexMetadata& aMetadata) {
11270 AssertIsOnBackgroundThread();
11271
11272 if (NS_WARN_IF(!aObjectStoreId)NS_warn_if_impl(!aObjectStoreId, "!aObjectStoreId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11272)
) {
11273 return IPC_FAIL(this, "No ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No ObjectStoreId!"
))
;
11274 }
11275
11276 if (NS_WARN_IF(!aMetadata.id())NS_warn_if_impl(!aMetadata.id(), "!aMetadata.id()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11276)
) {
11277 return IPC_FAIL(this, "No Metadata id!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No Metadata id!"
))
;
11278 }
11279
11280 const auto dbMetadata = GetDatabase().MetadataPtr();
11281
11282 if (NS_WARN_IF(aMetadata.id() != dbMetadata->mNextIndexId)NS_warn_if_impl(aMetadata.id() != dbMetadata->mNextIndexId
, "aMetadata.id() != dbMetadata->mNextIndexId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11282)
) {
11283 return IPC_FAIL(this, "Requested metadata ID does not match next ID!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Requested metadata ID does not match next ID!"
))
;
11284 }
11285
11286 SafeRefPtr<FullObjectStoreMetadata> foundObjectStoreMetadata =
11287 GetMetadataForObjectStoreId(aObjectStoreId);
11288
11289 if (NS_WARN_IF(!foundObjectStoreMetadata)NS_warn_if_impl(!foundObjectStoreMetadata, "!foundObjectStoreMetadata"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11289
)
) {
11290 return IPC_FAIL(this, "GetMetadataForObjectStoreId failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("GetMetadataForObjectStoreId failed!"
))
;
11291 }
11292
11293 if (NS_WARN_IF(MatchMetadataNameOrId(NS_warn_if_impl(MatchMetadataNameOrId( foundObjectStoreMetadata
->mIndexes, aMetadata.id(), SomeRef<const nsAString&
>(aMetadata.name())) .isSome(), "MatchMetadataNameOrId( foundObjectStoreMetadata->mIndexes, aMetadata.id(), SomeRef<const nsAString&>(aMetadata.name())) .isSome()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11296
)
11294 foundObjectStoreMetadata->mIndexes, aMetadata.id(),NS_warn_if_impl(MatchMetadataNameOrId( foundObjectStoreMetadata
->mIndexes, aMetadata.id(), SomeRef<const nsAString&
>(aMetadata.name())) .isSome(), "MatchMetadataNameOrId( foundObjectStoreMetadata->mIndexes, aMetadata.id(), SomeRef<const nsAString&>(aMetadata.name())) .isSome()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11296
)
11295 SomeRef<const nsAString&>(aMetadata.name()))NS_warn_if_impl(MatchMetadataNameOrId( foundObjectStoreMetadata
->mIndexes, aMetadata.id(), SomeRef<const nsAString&
>(aMetadata.name())) .isSome(), "MatchMetadataNameOrId( foundObjectStoreMetadata->mIndexes, aMetadata.id(), SomeRef<const nsAString&>(aMetadata.name())) .isSome()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11296
)
11296 .isSome())NS_warn_if_impl(MatchMetadataNameOrId( foundObjectStoreMetadata
->mIndexes, aMetadata.id(), SomeRef<const nsAString&
>(aMetadata.name())) .isSome(), "MatchMetadataNameOrId( foundObjectStoreMetadata->mIndexes, aMetadata.id(), SomeRef<const nsAString&>(aMetadata.name())) .isSome()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11296
)
) {
11297 return IPC_FAIL(this, "MatchMetadataNameOrId failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("MatchMetadataNameOrId failed!"
))
;
11298 }
11299
11300 if (NS_WARN_IF(mCommitOrAbortReceived)NS_warn_if_impl(mCommitOrAbortReceived, "mCommitOrAbortReceived"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11300
)
) {
11301 return IPC_FAIL(this, "Transaction is already committed/aborted!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Transaction is already committed/aborted!"
))
;
11302 }
11303
11304 auto newMetadata = MakeSafeRefPtr<FullIndexMetadata>();
11305 newMetadata->mCommonMetadata = aMetadata;
11306
11307 if (NS_WARN_IF(!foundObjectStoreMetadata->mIndexes.InsertOrUpdate(NS_warn_if_impl(!foundObjectStoreMetadata->mIndexes.InsertOrUpdate
( aMetadata.id(), std::move(newMetadata), fallible), "!foundObjectStoreMetadata->mIndexes.InsertOrUpdate( aMetadata.id(), std::move(newMetadata), fallible)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11308
)
11308 aMetadata.id(), std::move(newMetadata), fallible))NS_warn_if_impl(!foundObjectStoreMetadata->mIndexes.InsertOrUpdate
( aMetadata.id(), std::move(newMetadata), fallible), "!foundObjectStoreMetadata->mIndexes.InsertOrUpdate( aMetadata.id(), std::move(newMetadata), fallible)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11308
)
) {
11309 return IPC_FAIL(this, "mIndexes.InsertOrUpdate failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("mIndexes.InsertOrUpdate failed!"
))
;
11310 }
11311
11312 dbMetadata->mNextIndexId++;
11313
11314 RefPtr<CreateIndexOp> op = new CreateIndexOp(
11315 SafeRefPtrFromThis().downcast<VersionChangeTransaction>(), aObjectStoreId,
11316 aMetadata);
11317
11318 if (NS_WARN_IF(!op->Init(*this))NS_warn_if_impl(!op->Init(*this), "!op->Init(*this)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11318)
) {
11319 op->Cleanup();
11320 return IPC_FAIL(this, "ObjectStoreOp initialization failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("ObjectStoreOp initialization failed!"
))
;
11321 }
11322
11323 op->DispatchToConnectionPool();
11324
11325 return IPC_OK()mozilla::ipc::IPCResult::Ok();
11326}
11327
11328mozilla::ipc::IPCResult VersionChangeTransaction::RecvDeleteIndex(
11329 const IndexOrObjectStoreId& aObjectStoreId,
11330 const IndexOrObjectStoreId& aIndexId) {
11331 AssertIsOnBackgroundThread();
11332
11333 if (NS_WARN_IF(!aObjectStoreId)NS_warn_if_impl(!aObjectStoreId, "!aObjectStoreId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11333)
) {
11334 return IPC_FAIL(this, "No ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No ObjectStoreId!"
))
;
11335 }
11336
11337 if (NS_WARN_IF(!aIndexId)NS_warn_if_impl(!aIndexId, "!aIndexId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11337)
) {
11338 return IPC_FAIL(this, "No Index id!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No Index id!"
))
;
11339 }
11340 {
11341 const auto& dbMetadata = GetDatabase().Metadata();
11342 MOZ_ASSERT(dbMetadata.mNextObjectStoreId > 0)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(dbMetadata.mNextObjectStoreId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(dbMetadata.mNextObjectStoreId
> 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("dbMetadata.mNextObjectStoreId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11342); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbMetadata.mNextObjectStoreId > 0"
")"); do { MOZ_CrashSequence(__null, 11342); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11343 MOZ_ASSERT(dbMetadata.mNextIndexId > 0)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(dbMetadata.mNextIndexId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(dbMetadata.mNextIndexId >
0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("dbMetadata.mNextIndexId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11343); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbMetadata.mNextIndexId > 0"
")"); do { MOZ_CrashSequence(__null, 11343); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11344
11345 if (NS_WARN_IF(aObjectStoreId >= dbMetadata.mNextObjectStoreId)NS_warn_if_impl(aObjectStoreId >= dbMetadata.mNextObjectStoreId
, "aObjectStoreId >= dbMetadata.mNextObjectStoreId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11345)
) {
11346 return IPC_FAIL(this, "Requested ObjectStoreId does not match next ID!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Requested ObjectStoreId does not match next ID!"
))
;
11347 }
11348
11349 if (NS_WARN_IF(aIndexId >= dbMetadata.mNextIndexId)NS_warn_if_impl(aIndexId >= dbMetadata.mNextIndexId, "aIndexId >= dbMetadata.mNextIndexId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11349
)
) {
11350 return IPC_FAIL(this, "Requested IndexId does not match next ID!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Requested IndexId does not match next ID!"
))
;
11351 }
11352 }
11353
11354 SafeRefPtr<FullObjectStoreMetadata> foundObjectStoreMetadata =
11355 GetMetadataForObjectStoreId(aObjectStoreId);
11356
11357 if (NS_WARN_IF(!foundObjectStoreMetadata)NS_warn_if_impl(!foundObjectStoreMetadata, "!foundObjectStoreMetadata"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11357
)
) {
11358 return IPC_FAIL(this, "GetMetadataForObjectStoreId failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("GetMetadataForObjectStoreId failed!"
))
;
11359 }
11360
11361 SafeRefPtr<FullIndexMetadata> foundIndexMetadata =
11362 GetMetadataForIndexId(*foundObjectStoreMetadata, aIndexId);
11363
11364 if (NS_WARN_IF(!foundIndexMetadata)NS_warn_if_impl(!foundIndexMetadata, "!foundIndexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11364)
) {
11365 return IPC_FAIL(this, "GetMetadataForIndexId failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("GetMetadataForIndexId failed!"
))
;
11366 }
11367
11368 if (NS_WARN_IF(mCommitOrAbortReceived)NS_warn_if_impl(mCommitOrAbortReceived, "mCommitOrAbortReceived"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11368
)
) {
11369 return IPC_FAIL(this, "Transaction is already committed/aborted!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Transaction is already committed/aborted!"
))
;
11370 }
11371
11372 foundIndexMetadata->mDeleted.Flip();
11373
11374 DebugOnly<bool> foundTargetId = false;
11375 const bool isLastIndex =
11376 std::all_of(foundObjectStoreMetadata->mIndexes.cbegin(),
11377 foundObjectStoreMetadata->mIndexes.cend(),
11378 [&foundTargetId, aIndexId](const auto& indexEntry) -> bool {
11379 if (uint64_t(aIndexId) == indexEntry.GetKey()) {
11380 foundTargetId = true;
11381 return true;
11382 }
11383
11384 return indexEntry.GetData()->mDeleted;
11385 });
11386 MOZ_ASSERT_IF(isLastIndex, foundTargetId)do { if (isLastIndex) { do { static_assert( mozilla::detail::
AssertionConditionType<decltype(foundTargetId)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(foundTargetId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("foundTargetId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11386); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foundTargetId"
")"); do { MOZ_CrashSequence(__null, 11386); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
11387
11388 RefPtr<DeleteIndexOp> op = new DeleteIndexOp(
11389 SafeRefPtrFromThis().downcast<VersionChangeTransaction>(), aObjectStoreId,
11390 aIndexId, foundIndexMetadata->mCommonMetadata.unique(), isLastIndex);
11391
11392 if (NS_WARN_IF(!op->Init(*this))NS_warn_if_impl(!op->Init(*this), "!op->Init(*this)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11392)
) {
11393 op->Cleanup();
11394 return IPC_FAIL(this, "ObjectStoreOp initialization failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("ObjectStoreOp initialization failed!"
))
;
11395 }
11396
11397 op->DispatchToConnectionPool();
11398
11399 return IPC_OK()mozilla::ipc::IPCResult::Ok();
11400}
11401
11402mozilla::ipc::IPCResult VersionChangeTransaction::RecvRenameIndex(
11403 const IndexOrObjectStoreId& aObjectStoreId,
11404 const IndexOrObjectStoreId& aIndexId, const nsAString& aName) {
11405 AssertIsOnBackgroundThread();
11406
11407 if (NS_WARN_IF(!aObjectStoreId)NS_warn_if_impl(!aObjectStoreId, "!aObjectStoreId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11407)
) {
11408 return IPC_FAIL(this, "No ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No ObjectStoreId!"
))
;
11409 }
11410
11411 if (NS_WARN_IF(!aIndexId)NS_warn_if_impl(!aIndexId, "!aIndexId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11411)
) {
11412 return IPC_FAIL(this, "No Index id!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No Index id!"
))
;
11413 }
11414
11415 const SafeRefPtr<FullDatabaseMetadata> dbMetadata =
11416 GetDatabase().MetadataPtr();
11417 MOZ_ASSERT(dbMetadata)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(dbMetadata)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(dbMetadata))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("dbMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11417); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbMetadata"
")"); do { MOZ_CrashSequence(__null, 11417); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11418 MOZ_ASSERT(dbMetadata->mNextObjectStoreId > 0)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(dbMetadata->mNextObjectStoreId > 0)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(dbMetadata->mNextObjectStoreId > 0))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("dbMetadata->mNextObjectStoreId > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11418
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbMetadata->mNextObjectStoreId > 0"
")"); do { MOZ_CrashSequence(__null, 11418); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11419 MOZ_ASSERT(dbMetadata->mNextIndexId > 0)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(dbMetadata->mNextIndexId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(dbMetadata->mNextIndexId >
0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("dbMetadata->mNextIndexId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11419); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbMetadata->mNextIndexId > 0"
")"); do { MOZ_CrashSequence(__null, 11419); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11420
11421 if (NS_WARN_IF(aObjectStoreId >= dbMetadata->mNextObjectStoreId)NS_warn_if_impl(aObjectStoreId >= dbMetadata->mNextObjectStoreId
, "aObjectStoreId >= dbMetadata->mNextObjectStoreId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11421)
) {
11422 return IPC_FAIL(this, "Requested ObjectStoreId does not match next ID!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Requested ObjectStoreId does not match next ID!"
))
;
11423 }
11424
11425 if (NS_WARN_IF(aIndexId >= dbMetadata->mNextIndexId)NS_warn_if_impl(aIndexId >= dbMetadata->mNextIndexId, "aIndexId >= dbMetadata->mNextIndexId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11425
)
) {
11426 return IPC_FAIL(this, "Requested IndexId does not match next ID!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Requested IndexId does not match next ID!"
))
;
11427 }
11428
11429 SafeRefPtr<FullObjectStoreMetadata> foundObjectStoreMetadata =
11430 GetMetadataForObjectStoreId(aObjectStoreId);
11431
11432 if (NS_WARN_IF(!foundObjectStoreMetadata)NS_warn_if_impl(!foundObjectStoreMetadata, "!foundObjectStoreMetadata"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11432
)
) {
11433 return IPC_FAIL(this, "GetMetadataForObjectStoreId failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("GetMetadataForObjectStoreId failed!"
))
;
11434 }
11435
11436 SafeRefPtr<FullIndexMetadata> foundIndexMetadata =
11437 GetMetadataForIndexId(*foundObjectStoreMetadata, aIndexId);
11438
11439 if (NS_WARN_IF(!foundIndexMetadata)NS_warn_if_impl(!foundIndexMetadata, "!foundIndexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11439)
) {
11440 return IPC_FAIL(this, "GetMetadataForIndexId failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("GetMetadataForIndexId failed!"
))
;
11441 }
11442
11443 if (NS_WARN_IF(mCommitOrAbortReceived)NS_warn_if_impl(mCommitOrAbortReceived, "mCommitOrAbortReceived"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11443
)
) {
11444 return IPC_FAIL(this, "Transaction is already committed/aborted!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Transaction is already committed/aborted!"
))
;
11445 }
11446
11447 foundIndexMetadata->mCommonMetadata.name() = aName;
11448
11449 RefPtr<RenameIndexOp> renameOp = new RenameIndexOp(
11450 SafeRefPtrFromThis().downcast<VersionChangeTransaction>(),
11451 *foundIndexMetadata, aObjectStoreId);
11452
11453 if (NS_WARN_IF(!renameOp->Init(*this))NS_warn_if_impl(!renameOp->Init(*this), "!renameOp->Init(*this)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11453
)
) {
11454 renameOp->Cleanup();
11455 return IPC_FAIL(this, "ObjectStoreOp initialization failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("ObjectStoreOp initialization failed!"
))
;
11456 }
11457
11458 renameOp->DispatchToConnectionPool();
11459
11460 return IPC_OK()mozilla::ipc::IPCResult::Ok();
11461}
11462
11463PBackgroundIDBRequestParent*
11464VersionChangeTransaction::AllocPBackgroundIDBRequestParent(
11465 const int64_t& aRequestId, const RequestParams& aParams) {
11466 AssertIsOnBackgroundThread();
11467 MOZ_ASSERT(aParams.type() != RequestParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() != RequestParams::T__None)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(aParams.type() != RequestParams::T__None))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aParams.type() != RequestParams::T__None"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11467
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != RequestParams::T__None"
")"); do { MOZ_CrashSequence(__null, 11467); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11468
11469 return AllocRequest(aRequestId,
11470 std::move(const_cast<RequestParams&>(aParams)),
11471 IsSameProcessActor());
11472}
11473
11474mozilla::ipc::IPCResult
11475VersionChangeTransaction::RecvPBackgroundIDBRequestConstructor(
11476 PBackgroundIDBRequestParent* aActor, const int64_t& aRequestId,
11477 const RequestParams& aParams) {
11478 AssertIsOnBackgroundThread();
11479 MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aActor)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11479); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { MOZ_CrashSequence(__null, 11479); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
11480 MOZ_ASSERT(aParams.type() != RequestParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() != RequestParams::T__None)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(aParams.type() != RequestParams::T__None))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aParams.type() != RequestParams::T__None"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11480
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != RequestParams::T__None"
")"); do { MOZ_CrashSequence(__null, 11480); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11481
11482 if (!StartRequest(aActor)) {
11483 return IPC_FAIL(this, "StartRequest failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("StartRequest failed!"
))
;
11484 }
11485 return IPC_OK()mozilla::ipc::IPCResult::Ok();
11486}
11487
11488bool VersionChangeTransaction::DeallocPBackgroundIDBRequestParent(
11489 PBackgroundIDBRequestParent* aActor) {
11490 AssertIsOnBackgroundThread();
11491 MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aActor)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { MOZ_CrashSequence(__null, 11491); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
11492
11493 return DeallocRequest(aActor);
11494}
11495
11496already_AddRefed<PBackgroundIDBCursorParent>
11497VersionChangeTransaction::AllocPBackgroundIDBCursorParent(
11498 const int64_t& aRequestId, const OpenCursorParams& aParams) {
11499 AssertIsOnBackgroundThread();
11500
11501 return AllocCursor(aParams, IsSameProcessActor());
11502}
11503
11504mozilla::ipc::IPCResult
11505VersionChangeTransaction::RecvPBackgroundIDBCursorConstructor(
11506 PBackgroundIDBCursorParent* aActor, const int64_t& aRequestId,
11507 const OpenCursorParams& aParams) {
11508 AssertIsOnBackgroundThread();
11509 MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aActor)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11509); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { MOZ_CrashSequence(__null, 11509); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
11510 MOZ_ASSERT(aParams.type() != OpenCursorParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() != OpenCursorParams::T__None)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(aParams.type() != OpenCursorParams::T__None))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("aParams.type() != OpenCursorParams::T__None"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11510
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != OpenCursorParams::T__None"
")"); do { MOZ_CrashSequence(__null, 11510); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11511
11512 if (!StartCursor(aActor, aRequestId, aParams)) {
11513 return IPC_FAIL(this, "StartCursor failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("StartCursor failed!"
))
;
11514 }
11515 return IPC_OK()mozilla::ipc::IPCResult::Ok();
11516}
11517
11518/*******************************************************************************
11519 * CursorBase
11520 ******************************************************************************/
11521
11522CursorBase::CursorBase(SafeRefPtr<TransactionBase> aTransaction,
11523 SafeRefPtr<FullObjectStoreMetadata> aObjectStoreMetadata,
11524 const Direction aDirection,
11525 const ConstructFromTransactionBase /*aConstructionTag*/)
11526 : mTransaction(std::move(aTransaction)),
11527 mObjectStoreMetadata(WrapNotNull(std::move(aObjectStoreMetadata))),
11528 mObjectStoreId((*mObjectStoreMetadata)->mCommonMetadata.id()),
11529 mDirection(aDirection),
11530 mMaxExtraCount(IndexedDatabaseManager::MaxPreloadExtraRecords()),
11531 mIsSameProcessActor(!BackgroundParent::IsOtherProcessActor(
11532 mTransaction->GetBackgroundParent())) {
11533 AssertIsOnBackgroundThread();
11534 MOZ_ASSERT(mTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mTransaction))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mTransaction", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11534); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction"
")"); do { MOZ_CrashSequence(__null, 11534); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11535
11536 static_assert(
11537 OpenCursorParams::T__None == 0 && OpenCursorParams::T__Last == 4,
11538 "Lots of code here assumes only four types of cursors!");
11539}
11540
11541template <IDBCursorType CursorType>
11542bool Cursor<CursorType>::VerifyRequestParams(
11543 const CursorRequestParams& aParams,
11544 const CursorPosition<CursorType>& aPosition) const {
11545 AssertIsOnBackgroundThread();
11546 MOZ_ASSERT(aParams.type() != CursorRequestParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() != CursorRequestParams::T__None)>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aParams.type() != CursorRequestParams::T__None))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() != CursorRequestParams::T__None"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11546
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != CursorRequestParams::T__None"
")"); do { MOZ_CrashSequence(__null, 11546); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11547 MOZ_ASSERT(this->mObjectStoreMetadata)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(this->mObjectStoreMetadata)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(this->mObjectStoreMetadata
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"this->mObjectStoreMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11547); AnnotateMozCrashReason("MOZ_ASSERT" "(" "this->mObjectStoreMetadata"
")"); do { MOZ_CrashSequence(__null, 11547); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11548 if constexpr (IsIndexCursor) {
11549 MOZ_ASSERT(this->mIndexMetadata)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(this->mIndexMetadata)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(this->mIndexMetadata))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("this->mIndexMetadata"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11549
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "this->mIndexMetadata"
")"); do { MOZ_CrashSequence(__null, 11549); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11550 }
11551
11552#ifdef DEBUG1
11553 {
11554 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
11555 mTransaction->GetMetadataForObjectStoreId(mObjectStoreId);
11556 if (objectStoreMetadata) {
11557 MOZ_ASSERT(objectStoreMetadata == (*this->mObjectStoreMetadata))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(objectStoreMetadata == (*this->mObjectStoreMetadata
))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(objectStoreMetadata == (*this->mObjectStoreMetadata
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("objectStoreMetadata == (*this->mObjectStoreMetadata)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11557); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreMetadata == (*this->mObjectStoreMetadata)"
")"); do { MOZ_CrashSequence(__null, 11557); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11558 } else {
11559 MOZ_ASSERT((*this->mObjectStoreMetadata)->mDeleted)do { static_assert( mozilla::detail::AssertionConditionType<
decltype((*this->mObjectStoreMetadata)->mDeleted)>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!((*this->mObjectStoreMetadata)->mDeleted))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("(*this->mObjectStoreMetadata)->mDeleted"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11559
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*this->mObjectStoreMetadata)->mDeleted"
")"); do { MOZ_CrashSequence(__null, 11559); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11560 }
11561
11562 if constexpr (IsIndexCursor) {
11563 if (objectStoreMetadata) {
11564 const SafeRefPtr<FullIndexMetadata> indexMetadata =
11565 mTransaction->GetMetadataForIndexId(*objectStoreMetadata,
11566 this->mIndexId);
11567 if (indexMetadata) {
11568 MOZ_ASSERT(indexMetadata == *this->mIndexMetadata)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(indexMetadata == *this->mIndexMetadata)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(indexMetadata == *this->mIndexMetadata))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("indexMetadata == *this->mIndexMetadata"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11568
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata == *this->mIndexMetadata"
")"); do { MOZ_CrashSequence(__null, 11568); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11569 } else {
11570 MOZ_ASSERT((*this->mIndexMetadata)->mDeleted)do { static_assert( mozilla::detail::AssertionConditionType<
decltype((*this->mIndexMetadata)->mDeleted)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!((*this->mIndexMetadata)->mDeleted))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("(*this->mIndexMetadata)->mDeleted"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11570
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*this->mIndexMetadata)->mDeleted"
")"); do { MOZ_CrashSequence(__null, 11570); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11571 }
11572 }
11573 }
11574 }
11575#endif
11576
11577 if (NS_AUUF_OR_WARN_IF((*this->mObjectStoreMetadata)->mDeleted)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "(*this->mObjectStoreMetadata)->mDeleted"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11577
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "(*this->mObjectStoreMetadata)->mDeleted"
")"); do { MOZ_CrashSequence(__null, 11577); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }(((*this->mObjectStoreMetadata)->mDeleted))
) {
11578 return false;
11579 }
11580
11581 if constexpr (IsIndexCursor) {
11582 if (NS_AUUF_OR_WARN_IF(this->mIndexMetadata &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "this->mIndexMetadata && (*this->mIndexMetadata)->mDeleted"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11583
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "this->mIndexMetadata && (*this->mIndexMetadata)->mDeleted"
")"); do { MOZ_CrashSequence(__null, 11583); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((this->mIndexMetadata && (*this->mIndexMetadata
)->mDeleted))
11583 (*this->mIndexMetadata)->mDeleted)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "this->mIndexMetadata && (*this->mIndexMetadata)->mDeleted"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11583
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "this->mIndexMetadata && (*this->mIndexMetadata)->mDeleted"
")"); do { MOZ_CrashSequence(__null, 11583); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((this->mIndexMetadata && (*this->mIndexMetadata
)->mDeleted))
) {
11584 return false;
11585 }
11586 }
11587
11588 const Key& sortKey = aPosition.GetSortKey(this->IsLocaleAware());
11589
11590 switch (aParams.type()) {
11591 case CursorRequestParams::TContinueParams: {
11592 const Key& key = aParams.get_ContinueParams().key();
11593 if (!key.IsUnset()) {
11594 switch (mDirection) {
11595 case IDBCursorDirection::Next:
11596 case IDBCursorDirection::Nextunique:
11597 if (NS_AUUF_OR_WARN_IF(key <= sortKey)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "key <= sortKey" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11597); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"key <= sortKey" ")"); do { MOZ_CrashSequence(__null, 11597
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((key <= sortKey))
) {
11598 return false;
11599 }
11600 break;
11601
11602 case IDBCursorDirection::Prev:
11603 case IDBCursorDirection::Prevunique:
11604 if (NS_AUUF_OR_WARN_IF(key >= sortKey)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "key >= sortKey" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11604); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"key >= sortKey" ")"); do { MOZ_CrashSequence(__null, 11604
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((key >= sortKey))
) {
11605 return false;
11606 }
11607 break;
11608
11609 default:
11610 MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11610
); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 11610); __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
11611 }
11612 }
11613 break;
11614 }
11615
11616 case CursorRequestParams::TContinuePrimaryKeyParams: {
11617 if constexpr (IsIndexCursor) {
11618 const Key& key = aParams.get_ContinuePrimaryKeyParams().key();
11619 const Key& primaryKey =
11620 aParams.get_ContinuePrimaryKeyParams().primaryKey();
11621 MOZ_ASSERT(!key.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!key.IsUnset())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!key.IsUnset()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!key.IsUnset()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11621
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!key.IsUnset()" ")"
); do { MOZ_CrashSequence(__null, 11621); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
11622 MOZ_ASSERT(!primaryKey.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!primaryKey.IsUnset())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!primaryKey.IsUnset()))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("!primaryKey.IsUnset()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11622
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!primaryKey.IsUnset()"
")"); do { MOZ_CrashSequence(__null, 11622); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11623 switch (mDirection) {
11624 case IDBCursorDirection::Next:
11625 if (NS_AUUF_OR_WARN_IF(key < sortKey ||[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "key < sortKey || (key == sortKey && primaryKey <= aPosition.mObjectStoreKey)"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11627
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "key < sortKey || (key == sortKey && primaryKey <= aPosition.mObjectStoreKey)"
")"); do { MOZ_CrashSequence(__null, 11627); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((key < sortKey || (key == sortKey && primaryKey
<= aPosition.mObjectStoreKey)))
11626 (key == sortKey &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "key < sortKey || (key == sortKey && primaryKey <= aPosition.mObjectStoreKey)"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11627
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "key < sortKey || (key == sortKey && primaryKey <= aPosition.mObjectStoreKey)"
")"); do { MOZ_CrashSequence(__null, 11627); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((key < sortKey || (key == sortKey && primaryKey
<= aPosition.mObjectStoreKey)))
11627 primaryKey <= aPosition.mObjectStoreKey))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "key < sortKey || (key == sortKey && primaryKey <= aPosition.mObjectStoreKey)"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11627
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "key < sortKey || (key == sortKey && primaryKey <= aPosition.mObjectStoreKey)"
")"); do { MOZ_CrashSequence(__null, 11627); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((key < sortKey || (key == sortKey && primaryKey
<= aPosition.mObjectStoreKey)))
) {
11628 return false;
11629 }
11630 break;
11631
11632 case IDBCursorDirection::Prev:
11633 if (NS_AUUF_OR_WARN_IF(key > sortKey ||[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "key > sortKey || (key == sortKey && primaryKey >= aPosition.mObjectStoreKey)"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11635
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "key > sortKey || (key == sortKey && primaryKey >= aPosition.mObjectStoreKey)"
")"); do { MOZ_CrashSequence(__null, 11635); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((key > sortKey || (key == sortKey && primaryKey
>= aPosition.mObjectStoreKey)))
11634 (key == sortKey &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "key > sortKey || (key == sortKey && primaryKey >= aPosition.mObjectStoreKey)"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11635
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "key > sortKey || (key == sortKey && primaryKey >= aPosition.mObjectStoreKey)"
")"); do { MOZ_CrashSequence(__null, 11635); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((key > sortKey || (key == sortKey && primaryKey
>= aPosition.mObjectStoreKey)))
11635 primaryKey >= aPosition.mObjectStoreKey))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "key > sortKey || (key == sortKey && primaryKey >= aPosition.mObjectStoreKey)"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11635
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "key > sortKey || (key == sortKey && primaryKey >= aPosition.mObjectStoreKey)"
")"); do { MOZ_CrashSequence(__null, 11635); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((key > sortKey || (key == sortKey && primaryKey
>= aPosition.mObjectStoreKey)))
) {
11636 return false;
11637 }
11638 break;
11639
11640 default:
11641 MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11641
); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 11641); __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
11642 }
11643 }
11644 break;
11645 }
11646
11647 case CursorRequestParams::TAdvanceParams:
11648 if (NS_AUUF_OR_WARN_IF(!aParams.get_AdvanceParams().count())[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!aParams.get_AdvanceParams().count()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11648); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!aParams.get_AdvanceParams().count()" ")"); do { MOZ_CrashSequence
(__null, 11648); __attribute__((nomerge)) ::abort(); } while (
false); } } while (false); } return aCond; }((!aParams.get_AdvanceParams
().count()))
) {
11649 return false;
11650 }
11651 break;
11652
11653 default:
11654 MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11654
); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 11654); __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
11655 }
11656
11657 return true;
11658}
11659
11660template <IDBCursorType CursorType>
11661bool Cursor<CursorType>::Start(const int64_t aRequestId,
11662 const OpenCursorParams& aParams) {
11663 AssertIsOnBackgroundThread();
11664 MOZ_ASSERT(aParams.type() == ToOpenCursorParamsType(CursorType))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() == ToOpenCursorParamsType(CursorType)
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aParams.type() == ToOpenCursorParamsType(CursorType)
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"aParams.type() == ToOpenCursorParamsType(CursorType)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == ToOpenCursorParamsType(CursorType)"
")"); do { MOZ_CrashSequence(__null, 11664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11665 MOZ_ASSERT(this->mObjectStoreMetadata)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(this->mObjectStoreMetadata)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(this->mObjectStoreMetadata
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"this->mObjectStoreMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11665); AnnotateMozCrashReason("MOZ_ASSERT" "(" "this->mObjectStoreMetadata"
")"); do { MOZ_CrashSequence(__null, 11665); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11666
11667 if (NS_AUUF_OR_WARN_IF(mCurrentlyRunningOp)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "mCurrentlyRunningOp" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11667); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"mCurrentlyRunningOp" ")"); do { MOZ_CrashSequence(__null, 11667
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((mCurrentlyRunningOp))
) {
11668 return false;
11669 }
11670
11671 const Maybe<SerializedKeyRange>& optionalKeyRange =
11672 GetCommonOpenCursorParams(aParams).optionalKeyRange();
11673
11674 const RefPtr<OpenOp> openOp = new OpenOp(this, aRequestId, optionalKeyRange);
11675
11676 if (NS_WARN_IF(!openOp->Init(*mTransaction))NS_warn_if_impl(!openOp->Init(*mTransaction), "!openOp->Init(*mTransaction)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11676
)
) {
11677 openOp->Cleanup();
11678 return false;
11679 }
11680
11681 openOp->DispatchToConnectionPool();
11682 mCurrentlyRunningOp = openOp;
11683
11684 return true;
11685}
11686
11687void ValueCursorBase::ProcessFiles(CursorResponse& aResponse,
11688 const FilesArray& aFiles) {
11689 MOZ_ASSERT_IF(do { if (aResponse.type() == CursorResponse::Tnsresult || aResponse
.type() == CursorResponse::Tvoid_t || aResponse.type() == CursorResponse
::TArrayOfObjectStoreKeyCursorResponse || aResponse.type() ==
CursorResponse::TArrayOfIndexKeyCursorResponse) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(aFiles.
IsEmpty())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(aFiles.IsEmpty()))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aFiles.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11695); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFiles.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 11695); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
11690 aResponse.type() == CursorResponse::Tnsresult ||do { if (aResponse.type() == CursorResponse::Tnsresult || aResponse
.type() == CursorResponse::Tvoid_t || aResponse.type() == CursorResponse
::TArrayOfObjectStoreKeyCursorResponse || aResponse.type() ==
CursorResponse::TArrayOfIndexKeyCursorResponse) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(aFiles.
IsEmpty())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(aFiles.IsEmpty()))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aFiles.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11695); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFiles.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 11695); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
11691 aResponse.type() == CursorResponse::Tvoid_t ||do { if (aResponse.type() == CursorResponse::Tnsresult || aResponse
.type() == CursorResponse::Tvoid_t || aResponse.type() == CursorResponse
::TArrayOfObjectStoreKeyCursorResponse || aResponse.type() ==
CursorResponse::TArrayOfIndexKeyCursorResponse) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(aFiles.
IsEmpty())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(aFiles.IsEmpty()))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aFiles.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11695); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFiles.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 11695); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
11692 aResponse.type() ==do { if (aResponse.type() == CursorResponse::Tnsresult || aResponse
.type() == CursorResponse::Tvoid_t || aResponse.type() == CursorResponse
::TArrayOfObjectStoreKeyCursorResponse || aResponse.type() ==
CursorResponse::TArrayOfIndexKeyCursorResponse) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(aFiles.
IsEmpty())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(aFiles.IsEmpty()))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aFiles.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11695); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFiles.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 11695); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
11693 CursorResponse::TArrayOfObjectStoreKeyCursorResponse ||do { if (aResponse.type() == CursorResponse::Tnsresult || aResponse
.type() == CursorResponse::Tvoid_t || aResponse.type() == CursorResponse
::TArrayOfObjectStoreKeyCursorResponse || aResponse.type() ==
CursorResponse::TArrayOfIndexKeyCursorResponse) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(aFiles.
IsEmpty())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(aFiles.IsEmpty()))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aFiles.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11695); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFiles.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 11695); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
11694 aResponse.type() == CursorResponse::TArrayOfIndexKeyCursorResponse,do { if (aResponse.type() == CursorResponse::Tnsresult || aResponse
.type() == CursorResponse::Tvoid_t || aResponse.type() == CursorResponse
::TArrayOfObjectStoreKeyCursorResponse || aResponse.type() ==
CursorResponse::TArrayOfIndexKeyCursorResponse) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(aFiles.
IsEmpty())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(aFiles.IsEmpty()))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aFiles.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11695); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFiles.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 11695); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
11695 aFiles.IsEmpty())do { if (aResponse.type() == CursorResponse::Tnsresult || aResponse
.type() == CursorResponse::Tvoid_t || aResponse.type() == CursorResponse
::TArrayOfObjectStoreKeyCursorResponse || aResponse.type() ==
CursorResponse::TArrayOfIndexKeyCursorResponse) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(aFiles.
IsEmpty())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(aFiles.IsEmpty()))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aFiles.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11695); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFiles.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 11695); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
11696
11697 for (size_t i = 0; i < aFiles.Length(); ++i) {
11698 const auto& files = aFiles[i];
11699 if (!files.IsEmpty()) {
11700 // TODO: Replace this assertion by one that checks if the response type
11701 // matches the cursor type, at a more generic location.
11702 MOZ_ASSERT(aResponse.type() ==do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse
|| aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse
|| aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11705
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse"
")"); do { MOZ_CrashSequence(__null, 11705); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
11703 CursorResponse::TArrayOfObjectStoreCursorResponse ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse
|| aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse
|| aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11705
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse"
")"); do { MOZ_CrashSequence(__null, 11705); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
11704 aResponse.type() ==do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse
|| aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse
|| aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11705
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse"
")"); do { MOZ_CrashSequence(__null, 11705); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
11705 CursorResponse::TArrayOfIndexCursorResponse)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse
|| aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse
|| aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11705
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse"
")"); do { MOZ_CrashSequence(__null, 11705); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11706
11707 SerializedStructuredCloneReadInfo* serializedInfo = nullptr;
11708 switch (aResponse.type()) {
11709 case CursorResponse::TArrayOfObjectStoreCursorResponse: {
11710 auto& responses = aResponse.get_ArrayOfObjectStoreCursorResponse();
11711 MOZ_ASSERT(i < responses.Length())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(i < responses.Length())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(i < responses.Length())))
, 0))) { do { } while (false); MOZ_ReportAssertionFailure("i < responses.Length()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11711
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "i < responses.Length()"
")"); do { MOZ_CrashSequence(__null, 11711); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11712 serializedInfo = &responses[i].cloneInfo();
11713 break;
11714 }
11715
11716 case CursorResponse::TArrayOfIndexCursorResponse: {
11717 auto& responses = aResponse.get_ArrayOfIndexCursorResponse();
11718 MOZ_ASSERT(i < responses.Length())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(i < responses.Length())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(i < responses.Length())))
, 0))) { do { } while (false); MOZ_ReportAssertionFailure("i < responses.Length()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11718
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "i < responses.Length()"
")"); do { MOZ_CrashSequence(__null, 11718); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11719 serializedInfo = &responses[i].cloneInfo();
11720 break;
11721 }
11722
11723 default:
11724 MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11724
); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 11724); __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
11725 }
11726
11727 MOZ_ASSERT(serializedInfo)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(serializedInfo)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(serializedInfo))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("serializedInfo"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11727
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "serializedInfo" ")"
); do { MOZ_CrashSequence(__null, 11727); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
11728 MOZ_ASSERT(serializedInfo->files().IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(serializedInfo->files().IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(serializedInfo->files().IsEmpty
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("serializedInfo->files().IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11728); AnnotateMozCrashReason("MOZ_ASSERT" "(" "serializedInfo->files().IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 11728); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11729 MOZ_ASSERT(this->mDatabase)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(this->mDatabase)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(this->mDatabase))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("this->mDatabase"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11729
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "this->mDatabase"
")"); do { MOZ_CrashSequence(__null, 11729); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11730
11731 QM_TRY_UNWRAP(serializedInfo->files(),auto tryResult1036 = (SerializeStructuredCloneFiles(this->
mDatabase, files, false)); if ((__builtin_expect(!!(tryResult1036
.isErr()), 0))) { auto tryTempError = tryResult1036.unwrapErr
(); mozilla::dom::quota::HandleError("SerializeStructuredCloneFiles(this->mDatabase, files, false)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11736, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = ClampResultCode(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } serializedInfo->files() = tryResult1036
.unwrap();
11732 SerializeStructuredCloneFiles(this->mDatabase, files,auto tryResult1036 = (SerializeStructuredCloneFiles(this->
mDatabase, files, false)); if ((__builtin_expect(!!(tryResult1036
.isErr()), 0))) { auto tryTempError = tryResult1036.unwrapErr
(); mozilla::dom::quota::HandleError("SerializeStructuredCloneFiles(this->mDatabase, files, false)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11736, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = ClampResultCode(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } serializedInfo->files() = tryResult1036
.unwrap();
11733 /* aForPreprocess */ false),auto tryResult1036 = (SerializeStructuredCloneFiles(this->
mDatabase, files, false)); if ((__builtin_expect(!!(tryResult1036
.isErr()), 0))) { auto tryTempError = tryResult1036.unwrapErr
(); mozilla::dom::quota::HandleError("SerializeStructuredCloneFiles(this->mDatabase, files, false)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11736, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = ClampResultCode(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } serializedInfo->files() = tryResult1036
.unwrap();
11734 QM_VOID, [&aResponse](const nsresult result) {auto tryResult1036 = (SerializeStructuredCloneFiles(this->
mDatabase, files, false)); if ((__builtin_expect(!!(tryResult1036
.isErr()), 0))) { auto tryTempError = tryResult1036.unwrapErr
(); mozilla::dom::quota::HandleError("SerializeStructuredCloneFiles(this->mDatabase, files, false)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11736, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = ClampResultCode(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } serializedInfo->files() = tryResult1036
.unwrap();
11735 aResponse = ClampResultCode(result);auto tryResult1036 = (SerializeStructuredCloneFiles(this->
mDatabase, files, false)); if ((__builtin_expect(!!(tryResult1036
.isErr()), 0))) { auto tryTempError = tryResult1036.unwrapErr
(); mozilla::dom::quota::HandleError("SerializeStructuredCloneFiles(this->mDatabase, files, false)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11736, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = ClampResultCode(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } serializedInfo->files() = tryResult1036
.unwrap();
11736 })auto tryResult1036 = (SerializeStructuredCloneFiles(this->
mDatabase, files, false)); if ((__builtin_expect(!!(tryResult1036
.isErr()), 0))) { auto tryTempError = tryResult1036.unwrapErr
(); mozilla::dom::quota::HandleError("SerializeStructuredCloneFiles(this->mDatabase, files, false)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11736, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = ClampResultCode(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } serializedInfo->files() = tryResult1036
.unwrap();
;
11737 }
11738 }
11739}
11740
11741template <IDBCursorType CursorType>
11742void Cursor<CursorType>::SendResponseInternal(
11743 CursorResponse& aResponse, const FilesArrayT<CursorType>& aFiles) {
11744 AssertIsOnBackgroundThread();
11745 MOZ_ASSERT(aResponse.type() != CursorResponse::T__None)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aResponse.type() != CursorResponse::T__None)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(aResponse.type() != CursorResponse::T__None))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("aResponse.type() != CursorResponse::T__None"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11745
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aResponse.type() != CursorResponse::T__None"
")"); do { MOZ_CrashSequence(__null, 11745); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11746 MOZ_ASSERT_IF(aResponse.type() == CursorResponse::Tnsresult,do { if (aResponse.type() == CursorResponse::Tnsresult) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(((bool)(__builtin_expect(!!(NS_FAILED_impl(aResponse.get_nsresult
())), 0))))>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(NS_FAILED_impl
(aResponse.get_nsresult())), 0)))))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(NS_FAILED_impl(aResponse.get_nsresult())), 0)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11747
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(NS_FAILED_impl(aResponse.get_nsresult())), 0)))"
")"); do { MOZ_CrashSequence(__null, 11747); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
11747 NS_FAILED(aResponse.get_nsresult()))do { if (aResponse.type() == CursorResponse::Tnsresult) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(((bool)(__builtin_expect(!!(NS_FAILED_impl(aResponse.get_nsresult
())), 0))))>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(NS_FAILED_impl
(aResponse.get_nsresult())), 0)))))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(NS_FAILED_impl(aResponse.get_nsresult())), 0)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11747
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(NS_FAILED_impl(aResponse.get_nsresult())), 0)))"
")"); do { MOZ_CrashSequence(__null, 11747); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
11748 MOZ_ASSERT_IF(aResponse.type() == CursorResponse::Tnsresult,do { if (aResponse.type() == CursorResponse::Tnsresult) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(NS_ERROR_GET_MODULE(aResponse.get_nsresult()) == 33)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(NS_ERROR_GET_MODULE(aResponse.get_nsresult()) == 33))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("NS_ERROR_GET_MODULE(aResponse.get_nsresult()) == 33"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11750
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "NS_ERROR_GET_MODULE(aResponse.get_nsresult()) == 33"
")"); do { MOZ_CrashSequence(__null, 11750); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
11749 NS_ERROR_GET_MODULE(aResponse.get_nsresult()) ==do { if (aResponse.type() == CursorResponse::Tnsresult) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(NS_ERROR_GET_MODULE(aResponse.get_nsresult()) == 33)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(NS_ERROR_GET_MODULE(aResponse.get_nsresult()) == 33))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("NS_ERROR_GET_MODULE(aResponse.get_nsresult()) == 33"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11750
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "NS_ERROR_GET_MODULE(aResponse.get_nsresult()) == 33"
")"); do { MOZ_CrashSequence(__null, 11750); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
11750 NS_ERROR_MODULE_DOM_INDEXEDDB)do { if (aResponse.type() == CursorResponse::Tnsresult) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(NS_ERROR_GET_MODULE(aResponse.get_nsresult()) == 33)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(NS_ERROR_GET_MODULE(aResponse.get_nsresult()) == 33))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("NS_ERROR_GET_MODULE(aResponse.get_nsresult()) == 33"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11750
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "NS_ERROR_GET_MODULE(aResponse.get_nsresult()) == 33"
")"); do { MOZ_CrashSequence(__null, 11750); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
11751 MOZ_ASSERT(this->mObjectStoreMetadata)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(this->mObjectStoreMetadata)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(this->mObjectStoreMetadata
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"this->mObjectStoreMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11751); AnnotateMozCrashReason("MOZ_ASSERT" "(" "this->mObjectStoreMetadata"
")"); do { MOZ_CrashSequence(__null, 11751); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11752 MOZ_ASSERT(mCurrentlyRunningOp)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mCurrentlyRunningOp)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mCurrentlyRunningOp))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("mCurrentlyRunningOp"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11752
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCurrentlyRunningOp"
")"); do { MOZ_CrashSequence(__null, 11752); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11753
11754 KeyValueBase::ProcessFiles(aResponse, aFiles);
11755
11756 // Work around the deleted function by casting to the base class.
11757 QM_WARNONLY_TRY(OkIf({auto tryResult1037 = (OkIf( static_cast<PBackgroundIDBCursorParent
*>(this)->SendResponse(aResponse))); static_assert(std::
is_empty_v<typename decltype(tryResult1037)::ok_type>);
if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf( static_cast<PBackgroundIDBCursorParent*>(this)->SendResponse(aResponse))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11758, mozilla::dom::quota::Severity::Warning); }}
11758 static_cast<PBackgroundIDBCursorParent*>(this)->SendResponse(aResponse))){auto tryResult1037 = (OkIf( static_cast<PBackgroundIDBCursorParent
*>(this)->SendResponse(aResponse))); static_assert(std::
is_empty_v<typename decltype(tryResult1037)::ok_type>);
if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf( static_cast<PBackgroundIDBCursorParent*>(this)->SendResponse(aResponse))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11758, mozilla::dom::quota::Severity::Warning); }}
;
11759
11760 mCurrentlyRunningOp = nullptr;
11761}
11762
11763template <IDBCursorType CursorType>
11764void Cursor<CursorType>::ActorDestroy(ActorDestroyReason aWhy) {
11765 AssertIsOnBackgroundThread();
11766
11767 if (mCurrentlyRunningOp) {
11768 mCurrentlyRunningOp->NoteActorDestroyed();
11769 }
11770
11771 if constexpr (IsValueCursor) {
11772 this->mBackgroundParent.destroy();
11773 }
11774 this->mObjectStoreMetadata.destroy();
11775 if constexpr (IsIndexCursor) {
11776 this->mIndexMetadata.destroy();
11777 }
11778}
11779
11780template <IDBCursorType CursorType>
11781mozilla::ipc::IPCResult Cursor<CursorType>::RecvDeleteMe() {
11782 AssertIsOnBackgroundThread();
11783 MOZ_ASSERT(this->mObjectStoreMetadata)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(this->mObjectStoreMetadata)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(this->mObjectStoreMetadata
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"this->mObjectStoreMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11783); AnnotateMozCrashReason("MOZ_ASSERT" "(" "this->mObjectStoreMetadata"
")"); do { MOZ_CrashSequence(__null, 11783); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11784
11785 if (NS_WARN_IF(mCurrentlyRunningOp)NS_warn_if_impl(mCurrentlyRunningOp, "mCurrentlyRunningOp", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11785)
) {
11786 return IPC_FAIL(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Attempt to delete a cursor with a non-null mCurrentlyRunningOp!"
))
11787 this,mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Attempt to delete a cursor with a non-null mCurrentlyRunningOp!"
))
11788 "Attempt to delete a cursor with a non-null mCurrentlyRunningOp!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Attempt to delete a cursor with a non-null mCurrentlyRunningOp!"
))
;
11789 }
11790
11791 QM_WARNONLY_TRY(OkIf(PBackgroundIDBCursorParent::Send__delete__(this))){auto tryResult1038 = (OkIf(PBackgroundIDBCursorParent::Send__delete__
(this))); static_assert(std::is_empty_v<typename decltype(
tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038
.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(PBackgroundIDBCursorParent::Send__delete__(this))"
, tryResult1038.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11791, mozilla::dom::quota::Severity::Warning); }}
;
11792
11793 return IPC_OK()mozilla::ipc::IPCResult::Ok();
11794}
11795
11796template <IDBCursorType CursorType>
11797mozilla::ipc::IPCResult Cursor<CursorType>::RecvContinue(
11798 const int64_t& aRequestId, const CursorRequestParams& aParams,
11799 const Key& aCurrentKey, const Key& aCurrentObjectStoreKey) {
11800 AssertIsOnBackgroundThread();
11801 MOZ_ASSERT(aParams.type() != CursorRequestParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() != CursorRequestParams::T__None)>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aParams.type() != CursorRequestParams::T__None))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() != CursorRequestParams::T__None"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11801
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != CursorRequestParams::T__None"
")"); do { MOZ_CrashSequence(__null, 11801); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11802 MOZ_ASSERT(this->mObjectStoreMetadata)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(this->mObjectStoreMetadata)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(this->mObjectStoreMetadata
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"this->mObjectStoreMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11802); AnnotateMozCrashReason("MOZ_ASSERT" "(" "this->mObjectStoreMetadata"
")"); do { MOZ_CrashSequence(__null, 11802); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11803 if constexpr (IsIndexCursor) {
11804 MOZ_ASSERT(this->mIndexMetadata)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(this->mIndexMetadata)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(this->mIndexMetadata))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("this->mIndexMetadata"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11804
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "this->mIndexMetadata"
")"); do { MOZ_CrashSequence(__null, 11804); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11805 }
11806
11807 const bool trustParams =
11808#ifdef DEBUG1
11809 // Always verify parameters in DEBUG builds!
11810 false
11811#else
11812 this->mIsSameProcessActor
11813#endif
11814 ;
11815
11816 MOZ_ASSERT(!aCurrentKey.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aCurrentKey.IsUnset())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!aCurrentKey.IsUnset()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!aCurrentKey.IsUnset()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11816
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aCurrentKey.IsUnset()"
")"); do { MOZ_CrashSequence(__null, 11816); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11817
11818 QM_TRY_UNWRAP(auto tryResult1040 = (([&]() -> Result<CursorPosition
<CursorType>, mozilla::ipc::IPCResult> { if constexpr
(IsIndexCursor) { auto localeAwarePosition = Key{}; if (this
->IsLocaleAware()) { auto tryResult1039 = (aCurrentKey.ToLocaleAwareKey
(this->mLocale)); if ((__builtin_expect(!!(tryResult1039.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1039
.unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11827, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull
(this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!"))))
; } localeAwarePosition = tryResult1039.unwrap();; } return CursorPosition
<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey
}; } else { return CursorPosition<CursorType>{aCurrentKey
}; } }())); if ((__builtin_expect(!!(tryResult1040.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult1039 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11827, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult1039.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11834, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } auto position = tryResult1040.unwrap();
11819 auto position,auto tryResult1040 = (([&]() -> Result<CursorPosition
<CursorType>, mozilla::ipc::IPCResult> { if constexpr
(IsIndexCursor) { auto localeAwarePosition = Key{}; if (this
->IsLocaleAware()) { auto tryResult1039 = (aCurrentKey.ToLocaleAwareKey
(this->mLocale)); if ((__builtin_expect(!!(tryResult1039.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1039
.unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11827, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull
(this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!"))))
; } localeAwarePosition = tryResult1039.unwrap();; } return CursorPosition
<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey
}; } else { return CursorPosition<CursorType>{aCurrentKey
}; } }())); if ((__builtin_expect(!!(tryResult1040.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult1039 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11827, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult1039.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11834, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } auto position = tryResult1040.unwrap();
11820 ([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> {auto tryResult1040 = (([&]() -> Result<CursorPosition
<CursorType>, mozilla::ipc::IPCResult> { if constexpr
(IsIndexCursor) { auto localeAwarePosition = Key{}; if (this
->IsLocaleAware()) { auto tryResult1039 = (aCurrentKey.ToLocaleAwareKey
(this->mLocale)); if ((__builtin_expect(!!(tryResult1039.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1039
.unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11827, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull
(this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!"))))
; } localeAwarePosition = tryResult1039.unwrap();; } return CursorPosition
<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey
}; } else { return CursorPosition<CursorType>{aCurrentKey
}; } }())); if ((__builtin_expect(!!(tryResult1040.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult1039 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11827, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult1039.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11834, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } auto position = tryResult1040.unwrap();
11821 if constexpr (IsIndexCursor) {auto tryResult1040 = (([&]() -> Result<CursorPosition
<CursorType>, mozilla::ipc::IPCResult> { if constexpr
(IsIndexCursor) { auto localeAwarePosition = Key{}; if (this
->IsLocaleAware()) { auto tryResult1039 = (aCurrentKey.ToLocaleAwareKey
(this->mLocale)); if ((__builtin_expect(!!(tryResult1039.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1039
.unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11827, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull
(this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!"))))
; } localeAwarePosition = tryResult1039.unwrap();; } return CursorPosition
<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey
}; } else { return CursorPosition<CursorType>{aCurrentKey
}; } }())); if ((__builtin_expect(!!(tryResult1040.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult1039 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11827, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult1039.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11834, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } auto position = tryResult1040.unwrap();
11822 auto localeAwarePosition = Key{};auto tryResult1040 = (([&]() -> Result<CursorPosition
<CursorType>, mozilla::ipc::IPCResult> { if constexpr
(IsIndexCursor) { auto localeAwarePosition = Key{}; if (this
->IsLocaleAware()) { auto tryResult1039 = (aCurrentKey.ToLocaleAwareKey
(this->mLocale)); if ((__builtin_expect(!!(tryResult1039.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1039
.unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11827, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull
(this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!"))))
; } localeAwarePosition = tryResult1039.unwrap();; } return CursorPosition
<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey
}; } else { return CursorPosition<CursorType>{aCurrentKey
}; } }())); if ((__builtin_expect(!!(tryResult1040.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult1039 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11827, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult1039.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11834, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } auto position = tryResult1040.unwrap();
11823 if (this->IsLocaleAware()) {auto tryResult1040 = (([&]() -> Result<CursorPosition
<CursorType>, mozilla::ipc::IPCResult> { if constexpr
(IsIndexCursor) { auto localeAwarePosition = Key{}; if (this
->IsLocaleAware()) { auto tryResult1039 = (aCurrentKey.ToLocaleAwareKey
(this->mLocale)); if ((__builtin_expect(!!(tryResult1039.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1039
.unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11827, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull
(this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!"))))
; } localeAwarePosition = tryResult1039.unwrap();; } return CursorPosition
<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey
}; } else { return CursorPosition<CursorType>{aCurrentKey
}; } }())); if ((__builtin_expect(!!(tryResult1040.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult1039 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11827, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult1039.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11834, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } auto position = tryResult1040.unwrap();
11824 QM_TRY_UNWRAP(auto tryResult1040 = (([&]() -> Result<CursorPosition
<CursorType>, mozilla::ipc::IPCResult> { if constexpr
(IsIndexCursor) { auto localeAwarePosition = Key{}; if (this
->IsLocaleAware()) { auto tryResult1039 = (aCurrentKey.ToLocaleAwareKey
(this->mLocale)); if ((__builtin_expect(!!(tryResult1039.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1039
.unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11827, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull
(this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!"))))
; } localeAwarePosition = tryResult1039.unwrap();; } return CursorPosition
<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey
}; } else { return CursorPosition<CursorType>{aCurrentKey
}; } }())); if ((__builtin_expect(!!(tryResult1040.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult1039 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11827, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult1039.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11834, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } auto position = tryResult1040.unwrap();
11825 localeAwarePosition,auto tryResult1040 = (([&]() -> Result<CursorPosition
<CursorType>, mozilla::ipc::IPCResult> { if constexpr
(IsIndexCursor) { auto localeAwarePosition = Key{}; if (this
->IsLocaleAware()) { auto tryResult1039 = (aCurrentKey.ToLocaleAwareKey
(this->mLocale)); if ((__builtin_expect(!!(tryResult1039.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1039
.unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11827, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull
(this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!"))))
; } localeAwarePosition = tryResult1039.unwrap();; } return CursorPosition
<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey
}; } else { return CursorPosition<CursorType>{aCurrentKey
}; } }())); if ((__builtin_expect(!!(tryResult1040.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult1039 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11827, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult1039.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11834, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } auto position = tryResult1040.unwrap();
11826 aCurrentKey.ToLocaleAwareKey(this->mLocale),auto tryResult1040 = (([&]() -> Result<CursorPosition
<CursorType>, mozilla::ipc::IPCResult> { if constexpr
(IsIndexCursor) { auto localeAwarePosition = Key{}; if (this
->IsLocaleAware()) { auto tryResult1039 = (aCurrentKey.ToLocaleAwareKey
(this->mLocale)); if ((__builtin_expect(!!(tryResult1039.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1039
.unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11827, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull
(this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!"))))
; } localeAwarePosition = tryResult1039.unwrap();; } return CursorPosition
<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey
}; } else { return CursorPosition<CursorType>{aCurrentKey
}; } }())); if ((__builtin_expect(!!(tryResult1040.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult1039 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11827, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult1039.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11834, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } auto position = tryResult1040.unwrap();
11827 Err(IPC_FAIL(this, "aCurrentKey.ToLocaleAwareKey failed!")));auto tryResult1040 = (([&]() -> Result<CursorPosition
<CursorType>, mozilla::ipc::IPCResult> { if constexpr
(IsIndexCursor) { auto localeAwarePosition = Key{}; if (this
->IsLocaleAware()) { auto tryResult1039 = (aCurrentKey.ToLocaleAwareKey
(this->mLocale)); if ((__builtin_expect(!!(tryResult1039.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1039
.unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11827, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull
(this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!"))))
; } localeAwarePosition = tryResult1039.unwrap();; } return CursorPosition
<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey
}; } else { return CursorPosition<CursorType>{aCurrentKey
}; } }())); if ((__builtin_expect(!!(tryResult1040.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult1039 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11827, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult1039.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11834, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } auto position = tryResult1040.unwrap();
11828 }auto tryResult1040 = (([&]() -> Result<CursorPosition
<CursorType>, mozilla::ipc::IPCResult> { if constexpr
(IsIndexCursor) { auto localeAwarePosition = Key{}; if (this
->IsLocaleAware()) { auto tryResult1039 = (aCurrentKey.ToLocaleAwareKey
(this->mLocale)); if ((__builtin_expect(!!(tryResult1039.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1039
.unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11827, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull
(this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!"))))
; } localeAwarePosition = tryResult1039.unwrap();; } return CursorPosition
<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey
}; } else { return CursorPosition<CursorType>{aCurrentKey
}; } }())); if ((__builtin_expect(!!(tryResult1040.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult1039 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11827, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult1039.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11834, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } auto position = tryResult1040.unwrap();
11829 return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition,auto tryResult1040 = (([&]() -> Result<CursorPosition
<CursorType>, mozilla::ipc::IPCResult> { if constexpr
(IsIndexCursor) { auto localeAwarePosition = Key{}; if (this
->IsLocaleAware()) { auto tryResult1039 = (aCurrentKey.ToLocaleAwareKey
(this->mLocale)); if ((__builtin_expect(!!(tryResult1039.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1039
.unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11827, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull
(this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!"))))
; } localeAwarePosition = tryResult1039.unwrap();; } return CursorPosition
<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey
}; } else { return CursorPosition<CursorType>{aCurrentKey
}; } }())); if ((__builtin_expect(!!(tryResult1040.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult1039 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11827, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult1039.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11834, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } auto position = tryResult1040.unwrap();
11830 aCurrentObjectStoreKey};auto tryResult1040 = (([&]() -> Result<CursorPosition
<CursorType>, mozilla::ipc::IPCResult> { if constexpr
(IsIndexCursor) { auto localeAwarePosition = Key{}; if (this
->IsLocaleAware()) { auto tryResult1039 = (aCurrentKey.ToLocaleAwareKey
(this->mLocale)); if ((__builtin_expect(!!(tryResult1039.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1039
.unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11827, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull
(this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!"))))
; } localeAwarePosition = tryResult1039.unwrap();; } return CursorPosition
<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey
}; } else { return CursorPosition<CursorType>{aCurrentKey
}; } }())); if ((__builtin_expect(!!(tryResult1040.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult1039 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11827, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult1039.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11834, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } auto position = tryResult1040.unwrap();
11831 } else {auto tryResult1040 = (([&]() -> Result<CursorPosition
<CursorType>, mozilla::ipc::IPCResult> { if constexpr
(IsIndexCursor) { auto localeAwarePosition = Key{}; if (this
->IsLocaleAware()) { auto tryResult1039 = (aCurrentKey.ToLocaleAwareKey
(this->mLocale)); if ((__builtin_expect(!!(tryResult1039.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1039
.unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11827, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull
(this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!"))))
; } localeAwarePosition = tryResult1039.unwrap();; } return CursorPosition
<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey
}; } else { return CursorPosition<CursorType>{aCurrentKey
}; } }())); if ((__builtin_expect(!!(tryResult1040.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult1039 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11827, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult1039.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11834, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } auto position = tryResult1040.unwrap();
11832 return CursorPosition<CursorType>{aCurrentKey};auto tryResult1040 = (([&]() -> Result<CursorPosition
<CursorType>, mozilla::ipc::IPCResult> { if constexpr
(IsIndexCursor) { auto localeAwarePosition = Key{}; if (this
->IsLocaleAware()) { auto tryResult1039 = (aCurrentKey.ToLocaleAwareKey
(this->mLocale)); if ((__builtin_expect(!!(tryResult1039.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1039
.unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11827, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull
(this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!"))))
; } localeAwarePosition = tryResult1039.unwrap();; } return CursorPosition
<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey
}; } else { return CursorPosition<CursorType>{aCurrentKey
}; } }())); if ((__builtin_expect(!!(tryResult1040.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult1039 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11827, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult1039.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11834, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } auto position = tryResult1040.unwrap();
11833 }auto tryResult1040 = (([&]() -> Result<CursorPosition
<CursorType>, mozilla::ipc::IPCResult> { if constexpr
(IsIndexCursor) { auto localeAwarePosition = Key{}; if (this
->IsLocaleAware()) { auto tryResult1039 = (aCurrentKey.ToLocaleAwareKey
(this->mLocale)); if ((__builtin_expect(!!(tryResult1039.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1039
.unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11827, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull
(this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!"))))
; } localeAwarePosition = tryResult1039.unwrap();; } return CursorPosition
<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey
}; } else { return CursorPosition<CursorType>{aCurrentKey
}; } }())); if ((__builtin_expect(!!(tryResult1040.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult1039 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11827, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult1039.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11834, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } auto position = tryResult1040.unwrap();
11834 }()))auto tryResult1040 = (([&]() -> Result<CursorPosition
<CursorType>, mozilla::ipc::IPCResult> { if constexpr
(IsIndexCursor) { auto localeAwarePosition = Key{}; if (this
->IsLocaleAware()) { auto tryResult1039 = (aCurrentKey.ToLocaleAwareKey
(this->mLocale)); if ((__builtin_expect(!!(tryResult1039.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1039
.unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11827, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull
(this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!"))))
; } localeAwarePosition = tryResult1039.unwrap();; } return CursorPosition
<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey
}; } else { return CursorPosition<CursorType>{aCurrentKey
}; } }())); if ((__builtin_expect(!!(tryResult1040.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult1039 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11827, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult1039.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11834, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } auto position = tryResult1040.unwrap();
;
11835
11836 if (!trustParams && !VerifyRequestParams(aParams, position)) {
11837 return IPC_FAIL(this, "VerifyRequestParams failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("VerifyRequestParams failed!"
))
;
11838 }
11839
11840 if (NS_WARN_IF(mCurrentlyRunningOp)NS_warn_if_impl(mCurrentlyRunningOp, "mCurrentlyRunningOp", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11840)
) {
11841 return IPC_FAIL(this, "Cursor is CurrentlyRunningOp!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Cursor is CurrentlyRunningOp!"
))
;
11842 }
11843
11844 if (NS_WARN_IF(mTransaction->mCommitOrAbortReceived)NS_warn_if_impl(mTransaction->mCommitOrAbortReceived, "mTransaction->mCommitOrAbortReceived"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11844
)
) {
11845 return IPC_FAIL(this, "Transaction is already committed/aborted!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Transaction is already committed/aborted!"
))
;
11846 }
11847
11848 const RefPtr<ContinueOp> continueOp =
11849 new ContinueOp(this, aRequestId, aParams, std::move(position));
11850 if (NS_WARN_IF(!continueOp->Init(*mTransaction))NS_warn_if_impl(!continueOp->Init(*mTransaction), "!continueOp->Init(*mTransaction)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11850
)
) {
11851 continueOp->Cleanup();
11852 return IPC_FAIL(this, "ContinueOp initialization failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("ContinueOp initialization failed!"
))
;
11853 }
11854
11855 continueOp->DispatchToConnectionPool();
11856 mCurrentlyRunningOp = continueOp;
11857
11858 return IPC_OK()mozilla::ipc::IPCResult::Ok();
11859}
11860
11861/*******************************************************************************
11862 * DatabaseFileManager
11863 ******************************************************************************/
11864
11865DatabaseFileManager::MutexType DatabaseFileManager::sMutex;
11866
11867DatabaseFileManager::DatabaseFileManager(
11868 PersistenceType aPersistenceType,
11869 const quota::OriginMetadata& aOriginMetadata,
11870 const nsAString& aDatabaseName, const nsCString& aDatabaseID,
11871 const nsAString& aDatabaseFilePath, bool aEnforcingQuota,
11872 bool aIsInPrivateBrowsingMode,
11873 RefPtr<IndexedDBCipherKeyManager> aCipherKeyManager)
11874 : mPersistenceType(aPersistenceType),
11875 mOriginMetadata(aOriginMetadata),
11876 mDatabaseName(aDatabaseName),
11877 mDatabaseID(aDatabaseID),
11878 mDatabaseFilePath(aDatabaseFilePath),
11879 mCipherKeyManager(std::move(aCipherKeyManager)),
11880 mDatabaseVersion(0),
11881 mEnforcingQuota(aEnforcingQuota),
11882 mIsInPrivateBrowsingMode(aIsInPrivateBrowsingMode) {}
11883
11884// static
11885Result<RefPtr<IndexedDBCipherKeyManager>, nsresult>
11886DatabaseFileManager::CreateCipherKeyManager(
11887 const quota::OriginMetadata& aOriginMetadata,
11888 bool aIsInPrivateBrowsingMode) {
11889 if (aIsInPrivateBrowsingMode) {
11890 return RefPtr<IndexedDBCipherKeyManager>(
11891 IndexedDBCipherKeyManager::CreateEphemeral(
11892 "IndexedDBCipherKeyManager"));
11893 }
11894 auto* quotaManager = quota::QuotaManager::Get();
11895 MOZ_ASSERT(quotaManager)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(quotaManager)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(quotaManager))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("quotaManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11895); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { MOZ_CrashSequence(__null, 11895); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11896 if (quotaManager->IsOriginEncrypted(aOriginMetadata)) {
11897 return quotaManager->GetOrCreateCipherKeyManager(aOriginMetadata.mOrigin,
11898 quota::Client::IDB);
11899 }
11900 return RefPtr<IndexedDBCipherKeyManager>(nullptr);
11901}
11902
11903uint64_t DatabaseFileManager::DatabaseVersion() const {
11904 AssertIsOnIOThread();
11905
11906 return mDatabaseVersion;
11907}
11908
11909void DatabaseFileManager::UpdateDatabaseVersion(uint64_t aDatabaseVersion) {
11910 AssertIsOnIOThread();
11911
11912 mDatabaseVersion = aDatabaseVersion;
11913}
11914
11915nsresult DatabaseFileManager::Init(nsIFile* aDirectory,
11916 const uint64_t aDatabaseVersion,
11917 mozIStorageConnection& aConnection) {
11918 AssertIsOnIOThread();
11919 MOZ_ASSERT(aDirectory)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDirectory)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDirectory))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11919); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectory"
")"); do { MOZ_CrashSequence(__null, 11919); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11920
11921 {
11922 QM_TRY_INSPECT(const bool& existsAsDirectory,auto tryResult1041 = (ExistsAsDirectory(*aDirectory)); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ExistsAsDirectory(*aDirectory)", tryResult1041.inspectErr()
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11923
, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const bool& existsAsDirectory = tryResult1041
.inspect();
11923 ExistsAsDirectory(*aDirectory))auto tryResult1041 = (ExistsAsDirectory(*aDirectory)); if ((__builtin_expect
(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError
("ExistsAsDirectory(*aDirectory)", tryResult1041.inspectErr()
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11923
, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const bool& existsAsDirectory = tryResult1041
.inspect();
;
11924
11925 if (!existsAsDirectory) {
11926 QM_TRY(MOZ_TO_RESULT(aDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))){auto tryResult1042 = (ToResult(aDirectory->Create(nsIFile
::DIRECTORY_TYPE, 0755))); static_assert(std::is_empty_v<typename
decltype(tryResult1042)::ok_type>); if ((__builtin_expect
(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))"
, tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11926, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); }}
;
11927 }
11928
11929 QM_TRY_UNWRAP(auto path, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1043 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(aDirectory)>::GetPath), (aDirectory) )); if ((__builtin_expect
(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aDirectory)>::GetPath), (aDirectory) )"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11930, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); } auto path = tryResult1043.unwrap();
11930 nsString, aDirectory, GetPath))auto tryResult1043 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(aDirectory)>::GetPath), (aDirectory) )); if ((__builtin_expect
(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aDirectory)>::GetPath), (aDirectory) )"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11930, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); } auto path = tryResult1043.unwrap();
;
11931
11932 mDirectoryPath.init(std::move(path));
11933 }
11934
11935 QM_TRY_INSPECT(const auto& journalDirectory,auto tryResult1044 = (CloneFileAndAppend(*aDirectory, kJournalDirectoryName
)); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, kJournalDirectoryName)"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11936, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); } const auto& journalDirectory = tryResult1044
.inspect();
11936 CloneFileAndAppend(*aDirectory, kJournalDirectoryName))auto tryResult1044 = (CloneFileAndAppend(*aDirectory, kJournalDirectoryName
)); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, kJournalDirectoryName)"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11936, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); } const auto& journalDirectory = tryResult1044
.inspect();
;
11937
11938 // We don't care if it doesn't exist at all, but if it does exist, make sure
11939 // it's a directory.
11940 QM_TRY_INSPECT(const bool& existsAsDirectory,auto tryResult1045 = (ExistsAsDirectory(*journalDirectory)); if
((__builtin_expect(!!(tryResult1045.isErr()), 0))) { mozilla
::dom::quota::HandleError("ExistsAsDirectory(*journalDirectory)"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11941, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); } const bool& existsAsDirectory = tryResult1045
.inspect();
11941 ExistsAsDirectory(*journalDirectory))auto tryResult1045 = (ExistsAsDirectory(*journalDirectory)); if
((__builtin_expect(!!(tryResult1045.isErr()), 0))) { mozilla
::dom::quota::HandleError("ExistsAsDirectory(*journalDirectory)"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11941, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); } const bool& existsAsDirectory = tryResult1045
.inspect();
;
11942 (void)existsAsDirectory;
11943
11944 {
11945 QM_TRY_UNWRAP(auto path, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1046 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(journalDirectory)>::GetPath), (journalDirectory) )); if (
(__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(journalDirectory)>::GetPath), (journalDirectory) )"
, tryResult1046.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11946, mozilla::dom::quota::Severity::Error); return tryResult1046
.propagateErr(); } auto path = tryResult1046.unwrap();
11946 nsString, journalDirectory, GetPath))auto tryResult1046 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(journalDirectory)>::GetPath), (journalDirectory) )); if (
(__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(journalDirectory)>::GetPath), (journalDirectory) )"
, tryResult1046.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11946, mozilla::dom::quota::Severity::Error); return tryResult1046
.propagateErr(); } auto path = tryResult1046.unwrap();
;
11947
11948 mJournalDirectoryPath.init(std::move(path));
11949 }
11950
11951 mDatabaseVersion = aDatabaseVersion;
11952
11953 QM_TRY_INSPECT(const auto& stmt,auto tryResult1047 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, refcount FROM file"_ns)); if ((
__builtin_expect(!!(tryResult1047.isErr()), 0))) { mozilla::dom
::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, refcount FROM file\"_ns)"
, tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11956, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); } const auto& stmt = tryResult1047.inspect
();
11954 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1047 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, refcount FROM file"_ns)); if ((
__builtin_expect(!!(tryResult1047.isErr()), 0))) { mozilla::dom
::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, refcount FROM file\"_ns)"
, tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11956, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); } const auto& stmt = tryResult1047.inspect
();
11955 nsCOMPtr<mozIStorageStatement>, aConnection,auto tryResult1047 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, refcount FROM file"_ns)); if ((
__builtin_expect(!!(tryResult1047.isErr()), 0))) { mozilla::dom
::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, refcount FROM file\"_ns)"
, tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11956, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); } const auto& stmt = tryResult1047.inspect
();
11956 CreateStatement, "SELECT id, refcount FROM file"_ns))auto tryResult1047 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, refcount FROM file"_ns)); if ((
__builtin_expect(!!(tryResult1047.isErr()), 0))) { mozilla::dom
::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, refcount FROM file\"_ns)"
, tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11956, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); } const auto& stmt = tryResult1047.inspect
();
;
11957
11958 QM_TRY({auto tryResult1050 = (CollectWhileHasResult(*stmt, [this](auto
& stmt) -> Result<Ok, nsresult> { auto tryResult1048
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if
((__builtin_expect(!!(tryResult1048.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1048.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11961, mozilla::dom::quota::Severity::Error); return tryResult1048
.propagateErr(); } const int64_t& id = tryResult1048.inspect
();; auto tryResult1049 = (::mozilla::ToResultInvokeMember( (
stmt), &::mozilla::detail::DerefedType<decltype(stmt)>
::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1049.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)"
, tryResult1049.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11963, mozilla::dom::quota::Severity::Error); return tryResult1049
.propagateErr(); } const int32_t& dbRefCnt = tryResult1049
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11968
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")"
); do { MOZ_CrashSequence(__null, 11968); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); DebugOnly ok
= static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)
); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(ok)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("ok", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11970); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do
{ MOZ_CrashSequence(__null, 11970); __attribute__((nomerge))
::abort(); } while (false); } } while (false); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1050
)::ok_type>); if ((__builtin_expect(!!(tryResult1050.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult1048 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1048.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1048.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11961, mozilla::dom::quota::Severity::Error); return tryResult1048.propagateErr(); } const int64_t& id = tryResult1048.inspect();; auto tryResult1049 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1049.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)\", tryResult1049.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11963, mozilla::dom::quota::Severity::Error); return tryResult1049.propagateErr(); } const int32_t& dbRefCnt = tryResult1049.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11968); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { MOZ_CrashSequence(__null, 11968); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)); do { static_assert( mozilla::detail::AssertionConditionType<decltype(ok)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"ok\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11970); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { MOZ_CrashSequence(__null, 11970); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })"
, tryResult1050.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11973, mozilla::dom::quota::Severity::Error); return tryResult1050
.propagateErr(); }}
11959 CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> {{auto tryResult1050 = (CollectWhileHasResult(*stmt, [this](auto
& stmt) -> Result<Ok, nsresult> { auto tryResult1048
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if
((__builtin_expect(!!(tryResult1048.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1048.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11961, mozilla::dom::quota::Severity::Error); return tryResult1048
.propagateErr(); } const int64_t& id = tryResult1048.inspect
();; auto tryResult1049 = (::mozilla::ToResultInvokeMember( (
stmt), &::mozilla::detail::DerefedType<decltype(stmt)>
::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1049.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)"
, tryResult1049.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11963, mozilla::dom::quota::Severity::Error); return tryResult1049
.propagateErr(); } const int32_t& dbRefCnt = tryResult1049
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11968
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")"
); do { MOZ_CrashSequence(__null, 11968); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); DebugOnly ok
= static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)
); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(ok)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("ok", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11970); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do
{ MOZ_CrashSequence(__null, 11970); __attribute__((nomerge))
::abort(); } while (false); } } while (false); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1050
)::ok_type>); if ((__builtin_expect(!!(tryResult1050.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult1048 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1048.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1048.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11961, mozilla::dom::quota::Severity::Error); return tryResult1048.propagateErr(); } const int64_t& id = tryResult1048.inspect();; auto tryResult1049 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1049.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)\", tryResult1049.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11963, mozilla::dom::quota::Severity::Error); return tryResult1049.propagateErr(); } const int32_t& dbRefCnt = tryResult1049.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11968); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { MOZ_CrashSequence(__null, 11968); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)); do { static_assert( mozilla::detail::AssertionConditionType<decltype(ok)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"ok\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11970); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { MOZ_CrashSequence(__null, 11970); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })"
, tryResult1050.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11973, mozilla::dom::quota::Severity::Error); return tryResult1050
.propagateErr(); }}
11960 QM_TRY_INSPECT(const int64_t& id,{auto tryResult1050 = (CollectWhileHasResult(*stmt, [this](auto
& stmt) -> Result<Ok, nsresult> { auto tryResult1048
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if
((__builtin_expect(!!(tryResult1048.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1048.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11961, mozilla::dom::quota::Severity::Error); return tryResult1048
.propagateErr(); } const int64_t& id = tryResult1048.inspect
();; auto tryResult1049 = (::mozilla::ToResultInvokeMember( (
stmt), &::mozilla::detail::DerefedType<decltype(stmt)>
::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1049.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)"
, tryResult1049.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11963, mozilla::dom::quota::Severity::Error); return tryResult1049
.propagateErr(); } const int32_t& dbRefCnt = tryResult1049
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11968
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")"
); do { MOZ_CrashSequence(__null, 11968); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); DebugOnly ok
= static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)
); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(ok)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("ok", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11970); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do
{ MOZ_CrashSequence(__null, 11970); __attribute__((nomerge))
::abort(); } while (false); } } while (false); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1050
)::ok_type>); if ((__builtin_expect(!!(tryResult1050.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult1048 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1048.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1048.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11961, mozilla::dom::quota::Severity::Error); return tryResult1048.propagateErr(); } const int64_t& id = tryResult1048.inspect();; auto tryResult1049 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1049.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)\", tryResult1049.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11963, mozilla::dom::quota::Severity::Error); return tryResult1049.propagateErr(); } const int32_t& dbRefCnt = tryResult1049.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11968); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { MOZ_CrashSequence(__null, 11968); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)); do { static_assert( mozilla::detail::AssertionConditionType<decltype(ok)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"ok\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11970); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { MOZ_CrashSequence(__null, 11970); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })"
, tryResult1050.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11973, mozilla::dom::quota::Severity::Error); return tryResult1050
.propagateErr(); }}
11961 MOZ_TO_RESULT_INVOKE_MEMBER(stmt, GetInt64, 0));{auto tryResult1050 = (CollectWhileHasResult(*stmt, [this](auto
& stmt) -> Result<Ok, nsresult> { auto tryResult1048
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if
((__builtin_expect(!!(tryResult1048.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1048.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11961, mozilla::dom::quota::Severity::Error); return tryResult1048
.propagateErr(); } const int64_t& id = tryResult1048.inspect
();; auto tryResult1049 = (::mozilla::ToResultInvokeMember( (
stmt), &::mozilla::detail::DerefedType<decltype(stmt)>
::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1049.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)"
, tryResult1049.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11963, mozilla::dom::quota::Severity::Error); return tryResult1049
.propagateErr(); } const int32_t& dbRefCnt = tryResult1049
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11968
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")"
); do { MOZ_CrashSequence(__null, 11968); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); DebugOnly ok
= static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)
); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(ok)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("ok", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11970); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do
{ MOZ_CrashSequence(__null, 11970); __attribute__((nomerge))
::abort(); } while (false); } } while (false); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1050
)::ok_type>); if ((__builtin_expect(!!(tryResult1050.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult1048 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1048.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1048.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11961, mozilla::dom::quota::Severity::Error); return tryResult1048.propagateErr(); } const int64_t& id = tryResult1048.inspect();; auto tryResult1049 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1049.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)\", tryResult1049.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11963, mozilla::dom::quota::Severity::Error); return tryResult1049.propagateErr(); } const int32_t& dbRefCnt = tryResult1049.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11968); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { MOZ_CrashSequence(__null, 11968); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)); do { static_assert( mozilla::detail::AssertionConditionType<decltype(ok)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"ok\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11970); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { MOZ_CrashSequence(__null, 11970); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })"
, tryResult1050.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11973, mozilla::dom::quota::Severity::Error); return tryResult1050
.propagateErr(); }}
11962 QM_TRY_INSPECT(const int32_t& dbRefCnt,{auto tryResult1050 = (CollectWhileHasResult(*stmt, [this](auto
& stmt) -> Result<Ok, nsresult> { auto tryResult1048
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if
((__builtin_expect(!!(tryResult1048.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1048.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11961, mozilla::dom::quota::Severity::Error); return tryResult1048
.propagateErr(); } const int64_t& id = tryResult1048.inspect
();; auto tryResult1049 = (::mozilla::ToResultInvokeMember( (
stmt), &::mozilla::detail::DerefedType<decltype(stmt)>
::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1049.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)"
, tryResult1049.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11963, mozilla::dom::quota::Severity::Error); return tryResult1049
.propagateErr(); } const int32_t& dbRefCnt = tryResult1049
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11968
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")"
); do { MOZ_CrashSequence(__null, 11968); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); DebugOnly ok
= static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)
); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(ok)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("ok", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11970); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do
{ MOZ_CrashSequence(__null, 11970); __attribute__((nomerge))
::abort(); } while (false); } } while (false); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1050
)::ok_type>); if ((__builtin_expect(!!(tryResult1050.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult1048 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1048.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1048.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11961, mozilla::dom::quota::Severity::Error); return tryResult1048.propagateErr(); } const int64_t& id = tryResult1048.inspect();; auto tryResult1049 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1049.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)\", tryResult1049.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11963, mozilla::dom::quota::Severity::Error); return tryResult1049.propagateErr(); } const int32_t& dbRefCnt = tryResult1049.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11968); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { MOZ_CrashSequence(__null, 11968); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)); do { static_assert( mozilla::detail::AssertionConditionType<decltype(ok)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"ok\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11970); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { MOZ_CrashSequence(__null, 11970); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })"
, tryResult1050.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11973, mozilla::dom::quota::Severity::Error); return tryResult1050
.propagateErr(); }}
11963 MOZ_TO_RESULT_INVOKE_MEMBER(stmt, GetInt32, 1));{auto tryResult1050 = (CollectWhileHasResult(*stmt, [this](auto
& stmt) -> Result<Ok, nsresult> { auto tryResult1048
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if
((__builtin_expect(!!(tryResult1048.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1048.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11961, mozilla::dom::quota::Severity::Error); return tryResult1048
.propagateErr(); } const int64_t& id = tryResult1048.inspect
();; auto tryResult1049 = (::mozilla::ToResultInvokeMember( (
stmt), &::mozilla::detail::DerefedType<decltype(stmt)>
::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1049.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)"
, tryResult1049.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11963, mozilla::dom::quota::Severity::Error); return tryResult1049
.propagateErr(); } const int32_t& dbRefCnt = tryResult1049
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11968
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")"
); do { MOZ_CrashSequence(__null, 11968); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); DebugOnly ok
= static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)
); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(ok)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("ok", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11970); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do
{ MOZ_CrashSequence(__null, 11970); __attribute__((nomerge))
::abort(); } while (false); } } while (false); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1050
)::ok_type>); if ((__builtin_expect(!!(tryResult1050.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult1048 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1048.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1048.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11961, mozilla::dom::quota::Severity::Error); return tryResult1048.propagateErr(); } const int64_t& id = tryResult1048.inspect();; auto tryResult1049 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1049.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)\", tryResult1049.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11963, mozilla::dom::quota::Severity::Error); return tryResult1049.propagateErr(); } const int32_t& dbRefCnt = tryResult1049.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11968); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { MOZ_CrashSequence(__null, 11968); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)); do { static_assert( mozilla::detail::AssertionConditionType<decltype(ok)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"ok\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11970); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { MOZ_CrashSequence(__null, 11970); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })"
, tryResult1050.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11973, mozilla::dom::quota::Severity::Error); return tryResult1050
.propagateErr(); }}
11964
11965 // We put a raw pointer into the hash table, so the memory refcount will{auto tryResult1050 = (CollectWhileHasResult(*stmt, [this](auto
& stmt) -> Result<Ok, nsresult> { auto tryResult1048
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if
((__builtin_expect(!!(tryResult1048.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1048.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11961, mozilla::dom::quota::Severity::Error); return tryResult1048
.propagateErr(); } const int64_t& id = tryResult1048.inspect
();; auto tryResult1049 = (::mozilla::ToResultInvokeMember( (
stmt), &::mozilla::detail::DerefedType<decltype(stmt)>
::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1049.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)"
, tryResult1049.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11963, mozilla::dom::quota::Severity::Error); return tryResult1049
.propagateErr(); } const int32_t& dbRefCnt = tryResult1049
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11968
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")"
); do { MOZ_CrashSequence(__null, 11968); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); DebugOnly ok
= static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)
); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(ok)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("ok", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11970); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do
{ MOZ_CrashSequence(__null, 11970); __attribute__((nomerge))
::abort(); } while (false); } } while (false); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1050
)::ok_type>); if ((__builtin_expect(!!(tryResult1050.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult1048 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1048.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1048.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11961, mozilla::dom::quota::Severity::Error); return tryResult1048.propagateErr(); } const int64_t& id = tryResult1048.inspect();; auto tryResult1049 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1049.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)\", tryResult1049.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11963, mozilla::dom::quota::Severity::Error); return tryResult1049.propagateErr(); } const int32_t& dbRefCnt = tryResult1049.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11968); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { MOZ_CrashSequence(__null, 11968); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)); do { static_assert( mozilla::detail::AssertionConditionType<decltype(ok)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"ok\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11970); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { MOZ_CrashSequence(__null, 11970); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })"
, tryResult1050.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11973, mozilla::dom::quota::Severity::Error); return tryResult1050
.propagateErr(); }}
11966 // be 0, but the dbRefCnt is non-zero, which will keep the{auto tryResult1050 = (CollectWhileHasResult(*stmt, [this](auto
& stmt) -> Result<Ok, nsresult> { auto tryResult1048
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if
((__builtin_expect(!!(tryResult1048.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1048.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11961, mozilla::dom::quota::Severity::Error); return tryResult1048
.propagateErr(); } const int64_t& id = tryResult1048.inspect
();; auto tryResult1049 = (::mozilla::ToResultInvokeMember( (
stmt), &::mozilla::detail::DerefedType<decltype(stmt)>
::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1049.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)"
, tryResult1049.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11963, mozilla::dom::quota::Severity::Error); return tryResult1049
.propagateErr(); } const int32_t& dbRefCnt = tryResult1049
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11968
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")"
); do { MOZ_CrashSequence(__null, 11968); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); DebugOnly ok
= static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)
); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(ok)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("ok", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11970); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do
{ MOZ_CrashSequence(__null, 11970); __attribute__((nomerge))
::abort(); } while (false); } } while (false); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1050
)::ok_type>); if ((__builtin_expect(!!(tryResult1050.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult1048 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1048.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1048.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11961, mozilla::dom::quota::Severity::Error); return tryResult1048.propagateErr(); } const int64_t& id = tryResult1048.inspect();; auto tryResult1049 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1049.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)\", tryResult1049.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11963, mozilla::dom::quota::Severity::Error); return tryResult1049.propagateErr(); } const int32_t& dbRefCnt = tryResult1049.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11968); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { MOZ_CrashSequence(__null, 11968); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)); do { static_assert( mozilla::detail::AssertionConditionType<decltype(ok)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"ok\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11970); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { MOZ_CrashSequence(__null, 11970); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })"
, tryResult1050.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11973, mozilla::dom::quota::Severity::Error); return tryResult1050
.propagateErr(); }}
11967 // DatabaseFileInfo object alive.{auto tryResult1050 = (CollectWhileHasResult(*stmt, [this](auto
& stmt) -> Result<Ok, nsresult> { auto tryResult1048
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if
((__builtin_expect(!!(tryResult1048.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1048.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11961, mozilla::dom::quota::Severity::Error); return tryResult1048
.propagateErr(); } const int64_t& id = tryResult1048.inspect
();; auto tryResult1049 = (::mozilla::ToResultInvokeMember( (
stmt), &::mozilla::detail::DerefedType<decltype(stmt)>
::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1049.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)"
, tryResult1049.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11963, mozilla::dom::quota::Severity::Error); return tryResult1049
.propagateErr(); } const int32_t& dbRefCnt = tryResult1049
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11968
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")"
); do { MOZ_CrashSequence(__null, 11968); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); DebugOnly ok
= static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)
); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(ok)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("ok", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11970); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do
{ MOZ_CrashSequence(__null, 11970); __attribute__((nomerge))
::abort(); } while (false); } } while (false); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1050
)::ok_type>); if ((__builtin_expect(!!(tryResult1050.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult1048 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1048.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1048.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11961, mozilla::dom::quota::Severity::Error); return tryResult1048.propagateErr(); } const int64_t& id = tryResult1048.inspect();; auto tryResult1049 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1049.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)\", tryResult1049.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11963, mozilla::dom::quota::Severity::Error); return tryResult1049.propagateErr(); } const int32_t& dbRefCnt = tryResult1049.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11968); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { MOZ_CrashSequence(__null, 11968); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)); do { static_assert( mozilla::detail::AssertionConditionType<decltype(ok)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"ok\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11970); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { MOZ_CrashSequence(__null, 11970); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })"
, tryResult1050.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11973, mozilla::dom::quota::Severity::Error); return tryResult1050
.propagateErr(); }}
11968 MOZ_ASSERT(dbRefCnt > 0);{auto tryResult1050 = (CollectWhileHasResult(*stmt, [this](auto
& stmt) -> Result<Ok, nsresult> { auto tryResult1048
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if
((__builtin_expect(!!(tryResult1048.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1048.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11961, mozilla::dom::quota::Severity::Error); return tryResult1048
.propagateErr(); } const int64_t& id = tryResult1048.inspect
();; auto tryResult1049 = (::mozilla::ToResultInvokeMember( (
stmt), &::mozilla::detail::DerefedType<decltype(stmt)>
::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1049.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)"
, tryResult1049.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11963, mozilla::dom::quota::Severity::Error); return tryResult1049
.propagateErr(); } const int32_t& dbRefCnt = tryResult1049
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11968
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")"
); do { MOZ_CrashSequence(__null, 11968); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); DebugOnly ok
= static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)
); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(ok)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("ok", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11970); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do
{ MOZ_CrashSequence(__null, 11970); __attribute__((nomerge))
::abort(); } while (false); } } while (false); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1050
)::ok_type>); if ((__builtin_expect(!!(tryResult1050.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult1048 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1048.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1048.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11961, mozilla::dom::quota::Severity::Error); return tryResult1048.propagateErr(); } const int64_t& id = tryResult1048.inspect();; auto tryResult1049 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1049.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)\", tryResult1049.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11963, mozilla::dom::quota::Severity::Error); return tryResult1049.propagateErr(); } const int32_t& dbRefCnt = tryResult1049.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11968); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { MOZ_CrashSequence(__null, 11968); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)); do { static_assert( mozilla::detail::AssertionConditionType<decltype(ok)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"ok\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11970); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { MOZ_CrashSequence(__null, 11970); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })"
, tryResult1050.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11973, mozilla::dom::quota::Severity::Error); return tryResult1050
.propagateErr(); }}
11969 DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt));{auto tryResult1050 = (CollectWhileHasResult(*stmt, [this](auto
& stmt) -> Result<Ok, nsresult> { auto tryResult1048
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if
((__builtin_expect(!!(tryResult1048.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1048.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11961, mozilla::dom::quota::Severity::Error); return tryResult1048
.propagateErr(); } const int64_t& id = tryResult1048.inspect
();; auto tryResult1049 = (::mozilla::ToResultInvokeMember( (
stmt), &::mozilla::detail::DerefedType<decltype(stmt)>
::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1049.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)"
, tryResult1049.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11963, mozilla::dom::quota::Severity::Error); return tryResult1049
.propagateErr(); } const int32_t& dbRefCnt = tryResult1049
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11968
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")"
); do { MOZ_CrashSequence(__null, 11968); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); DebugOnly ok
= static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)
); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(ok)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("ok", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11970); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do
{ MOZ_CrashSequence(__null, 11970); __attribute__((nomerge))
::abort(); } while (false); } } while (false); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1050
)::ok_type>); if ((__builtin_expect(!!(tryResult1050.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult1048 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1048.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1048.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11961, mozilla::dom::quota::Severity::Error); return tryResult1048.propagateErr(); } const int64_t& id = tryResult1048.inspect();; auto tryResult1049 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1049.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)\", tryResult1049.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11963, mozilla::dom::quota::Severity::Error); return tryResult1049.propagateErr(); } const int32_t& dbRefCnt = tryResult1049.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11968); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { MOZ_CrashSequence(__null, 11968); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)); do { static_assert( mozilla::detail::AssertionConditionType<decltype(ok)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"ok\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11970); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { MOZ_CrashSequence(__null, 11970); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })"
, tryResult1050.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11973, mozilla::dom::quota::Severity::Error); return tryResult1050
.propagateErr(); }}
11970 MOZ_ASSERT(ok);{auto tryResult1050 = (CollectWhileHasResult(*stmt, [this](auto
& stmt) -> Result<Ok, nsresult> { auto tryResult1048
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if
((__builtin_expect(!!(tryResult1048.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1048.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11961, mozilla::dom::quota::Severity::Error); return tryResult1048
.propagateErr(); } const int64_t& id = tryResult1048.inspect
();; auto tryResult1049 = (::mozilla::ToResultInvokeMember( (
stmt), &::mozilla::detail::DerefedType<decltype(stmt)>
::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1049.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)"
, tryResult1049.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11963, mozilla::dom::quota::Severity::Error); return tryResult1049
.propagateErr(); } const int32_t& dbRefCnt = tryResult1049
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11968
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")"
); do { MOZ_CrashSequence(__null, 11968); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); DebugOnly ok
= static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)
); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(ok)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("ok", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11970); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do
{ MOZ_CrashSequence(__null, 11970); __attribute__((nomerge))
::abort(); } while (false); } } while (false); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1050
)::ok_type>); if ((__builtin_expect(!!(tryResult1050.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult1048 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1048.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1048.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11961, mozilla::dom::quota::Severity::Error); return tryResult1048.propagateErr(); } const int64_t& id = tryResult1048.inspect();; auto tryResult1049 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1049.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)\", tryResult1049.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11963, mozilla::dom::quota::Severity::Error); return tryResult1049.propagateErr(); } const int32_t& dbRefCnt = tryResult1049.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11968); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { MOZ_CrashSequence(__null, 11968); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)); do { static_assert( mozilla::detail::AssertionConditionType<decltype(ok)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"ok\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11970); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { MOZ_CrashSequence(__null, 11970); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })"
, tryResult1050.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11973, mozilla::dom::quota::Severity::Error); return tryResult1050
.propagateErr(); }}
11971
11972 return Ok{};{auto tryResult1050 = (CollectWhileHasResult(*stmt, [this](auto
& stmt) -> Result<Ok, nsresult> { auto tryResult1048
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if
((__builtin_expect(!!(tryResult1048.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1048.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11961, mozilla::dom::quota::Severity::Error); return tryResult1048
.propagateErr(); } const int64_t& id = tryResult1048.inspect
();; auto tryResult1049 = (::mozilla::ToResultInvokeMember( (
stmt), &::mozilla::detail::DerefedType<decltype(stmt)>
::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1049.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)"
, tryResult1049.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11963, mozilla::dom::quota::Severity::Error); return tryResult1049
.propagateErr(); } const int32_t& dbRefCnt = tryResult1049
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11968
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")"
); do { MOZ_CrashSequence(__null, 11968); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); DebugOnly ok
= static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)
); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(ok)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("ok", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11970); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do
{ MOZ_CrashSequence(__null, 11970); __attribute__((nomerge))
::abort(); } while (false); } } while (false); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1050
)::ok_type>); if ((__builtin_expect(!!(tryResult1050.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult1048 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1048.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1048.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11961, mozilla::dom::quota::Severity::Error); return tryResult1048.propagateErr(); } const int64_t& id = tryResult1048.inspect();; auto tryResult1049 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1049.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)\", tryResult1049.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11963, mozilla::dom::quota::Severity::Error); return tryResult1049.propagateErr(); } const int32_t& dbRefCnt = tryResult1049.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11968); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { MOZ_CrashSequence(__null, 11968); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)); do { static_assert( mozilla::detail::AssertionConditionType<decltype(ok)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"ok\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11970); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { MOZ_CrashSequence(__null, 11970); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })"
, tryResult1050.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11973, mozilla::dom::quota::Severity::Error); return tryResult1050
.propagateErr(); }}
11973 })){auto tryResult1050 = (CollectWhileHasResult(*stmt, [this](auto
& stmt) -> Result<Ok, nsresult> { auto tryResult1048
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if
((__builtin_expect(!!(tryResult1048.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1048.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11961, mozilla::dom::quota::Severity::Error); return tryResult1048
.propagateErr(); } const int64_t& id = tryResult1048.inspect
();; auto tryResult1049 = (::mozilla::ToResultInvokeMember( (
stmt), &::mozilla::detail::DerefedType<decltype(stmt)>
::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1049.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)"
, tryResult1049.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11963, mozilla::dom::quota::Severity::Error); return tryResult1049
.propagateErr(); } const int32_t& dbRefCnt = tryResult1049
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11968
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")"
); do { MOZ_CrashSequence(__null, 11968); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); DebugOnly ok
= static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)
); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(ok)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("ok", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11970); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do
{ MOZ_CrashSequence(__null, 11970); __attribute__((nomerge))
::abort(); } while (false); } } while (false); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1050
)::ok_type>); if ((__builtin_expect(!!(tryResult1050.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult1048 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1048.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1048.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11961, mozilla::dom::quota::Severity::Error); return tryResult1048.propagateErr(); } const int64_t& id = tryResult1048.inspect();; auto tryResult1049 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1049.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)\", tryResult1049.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11963, mozilla::dom::quota::Severity::Error); return tryResult1049.propagateErr(); } const int32_t& dbRefCnt = tryResult1049.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11968); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { MOZ_CrashSequence(__null, 11968); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)); do { static_assert( mozilla::detail::AssertionConditionType<decltype(ok)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"ok\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11970); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { MOZ_CrashSequence(__null, 11970); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })"
, tryResult1050.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11973, mozilla::dom::quota::Severity::Error); return tryResult1050
.propagateErr(); }}
;
11974
11975 mInitialized.Flip();
11976
11977 return NS_OK;
11978}
11979
11980nsCOMPtr<nsIFile> DatabaseFileManager::GetDirectory() {
11981 if (!this->AssertValid()) {
11982 return nullptr;
11983 }
11984
11985 return GetFileForPath(*mDirectoryPath);
11986}
11987
11988nsCOMPtr<nsIFile> DatabaseFileManager::GetCheckedDirectory() {
11989 auto directory = GetDirectory();
11990 if (NS_WARN_IF(!directory)NS_warn_if_impl(!directory, "!directory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11990)
) {
11991 return nullptr;
11992 }
11993
11994 DebugOnly<bool> exists;
11995 MOZ_ASSERT(NS_SUCCEEDED(directory->Exists(&exists)))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(directory
->Exists(&exists))), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(directory->Exists(&exists))), 1)))))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(directory->Exists(&exists))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11995
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(directory->Exists(&exists))), 1)))"
")"); do { MOZ_CrashSequence(__null, 11995); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11996 MOZ_ASSERT(exists)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(exists)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(exists))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("exists", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11996); AnnotateMozCrashReason("MOZ_ASSERT" "(" "exists" ")"
); do { MOZ_CrashSequence(__null, 11996); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
11997
11998 DebugOnly<bool> isDirectory;
11999 MOZ_ASSERT(NS_SUCCEEDED(directory->IsDirectory(&isDirectory)))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(directory
->IsDirectory(&isDirectory))), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(directory->IsDirectory(&isDirectory)))
, 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(directory->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11999
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(directory->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 11999); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12000 MOZ_ASSERT(isDirectory)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(isDirectory)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12000); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12000); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12001
12002 return directory;
12003}
12004
12005nsCOMPtr<nsIFile> DatabaseFileManager::GetJournalDirectory() {
12006 if (!this->AssertValid()) {
12007 return nullptr;
12008 }
12009
12010 return GetFileForPath(*mJournalDirectoryPath);
12011}
12012
12013nsCOMPtr<nsIFile> DatabaseFileManager::EnsureJournalDirectory() {
12014 // This can happen on the IO or on a transaction thread.
12015 MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12015
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { MOZ_CrashSequence(__null, 12015); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12016
12017 auto journalDirectory = GetFileForPath(*mJournalDirectoryPath);
12018 QM_TRY(OkIf(journalDirectory), nullptr){auto tryResult1051 = (OkIf(journalDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1051)::ok_type
>); if ((__builtin_expect(!!(tryResult1051.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1051.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(journalDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12018, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(journalDirectory)"
, tryTempError, nullptr); }}
;
12019
12020 QM_TRY_INSPECT(const bool& exists,auto tryResult1052 = (::mozilla::ToResultInvokeMember( (journalDirectory
), &::mozilla::detail::DerefedType<decltype(journalDirectory
)>::Exists )); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1052
.unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::Exists )"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12022, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::Exists )"
, tryTempError, nullptr); } const bool& exists = tryResult1052
.inspect();
12021 MOZ_TO_RESULT_INVOKE_MEMBER(journalDirectory, Exists),auto tryResult1052 = (::mozilla::ToResultInvokeMember( (journalDirectory
), &::mozilla::detail::DerefedType<decltype(journalDirectory
)>::Exists )); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1052
.unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::Exists )"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12022, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::Exists )"
, tryTempError, nullptr); } const bool& exists = tryResult1052
.inspect();
12022 nullptr)auto tryResult1052 = (::mozilla::ToResultInvokeMember( (journalDirectory
), &::mozilla::detail::DerefedType<decltype(journalDirectory
)>::Exists )); if ((__builtin_expect(!!(tryResult1052.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1052
.unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::Exists )"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12022, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::Exists )"
, tryTempError, nullptr); } const bool& exists = tryResult1052
.inspect();
;
12023
12024 if (exists) {
12025 QM_TRY_INSPECT(const bool& isDirectory,auto tryResult1053 = (::mozilla::ToResultInvokeMember( (journalDirectory
), &::mozilla::detail::DerefedType<decltype(journalDirectory
)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1053
.unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::IsDirectory )"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12027, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::IsDirectory )"
, tryTempError, nullptr); } const bool& isDirectory = tryResult1053
.inspect();
12026 MOZ_TO_RESULT_INVOKE_MEMBER(journalDirectory, IsDirectory),auto tryResult1053 = (::mozilla::ToResultInvokeMember( (journalDirectory
), &::mozilla::detail::DerefedType<decltype(journalDirectory
)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1053
.unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::IsDirectory )"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12027, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::IsDirectory )"
, tryTempError, nullptr); } const bool& isDirectory = tryResult1053
.inspect();
12027 nullptr)auto tryResult1053 = (::mozilla::ToResultInvokeMember( (journalDirectory
), &::mozilla::detail::DerefedType<decltype(journalDirectory
)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1053
.unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::IsDirectory )"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12027, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::IsDirectory )"
, tryTempError, nullptr); } const bool& isDirectory = tryResult1053
.inspect();
;
12028
12029 QM_TRY(OkIf(isDirectory), nullptr){auto tryResult1054 = (OkIf(isDirectory)); static_assert(std::
is_empty_v<typename decltype(tryResult1054)::ok_type>);
if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { [[maybe_unused
]] auto tryTempError = tryResult1054.unwrapErr(); mozilla::dom
::quota::HandleError("OkIf(isDirectory)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12029, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError
, nullptr); }}
;
12030 } else {
12031 QM_TRY({auto tryResult1055 = (ToResult(journalDirectory->Create(nsIFile
::DIRECTORY_TYPE, 0755))); static_assert(std::is_empty_v<typename
decltype(tryResult1055)::ok_type>); if ((__builtin_expect
(!!(tryResult1055.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(journalDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12033, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(journalDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))"
, tryTempError, nullptr); }}
12032 MOZ_TO_RESULT(journalDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755)),{auto tryResult1055 = (ToResult(journalDirectory->Create(nsIFile
::DIRECTORY_TYPE, 0755))); static_assert(std::is_empty_v<typename
decltype(tryResult1055)::ok_type>); if ((__builtin_expect
(!!(tryResult1055.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(journalDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12033, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(journalDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))"
, tryTempError, nullptr); }}
12033 nullptr){auto tryResult1055 = (ToResult(journalDirectory->Create(nsIFile
::DIRECTORY_TYPE, 0755))); static_assert(std::is_empty_v<typename
decltype(tryResult1055)::ok_type>); if ((__builtin_expect
(!!(tryResult1055.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(journalDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12033, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(journalDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))"
, tryTempError, nullptr); }}
;
12034 }
12035
12036 return journalDirectory;
12037}
12038
12039// static
12040nsCOMPtr<nsIFile> DatabaseFileManager::GetFileForId(nsIFile* aDirectory,
12041 int64_t aId) {
12042 MOZ_ASSERT(aDirectory)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDirectory)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDirectory))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12042); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectory"
")"); do { MOZ_CrashSequence(__null, 12042); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12043 MOZ_ASSERT(aId > 0)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aId > 0))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12043); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aId > 0"
")"); do { MOZ_CrashSequence(__null, 12043); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12044
12045 QM_TRY_RETURN(CloneFileAndAppend(*aDirectory, IntToString(aId)), nullptr){auto tryResult1056 = (CloneFileAndAppend(*aDirectory, IntToString
(aId))); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))
) { [[maybe_unused]] auto tryTempError = tryResult1056.unwrapErr
(); mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, IntToString(aId))"
, tryResult1056.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12045, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "CloneFileAndAppend(*aDirectory, IntToString(aId))"
, tryTempError, nullptr); } return tryResult1056.unwrap();}
;
12046}
12047
12048// static
12049nsCOMPtr<nsIFile> DatabaseFileManager::GetCheckedFileForId(nsIFile* aDirectory,
12050 int64_t aId) {
12051 auto file = GetFileForId(aDirectory, aId);
12052 if (NS_WARN_IF(!file)NS_warn_if_impl(!file, "!file", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12052)
) {
12053 return nullptr;
12054 }
12055
12056 DebugOnly<bool> exists;
12057 MOZ_ASSERT(NS_SUCCEEDED(file->Exists(&exists)))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(file->
Exists(&exists))), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(file->Exists(&exists))), 1)))))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(file->Exists(&exists))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12057
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(file->Exists(&exists))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12057); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12058 MOZ_ASSERT(exists)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(exists)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(exists))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("exists", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12058); AnnotateMozCrashReason("MOZ_ASSERT" "(" "exists" ")"
); do { MOZ_CrashSequence(__null, 12058); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
12059
12060 DebugOnly<bool> isFile;
12061 MOZ_ASSERT(NS_SUCCEEDED(file->IsFile(&isFile)))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(file->
IsFile(&isFile))), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(file->IsFile(&isFile))), 1)))))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(file->IsFile(&isFile))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12061
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(file->IsFile(&isFile))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12061); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12062 MOZ_ASSERT(isFile)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(isFile)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(isFile))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isFile", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12062); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isFile" ")"
); do { MOZ_CrashSequence(__null, 12062); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
12063
12064 return file;
12065}
12066
12067// static
12068nsresult DatabaseFileManager::InitDirectory(nsIFile& aDirectory,
12069 nsIFile& aDatabaseFile,
12070 const nsACString& aOrigin,
12071 uint32_t aTelemetryId) {
12072 AssertIsOnIOThread();
12073
12074 {
12075 QM_TRY_INSPECT(const bool& exists,auto tryResult1057 = (::mozilla::ToResultInvokeMember( (aDirectory
), &::mozilla::detail::DerefedType<decltype(aDirectory
)>::Exists )); if ((__builtin_expect(!!(tryResult1057.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDirectory), &::mozilla::detail::DerefedType<decltype(aDirectory)>::Exists )"
, tryResult1057.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12076, mozilla::dom::quota::Severity::Error); return tryResult1057
.propagateErr(); } const bool& exists = tryResult1057.inspect
();
12076 MOZ_TO_RESULT_INVOKE_MEMBER(aDirectory, Exists))auto tryResult1057 = (::mozilla::ToResultInvokeMember( (aDirectory
), &::mozilla::detail::DerefedType<decltype(aDirectory
)>::Exists )); if ((__builtin_expect(!!(tryResult1057.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDirectory), &::mozilla::detail::DerefedType<decltype(aDirectory)>::Exists )"
, tryResult1057.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12076, mozilla::dom::quota::Severity::Error); return tryResult1057
.propagateErr(); } const bool& exists = tryResult1057.inspect
();
;
12077
12078 if (!exists) {
12079 return NS_OK;
12080 }
12081
12082 QM_TRY_INSPECT(const bool& isDirectory,auto tryResult1058 = (::mozilla::ToResultInvokeMember( (aDirectory
), &::mozilla::detail::DerefedType<decltype(aDirectory
)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1058
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDirectory), &::mozilla::detail::DerefedType<decltype(aDirectory)>::IsDirectory )"
, tryResult1058.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12083, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); } const bool& isDirectory = tryResult1058
.inspect();
12083 MOZ_TO_RESULT_INVOKE_MEMBER(aDirectory, IsDirectory))auto tryResult1058 = (::mozilla::ToResultInvokeMember( (aDirectory
), &::mozilla::detail::DerefedType<decltype(aDirectory
)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1058
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDirectory), &::mozilla::detail::DerefedType<decltype(aDirectory)>::IsDirectory )"
, tryResult1058.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12083, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); } const bool& isDirectory = tryResult1058
.inspect();
;
12084 QM_TRY(OkIf(isDirectory), NS_ERROR_FAILURE){auto tryResult1059 = (OkIf(isDirectory)); static_assert(std::
is_empty_v<typename decltype(tryResult1059)::ok_type>);
if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { [[maybe_unused
]] auto tryTempError = tryResult1059.unwrapErr(); mozilla::dom
::quota::HandleError("OkIf(isDirectory)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12084, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError
, NS_ERROR_FAILURE); }}
;
12085 }
12086
12087 QM_TRY_INSPECT(const auto& journalDirectory,auto tryResult1060 = (CloneFileAndAppend(aDirectory, kJournalDirectoryName
)); if ((__builtin_expect(!!(tryResult1060.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(aDirectory, kJournalDirectoryName)"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12088, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); } const auto& journalDirectory = tryResult1060
.inspect();
12088 CloneFileAndAppend(aDirectory, kJournalDirectoryName))auto tryResult1060 = (CloneFileAndAppend(aDirectory, kJournalDirectoryName
)); if ((__builtin_expect(!!(tryResult1060.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(aDirectory, kJournalDirectoryName)"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12088, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); } const auto& journalDirectory = tryResult1060
.inspect();
;
12089
12090 QM_TRY_INSPECT(const bool& exists,auto tryResult1061 = (::mozilla::ToResultInvokeMember( (journalDirectory
), &::mozilla::detail::DerefedType<decltype(journalDirectory
)>::Exists )); if ((__builtin_expect(!!(tryResult1061.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::Exists )"
, tryResult1061.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12091, mozilla::dom::quota::Severity::Error); return tryResult1061
.propagateErr(); } const bool& exists = tryResult1061.inspect
();
12091 MOZ_TO_RESULT_INVOKE_MEMBER(journalDirectory, Exists))auto tryResult1061 = (::mozilla::ToResultInvokeMember( (journalDirectory
), &::mozilla::detail::DerefedType<decltype(journalDirectory
)>::Exists )); if ((__builtin_expect(!!(tryResult1061.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::Exists )"
, tryResult1061.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12091, mozilla::dom::quota::Severity::Error); return tryResult1061
.propagateErr(); } const bool& exists = tryResult1061.inspect
();
;
12092
12093 if (exists) {
12094 QM_TRY_INSPECT(const bool& isDirectory,auto tryResult1062 = (::mozilla::ToResultInvokeMember( (journalDirectory
), &::mozilla::detail::DerefedType<decltype(journalDirectory
)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1062
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::IsDirectory )"
, tryResult1062.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12095, mozilla::dom::quota::Severity::Error); return tryResult1062
.propagateErr(); } const bool& isDirectory = tryResult1062
.inspect();
12095 MOZ_TO_RESULT_INVOKE_MEMBER(journalDirectory, IsDirectory))auto tryResult1062 = (::mozilla::ToResultInvokeMember( (journalDirectory
), &::mozilla::detail::DerefedType<decltype(journalDirectory
)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1062
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::IsDirectory )"
, tryResult1062.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12095, mozilla::dom::quota::Severity::Error); return tryResult1062
.propagateErr(); } const bool& isDirectory = tryResult1062
.inspect();
;
12096 QM_TRY(OkIf(isDirectory), NS_ERROR_FAILURE){auto tryResult1063 = (OkIf(isDirectory)); static_assert(std::
is_empty_v<typename decltype(tryResult1063)::ok_type>);
if ((__builtin_expect(!!(tryResult1063.isErr()), 0))) { [[maybe_unused
]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom
::quota::HandleError("OkIf(isDirectory)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12096, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError
, NS_ERROR_FAILURE); }}
;
12097
12098 bool hasJournals = false;
12099
12100 QM_TRY(CollectEachFile({auto tryResult1065 = (CollectEachFile( *journalDirectory, [&
hasJournals](const nsCOMPtr<nsIFile>& file) -> Result
<Ok, nsresult> { auto tryResult1064 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect
(!!(tryResult1064.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1064.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12105, mozilla::dom::quota::Severity::Error); return tryResult1064
.propagateErr(); } const auto& leafName = tryResult1064.inspect
();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(
__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals
= true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString
( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8
(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12112); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1065)::ok_type>); if ((__builtin_expect
(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1064 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1064.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12105, mozilla::dom::quota::Severity::Error); return tryResult1064.propagateErr(); } const auto& leafName = tryResult1064.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12112); } return Ok{}; })"
, tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, mozilla::dom::quota::Severity::Error); return tryResult1065
.propagateErr(); }}
12101 *journalDirectory,{auto tryResult1065 = (CollectEachFile( *journalDirectory, [&
hasJournals](const nsCOMPtr<nsIFile>& file) -> Result
<Ok, nsresult> { auto tryResult1064 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect
(!!(tryResult1064.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1064.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12105, mozilla::dom::quota::Severity::Error); return tryResult1064
.propagateErr(); } const auto& leafName = tryResult1064.inspect
();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(
__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals
= true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString
( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8
(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12112); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1065)::ok_type>); if ((__builtin_expect
(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1064 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1064.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12105, mozilla::dom::quota::Severity::Error); return tryResult1064.propagateErr(); } const auto& leafName = tryResult1064.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12112); } return Ok{}; })"
, tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, mozilla::dom::quota::Severity::Error); return tryResult1065
.propagateErr(); }}
12102 [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> {{auto tryResult1065 = (CollectEachFile( *journalDirectory, [&
hasJournals](const nsCOMPtr<nsIFile>& file) -> Result
<Ok, nsresult> { auto tryResult1064 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect
(!!(tryResult1064.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1064.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12105, mozilla::dom::quota::Severity::Error); return tryResult1064
.propagateErr(); } const auto& leafName = tryResult1064.inspect
();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(
__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals
= true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString
( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8
(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12112); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1065)::ok_type>); if ((__builtin_expect
(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1064 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1064.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12105, mozilla::dom::quota::Severity::Error); return tryResult1064.propagateErr(); } const auto& leafName = tryResult1064.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12112); } return Ok{}; })"
, tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, mozilla::dom::quota::Severity::Error); return tryResult1065
.propagateErr(); }}
12103 QM_TRY_INSPECT({auto tryResult1065 = (CollectEachFile( *journalDirectory, [&
hasJournals](const nsCOMPtr<nsIFile>& file) -> Result
<Ok, nsresult> { auto tryResult1064 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect
(!!(tryResult1064.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1064.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12105, mozilla::dom::quota::Severity::Error); return tryResult1064
.propagateErr(); } const auto& leafName = tryResult1064.inspect
();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(
__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals
= true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString
( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8
(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12112); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1065)::ok_type>); if ((__builtin_expect
(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1064 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1064.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12105, mozilla::dom::quota::Severity::Error); return tryResult1064.propagateErr(); } const auto& leafName = tryResult1064.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12112); } return Ok{}; })"
, tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, mozilla::dom::quota::Severity::Error); return tryResult1065
.propagateErr(); }}
12104 const auto& leafName,{auto tryResult1065 = (CollectEachFile( *journalDirectory, [&
hasJournals](const nsCOMPtr<nsIFile>& file) -> Result
<Ok, nsresult> { auto tryResult1064 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect
(!!(tryResult1064.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1064.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12105, mozilla::dom::quota::Severity::Error); return tryResult1064
.propagateErr(); } const auto& leafName = tryResult1064.inspect
();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(
__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals
= true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString
( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8
(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12112); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1065)::ok_type>); if ((__builtin_expect
(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1064 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1064.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12105, mozilla::dom::quota::Severity::Error); return tryResult1064.propagateErr(); } const auto& leafName = tryResult1064.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12112); } return Ok{}; })"
, tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, mozilla::dom::quota::Severity::Error); return tryResult1065
.propagateErr(); }}
12105 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsString, file, GetLeafName));{auto tryResult1065 = (CollectEachFile( *journalDirectory, [&
hasJournals](const nsCOMPtr<nsIFile>& file) -> Result
<Ok, nsresult> { auto tryResult1064 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect
(!!(tryResult1064.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1064.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12105, mozilla::dom::quota::Severity::Error); return tryResult1064
.propagateErr(); } const auto& leafName = tryResult1064.inspect
();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(
__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals
= true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString
( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8
(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12112); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1065)::ok_type>); if ((__builtin_expect
(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1064 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1064.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12105, mozilla::dom::quota::Severity::Error); return tryResult1064.propagateErr(); } const auto& leafName = tryResult1064.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12112); } return Ok{}; })"
, tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, mozilla::dom::quota::Severity::Error); return tryResult1065
.propagateErr(); }}
12106
12107 nsresult rv;{auto tryResult1065 = (CollectEachFile( *journalDirectory, [&
hasJournals](const nsCOMPtr<nsIFile>& file) -> Result
<Ok, nsresult> { auto tryResult1064 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect
(!!(tryResult1064.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1064.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12105, mozilla::dom::quota::Severity::Error); return tryResult1064
.propagateErr(); } const auto& leafName = tryResult1064.inspect
();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(
__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals
= true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString
( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8
(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12112); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1065)::ok_type>); if ((__builtin_expect
(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1064 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1064.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12105, mozilla::dom::quota::Severity::Error); return tryResult1064.propagateErr(); } const auto& leafName = tryResult1064.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12112); } return Ok{}; })"
, tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, mozilla::dom::quota::Severity::Error); return tryResult1065
.propagateErr(); }}
12108 leafName.ToInteger64(&rv);{auto tryResult1065 = (CollectEachFile( *journalDirectory, [&
hasJournals](const nsCOMPtr<nsIFile>& file) -> Result
<Ok, nsresult> { auto tryResult1064 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect
(!!(tryResult1064.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1064.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12105, mozilla::dom::quota::Severity::Error); return tryResult1064
.propagateErr(); } const auto& leafName = tryResult1064.inspect
();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(
__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals
= true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString
( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8
(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12112); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1065)::ok_type>); if ((__builtin_expect
(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1064 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1064.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12105, mozilla::dom::quota::Severity::Error); return tryResult1064.propagateErr(); } const auto& leafName = tryResult1064.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12112); } return Ok{}; })"
, tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, mozilla::dom::quota::Severity::Error); return tryResult1065
.propagateErr(); }}
12109 if (NS_SUCCEEDED(rv)) {{auto tryResult1065 = (CollectEachFile( *journalDirectory, [&
hasJournals](const nsCOMPtr<nsIFile>& file) -> Result
<Ok, nsresult> { auto tryResult1064 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect
(!!(tryResult1064.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1064.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12105, mozilla::dom::quota::Severity::Error); return tryResult1064
.propagateErr(); } const auto& leafName = tryResult1064.inspect
();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(
__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals
= true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString
( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8
(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12112); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1065)::ok_type>); if ((__builtin_expect
(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1064 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1064.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12105, mozilla::dom::quota::Severity::Error); return tryResult1064.propagateErr(); } const auto& leafName = tryResult1064.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12112); } return Ok{}; })"
, tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, mozilla::dom::quota::Severity::Error); return tryResult1065
.propagateErr(); }}
12110 hasJournals = true;{auto tryResult1065 = (CollectEachFile( *journalDirectory, [&
hasJournals](const nsCOMPtr<nsIFile>& file) -> Result
<Ok, nsresult> { auto tryResult1064 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect
(!!(tryResult1064.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1064.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12105, mozilla::dom::quota::Severity::Error); return tryResult1064
.propagateErr(); } const auto& leafName = tryResult1064.inspect
();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(
__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals
= true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString
( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8
(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12112); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1065)::ok_type>); if ((__builtin_expect
(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1064 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1064.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12105, mozilla::dom::quota::Severity::Error); return tryResult1064.propagateErr(); } const auto& leafName = tryResult1064.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12112); } return Ok{}; })"
, tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, mozilla::dom::quota::Severity::Error); return tryResult1065
.propagateErr(); }}
12111 } else {{auto tryResult1065 = (CollectEachFile( *journalDirectory, [&
hasJournals](const nsCOMPtr<nsIFile>& file) -> Result
<Ok, nsresult> { auto tryResult1064 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect
(!!(tryResult1064.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1064.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12105, mozilla::dom::quota::Severity::Error); return tryResult1064
.propagateErr(); } const auto& leafName = tryResult1064.inspect
();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(
__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals
= true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString
( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8
(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12112); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1065)::ok_type>); if ((__builtin_expect
(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1064 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1064.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12105, mozilla::dom::quota::Severity::Error); return tryResult1064.propagateErr(); } const auto& leafName = tryResult1064.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12112); } return Ok{}; })"
, tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, mozilla::dom::quota::Severity::Error); return tryResult1065
.propagateErr(); }}
12112 UNKNOWN_FILE_WARNING(leafName);{auto tryResult1065 = (CollectEachFile( *journalDirectory, [&
hasJournals](const nsCOMPtr<nsIFile>& file) -> Result
<Ok, nsresult> { auto tryResult1064 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect
(!!(tryResult1064.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1064.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12105, mozilla::dom::quota::Severity::Error); return tryResult1064
.propagateErr(); } const auto& leafName = tryResult1064.inspect
();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(
__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals
= true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString
( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8
(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12112); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1065)::ok_type>); if ((__builtin_expect
(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1064 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1064.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12105, mozilla::dom::quota::Severity::Error); return tryResult1064.propagateErr(); } const auto& leafName = tryResult1064.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12112); } return Ok{}; })"
, tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, mozilla::dom::quota::Severity::Error); return tryResult1065
.propagateErr(); }}
12113 }{auto tryResult1065 = (CollectEachFile( *journalDirectory, [&
hasJournals](const nsCOMPtr<nsIFile>& file) -> Result
<Ok, nsresult> { auto tryResult1064 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect
(!!(tryResult1064.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1064.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12105, mozilla::dom::quota::Severity::Error); return tryResult1064
.propagateErr(); } const auto& leafName = tryResult1064.inspect
();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(
__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals
= true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString
( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8
(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12112); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1065)::ok_type>); if ((__builtin_expect
(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1064 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1064.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12105, mozilla::dom::quota::Severity::Error); return tryResult1064.propagateErr(); } const auto& leafName = tryResult1064.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12112); } return Ok{}; })"
, tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, mozilla::dom::quota::Severity::Error); return tryResult1065
.propagateErr(); }}
12114
12115 return Ok{};{auto tryResult1065 = (CollectEachFile( *journalDirectory, [&
hasJournals](const nsCOMPtr<nsIFile>& file) -> Result
<Ok, nsresult> { auto tryResult1064 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect
(!!(tryResult1064.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1064.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12105, mozilla::dom::quota::Severity::Error); return tryResult1064
.propagateErr(); } const auto& leafName = tryResult1064.inspect
();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(
__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals
= true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString
( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8
(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12112); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1065)::ok_type>); if ((__builtin_expect
(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1064 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1064.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12105, mozilla::dom::quota::Severity::Error); return tryResult1064.propagateErr(); } const auto& leafName = tryResult1064.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12112); } return Ok{}; })"
, tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, mozilla::dom::quota::Severity::Error); return tryResult1065
.propagateErr(); }}
12116 })){auto tryResult1065 = (CollectEachFile( *journalDirectory, [&
hasJournals](const nsCOMPtr<nsIFile>& file) -> Result
<Ok, nsresult> { auto tryResult1064 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect
(!!(tryResult1064.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1064.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12105, mozilla::dom::quota::Severity::Error); return tryResult1064
.propagateErr(); } const auto& leafName = tryResult1064.inspect
();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(
__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals
= true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString
( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8
(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12112); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1065)::ok_type>); if ((__builtin_expect
(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1064 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1064.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12105, mozilla::dom::quota::Severity::Error); return tryResult1064.propagateErr(); } const auto& leafName = tryResult1064.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12112); } return Ok{}; })"
, tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, mozilla::dom::quota::Severity::Error); return tryResult1065
.propagateErr(); }}
;
12117
12118 if (hasJournals) {
12119 QM_TRY_UNWRAP(const NotNull<nsCOMPtr<mozIStorageConnection>> connection,auto tryResult1066 = (CreateStorageConnection( aDatabaseFile,
aDirectory, VoidString(), aOrigin, -1, aTelemetryId, Nothing
{})); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) {
mozilla::dom::quota::HandleError("CreateStorageConnection( aDatabaseFile, aDirectory, VoidString(), aOrigin, -1, aTelemetryId, Nothing{})"
, tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12122, mozilla::dom::quota::Severity::Error); return tryResult1066
.propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1066.unwrap();
12120 CreateStorageConnection(auto tryResult1066 = (CreateStorageConnection( aDatabaseFile,
aDirectory, VoidString(), aOrigin, -1, aTelemetryId, Nothing
{})); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) {
mozilla::dom::quota::HandleError("CreateStorageConnection( aDatabaseFile, aDirectory, VoidString(), aOrigin, -1, aTelemetryId, Nothing{})"
, tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12122, mozilla::dom::quota::Severity::Error); return tryResult1066
.propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1066.unwrap();
12121 aDatabaseFile, aDirectory, VoidString(), aOrigin,auto tryResult1066 = (CreateStorageConnection( aDatabaseFile,
aDirectory, VoidString(), aOrigin, -1, aTelemetryId, Nothing
{})); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) {
mozilla::dom::quota::HandleError("CreateStorageConnection( aDatabaseFile, aDirectory, VoidString(), aOrigin, -1, aTelemetryId, Nothing{})"
, tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12122, mozilla::dom::quota::Severity::Error); return tryResult1066
.propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1066.unwrap();
12122 /* aDirectoryLockId */ -1, aTelemetryId, Nothing{}))auto tryResult1066 = (CreateStorageConnection( aDatabaseFile,
aDirectory, VoidString(), aOrigin, -1, aTelemetryId, Nothing
{})); if ((__builtin_expect(!!(tryResult1066.isErr()), 0))) {
mozilla::dom::quota::HandleError("CreateStorageConnection( aDatabaseFile, aDirectory, VoidString(), aOrigin, -1, aTelemetryId, Nothing{})"
, tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12122, mozilla::dom::quota::Severity::Error); return tryResult1066
.propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1066.unwrap();
;
12123
12124 mozStorageTransaction transaction(connection.get(), false);
12125
12126 QM_TRY(MOZ_TO_RESULT(transaction.Start())){auto tryResult1067 = (ToResult(transaction.Start())); static_assert
(std::is_empty_v<typename decltype(tryResult1067)::ok_type
>); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(transaction.Start())"
, tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12126, mozilla::dom::quota::Severity::Error); return tryResult1067
.propagateErr(); }}
12127
12128 QM_TRY(MOZ_TO_RESULT(connection->ExecuteSimpleSQL({auto tryResult1068 = (ToResult(connection->ExecuteSimpleSQL
( "CREATE VIRTUAL TABLE fs USING filesystem;"_ns))); static_assert
(std::is_empty_v<typename decltype(tryResult1068)::ok_type
>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(connection->ExecuteSimpleSQL( \"CREATE VIRTUAL TABLE fs USING filesystem;\"_ns))"
, tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12129, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); }}
12129 "CREATE VIRTUAL TABLE fs USING filesystem;"_ns))){auto tryResult1068 = (ToResult(connection->ExecuteSimpleSQL
( "CREATE VIRTUAL TABLE fs USING filesystem;"_ns))); static_assert
(std::is_empty_v<typename decltype(tryResult1068)::ok_type
>); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(connection->ExecuteSimpleSQL( \"CREATE VIRTUAL TABLE fs USING filesystem;\"_ns))"
, tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12129, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); }}
;
12130
12131 // The parameter names are not used, parameters are bound by index only
12132 // locally in the same function.
12133 QM_TRY_INSPECT(auto tryResult1069 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(*connection)>::CreateStatement
), (*connection), "SELECT name, (name IN (SELECT id FROM file)) FROM fs WHERE path = :path"_ns
)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*connection)>::CreateStatement), (*connection), \"SELECT name, (name IN (SELECT id FROM file)) FROM fs WHERE path = :path\"_ns)"
, tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12137, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& stmt = tryResult1069.inspect
();
12134 const auto& stmt,auto tryResult1069 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(*connection)>::CreateStatement
), (*connection), "SELECT name, (name IN (SELECT id FROM file)) FROM fs WHERE path = :path"_ns
)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*connection)>::CreateStatement), (*connection), \"SELECT name, (name IN (SELECT id FROM file)) FROM fs WHERE path = :path\"_ns)"
, tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12137, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& stmt = tryResult1069.inspect
();
12135 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1069 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(*connection)>::CreateStatement
), (*connection), "SELECT name, (name IN (SELECT id FROM file)) FROM fs WHERE path = :path"_ns
)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*connection)>::CreateStatement), (*connection), \"SELECT name, (name IN (SELECT id FROM file)) FROM fs WHERE path = :path\"_ns)"
, tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12137, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& stmt = tryResult1069.inspect
();
12136 nsCOMPtr<mozIStorageStatement>, *connection, CreateStatement,auto tryResult1069 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(*connection)>::CreateStatement
), (*connection), "SELECT name, (name IN (SELECT id FROM file)) FROM fs WHERE path = :path"_ns
)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*connection)>::CreateStatement), (*connection), \"SELECT name, (name IN (SELECT id FROM file)) FROM fs WHERE path = :path\"_ns)"
, tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12137, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& stmt = tryResult1069.inspect
();
12137 "SELECT name, (name IN (SELECT id FROM file)) FROM fs WHERE path = :path"_ns))auto tryResult1069 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(*connection)>::CreateStatement
), (*connection), "SELECT name, (name IN (SELECT id FROM file)) FROM fs WHERE path = :path"_ns
)); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*connection)>::CreateStatement), (*connection), \"SELECT name, (name IN (SELECT id FROM file)) FROM fs WHERE path = :path\"_ns)"
, tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12137, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); } const auto& stmt = tryResult1069.inspect
();
;
12138
12139 QM_TRY_INSPECT(const auto& path,auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(journalDirectory)>::GetPath), (journalDirectory) )); if (
(__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(journalDirectory)>::GetPath), (journalDirectory) )"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12141, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& path = tryResult1070.inspect
();
12140 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(journalDirectory)>::GetPath), (journalDirectory) )); if (
(__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(journalDirectory)>::GetPath), (journalDirectory) )"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12141, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& path = tryResult1070.inspect
();
12141 nsString, journalDirectory, GetPath))auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(journalDirectory)>::GetPath), (journalDirectory) )); if (
(__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(journalDirectory)>::GetPath), (journalDirectory) )"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12141, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& path = tryResult1070.inspect
();
;
12142
12143 QM_TRY(MOZ_TO_RESULT(stmt->BindStringByIndex(0, path))){auto tryResult1071 = (ToResult(stmt->BindStringByIndex(0,
path))); static_assert(std::is_empty_v<typename decltype(
tryResult1071)::ok_type>); if ((__builtin_expect(!!(tryResult1071
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindStringByIndex(0, path))"
, tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12143, mozilla::dom::quota::Severity::Error); return tryResult1071
.propagateErr(); }}
;
12144
12145 QM_TRY(CollectWhileHasResult({auto tryResult1077 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1072 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12149, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if
(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return
Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1073
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1073.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12161
, mozilla::dom::quota::Severity::Error); return tryResult1073
.propagateErr(); } const auto& file = tryResult1073.inspect
();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1074
{ ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted
, ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1075
= (ToResult(file->Remove(false))); static_assert(std::is_empty_v
<typename decltype(tryResult1075)::ok_type>); if ((__builtin_expect
(!!(tryResult1075.isErr()), 0))) { auto tryTempError = tryResult1075
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12168, mozilla::dom::quota::Severity::Warning); [](const auto
&) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12167); }(tryTempError); }}; } auto tryResult1076 = (CloneFileAndAppend
(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1076
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12172, mozilla::dom::quota::Severity::Error); return tryResult1076
.propagateErr(); } const auto& journalFile = tryResult1076
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12175); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect
(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1072 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1072.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12149, mozilla::dom::quota::Severity::Error); return tryResult1072.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1073 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1073.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12161, mozilla::dom::quota::Severity::Error); return tryResult1073.propagateErr(); } const auto& file = tryResult1073.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1074 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1075 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1075)::ok_type>); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { auto tryTempError = tryResult1075.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12168, mozilla::dom::quota::Severity::Warning); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12167); }(tryTempError); }}; } auto tryResult1076 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12172, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const auto& journalFile = tryResult1076.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12175); } return Ok{}; })"
, tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12179, mozilla::dom::quota::Severity::Error); return tryResult1077
.propagateErr(); }}
12146 *stmt,{auto tryResult1077 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1072 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12149, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if
(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return
Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1073
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1073.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12161
, mozilla::dom::quota::Severity::Error); return tryResult1073
.propagateErr(); } const auto& file = tryResult1073.inspect
();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1074
{ ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted
, ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1075
= (ToResult(file->Remove(false))); static_assert(std::is_empty_v
<typename decltype(tryResult1075)::ok_type>); if ((__builtin_expect
(!!(tryResult1075.isErr()), 0))) { auto tryTempError = tryResult1075
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12168, mozilla::dom::quota::Severity::Warning); [](const auto
&) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12167); }(tryTempError); }}; } auto tryResult1076 = (CloneFileAndAppend
(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1076
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12172, mozilla::dom::quota::Severity::Error); return tryResult1076
.propagateErr(); } const auto& journalFile = tryResult1076
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12175); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect
(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1072 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1072.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12149, mozilla::dom::quota::Severity::Error); return tryResult1072.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1073 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1073.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12161, mozilla::dom::quota::Severity::Error); return tryResult1073.propagateErr(); } const auto& file = tryResult1073.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1074 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1075 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1075)::ok_type>); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { auto tryTempError = tryResult1075.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12168, mozilla::dom::quota::Severity::Warning); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12167); }(tryTempError); }}; } auto tryResult1076 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12172, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const auto& journalFile = tryResult1076.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12175); } return Ok{}; })"
, tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12179, mozilla::dom::quota::Severity::Error); return tryResult1077
.propagateErr(); }}
12147 [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> {{auto tryResult1077 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1072 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12149, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if
(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return
Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1073
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1073.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12161
, mozilla::dom::quota::Severity::Error); return tryResult1073
.propagateErr(); } const auto& file = tryResult1073.inspect
();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1074
{ ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted
, ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1075
= (ToResult(file->Remove(false))); static_assert(std::is_empty_v
<typename decltype(tryResult1075)::ok_type>); if ((__builtin_expect
(!!(tryResult1075.isErr()), 0))) { auto tryTempError = tryResult1075
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12168, mozilla::dom::quota::Severity::Warning); [](const auto
&) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12167); }(tryTempError); }}; } auto tryResult1076 = (CloneFileAndAppend
(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1076
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12172, mozilla::dom::quota::Severity::Error); return tryResult1076
.propagateErr(); } const auto& journalFile = tryResult1076
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12175); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect
(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1072 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1072.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12149, mozilla::dom::quota::Severity::Error); return tryResult1072.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1073 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1073.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12161, mozilla::dom::quota::Severity::Error); return tryResult1073.propagateErr(); } const auto& file = tryResult1073.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1074 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1075 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1075)::ok_type>); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { auto tryTempError = tryResult1075.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12168, mozilla::dom::quota::Severity::Warning); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12167); }(tryTempError); }}; } auto tryResult1076 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12172, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const auto& journalFile = tryResult1076.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12175); } return Ok{}; })"
, tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12179, mozilla::dom::quota::Severity::Error); return tryResult1077
.propagateErr(); }}
12148 nsString name;{auto tryResult1077 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1072 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12149, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if
(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return
Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1073
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1073.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12161
, mozilla::dom::quota::Severity::Error); return tryResult1073
.propagateErr(); } const auto& file = tryResult1073.inspect
();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1074
{ ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted
, ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1075
= (ToResult(file->Remove(false))); static_assert(std::is_empty_v
<typename decltype(tryResult1075)::ok_type>); if ((__builtin_expect
(!!(tryResult1075.isErr()), 0))) { auto tryTempError = tryResult1075
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12168, mozilla::dom::quota::Severity::Warning); [](const auto
&) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12167); }(tryTempError); }}; } auto tryResult1076 = (CloneFileAndAppend
(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1076
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12172, mozilla::dom::quota::Severity::Error); return tryResult1076
.propagateErr(); } const auto& journalFile = tryResult1076
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12175); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect
(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1072 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1072.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12149, mozilla::dom::quota::Severity::Error); return tryResult1072.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1073 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1073.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12161, mozilla::dom::quota::Severity::Error); return tryResult1073.propagateErr(); } const auto& file = tryResult1073.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1074 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1075 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1075)::ok_type>); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { auto tryTempError = tryResult1075.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12168, mozilla::dom::quota::Severity::Warning); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12167); }(tryTempError); }}; } auto tryResult1076 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12172, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const auto& journalFile = tryResult1076.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12175); } return Ok{}; })"
, tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12179, mozilla::dom::quota::Severity::Error); return tryResult1077
.propagateErr(); }}
12149 QM_TRY(MOZ_TO_RESULT(stmt.GetString(0, name)));{auto tryResult1077 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1072 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12149, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if
(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return
Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1073
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1073.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12161
, mozilla::dom::quota::Severity::Error); return tryResult1073
.propagateErr(); } const auto& file = tryResult1073.inspect
();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1074
{ ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted
, ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1075
= (ToResult(file->Remove(false))); static_assert(std::is_empty_v
<typename decltype(tryResult1075)::ok_type>); if ((__builtin_expect
(!!(tryResult1075.isErr()), 0))) { auto tryTempError = tryResult1075
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12168, mozilla::dom::quota::Severity::Warning); [](const auto
&) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12167); }(tryTempError); }}; } auto tryResult1076 = (CloneFileAndAppend
(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1076
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12172, mozilla::dom::quota::Severity::Error); return tryResult1076
.propagateErr(); } const auto& journalFile = tryResult1076
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12175); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect
(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1072 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1072.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12149, mozilla::dom::quota::Severity::Error); return tryResult1072.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1073 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1073.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12161, mozilla::dom::quota::Severity::Error); return tryResult1073.propagateErr(); } const auto& file = tryResult1073.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1074 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1075 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1075)::ok_type>); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { auto tryTempError = tryResult1075.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12168, mozilla::dom::quota::Severity::Warning); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12167); }(tryTempError); }}; } auto tryResult1076 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12172, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const auto& journalFile = tryResult1076.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12175); } return Ok{}; })"
, tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12179, mozilla::dom::quota::Severity::Error); return tryResult1077
.propagateErr(); }}
12150
12151 nsresult rv;{auto tryResult1077 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1072 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12149, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if
(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return
Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1073
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1073.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12161
, mozilla::dom::quota::Severity::Error); return tryResult1073
.propagateErr(); } const auto& file = tryResult1073.inspect
();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1074
{ ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted
, ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1075
= (ToResult(file->Remove(false))); static_assert(std::is_empty_v
<typename decltype(tryResult1075)::ok_type>); if ((__builtin_expect
(!!(tryResult1075.isErr()), 0))) { auto tryTempError = tryResult1075
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12168, mozilla::dom::quota::Severity::Warning); [](const auto
&) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12167); }(tryTempError); }}; } auto tryResult1076 = (CloneFileAndAppend
(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1076
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12172, mozilla::dom::quota::Severity::Error); return tryResult1076
.propagateErr(); } const auto& journalFile = tryResult1076
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12175); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect
(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1072 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1072.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12149, mozilla::dom::quota::Severity::Error); return tryResult1072.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1073 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1073.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12161, mozilla::dom::quota::Severity::Error); return tryResult1073.propagateErr(); } const auto& file = tryResult1073.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1074 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1075 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1075)::ok_type>); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { auto tryTempError = tryResult1075.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12168, mozilla::dom::quota::Severity::Warning); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12167); }(tryTempError); }}; } auto tryResult1076 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12172, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const auto& journalFile = tryResult1076.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12175); } return Ok{}; })"
, tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12179, mozilla::dom::quota::Severity::Error); return tryResult1077
.propagateErr(); }}
12152 name.ToInteger64(&rv);{auto tryResult1077 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1072 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12149, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if
(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return
Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1073
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1073.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12161
, mozilla::dom::quota::Severity::Error); return tryResult1073
.propagateErr(); } const auto& file = tryResult1073.inspect
();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1074
{ ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted
, ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1075
= (ToResult(file->Remove(false))); static_assert(std::is_empty_v
<typename decltype(tryResult1075)::ok_type>); if ((__builtin_expect
(!!(tryResult1075.isErr()), 0))) { auto tryTempError = tryResult1075
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12168, mozilla::dom::quota::Severity::Warning); [](const auto
&) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12167); }(tryTempError); }}; } auto tryResult1076 = (CloneFileAndAppend
(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1076
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12172, mozilla::dom::quota::Severity::Error); return tryResult1076
.propagateErr(); } const auto& journalFile = tryResult1076
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12175); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect
(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1072 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1072.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12149, mozilla::dom::quota::Severity::Error); return tryResult1072.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1073 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1073.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12161, mozilla::dom::quota::Severity::Error); return tryResult1073.propagateErr(); } const auto& file = tryResult1073.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1074 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1075 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1075)::ok_type>); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { auto tryTempError = tryResult1075.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12168, mozilla::dom::quota::Severity::Warning); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12167); }(tryTempError); }}; } auto tryResult1076 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12172, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const auto& journalFile = tryResult1076.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12175); } return Ok{}; })"
, tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12179, mozilla::dom::quota::Severity::Error); return tryResult1077
.propagateErr(); }}
12153 if (NS_FAILED(rv)) {{auto tryResult1077 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1072 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12149, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if
(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return
Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1073
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1073.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12161
, mozilla::dom::quota::Severity::Error); return tryResult1073
.propagateErr(); } const auto& file = tryResult1073.inspect
();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1074
{ ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted
, ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1075
= (ToResult(file->Remove(false))); static_assert(std::is_empty_v
<typename decltype(tryResult1075)::ok_type>); if ((__builtin_expect
(!!(tryResult1075.isErr()), 0))) { auto tryTempError = tryResult1075
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12168, mozilla::dom::quota::Severity::Warning); [](const auto
&) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12167); }(tryTempError); }}; } auto tryResult1076 = (CloneFileAndAppend
(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1076
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12172, mozilla::dom::quota::Severity::Error); return tryResult1076
.propagateErr(); } const auto& journalFile = tryResult1076
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12175); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect
(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1072 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1072.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12149, mozilla::dom::quota::Severity::Error); return tryResult1072.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1073 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1073.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12161, mozilla::dom::quota::Severity::Error); return tryResult1073.propagateErr(); } const auto& file = tryResult1073.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1074 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1075 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1075)::ok_type>); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { auto tryTempError = tryResult1075.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12168, mozilla::dom::quota::Severity::Warning); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12167); }(tryTempError); }}; } auto tryResult1076 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12172, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const auto& journalFile = tryResult1076.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12175); } return Ok{}; })"
, tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12179, mozilla::dom::quota::Severity::Error); return tryResult1077
.propagateErr(); }}
12154 return Ok{};{auto tryResult1077 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1072 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12149, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if
(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return
Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1073
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1073.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12161
, mozilla::dom::quota::Severity::Error); return tryResult1073
.propagateErr(); } const auto& file = tryResult1073.inspect
();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1074
{ ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted
, ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1075
= (ToResult(file->Remove(false))); static_assert(std::is_empty_v
<typename decltype(tryResult1075)::ok_type>); if ((__builtin_expect
(!!(tryResult1075.isErr()), 0))) { auto tryTempError = tryResult1075
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12168, mozilla::dom::quota::Severity::Warning); [](const auto
&) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12167); }(tryTempError); }}; } auto tryResult1076 = (CloneFileAndAppend
(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1076
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12172, mozilla::dom::quota::Severity::Error); return tryResult1076
.propagateErr(); } const auto& journalFile = tryResult1076
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12175); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect
(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1072 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1072.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12149, mozilla::dom::quota::Severity::Error); return tryResult1072.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1073 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1073.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12161, mozilla::dom::quota::Severity::Error); return tryResult1073.propagateErr(); } const auto& file = tryResult1073.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1074 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1075 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1075)::ok_type>); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { auto tryTempError = tryResult1075.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12168, mozilla::dom::quota::Severity::Warning); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12167); }(tryTempError); }}; } auto tryResult1076 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12172, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const auto& journalFile = tryResult1076.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12175); } return Ok{}; })"
, tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12179, mozilla::dom::quota::Severity::Error); return tryResult1077
.propagateErr(); }}
12155 }{auto tryResult1077 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1072 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12149, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if
(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return
Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1073
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1073.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12161
, mozilla::dom::quota::Severity::Error); return tryResult1073
.propagateErr(); } const auto& file = tryResult1073.inspect
();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1074
{ ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted
, ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1075
= (ToResult(file->Remove(false))); static_assert(std::is_empty_v
<typename decltype(tryResult1075)::ok_type>); if ((__builtin_expect
(!!(tryResult1075.isErr()), 0))) { auto tryTempError = tryResult1075
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12168, mozilla::dom::quota::Severity::Warning); [](const auto
&) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12167); }(tryTempError); }}; } auto tryResult1076 = (CloneFileAndAppend
(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1076
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12172, mozilla::dom::quota::Severity::Error); return tryResult1076
.propagateErr(); } const auto& journalFile = tryResult1076
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12175); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect
(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1072 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1072.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12149, mozilla::dom::quota::Severity::Error); return tryResult1072.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1073 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1073.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12161, mozilla::dom::quota::Severity::Error); return tryResult1073.propagateErr(); } const auto& file = tryResult1073.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1074 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1075 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1075)::ok_type>); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { auto tryTempError = tryResult1075.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12168, mozilla::dom::quota::Severity::Warning); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12167); }(tryTempError); }}; } auto tryResult1076 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12172, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const auto& journalFile = tryResult1076.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12175); } return Ok{}; })"
, tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12179, mozilla::dom::quota::Severity::Error); return tryResult1077
.propagateErr(); }}
12156
12157 int32_t flag = stmt.AsInt32(1);{auto tryResult1077 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1072 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12149, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if
(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return
Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1073
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1073.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12161
, mozilla::dom::quota::Severity::Error); return tryResult1073
.propagateErr(); } const auto& file = tryResult1073.inspect
();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1074
{ ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted
, ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1075
= (ToResult(file->Remove(false))); static_assert(std::is_empty_v
<typename decltype(tryResult1075)::ok_type>); if ((__builtin_expect
(!!(tryResult1075.isErr()), 0))) { auto tryTempError = tryResult1075
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12168, mozilla::dom::quota::Severity::Warning); [](const auto
&) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12167); }(tryTempError); }}; } auto tryResult1076 = (CloneFileAndAppend
(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1076
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12172, mozilla::dom::quota::Severity::Error); return tryResult1076
.propagateErr(); } const auto& journalFile = tryResult1076
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12175); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect
(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1072 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1072.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12149, mozilla::dom::quota::Severity::Error); return tryResult1072.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1073 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1073.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12161, mozilla::dom::quota::Severity::Error); return tryResult1073.propagateErr(); } const auto& file = tryResult1073.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1074 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1075 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1075)::ok_type>); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { auto tryTempError = tryResult1075.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12168, mozilla::dom::quota::Severity::Warning); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12167); }(tryTempError); }}; } auto tryResult1076 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12172, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const auto& journalFile = tryResult1076.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12175); } return Ok{}; })"
, tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12179, mozilla::dom::quota::Severity::Error); return tryResult1077
.propagateErr(); }}
12158
12159 if (!flag) {{auto tryResult1077 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1072 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12149, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if
(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return
Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1073
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1073.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12161
, mozilla::dom::quota::Severity::Error); return tryResult1073
.propagateErr(); } const auto& file = tryResult1073.inspect
();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1074
{ ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted
, ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1075
= (ToResult(file->Remove(false))); static_assert(std::is_empty_v
<typename decltype(tryResult1075)::ok_type>); if ((__builtin_expect
(!!(tryResult1075.isErr()), 0))) { auto tryTempError = tryResult1075
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12168, mozilla::dom::quota::Severity::Warning); [](const auto
&) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12167); }(tryTempError); }}; } auto tryResult1076 = (CloneFileAndAppend
(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1076
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12172, mozilla::dom::quota::Severity::Error); return tryResult1076
.propagateErr(); } const auto& journalFile = tryResult1076
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12175); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect
(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1072 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1072.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12149, mozilla::dom::quota::Severity::Error); return tryResult1072.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1073 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1073.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12161, mozilla::dom::quota::Severity::Error); return tryResult1073.propagateErr(); } const auto& file = tryResult1073.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1074 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1075 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1075)::ok_type>); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { auto tryTempError = tryResult1075.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12168, mozilla::dom::quota::Severity::Warning); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12167); }(tryTempError); }}; } auto tryResult1076 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12172, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const auto& journalFile = tryResult1076.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12175); } return Ok{}; })"
, tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12179, mozilla::dom::quota::Severity::Error); return tryResult1077
.propagateErr(); }}
12160 QM_TRY_INSPECT(const auto& file,{auto tryResult1077 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1072 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12149, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if
(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return
Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1073
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1073.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12161
, mozilla::dom::quota::Severity::Error); return tryResult1073
.propagateErr(); } const auto& file = tryResult1073.inspect
();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1074
{ ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted
, ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1075
= (ToResult(file->Remove(false))); static_assert(std::is_empty_v
<typename decltype(tryResult1075)::ok_type>); if ((__builtin_expect
(!!(tryResult1075.isErr()), 0))) { auto tryTempError = tryResult1075
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12168, mozilla::dom::quota::Severity::Warning); [](const auto
&) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12167); }(tryTempError); }}; } auto tryResult1076 = (CloneFileAndAppend
(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1076
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12172, mozilla::dom::quota::Severity::Error); return tryResult1076
.propagateErr(); } const auto& journalFile = tryResult1076
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12175); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect
(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1072 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1072.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12149, mozilla::dom::quota::Severity::Error); return tryResult1072.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1073 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1073.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12161, mozilla::dom::quota::Severity::Error); return tryResult1073.propagateErr(); } const auto& file = tryResult1073.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1074 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1075 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1075)::ok_type>); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { auto tryTempError = tryResult1075.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12168, mozilla::dom::quota::Severity::Warning); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12167); }(tryTempError); }}; } auto tryResult1076 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12172, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const auto& journalFile = tryResult1076.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12175); } return Ok{}; })"
, tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12179, mozilla::dom::quota::Severity::Error); return tryResult1077
.propagateErr(); }}
12161 CloneFileAndAppend(aDirectory, name));{auto tryResult1077 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1072 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12149, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if
(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return
Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1073
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1073.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12161
, mozilla::dom::quota::Severity::Error); return tryResult1073
.propagateErr(); } const auto& file = tryResult1073.inspect
();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1074
{ ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted
, ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1075
= (ToResult(file->Remove(false))); static_assert(std::is_empty_v
<typename decltype(tryResult1075)::ok_type>); if ((__builtin_expect
(!!(tryResult1075.isErr()), 0))) { auto tryTempError = tryResult1075
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12168, mozilla::dom::quota::Severity::Warning); [](const auto
&) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12167); }(tryTempError); }}; } auto tryResult1076 = (CloneFileAndAppend
(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1076
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12172, mozilla::dom::quota::Severity::Error); return tryResult1076
.propagateErr(); } const auto& journalFile = tryResult1076
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12175); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect
(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1072 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1072.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12149, mozilla::dom::quota::Severity::Error); return tryResult1072.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1073 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1073.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12161, mozilla::dom::quota::Severity::Error); return tryResult1073.propagateErr(); } const auto& file = tryResult1073.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1074 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1075 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1075)::ok_type>); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { auto tryTempError = tryResult1075.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12168, mozilla::dom::quota::Severity::Warning); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12167); }(tryTempError); }}; } auto tryResult1076 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12172, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const auto& journalFile = tryResult1076.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12175); } return Ok{}; })"
, tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12179, mozilla::dom::quota::Severity::Error); return tryResult1077
.propagateErr(); }}
12162
12163 QM_SCOPED_CONTEXT("IDBFileManager::OrphanedFileCleanupFailed"_ns);{auto tryResult1077 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1072 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12149, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if
(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return
Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1073
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1073.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12161
, mozilla::dom::quota::Severity::Error); return tryResult1073
.propagateErr(); } const auto& file = tryResult1073.inspect
();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1074
{ ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted
, ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1075
= (ToResult(file->Remove(false))); static_assert(std::is_empty_v
<typename decltype(tryResult1075)::ok_type>); if ((__builtin_expect
(!!(tryResult1075.isErr()), 0))) { auto tryTempError = tryResult1075
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12168, mozilla::dom::quota::Severity::Warning); [](const auto
&) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12167); }(tryTempError); }}; } auto tryResult1076 = (CloneFileAndAppend
(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1076
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12172, mozilla::dom::quota::Severity::Error); return tryResult1076
.propagateErr(); } const auto& journalFile = tryResult1076
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12175); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect
(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1072 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1072.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12149, mozilla::dom::quota::Severity::Error); return tryResult1072.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1073 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1073.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12161, mozilla::dom::quota::Severity::Error); return tryResult1073.propagateErr(); } const auto& file = tryResult1073.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1074 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1075 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1075)::ok_type>); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { auto tryTempError = tryResult1075.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12168, mozilla::dom::quota::Severity::Warning); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12167); }(tryTempError); }}; } auto tryResult1076 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12172, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const auto& journalFile = tryResult1076.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12175); } return Ok{}; })"
, tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12179, mozilla::dom::quota::Severity::Error); return tryResult1077
.propagateErr(); }}
12164
12165 QM_WARNONLY_TRY(MOZ_TO_RESULT(file->Remove(false)),{auto tryResult1077 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1072 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12149, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if
(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return
Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1073
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1073.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12161
, mozilla::dom::quota::Severity::Error); return tryResult1073
.propagateErr(); } const auto& file = tryResult1073.inspect
();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1074
{ ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted
, ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1075
= (ToResult(file->Remove(false))); static_assert(std::is_empty_v
<typename decltype(tryResult1075)::ok_type>); if ((__builtin_expect
(!!(tryResult1075.isErr()), 0))) { auto tryTempError = tryResult1075
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12168, mozilla::dom::quota::Severity::Warning); [](const auto
&) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12167); }(tryTempError); }}; } auto tryResult1076 = (CloneFileAndAppend
(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1076
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12172, mozilla::dom::quota::Severity::Error); return tryResult1076
.propagateErr(); } const auto& journalFile = tryResult1076
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12175); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect
(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1072 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1072.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12149, mozilla::dom::quota::Severity::Error); return tryResult1072.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1073 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1073.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12161, mozilla::dom::quota::Severity::Error); return tryResult1073.propagateErr(); } const auto& file = tryResult1073.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1074 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1075 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1075)::ok_type>); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { auto tryTempError = tryResult1075.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12168, mozilla::dom::quota::Severity::Warning); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12167); }(tryTempError); }}; } auto tryResult1076 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12172, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const auto& journalFile = tryResult1076.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12175); } return Ok{}; })"
, tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12179, mozilla::dom::quota::Severity::Error); return tryResult1077
.propagateErr(); }}
12166 [](const auto&) {{auto tryResult1077 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1072 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12149, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if
(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return
Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1073
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1073.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12161
, mozilla::dom::quota::Severity::Error); return tryResult1073
.propagateErr(); } const auto& file = tryResult1073.inspect
();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1074
{ ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted
, ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1075
= (ToResult(file->Remove(false))); static_assert(std::is_empty_v
<typename decltype(tryResult1075)::ok_type>); if ((__builtin_expect
(!!(tryResult1075.isErr()), 0))) { auto tryTempError = tryResult1075
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12168, mozilla::dom::quota::Severity::Warning); [](const auto
&) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12167); }(tryTempError); }}; } auto tryResult1076 = (CloneFileAndAppend
(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1076
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12172, mozilla::dom::quota::Severity::Error); return tryResult1076
.propagateErr(); } const auto& journalFile = tryResult1076
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12175); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect
(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1072 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1072.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12149, mozilla::dom::quota::Severity::Error); return tryResult1072.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1073 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1073.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12161, mozilla::dom::quota::Severity::Error); return tryResult1073.propagateErr(); } const auto& file = tryResult1073.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1074 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1075 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1075)::ok_type>); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { auto tryTempError = tryResult1075.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12168, mozilla::dom::quota::Severity::Warning); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12167); }(tryTempError); }}; } auto tryResult1076 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12172, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const auto& journalFile = tryResult1076.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12175); } return Ok{}; })"
, tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12179, mozilla::dom::quota::Severity::Error); return tryResult1077
.propagateErr(); }}
12167 NS_WARNING("Failed to remove orphaned file!");{auto tryResult1077 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1072 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12149, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if
(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return
Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1073
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1073.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12161
, mozilla::dom::quota::Severity::Error); return tryResult1073
.propagateErr(); } const auto& file = tryResult1073.inspect
();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1074
{ ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted
, ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1075
= (ToResult(file->Remove(false))); static_assert(std::is_empty_v
<typename decltype(tryResult1075)::ok_type>); if ((__builtin_expect
(!!(tryResult1075.isErr()), 0))) { auto tryTempError = tryResult1075
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12168, mozilla::dom::quota::Severity::Warning); [](const auto
&) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12167); }(tryTempError); }}; } auto tryResult1076 = (CloneFileAndAppend
(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1076
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12172, mozilla::dom::quota::Severity::Error); return tryResult1076
.propagateErr(); } const auto& journalFile = tryResult1076
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12175); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect
(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1072 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1072.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12149, mozilla::dom::quota::Severity::Error); return tryResult1072.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1073 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1073.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12161, mozilla::dom::quota::Severity::Error); return tryResult1073.propagateErr(); } const auto& file = tryResult1073.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1074 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1075 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1075)::ok_type>); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { auto tryTempError = tryResult1075.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12168, mozilla::dom::quota::Severity::Warning); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12167); }(tryTempError); }}; } auto tryResult1076 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12172, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const auto& journalFile = tryResult1076.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12175); } return Ok{}; })"
, tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12179, mozilla::dom::quota::Severity::Error); return tryResult1077
.propagateErr(); }}
12168 });{auto tryResult1077 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1072 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12149, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if
(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return
Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1073
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1073.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12161
, mozilla::dom::quota::Severity::Error); return tryResult1073
.propagateErr(); } const auto& file = tryResult1073.inspect
();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1074
{ ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted
, ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1075
= (ToResult(file->Remove(false))); static_assert(std::is_empty_v
<typename decltype(tryResult1075)::ok_type>); if ((__builtin_expect
(!!(tryResult1075.isErr()), 0))) { auto tryTempError = tryResult1075
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12168, mozilla::dom::quota::Severity::Warning); [](const auto
&) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12167); }(tryTempError); }}; } auto tryResult1076 = (CloneFileAndAppend
(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1076
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12172, mozilla::dom::quota::Severity::Error); return tryResult1076
.propagateErr(); } const auto& journalFile = tryResult1076
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12175); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect
(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1072 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1072.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12149, mozilla::dom::quota::Severity::Error); return tryResult1072.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1073 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1073.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12161, mozilla::dom::quota::Severity::Error); return tryResult1073.propagateErr(); } const auto& file = tryResult1073.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1074 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1075 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1075)::ok_type>); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { auto tryTempError = tryResult1075.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12168, mozilla::dom::quota::Severity::Warning); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12167); }(tryTempError); }}; } auto tryResult1076 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12172, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const auto& journalFile = tryResult1076.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12175); } return Ok{}; })"
, tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12179, mozilla::dom::quota::Severity::Error); return tryResult1077
.propagateErr(); }}
12169 }{auto tryResult1077 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1072 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12149, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if
(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return
Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1073
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1073.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12161
, mozilla::dom::quota::Severity::Error); return tryResult1073
.propagateErr(); } const auto& file = tryResult1073.inspect
();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1074
{ ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted
, ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1075
= (ToResult(file->Remove(false))); static_assert(std::is_empty_v
<typename decltype(tryResult1075)::ok_type>); if ((__builtin_expect
(!!(tryResult1075.isErr()), 0))) { auto tryTempError = tryResult1075
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12168, mozilla::dom::quota::Severity::Warning); [](const auto
&) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12167); }(tryTempError); }}; } auto tryResult1076 = (CloneFileAndAppend
(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1076
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12172, mozilla::dom::quota::Severity::Error); return tryResult1076
.propagateErr(); } const auto& journalFile = tryResult1076
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12175); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect
(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1072 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1072.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12149, mozilla::dom::quota::Severity::Error); return tryResult1072.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1073 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1073.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12161, mozilla::dom::quota::Severity::Error); return tryResult1073.propagateErr(); } const auto& file = tryResult1073.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1074 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1075 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1075)::ok_type>); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { auto tryTempError = tryResult1075.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12168, mozilla::dom::quota::Severity::Warning); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12167); }(tryTempError); }}; } auto tryResult1076 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12172, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const auto& journalFile = tryResult1076.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12175); } return Ok{}; })"
, tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12179, mozilla::dom::quota::Severity::Error); return tryResult1077
.propagateErr(); }}
12170
12171 QM_TRY_INSPECT(const auto& journalFile,{auto tryResult1077 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1072 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12149, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if
(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return
Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1073
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1073.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12161
, mozilla::dom::quota::Severity::Error); return tryResult1073
.propagateErr(); } const auto& file = tryResult1073.inspect
();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1074
{ ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted
, ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1075
= (ToResult(file->Remove(false))); static_assert(std::is_empty_v
<typename decltype(tryResult1075)::ok_type>); if ((__builtin_expect
(!!(tryResult1075.isErr()), 0))) { auto tryTempError = tryResult1075
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12168, mozilla::dom::quota::Severity::Warning); [](const auto
&) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12167); }(tryTempError); }}; } auto tryResult1076 = (CloneFileAndAppend
(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1076
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12172, mozilla::dom::quota::Severity::Error); return tryResult1076
.propagateErr(); } const auto& journalFile = tryResult1076
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12175); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect
(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1072 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1072.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12149, mozilla::dom::quota::Severity::Error); return tryResult1072.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1073 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1073.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12161, mozilla::dom::quota::Severity::Error); return tryResult1073.propagateErr(); } const auto& file = tryResult1073.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1074 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1075 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1075)::ok_type>); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { auto tryTempError = tryResult1075.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12168, mozilla::dom::quota::Severity::Warning); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12167); }(tryTempError); }}; } auto tryResult1076 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12172, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const auto& journalFile = tryResult1076.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12175); } return Ok{}; })"
, tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12179, mozilla::dom::quota::Severity::Error); return tryResult1077
.propagateErr(); }}
12172 CloneFileAndAppend(*journalDirectory, name));{auto tryResult1077 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1072 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12149, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if
(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return
Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1073
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1073.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12161
, mozilla::dom::quota::Severity::Error); return tryResult1073
.propagateErr(); } const auto& file = tryResult1073.inspect
();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1074
{ ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted
, ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1075
= (ToResult(file->Remove(false))); static_assert(std::is_empty_v
<typename decltype(tryResult1075)::ok_type>); if ((__builtin_expect
(!!(tryResult1075.isErr()), 0))) { auto tryTempError = tryResult1075
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12168, mozilla::dom::quota::Severity::Warning); [](const auto
&) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12167); }(tryTempError); }}; } auto tryResult1076 = (CloneFileAndAppend
(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1076
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12172, mozilla::dom::quota::Severity::Error); return tryResult1076
.propagateErr(); } const auto& journalFile = tryResult1076
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12175); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect
(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1072 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1072.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12149, mozilla::dom::quota::Severity::Error); return tryResult1072.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1073 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1073.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12161, mozilla::dom::quota::Severity::Error); return tryResult1073.propagateErr(); } const auto& file = tryResult1073.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1074 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1075 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1075)::ok_type>); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { auto tryTempError = tryResult1075.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12168, mozilla::dom::quota::Severity::Warning); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12167); }(tryTempError); }}; } auto tryResult1076 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12172, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const auto& journalFile = tryResult1076.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12175); } return Ok{}; })"
, tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12179, mozilla::dom::quota::Severity::Error); return tryResult1077
.propagateErr(); }}
12173
12174 if (NS_FAILED(journalFile->Remove(false))) {{auto tryResult1077 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1072 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12149, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if
(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return
Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1073
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1073.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12161
, mozilla::dom::quota::Severity::Error); return tryResult1073
.propagateErr(); } const auto& file = tryResult1073.inspect
();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1074
{ ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted
, ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1075
= (ToResult(file->Remove(false))); static_assert(std::is_empty_v
<typename decltype(tryResult1075)::ok_type>); if ((__builtin_expect
(!!(tryResult1075.isErr()), 0))) { auto tryTempError = tryResult1075
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12168, mozilla::dom::quota::Severity::Warning); [](const auto
&) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12167); }(tryTempError); }}; } auto tryResult1076 = (CloneFileAndAppend
(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1076
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12172, mozilla::dom::quota::Severity::Error); return tryResult1076
.propagateErr(); } const auto& journalFile = tryResult1076
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12175); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect
(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1072 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1072.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12149, mozilla::dom::quota::Severity::Error); return tryResult1072.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1073 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1073.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12161, mozilla::dom::quota::Severity::Error); return tryResult1073.propagateErr(); } const auto& file = tryResult1073.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1074 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1075 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1075)::ok_type>); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { auto tryTempError = tryResult1075.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12168, mozilla::dom::quota::Severity::Warning); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12167); }(tryTempError); }}; } auto tryResult1076 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12172, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const auto& journalFile = tryResult1076.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12175); } return Ok{}; })"
, tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12179, mozilla::dom::quota::Severity::Error); return tryResult1077
.propagateErr(); }}
12175 NS_WARNING("Failed to remove journal file!");{auto tryResult1077 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1072 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12149, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if
(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return
Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1073
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1073.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12161
, mozilla::dom::quota::Severity::Error); return tryResult1073
.propagateErr(); } const auto& file = tryResult1073.inspect
();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1074
{ ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted
, ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1075
= (ToResult(file->Remove(false))); static_assert(std::is_empty_v
<typename decltype(tryResult1075)::ok_type>); if ((__builtin_expect
(!!(tryResult1075.isErr()), 0))) { auto tryTempError = tryResult1075
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12168, mozilla::dom::quota::Severity::Warning); [](const auto
&) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12167); }(tryTempError); }}; } auto tryResult1076 = (CloneFileAndAppend
(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1076
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12172, mozilla::dom::quota::Severity::Error); return tryResult1076
.propagateErr(); } const auto& journalFile = tryResult1076
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12175); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect
(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1072 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1072.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12149, mozilla::dom::quota::Severity::Error); return tryResult1072.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1073 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1073.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12161, mozilla::dom::quota::Severity::Error); return tryResult1073.propagateErr(); } const auto& file = tryResult1073.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1074 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1075 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1075)::ok_type>); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { auto tryTempError = tryResult1075.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12168, mozilla::dom::quota::Severity::Warning); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12167); }(tryTempError); }}; } auto tryResult1076 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12172, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const auto& journalFile = tryResult1076.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12175); } return Ok{}; })"
, tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12179, mozilla::dom::quota::Severity::Error); return tryResult1077
.propagateErr(); }}
12176 }{auto tryResult1077 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1072 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12149, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if
(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return
Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1073
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1073.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12161
, mozilla::dom::quota::Severity::Error); return tryResult1073
.propagateErr(); } const auto& file = tryResult1073.inspect
();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1074
{ ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted
, ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1075
= (ToResult(file->Remove(false))); static_assert(std::is_empty_v
<typename decltype(tryResult1075)::ok_type>); if ((__builtin_expect
(!!(tryResult1075.isErr()), 0))) { auto tryTempError = tryResult1075
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12168, mozilla::dom::quota::Severity::Warning); [](const auto
&) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12167); }(tryTempError); }}; } auto tryResult1076 = (CloneFileAndAppend
(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1076
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12172, mozilla::dom::quota::Severity::Error); return tryResult1076
.propagateErr(); } const auto& journalFile = tryResult1076
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12175); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect
(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1072 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1072.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12149, mozilla::dom::quota::Severity::Error); return tryResult1072.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1073 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1073.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12161, mozilla::dom::quota::Severity::Error); return tryResult1073.propagateErr(); } const auto& file = tryResult1073.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1074 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1075 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1075)::ok_type>); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { auto tryTempError = tryResult1075.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12168, mozilla::dom::quota::Severity::Warning); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12167); }(tryTempError); }}; } auto tryResult1076 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12172, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const auto& journalFile = tryResult1076.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12175); } return Ok{}; })"
, tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12179, mozilla::dom::quota::Severity::Error); return tryResult1077
.propagateErr(); }}
12177
12178 return Ok{};{auto tryResult1077 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1072 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12149, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if
(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return
Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1073
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1073.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12161
, mozilla::dom::quota::Severity::Error); return tryResult1073
.propagateErr(); } const auto& file = tryResult1073.inspect
();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1074
{ ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted
, ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1075
= (ToResult(file->Remove(false))); static_assert(std::is_empty_v
<typename decltype(tryResult1075)::ok_type>); if ((__builtin_expect
(!!(tryResult1075.isErr()), 0))) { auto tryTempError = tryResult1075
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12168, mozilla::dom::quota::Severity::Warning); [](const auto
&) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12167); }(tryTempError); }}; } auto tryResult1076 = (CloneFileAndAppend
(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1076
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12172, mozilla::dom::quota::Severity::Error); return tryResult1076
.propagateErr(); } const auto& journalFile = tryResult1076
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12175); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect
(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1072 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1072.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12149, mozilla::dom::quota::Severity::Error); return tryResult1072.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1073 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1073.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12161, mozilla::dom::quota::Severity::Error); return tryResult1073.propagateErr(); } const auto& file = tryResult1073.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1074 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1075 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1075)::ok_type>); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { auto tryTempError = tryResult1075.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12168, mozilla::dom::quota::Severity::Warning); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12167); }(tryTempError); }}; } auto tryResult1076 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12172, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const auto& journalFile = tryResult1076.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12175); } return Ok{}; })"
, tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12179, mozilla::dom::quota::Severity::Error); return tryResult1077
.propagateErr(); }}
12179 })){auto tryResult1077 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1072 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12149, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if
(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return
Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1073
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1073.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12161
, mozilla::dom::quota::Severity::Error); return tryResult1073
.propagateErr(); } const auto& file = tryResult1073.inspect
();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1074
{ ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted
, ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1075
= (ToResult(file->Remove(false))); static_assert(std::is_empty_v
<typename decltype(tryResult1075)::ok_type>); if ((__builtin_expect
(!!(tryResult1075.isErr()), 0))) { auto tryTempError = tryResult1075
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12168, mozilla::dom::quota::Severity::Warning); [](const auto
&) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12167); }(tryTempError); }}; } auto tryResult1076 = (CloneFileAndAppend
(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1076
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12172, mozilla::dom::quota::Severity::Error); return tryResult1076
.propagateErr(); } const auto& journalFile = tryResult1076
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12175); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect
(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1072 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1072.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12149, mozilla::dom::quota::Severity::Error); return tryResult1072.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1073 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1073.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1073.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12161, mozilla::dom::quota::Severity::Error); return tryResult1073.propagateErr(); } const auto& file = tryResult1073.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1074 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1075 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1075)::ok_type>); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { auto tryTempError = tryResult1075.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12168, mozilla::dom::quota::Severity::Warning); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12167); }(tryTempError); }}; } auto tryResult1076 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12172, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const auto& journalFile = tryResult1076.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12175); } return Ok{}; })"
, tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12179, mozilla::dom::quota::Severity::Error); return tryResult1077
.propagateErr(); }}
;
12180
12181 QM_TRY(MOZ_TO_RESULT(connection->ExecuteSimpleSQL("DROP TABLE fs;"_ns))){auto tryResult1078 = (ToResult(connection->ExecuteSimpleSQL
("DROP TABLE fs;"_ns))); static_assert(std::is_empty_v<typename
decltype(tryResult1078)::ok_type>); if ((__builtin_expect
(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(connection->ExecuteSimpleSQL(\"DROP TABLE fs;\"_ns))"
, tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12181, mozilla::dom::quota::Severity::Error); return tryResult1078
.propagateErr(); }}
;
12182 QM_TRY(MOZ_TO_RESULT(transaction.Commit())){auto tryResult1079 = (ToResult(transaction.Commit())); static_assert
(std::is_empty_v<typename decltype(tryResult1079)::ok_type
>); if ((__builtin_expect(!!(tryResult1079.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(transaction.Commit())"
, tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12182, mozilla::dom::quota::Severity::Error); return tryResult1079
.propagateErr(); }}
;
12183 }
12184 }
12185
12186 return NS_OK;
12187}
12188
12189// static
12190Result<FileUsageType, nsresult> DatabaseFileManager::GetUsage(
12191 nsIFile* aDirectory) {
12192 AssertIsOnIOThread();
12193 MOZ_ASSERT(aDirectory)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDirectory)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDirectory))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectory"
")"); do { MOZ_CrashSequence(__null, 12193); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12194
12195 FileUsageType usage;
12196
12197 QM_TRY(TraverseFiles({auto tryResult1081 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize ) .map([](const int64_t fileSize) { return
FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto
& firstRes) { bool res = ([](const nsresult rv) { return rv
== NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota
::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& thisUsage = tryResult1080.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1081
)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1080.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& thisUsage = tryResult1080.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12230, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); }}
12198 *aDirectory,{auto tryResult1081 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize ) .map([](const int64_t fileSize) { return
FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto
& firstRes) { bool res = ([](const nsresult rv) { return rv
== NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota
::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& thisUsage = tryResult1080.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1081
)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1080.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& thisUsage = tryResult1080.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12230, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); }}
12199 // KnownDirEntryOp{auto tryResult1081 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize ) .map([](const int64_t fileSize) { return
FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto
& firstRes) { bool res = ([](const nsresult rv) { return rv
== NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota
::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& thisUsage = tryResult1080.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1081
)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1080.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& thisUsage = tryResult1080.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12230, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); }}
12200 [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> {{auto tryResult1081 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize ) .map([](const int64_t fileSize) { return
FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto
& firstRes) { bool res = ([](const nsresult rv) { return rv
== NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota
::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& thisUsage = tryResult1080.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1081
)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1080.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& thisUsage = tryResult1080.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12230, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); }}
12201 if (isDirectory) {{auto tryResult1081 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize ) .map([](const int64_t fileSize) { return
FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto
& firstRes) { bool res = ([](const nsresult rv) { return rv
== NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota
::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& thisUsage = tryResult1080.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1081
)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1080.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& thisUsage = tryResult1080.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12230, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); }}
12202 return Ok{};{auto tryResult1081 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize ) .map([](const int64_t fileSize) { return
FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto
& firstRes) { bool res = ([](const nsresult rv) { return rv
== NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota
::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& thisUsage = tryResult1080.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1081
)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1080.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& thisUsage = tryResult1080.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12230, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); }}
12203 }{auto tryResult1081 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize ) .map([](const int64_t fileSize) { return
FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto
& firstRes) { bool res = ([](const nsresult rv) { return rv
== NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota
::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& thisUsage = tryResult1080.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1081
)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1080.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& thisUsage = tryResult1080.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12230, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); }}
12204
12205 // Usually we only use QM_OR_ELSE_LOG_VERBOSE(_IF) with Remove and{auto tryResult1081 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize ) .map([](const int64_t fileSize) { return
FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto
& firstRes) { bool res = ([](const nsresult rv) { return rv
== NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota
::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& thisUsage = tryResult1080.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1081
)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1080.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& thisUsage = tryResult1080.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12230, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); }}
12206 // NS_ERROR_FILE_NOT_FOUND check, but the file was found by a directory{auto tryResult1081 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize ) .map([](const int64_t fileSize) { return
FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto
& firstRes) { bool res = ([](const nsresult rv) { return rv
== NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota
::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& thisUsage = tryResult1080.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1081
)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1080.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& thisUsage = tryResult1080.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12230, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); }}
12207 // traversal and ToInteger on the name succeeded, so it should be our{auto tryResult1081 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize ) .map([](const int64_t fileSize) { return
FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto
& firstRes) { bool res = ([](const nsresult rv) { return rv
== NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota
::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& thisUsage = tryResult1080.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1081
)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1080.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& thisUsage = tryResult1080.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12230, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); }}
12208 // file and if the file disappears, the use of QM_OR_ELSE_WARN_IF is ok{auto tryResult1081 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize ) .map([](const int64_t fileSize) { return
FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto
& firstRes) { bool res = ([](const nsresult rv) { return rv
== NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota
::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& thisUsage = tryResult1080.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1081
)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1080.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& thisUsage = tryResult1080.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12230, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); }}
12209 // here.{auto tryResult1081 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize ) .map([](const int64_t fileSize) { return
FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto
& firstRes) { bool res = ([](const nsresult rv) { return rv
== NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota
::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& thisUsage = tryResult1080.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1081
)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1080.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& thisUsage = tryResult1080.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12230, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); }}
12210 QM_TRY_INSPECT(const auto& thisUsage,{auto tryResult1081 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize ) .map([](const int64_t fileSize) { return
FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto
& firstRes) { bool res = ([](const nsresult rv) { return rv
== NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota
::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& thisUsage = tryResult1080.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1081
)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1080.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& thisUsage = tryResult1080.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12230, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); }}
12211 QM_OR_ELSE_WARN_IF({auto tryResult1081 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize ) .map([](const int64_t fileSize) { return
FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto
& firstRes) { bool res = ([](const nsresult rv) { return rv
== NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota
::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& thisUsage = tryResult1080.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1081
)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1080.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& thisUsage = tryResult1080.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12230, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); }}
12212 // Expression.{auto tryResult1081 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize ) .map([](const int64_t fileSize) { return
FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto
& firstRes) { bool res = ([](const nsresult rv) { return rv
== NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota
::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& thisUsage = tryResult1080.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1081
)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1080.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& thisUsage = tryResult1080.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12230, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); }}
12213 MOZ_TO_RESULT_INVOKE_MEMBER(file, GetFileSize){auto tryResult1081 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize ) .map([](const int64_t fileSize) { return
FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto
& firstRes) { bool res = ([](const nsresult rv) { return rv
== NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota
::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& thisUsage = tryResult1080.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1081
)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1080.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& thisUsage = tryResult1080.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12230, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); }}
12214 .map([](const int64_t fileSize) {{auto tryResult1081 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize ) .map([](const int64_t fileSize) { return
FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto
& firstRes) { bool res = ([](const nsresult rv) { return rv
== NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota
::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& thisUsage = tryResult1080.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1081
)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1080.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& thisUsage = tryResult1080.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12230, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); }}
12215 return FileUsageType(Some(uint64_t(fileSize)));{auto tryResult1081 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize ) .map([](const int64_t fileSize) { return
FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto
& firstRes) { bool res = ([](const nsresult rv) { return rv
== NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota
::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& thisUsage = tryResult1080.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1081
)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1080.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& thisUsage = tryResult1080.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12230, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); }}
12216 }),{auto tryResult1081 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize ) .map([](const int64_t fileSize) { return
FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto
& firstRes) { bool res = ([](const nsresult rv) { return rv
== NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota
::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& thisUsage = tryResult1080.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1081
)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1080.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& thisUsage = tryResult1080.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12230, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); }}
12217 // Predicate.{auto tryResult1081 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize ) .map([](const int64_t fileSize) { return
FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto
& firstRes) { bool res = ([](const nsresult rv) { return rv
== NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota
::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& thisUsage = tryResult1080.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1081
)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1080.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& thisUsage = tryResult1080.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12230, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); }}
12218 ([](const nsresult rv) {{auto tryResult1081 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize ) .map([](const int64_t fileSize) { return
FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto
& firstRes) { bool res = ([](const nsresult rv) { return rv
== NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota
::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& thisUsage = tryResult1080.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1081
)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1080.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& thisUsage = tryResult1080.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12230, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); }}
12219 return rv == NS_ERROR_FILE_NOT_FOUND;{auto tryResult1081 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize ) .map([](const int64_t fileSize) { return
FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto
& firstRes) { bool res = ([](const nsresult rv) { return rv
== NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota
::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& thisUsage = tryResult1080.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1081
)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1080.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& thisUsage = tryResult1080.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12230, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); }}
12220 }),{auto tryResult1081 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize ) .map([](const int64_t fileSize) { return
FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto
& firstRes) { bool res = ([](const nsresult rv) { return rv
== NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota
::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& thisUsage = tryResult1080.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1081
)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1080.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& thisUsage = tryResult1080.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12230, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); }}
12221 // Fallback. If the file does no longer exist, treat{auto tryResult1081 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize ) .map([](const int64_t fileSize) { return
FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto
& firstRes) { bool res = ([](const nsresult rv) { return rv
== NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota
::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& thisUsage = tryResult1080.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1081
)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1080.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& thisUsage = tryResult1080.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12230, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); }}
12222 // it as 0-sized.{auto tryResult1081 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize ) .map([](const int64_t fileSize) { return
FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto
& firstRes) { bool res = ([](const nsresult rv) { return rv
== NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota
::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& thisUsage = tryResult1080.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1081
)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1080.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& thisUsage = tryResult1080.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12230, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); }}
12223 ErrToDefaultOk<FileUsageType>));{auto tryResult1081 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize ) .map([](const int64_t fileSize) { return
FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto
& firstRes) { bool res = ([](const nsresult rv) { return rv
== NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota
::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& thisUsage = tryResult1080.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1081
)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1080.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& thisUsage = tryResult1080.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12230, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); }}
12224
12225 usage += thisUsage;{auto tryResult1081 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize ) .map([](const int64_t fileSize) { return
FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto
& firstRes) { bool res = ([](const nsresult rv) { return rv
== NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota
::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& thisUsage = tryResult1080.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1081
)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1080.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& thisUsage = tryResult1080.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12230, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); }}
12226
12227 return Ok{};{auto tryResult1081 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize ) .map([](const int64_t fileSize) { return
FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto
& firstRes) { bool res = ([](const nsresult rv) { return rv
== NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota
::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& thisUsage = tryResult1080.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1081
)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1080.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& thisUsage = tryResult1080.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12230, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); }}
12228 },{auto tryResult1081 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize ) .map([](const int64_t fileSize) { return
FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto
& firstRes) { bool res = ([](const nsresult rv) { return rv
== NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota
::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& thisUsage = tryResult1080.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1081
)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1080.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& thisUsage = tryResult1080.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12230, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); }}
12229 // UnknownDirEntryOp{auto tryResult1081 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize ) .map([](const int64_t fileSize) { return
FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto
& firstRes) { bool res = ([](const nsresult rv) { return rv
== NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota
::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& thisUsage = tryResult1080.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1081
)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1080.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& thisUsage = tryResult1080.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12230, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); }}
12230 [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })){auto tryResult1081 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize ) .map([](const int64_t fileSize) { return
FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto
& firstRes) { bool res = ([](const nsresult rv) { return rv
== NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota
::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12223, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const auto& thisUsage = tryResult1080.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1081
)::ok_type>); if ((__builtin_expect(!!(tryResult1081.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1080 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12223, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1080.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12223, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& thisUsage = tryResult1080.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12230, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); }}
;
12231
12232 return usage;
12233}
12234
12235nsresult DatabaseFileManager::SyncDeleteFile(const int64_t aId) {
12236 MOZ_ASSERT(!ContainsFileInfo(aId))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!ContainsFileInfo(aId))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!ContainsFileInfo(aId)))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!ContainsFileInfo(aId)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12236
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!ContainsFileInfo(aId)"
")"); do { MOZ_CrashSequence(__null, 12236); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12237
12238 if (!this->AssertValid()) {
12239 return NS_ERROR_UNEXPECTED;
12240 }
12241
12242 const auto directory = GetDirectory();
12243 QM_TRY(OkIf(directory), NS_ERROR_FAILURE){auto tryResult1082 = (OkIf(directory)); static_assert(std::is_empty_v
<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(directory)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12243, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(directory)", tryTempError
, NS_ERROR_FAILURE); }}
;
12244
12245 const auto journalDirectory = GetJournalDirectory();
12246 QM_TRY(OkIf(journalDirectory), NS_ERROR_FAILURE){auto tryResult1083 = (OkIf(journalDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1083)::ok_type
>); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(journalDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12246, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(journalDirectory)"
, tryTempError, NS_ERROR_FAILURE); }}
;
12247
12248 const nsCOMPtr<nsIFile> file = GetFileForId(directory, aId);
12249 QM_TRY(OkIf(file), NS_ERROR_FAILURE){auto tryResult1084 = (OkIf(file)); static_assert(std::is_empty_v
<typename decltype(tryResult1084)::ok_type>); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(file)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12249, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(file)", tryTempError
, NS_ERROR_FAILURE); }}
;
12250
12251 const nsCOMPtr<nsIFile> journalFile = GetFileForId(journalDirectory, aId);
12252 QM_TRY(OkIf(journalFile), NS_ERROR_FAILURE){auto tryResult1085 = (OkIf(journalFile)); static_assert(std::
is_empty_v<typename decltype(tryResult1085)::ok_type>);
if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { [[maybe_unused
]] auto tryTempError = tryResult1085.unwrapErr(); mozilla::dom
::quota::HandleError("OkIf(journalFile)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12252, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(journalFile)", tryTempError
, NS_ERROR_FAILURE); }}
;
12253
12254 return SyncDeleteFile(*file, *journalFile);
12255}
12256
12257nsresult DatabaseFileManager::SyncDeleteFile(nsIFile& aFile,
12258 nsIFile& aJournalFile) const {
12259 QuotaManager* const quotaManager =
12260 EnforcingQuota() ? QuotaManager::Get() : nullptr;
12261 MOZ_ASSERT_IF(EnforcingQuota(), quotaManager)do { if (EnforcingQuota()) { do { static_assert( mozilla::detail
::AssertionConditionType<decltype(quotaManager)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(quotaManager))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("quotaManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12261); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { MOZ_CrashSequence(__null, 12261); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
12262
12263 QM_TRY(MOZ_TO_RESULT(DeleteFile(aFile, quotaManager, Type(), OriginMetadata(),{auto tryResult1086 = (ToResult(DeleteFile(aFile, quotaManager
, Type(), OriginMetadata(), Idempotency::No))); static_assert
(std::is_empty_v<typename decltype(tryResult1086)::ok_type
>); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(DeleteFile(aFile, quotaManager, Type(), OriginMetadata(), Idempotency::No))"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12264, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); }}
12264 Idempotency::No))){auto tryResult1086 = (ToResult(DeleteFile(aFile, quotaManager
, Type(), OriginMetadata(), Idempotency::No))); static_assert
(std::is_empty_v<typename decltype(tryResult1086)::ok_type
>); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(DeleteFile(aFile, quotaManager, Type(), OriginMetadata(), Idempotency::No))"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12264, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); }}
;
12265
12266 QM_TRY(MOZ_TO_RESULT(aJournalFile.Remove(false))){auto tryResult1087 = (ToResult(aJournalFile.Remove(false)));
static_assert(std::is_empty_v<typename decltype(tryResult1087
)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(aJournalFile.Remove(false))"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12266, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); }}
;
12267
12268 return NS_OK;
12269}
12270
12271nsresult DatabaseFileManager::Invalidate() {
12272 if (mCipherKeyManager) {
12273 mCipherKeyManager->Invalidate();
12274 }
12275
12276 QM_TRY(MOZ_TO_RESULT(FileInfoManager::Invalidate())){auto tryResult1088 = (ToResult(FileInfoManager::Invalidate()
)); static_assert(std::is_empty_v<typename decltype(tryResult1088
)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(FileInfoManager::Invalidate())"
, tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12276, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); }}
;
12277
12278 return NS_OK;
12279}
12280
12281/*******************************************************************************
12282 * QuotaClient
12283 ******************************************************************************/
12284
12285QuotaClient* QuotaClient::sInstance = nullptr;
12286
12287QuotaClient::QuotaClient() : mDeleteTimer(NS_NewTimer()) {
12288 AssertIsOnBackgroundThread();
12289 MOZ_ASSERT(!sInstance, "We expect this to be a singleton!")do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!sInstance)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!sInstance))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("!sInstance" " (" "We expect this to be a singleton!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12289
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!sInstance" ") ("
"We expect this to be a singleton!" ")"); do { MOZ_CrashSequence
(__null, 12289); __attribute__((nomerge)) ::abort(); } while (
false); } } while (false)
;
12290 MOZ_ASSERT(!gTelemetryIdMutex)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!gTelemetryIdMutex)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!gTelemetryIdMutex))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("!gTelemetryIdMutex"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12290
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!gTelemetryIdMutex"
")"); do { MOZ_CrashSequence(__null, 12290); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12291
12292 // Always create this so that later access to gTelemetryIdHashtable can be
12293 // properly synchronized.
12294 gTelemetryIdMutex = new Mutex("IndexedDB gTelemetryIdMutex");
12295
12296 gStorageDatabaseNameMutex = new Mutex("IndexedDB gStorageDatabaseNameMutex");
12297
12298 sInstance = this;
12299}
12300
12301QuotaClient::~QuotaClient() {
12302 AssertIsOnBackgroundThread();
12303 MOZ_ASSERT(sInstance == this, "We expect this to be a singleton!")do { static_assert( mozilla::detail::AssertionConditionType<
decltype(sInstance == this)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(sInstance == this))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("sInstance == this"
" (" "We expect this to be a singleton!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12303); AnnotateMozCrashReason("MOZ_ASSERT" "(" "sInstance == this"
") (" "We expect this to be a singleton!" ")"); do { MOZ_CrashSequence
(__null, 12303); __attribute__((nomerge)) ::abort(); } while (
false); } } while (false)
;
12304 MOZ_ASSERT(gTelemetryIdMutex)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(gTelemetryIdMutex)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(gTelemetryIdMutex))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("gTelemetryIdMutex"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12304
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "gTelemetryIdMutex"
")"); do { MOZ_CrashSequence(__null, 12304); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12305 MOZ_ASSERT(!mMaintenanceThreadPool)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mMaintenanceThreadPool)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mMaintenanceThreadPool))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!mMaintenanceThreadPool"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12305
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mMaintenanceThreadPool"
")"); do { MOZ_CrashSequence(__null, 12305); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12306
12307 // No one else should be able to touch gTelemetryIdHashtable now that the
12308 // QuotaClient has gone away.
12309 gTelemetryIdHashtable = nullptr;
12310 gTelemetryIdMutex = nullptr;
12311
12312 gStorageDatabaseNameHashtable = nullptr;
12313 gStorageDatabaseNameMutex = nullptr;
12314
12315 sInstance = nullptr;
12316}
12317
12318nsresult QuotaClient::AsyncDeleteFile(DatabaseFileManager* aFileManager,
12319 int64_t aFileId) {
12320 AssertIsOnBackgroundThread();
12321
12322 if (IsShuttingDownOnBackgroundThread()) {
12323 // Whoops! We want to delete an IndexedDB disk-backed File but it's too late
12324 // to actually delete the file! This means we're going to "leak" the file
12325 // and leave it around when we shouldn't! (The file will stay around until
12326 // next storage initialization is triggered when the app is started again).
12327 // Fixing this is tracked by bug 1539377.
12328
12329 return NS_OK;
12330 }
12331
12332 MOZ_ASSERT(mDeleteTimer)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDeleteTimer)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDeleteTimer))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mDeleteTimer", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12332); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDeleteTimer"
")"); do { MOZ_CrashSequence(__null, 12332); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12333 MOZ_ALWAYS_SUCCEEDS(mDeleteTimer->Cancel())do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(mDeleteTimer->Cancel())), 1)))), 1))) { } else { do { do {
} while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(mDeleteTimer->Cancel())"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12333
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mDeleteTimer->Cancel())"
")"); do { MOZ_CrashSequence(__null, 12333); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
12334
12335 QM_TRY(MOZ_TO_RESULT(mDeleteTimer->InitWithNamedFuncCallback({auto tryResult1089 = (ToResult(mDeleteTimer->InitWithNamedFuncCallback
( DeleteTimerCallback, this, kDeleteTimeoutMs, nsITimer::TYPE_ONE_SHOT
, "dom::indexeddb::QuotaClient::AsyncDeleteFile"_ns))); static_assert
(std::is_empty_v<typename decltype(tryResult1089)::ok_type
>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(mDeleteTimer->InitWithNamedFuncCallback( DeleteTimerCallback, this, kDeleteTimeoutMs, nsITimer::TYPE_ONE_SHOT, \"dom::indexeddb::QuotaClient::AsyncDeleteFile\"_ns))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
12336 DeleteTimerCallback, this, kDeleteTimeoutMs, nsITimer::TYPE_ONE_SHOT,{auto tryResult1089 = (ToResult(mDeleteTimer->InitWithNamedFuncCallback
( DeleteTimerCallback, this, kDeleteTimeoutMs, nsITimer::TYPE_ONE_SHOT
, "dom::indexeddb::QuotaClient::AsyncDeleteFile"_ns))); static_assert
(std::is_empty_v<typename decltype(tryResult1089)::ok_type
>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(mDeleteTimer->InitWithNamedFuncCallback( DeleteTimerCallback, this, kDeleteTimeoutMs, nsITimer::TYPE_ONE_SHOT, \"dom::indexeddb::QuotaClient::AsyncDeleteFile\"_ns))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
12337 "dom::indexeddb::QuotaClient::AsyncDeleteFile"_ns))){auto tryResult1089 = (ToResult(mDeleteTimer->InitWithNamedFuncCallback
( DeleteTimerCallback, this, kDeleteTimeoutMs, nsITimer::TYPE_ONE_SHOT
, "dom::indexeddb::QuotaClient::AsyncDeleteFile"_ns))); static_assert
(std::is_empty_v<typename decltype(tryResult1089)::ok_type
>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(mDeleteTimer->InitWithNamedFuncCallback( DeleteTimerCallback, this, kDeleteTimeoutMs, nsITimer::TYPE_ONE_SHOT, \"dom::indexeddb::QuotaClient::AsyncDeleteFile\"_ns))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); }}
;
12338
12339 mPendingDeleteInfos.GetOrInsertNew(aFileManager)->AppendElement(aFileId);
12340
12341 return NS_OK;
12342}
12343
12344nsresult QuotaClient::FlushPendingFileDeletions() {
12345 AssertIsOnBackgroundThread();
12346
12347 QM_TRY(MOZ_TO_RESULT(mDeleteTimer->Cancel())){auto tryResult1090 = (ToResult(mDeleteTimer->Cancel())); static_assert
(std::is_empty_v<typename decltype(tryResult1090)::ok_type
>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(mDeleteTimer->Cancel())"
, tryResult1090.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12347, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); }}
;
12348
12349 DeleteTimerCallback(mDeleteTimer, this);
12350
12351 return NS_OK;
12352}
12353
12354RefPtr<BoolPromise> QuotaClient::DoMaintenance() {
12355 AssertIsOnBackgroundThread();
12356 MOZ_ASSERT(!IsShuttingDownOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsShuttingDownOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsShuttingDownOnBackgroundThread
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12356); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsShuttingDownOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 12356); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12357
12358 if (!mBackgroundThread) {
12359 mBackgroundThread = GetCurrentSerialEventTarget();
12360 }
12361
12362 auto maintenance = MakeRefPtr<Maintenance>(this);
12363
12364 mMaintenanceQueue.AppendElement(maintenance);
12365 ProcessMaintenanceQueue();
12366
12367 return maintenance->OnResults();
12368}
12369
12370nsThreadPool* QuotaClient::GetOrCreateThreadPool() {
12371 AssertIsOnBackgroundThread();
12372 MOZ_ASSERT(!IsShuttingDownOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsShuttingDownOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsShuttingDownOnBackgroundThread
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12372); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsShuttingDownOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 12372); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12373
12374 if (!mMaintenanceThreadPool) {
12375 RefPtr<nsThreadPool> threadPool = new nsThreadPool();
12376
12377 // PR_GetNumberOfProcessors() can return -1 on error, so make sure we
12378 // don't set some huge number here. We add 2 in case some threads block on
12379 // the disk I/O.
12380 const uint32_t threadCount =
12381 std::max(int32_t(PR_GetNumberOfProcessors()), int32_t(1)) + 2;
12382
12383 MOZ_ALWAYS_SUCCEEDS(threadPool->SetThreadLimit(threadCount))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(threadPool->SetThreadLimit(threadCount))), 1)))), 1))) { }
else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(threadPool->SetThreadLimit(threadCount))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12383
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetThreadLimit(threadCount))"
")"); do { MOZ_CrashSequence(__null, 12383); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
12384
12385 // Don't keep more than one idle thread.
12386 MOZ_ALWAYS_SUCCEEDS(threadPool->SetIdleThreadLimit(1))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(threadPool->SetIdleThreadLimit(1))), 1)))), 1))) { } else
{ do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(threadPool->SetIdleThreadLimit(1))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12386
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetIdleThreadLimit(1))"
")"); do { MOZ_CrashSequence(__null, 12386); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
12387
12388 // Don't keep idle threads alive very long.
12389 MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(threadPool->SetIdleThreadMaximumTimeout(5 * 1000L))), 1))
)), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(threadPool->SetIdleThreadMaximumTimeout(5 * 1000L))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12390
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetIdleThreadMaximumTimeout(5 * 1000L))"
")"); do { MOZ_CrashSequence(__null, 12390); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
12390 threadPool->SetIdleThreadMaximumTimeout(5 * PR_MSEC_PER_SEC))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(threadPool->SetIdleThreadMaximumTimeout(5 * 1000L))), 1))
)), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(threadPool->SetIdleThreadMaximumTimeout(5 * 1000L))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12390
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetIdleThreadMaximumTimeout(5 * 1000L))"
")"); do { MOZ_CrashSequence(__null, 12390); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
12391
12392 MOZ_ALWAYS_SUCCEEDS(threadPool->SetName("IndexedDB Mnt"_ns))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(threadPool->SetName("IndexedDB Mnt"_ns))), 1)))), 1))) { }
else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(threadPool->SetName(\"IndexedDB Mnt\"_ns))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12392
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetName(\"IndexedDB Mnt\"_ns))"
")"); do { MOZ_CrashSequence(__null, 12392); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
12393
12394 mMaintenanceThreadPool = std::move(threadPool);
12395 }
12396
12397 return mMaintenanceThreadPool;
12398}
12399
12400mozilla::dom::quota::Client::Type QuotaClient::GetType() {
12401 return QuotaClient::IDB;
12402}
12403
12404nsresult QuotaClient::UpgradeStorageFrom1_0To2_0(nsIFile* aDirectory) {
12405 AssertIsOnIOThread();
12406 MOZ_ASSERT(aDirectory)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDirectory)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDirectory))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12406); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectory"
")"); do { MOZ_CrashSequence(__null, 12406); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12407
12408 QM_TRY_INSPECT(const auto& databaseFilenamesInfo,auto tryResult1091 = (GetDatabaseFilenames(*aDirectory, AtomicBool
{false})); if ((__builtin_expect(!!(tryResult1091.isErr()), 0
))) { mozilla::dom::quota::HandleError("GetDatabaseFilenames(*aDirectory, AtomicBool{false})"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12410, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); } const auto& databaseFilenamesInfo = tryResult1091
.inspect();
12409 GetDatabaseFilenames(*aDirectory,auto tryResult1091 = (GetDatabaseFilenames(*aDirectory, AtomicBool
{false})); if ((__builtin_expect(!!(tryResult1091.isErr()), 0
))) { mozilla::dom::quota::HandleError("GetDatabaseFilenames(*aDirectory, AtomicBool{false})"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12410, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); } const auto& databaseFilenamesInfo = tryResult1091
.inspect();
12410 /* aCanceled */ AtomicBool{false}))auto tryResult1091 = (GetDatabaseFilenames(*aDirectory, AtomicBool
{false})); if ((__builtin_expect(!!(tryResult1091.isErr()), 0
))) { mozilla::dom::quota::HandleError("GetDatabaseFilenames(*aDirectory, AtomicBool{false})"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12410, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); } const auto& databaseFilenamesInfo = tryResult1091
.inspect();
;
12411 // FIXME: use structural binding once we support c++20.
12412 const auto& subdirsToProcess = databaseFilenamesInfo.subdirsToProcess;
12413 const auto& databaseFilenames = databaseFilenamesInfo.databaseFilenames;
12414
12415 QM_TRY(CollectEachInRange({auto tryResult1100 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1092)::ok_type
>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1092.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError
("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1095
.propagateErr(); } const auto& subdir = tryResult1095.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12459); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12460); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12464, mozilla::dom::quota::Severity::Error); return tryResult1096
.propagateErr(); } const auto& subdirWithSuffix = tryResult1096
.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect
(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )"
, tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1097
.propagateErr(); } const bool& exists = tryResult1097.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12471
); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12473, mozilla::dom::quota::Severity::Error); return tryResult1098
.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1099)::ok_type
>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12479, mozilla::dom::quota::Severity::Error); return tryResult1099
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1100)::ok_type>); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1092.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12456, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& subdir = tryResult1095.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12459); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12459); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12460); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12464, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& subdirWithSuffix = tryResult1096.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1097.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12467, mozilla::dom::quota::Severity::Error); return tryResult1097.propagateErr(); } const bool& exists = tryResult1097.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1098.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); return tryResult1098.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1099)::ok_type>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1099.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12479, mozilla::dom::quota::Severity::Error); return tryResult1099.propagateErr(); }}; return Ok{}; })"
, tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12482, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); }}
12416 subdirsToProcess,{auto tryResult1100 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1092)::ok_type
>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1092.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError
("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1095
.propagateErr(); } const auto& subdir = tryResult1095.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12459); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12460); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12464, mozilla::dom::quota::Severity::Error); return tryResult1096
.propagateErr(); } const auto& subdirWithSuffix = tryResult1096
.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect
(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )"
, tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1097
.propagateErr(); } const bool& exists = tryResult1097.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12471
); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12473, mozilla::dom::quota::Severity::Error); return tryResult1098
.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1099)::ok_type
>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12479, mozilla::dom::quota::Severity::Error); return tryResult1099
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1100)::ok_type>); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1092.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12456, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& subdir = tryResult1095.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12459); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12459); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12460); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12464, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& subdirWithSuffix = tryResult1096.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1097.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12467, mozilla::dom::quota::Severity::Error); return tryResult1097.propagateErr(); } const bool& exists = tryResult1097.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1098.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); return tryResult1098.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1099)::ok_type>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1099.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12479, mozilla::dom::quota::Severity::Error); return tryResult1099.propagateErr(); }}; return Ok{}; })"
, tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12482, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); }}
12417 [&databaseFilenames = databaseFilenames,{auto tryResult1100 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1092)::ok_type
>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1092.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError
("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1095
.propagateErr(); } const auto& subdir = tryResult1095.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12459); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12460); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12464, mozilla::dom::quota::Severity::Error); return tryResult1096
.propagateErr(); } const auto& subdirWithSuffix = tryResult1096
.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect
(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )"
, tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1097
.propagateErr(); } const bool& exists = tryResult1097.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12471
); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12473, mozilla::dom::quota::Severity::Error); return tryResult1098
.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1099)::ok_type
>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12479, mozilla::dom::quota::Severity::Error); return tryResult1099
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1100)::ok_type>); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1092.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12456, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& subdir = tryResult1095.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12459); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12459); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12460); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12464, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& subdirWithSuffix = tryResult1096.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1097.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12467, mozilla::dom::quota::Severity::Error); return tryResult1097.propagateErr(); } const bool& exists = tryResult1097.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1098.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); return tryResult1098.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1099)::ok_type>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1099.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12479, mozilla::dom::quota::Severity::Error); return tryResult1099.propagateErr(); }}; return Ok{}; })"
, tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12482, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); }}
12418 aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> {{auto tryResult1100 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1092)::ok_type
>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1092.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError
("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1095
.propagateErr(); } const auto& subdir = tryResult1095.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12459); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12460); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12464, mozilla::dom::quota::Severity::Error); return tryResult1096
.propagateErr(); } const auto& subdirWithSuffix = tryResult1096
.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect
(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )"
, tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1097
.propagateErr(); } const bool& exists = tryResult1097.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12471
); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12473, mozilla::dom::quota::Severity::Error); return tryResult1098
.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1099)::ok_type
>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12479, mozilla::dom::quota::Severity::Error); return tryResult1099
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1100)::ok_type>); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1092.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12456, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& subdir = tryResult1095.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12459); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12459); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12460); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12464, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& subdirWithSuffix = tryResult1096.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1097.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12467, mozilla::dom::quota::Severity::Error); return tryResult1097.propagateErr(); } const bool& exists = tryResult1097.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1098.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); return tryResult1098.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1099)::ok_type>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1099.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12479, mozilla::dom::quota::Severity::Error); return tryResult1099.propagateErr(); }}; return Ok{}; })"
, tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12482, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); }}
12419 // If the directory has the correct suffix then it should exist in{auto tryResult1100 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1092)::ok_type
>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1092.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError
("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1095
.propagateErr(); } const auto& subdir = tryResult1095.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12459); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12460); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12464, mozilla::dom::quota::Severity::Error); return tryResult1096
.propagateErr(); } const auto& subdirWithSuffix = tryResult1096
.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect
(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )"
, tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1097
.propagateErr(); } const bool& exists = tryResult1097.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12471
); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12473, mozilla::dom::quota::Severity::Error); return tryResult1098
.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1099)::ok_type
>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12479, mozilla::dom::quota::Severity::Error); return tryResult1099
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1100)::ok_type>); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1092.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12456, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& subdir = tryResult1095.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12459); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12459); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12460); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12464, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& subdirWithSuffix = tryResult1096.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1097.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12467, mozilla::dom::quota::Severity::Error); return tryResult1097.propagateErr(); } const bool& exists = tryResult1097.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1098.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); return tryResult1098.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1099)::ok_type>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1099.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12479, mozilla::dom::quota::Severity::Error); return tryResult1099.propagateErr(); }}; return Ok{}; })"
, tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12482, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); }}
12420 // databaseFilenames.{auto tryResult1100 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1092)::ok_type
>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1092.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError
("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1095
.propagateErr(); } const auto& subdir = tryResult1095.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12459); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12460); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12464, mozilla::dom::quota::Severity::Error); return tryResult1096
.propagateErr(); } const auto& subdirWithSuffix = tryResult1096
.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect
(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )"
, tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1097
.propagateErr(); } const bool& exists = tryResult1097.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12471
); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12473, mozilla::dom::quota::Severity::Error); return tryResult1098
.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1099)::ok_type
>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12479, mozilla::dom::quota::Severity::Error); return tryResult1099
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1100)::ok_type>); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1092.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12456, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& subdir = tryResult1095.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12459); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12459); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12460); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12464, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& subdirWithSuffix = tryResult1096.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1097.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12467, mozilla::dom::quota::Severity::Error); return tryResult1097.propagateErr(); } const bool& exists = tryResult1097.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1098.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); return tryResult1098.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1099)::ok_type>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1099.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12479, mozilla::dom::quota::Severity::Error); return tryResult1099.propagateErr(); }}; return Ok{}; })"
, tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12482, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); }}
12421 nsDependentSubstring subdirNameBase;{auto tryResult1100 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1092)::ok_type
>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1092.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError
("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1095
.propagateErr(); } const auto& subdir = tryResult1095.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12459); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12460); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12464, mozilla::dom::quota::Severity::Error); return tryResult1096
.propagateErr(); } const auto& subdirWithSuffix = tryResult1096
.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect
(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )"
, tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1097
.propagateErr(); } const bool& exists = tryResult1097.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12471
); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12473, mozilla::dom::quota::Severity::Error); return tryResult1098
.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1099)::ok_type
>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12479, mozilla::dom::quota::Severity::Error); return tryResult1099
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1100)::ok_type>); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1092.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12456, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& subdir = tryResult1095.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12459); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12459); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12460); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12464, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& subdirWithSuffix = tryResult1096.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1097.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12467, mozilla::dom::quota::Severity::Error); return tryResult1097.propagateErr(); } const bool& exists = tryResult1097.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1098.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); return tryResult1098.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1099)::ok_type>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1099.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12479, mozilla::dom::quota::Severity::Error); return tryResult1099.propagateErr(); }}; return Ok{}; })"
, tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12482, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); }}
12422 if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix,{auto tryResult1100 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1092)::ok_type
>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1092.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError
("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1095
.propagateErr(); } const auto& subdir = tryResult1095.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12459); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12460); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12464, mozilla::dom::quota::Severity::Error); return tryResult1096
.propagateErr(); } const auto& subdirWithSuffix = tryResult1096
.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect
(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )"
, tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1097
.propagateErr(); } const bool& exists = tryResult1097.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12471
); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12473, mozilla::dom::quota::Severity::Error); return tryResult1098
.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1099)::ok_type
>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12479, mozilla::dom::quota::Severity::Error); return tryResult1099
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1100)::ok_type>); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1092.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12456, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& subdir = tryResult1095.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12459); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12459); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12460); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12464, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& subdirWithSuffix = tryResult1096.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1097.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12467, mozilla::dom::quota::Severity::Error); return tryResult1097.propagateErr(); } const bool& exists = tryResult1097.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1098.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); return tryResult1098.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1099)::ok_type>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1099.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12479, mozilla::dom::quota::Severity::Error); return tryResult1099.propagateErr(); }}; return Ok{}; })"
, tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12482, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); }}
12423 subdirNameBase)) {{auto tryResult1100 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1092)::ok_type
>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1092.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError
("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1095
.propagateErr(); } const auto& subdir = tryResult1095.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12459); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12460); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12464, mozilla::dom::quota::Severity::Error); return tryResult1096
.propagateErr(); } const auto& subdirWithSuffix = tryResult1096
.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect
(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )"
, tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1097
.propagateErr(); } const bool& exists = tryResult1097.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12471
); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12473, mozilla::dom::quota::Severity::Error); return tryResult1098
.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1099)::ok_type
>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12479, mozilla::dom::quota::Severity::Error); return tryResult1099
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1100)::ok_type>); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1092.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12456, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& subdir = tryResult1095.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12459); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12459); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12460); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12464, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& subdirWithSuffix = tryResult1096.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1097.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12467, mozilla::dom::quota::Severity::Error); return tryResult1097.propagateErr(); } const bool& exists = tryResult1097.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1098.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); return tryResult1098.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1099)::ok_type>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1099.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12479, mozilla::dom::quota::Severity::Error); return tryResult1099.propagateErr(); }}; return Ok{}; })"
, tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12482, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); }}
12424 QM_WARNONLY_TRY(OkIf(databaseFilenames.Contains(subdirNameBase)));{auto tryResult1100 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1092)::ok_type
>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1092.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError
("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1095
.propagateErr(); } const auto& subdir = tryResult1095.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12459); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12460); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12464, mozilla::dom::quota::Severity::Error); return tryResult1096
.propagateErr(); } const auto& subdirWithSuffix = tryResult1096
.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect
(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )"
, tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1097
.propagateErr(); } const bool& exists = tryResult1097.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12471
); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12473, mozilla::dom::quota::Severity::Error); return tryResult1098
.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1099)::ok_type
>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12479, mozilla::dom::quota::Severity::Error); return tryResult1099
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1100)::ok_type>); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1092.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12456, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& subdir = tryResult1095.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12459); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12459); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12460); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12464, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& subdirWithSuffix = tryResult1096.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1097.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12467, mozilla::dom::quota::Severity::Error); return tryResult1097.propagateErr(); } const bool& exists = tryResult1097.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1098.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); return tryResult1098.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1099)::ok_type>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1099.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12479, mozilla::dom::quota::Severity::Error); return tryResult1099.propagateErr(); }}; return Ok{}; })"
, tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12482, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); }}
12425 return Ok{};{auto tryResult1100 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1092)::ok_type
>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1092.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError
("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1095
.propagateErr(); } const auto& subdir = tryResult1095.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12459); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12460); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12464, mozilla::dom::quota::Severity::Error); return tryResult1096
.propagateErr(); } const auto& subdirWithSuffix = tryResult1096
.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect
(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )"
, tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1097
.propagateErr(); } const bool& exists = tryResult1097.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12471
); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12473, mozilla::dom::quota::Severity::Error); return tryResult1098
.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1099)::ok_type
>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12479, mozilla::dom::quota::Severity::Error); return tryResult1099
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1100)::ok_type>); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1092.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12456, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& subdir = tryResult1095.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12459); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12459); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12460); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12464, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& subdirWithSuffix = tryResult1096.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1097.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12467, mozilla::dom::quota::Severity::Error); return tryResult1097.propagateErr(); } const bool& exists = tryResult1097.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1098.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); return tryResult1098.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1099)::ok_type>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1099.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12479, mozilla::dom::quota::Severity::Error); return tryResult1099.propagateErr(); }}; return Ok{}; })"
, tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12482, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); }}
12426 }{auto tryResult1100 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1092)::ok_type
>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1092.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError
("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1095
.propagateErr(); } const auto& subdir = tryResult1095.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12459); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12460); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12464, mozilla::dom::quota::Severity::Error); return tryResult1096
.propagateErr(); } const auto& subdirWithSuffix = tryResult1096
.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect
(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )"
, tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1097
.propagateErr(); } const bool& exists = tryResult1097.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12471
); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12473, mozilla::dom::quota::Severity::Error); return tryResult1098
.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1099)::ok_type
>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12479, mozilla::dom::quota::Severity::Error); return tryResult1099
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1100)::ok_type>); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1092.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12456, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& subdir = tryResult1095.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12459); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12459); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12460); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12464, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& subdirWithSuffix = tryResult1096.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1097.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12467, mozilla::dom::quota::Severity::Error); return tryResult1097.propagateErr(); } const bool& exists = tryResult1097.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1098.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); return tryResult1098.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1099)::ok_type>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1099.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12479, mozilla::dom::quota::Severity::Error); return tryResult1099.propagateErr(); }}; return Ok{}; })"
, tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12482, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); }}
12427
12428 // The directory didn't have the right suffix but we might need to{auto tryResult1100 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1092)::ok_type
>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1092.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError
("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1095
.propagateErr(); } const auto& subdir = tryResult1095.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12459); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12460); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12464, mozilla::dom::quota::Severity::Error); return tryResult1096
.propagateErr(); } const auto& subdirWithSuffix = tryResult1096
.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect
(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )"
, tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1097
.propagateErr(); } const bool& exists = tryResult1097.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12471
); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12473, mozilla::dom::quota::Severity::Error); return tryResult1098
.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1099)::ok_type
>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12479, mozilla::dom::quota::Severity::Error); return tryResult1099
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1100)::ok_type>); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1092.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12456, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& subdir = tryResult1095.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12459); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12459); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12460); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12464, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& subdirWithSuffix = tryResult1096.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1097.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12467, mozilla::dom::quota::Severity::Error); return tryResult1097.propagateErr(); } const bool& exists = tryResult1097.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1098.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); return tryResult1098.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1099)::ok_type>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1099.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12479, mozilla::dom::quota::Severity::Error); return tryResult1099.propagateErr(); }}; return Ok{}; })"
, tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12482, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); }}
12429 // rename it. Check to see if we have a database that references this{auto tryResult1100 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1092)::ok_type
>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1092.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError
("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1095
.propagateErr(); } const auto& subdir = tryResult1095.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12459); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12460); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12464, mozilla::dom::quota::Severity::Error); return tryResult1096
.propagateErr(); } const auto& subdirWithSuffix = tryResult1096
.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect
(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )"
, tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1097
.propagateErr(); } const bool& exists = tryResult1097.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12471
); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12473, mozilla::dom::quota::Severity::Error); return tryResult1098
.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1099)::ok_type
>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12479, mozilla::dom::quota::Severity::Error); return tryResult1099
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1100)::ok_type>); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1092.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12456, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& subdir = tryResult1095.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12459); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12459); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12460); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12464, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& subdirWithSuffix = tryResult1096.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1097.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12467, mozilla::dom::quota::Severity::Error); return tryResult1097.propagateErr(); } const bool& exists = tryResult1097.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1098.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); return tryResult1098.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1099)::ok_type>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1099.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12479, mozilla::dom::quota::Severity::Error); return tryResult1099.propagateErr(); }}; return Ok{}; })"
, tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12482, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); }}
12430 // directory.{auto tryResult1100 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1092)::ok_type
>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1092.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError
("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1095
.propagateErr(); } const auto& subdir = tryResult1095.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12459); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12460); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12464, mozilla::dom::quota::Severity::Error); return tryResult1096
.propagateErr(); } const auto& subdirWithSuffix = tryResult1096
.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect
(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )"
, tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1097
.propagateErr(); } const bool& exists = tryResult1097.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12471
); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12473, mozilla::dom::quota::Severity::Error); return tryResult1098
.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1099)::ok_type
>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12479, mozilla::dom::quota::Severity::Error); return tryResult1099
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1100)::ok_type>); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1092.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12456, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& subdir = tryResult1095.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12459); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12459); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12460); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12464, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& subdirWithSuffix = tryResult1096.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1097.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12467, mozilla::dom::quota::Severity::Error); return tryResult1097.propagateErr(); } const bool& exists = tryResult1097.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1098.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); return tryResult1098.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1099)::ok_type>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1099.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12479, mozilla::dom::quota::Severity::Error); return tryResult1099.propagateErr(); }}; return Ok{}; })"
, tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12482, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); }}
12431 QM_TRY_INSPECT({auto tryResult1100 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1092)::ok_type
>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1092.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError
("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1095
.propagateErr(); } const auto& subdir = tryResult1095.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12459); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12460); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12464, mozilla::dom::quota::Severity::Error); return tryResult1096
.propagateErr(); } const auto& subdirWithSuffix = tryResult1096
.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect
(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )"
, tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1097
.propagateErr(); } const bool& exists = tryResult1097.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12471
); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12473, mozilla::dom::quota::Severity::Error); return tryResult1098
.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1099)::ok_type
>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12479, mozilla::dom::quota::Severity::Error); return tryResult1099
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1100)::ok_type>); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1092.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12456, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& subdir = tryResult1095.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12459); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12459); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12460); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12464, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& subdirWithSuffix = tryResult1096.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1097.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12467, mozilla::dom::quota::Severity::Error); return tryResult1097.propagateErr(); } const bool& exists = tryResult1097.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1098.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); return tryResult1098.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1099)::ok_type>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1099.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12479, mozilla::dom::quota::Severity::Error); return tryResult1099.propagateErr(); }}; return Ok{}; })"
, tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12482, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); }}
12432 const auto& subdirNameWithSuffix,{auto tryResult1100 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1092)::ok_type
>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1092.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError
("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1095
.propagateErr(); } const auto& subdir = tryResult1095.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12459); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12460); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12464, mozilla::dom::quota::Severity::Error); return tryResult1096
.propagateErr(); } const auto& subdirWithSuffix = tryResult1096
.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect
(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )"
, tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1097
.propagateErr(); } const bool& exists = tryResult1097.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12471
); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12473, mozilla::dom::quota::Severity::Error); return tryResult1098
.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1099)::ok_type
>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12479, mozilla::dom::quota::Severity::Error); return tryResult1099
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1100)::ok_type>); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1092.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12456, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& subdir = tryResult1095.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12459); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12459); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12460); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12464, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& subdirWithSuffix = tryResult1096.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1097.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12467, mozilla::dom::quota::Severity::Error); return tryResult1097.propagateErr(); } const bool& exists = tryResult1097.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1098.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); return tryResult1098.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1099)::ok_type>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1099.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12479, mozilla::dom::quota::Severity::Error); return tryResult1099.propagateErr(); }}; return Ok{}; })"
, tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12482, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); }}
12433 ([&databaseFilenames,{auto tryResult1100 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1092)::ok_type
>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1092.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError
("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1095
.propagateErr(); } const auto& subdir = tryResult1095.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12459); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12460); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12464, mozilla::dom::quota::Severity::Error); return tryResult1096
.propagateErr(); } const auto& subdirWithSuffix = tryResult1096
.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect
(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )"
, tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1097
.propagateErr(); } const bool& exists = tryResult1097.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12471
); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12473, mozilla::dom::quota::Severity::Error); return tryResult1098
.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1099)::ok_type
>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12479, mozilla::dom::quota::Severity::Error); return tryResult1099
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1100)::ok_type>); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1092.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12456, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& subdir = tryResult1095.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12459); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12459); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12460); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12464, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& subdirWithSuffix = tryResult1096.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1097.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12467, mozilla::dom::quota::Severity::Error); return tryResult1097.propagateErr(); } const bool& exists = tryResult1097.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1098.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); return tryResult1098.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1099)::ok_type>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1099.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12479, mozilla::dom::quota::Severity::Error); return tryResult1099.propagateErr(); }}; return Ok{}; })"
, tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12482, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); }}
12434 &subdirName]() -> Result<nsAutoString, NotOk> {{auto tryResult1100 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1092)::ok_type
>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1092.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError
("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1095
.propagateErr(); } const auto& subdir = tryResult1095.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12459); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12460); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12464, mozilla::dom::quota::Severity::Error); return tryResult1096
.propagateErr(); } const auto& subdirWithSuffix = tryResult1096
.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect
(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )"
, tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1097
.propagateErr(); } const bool& exists = tryResult1097.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12471
); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12473, mozilla::dom::quota::Severity::Error); return tryResult1098
.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1099)::ok_type
>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12479, mozilla::dom::quota::Severity::Error); return tryResult1099
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1100)::ok_type>); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1092.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12456, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& subdir = tryResult1095.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12459); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12459); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12460); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12464, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& subdirWithSuffix = tryResult1096.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1097.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12467, mozilla::dom::quota::Severity::Error); return tryResult1097.propagateErr(); } const bool& exists = tryResult1097.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1098.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); return tryResult1098.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1099)::ok_type>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1099.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12479, mozilla::dom::quota::Severity::Error); return tryResult1099.propagateErr(); }}; return Ok{}; })"
, tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12482, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); }}
12435 if (databaseFilenames.Contains(subdirName)) {{auto tryResult1100 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1092)::ok_type
>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1092.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError
("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1095
.propagateErr(); } const auto& subdir = tryResult1095.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12459); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12460); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12464, mozilla::dom::quota::Severity::Error); return tryResult1096
.propagateErr(); } const auto& subdirWithSuffix = tryResult1096
.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect
(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )"
, tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1097
.propagateErr(); } const bool& exists = tryResult1097.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12471
); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12473, mozilla::dom::quota::Severity::Error); return tryResult1098
.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1099)::ok_type
>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12479, mozilla::dom::quota::Severity::Error); return tryResult1099
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1100)::ok_type>); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1092.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12456, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& subdir = tryResult1095.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12459); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12459); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12460); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12464, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& subdirWithSuffix = tryResult1096.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1097.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12467, mozilla::dom::quota::Severity::Error); return tryResult1097.propagateErr(); } const bool& exists = tryResult1097.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1098.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); return tryResult1098.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1099)::ok_type>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1099.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12479, mozilla::dom::quota::Severity::Error); return tryResult1099.propagateErr(); }}; return Ok{}; })"
, tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12482, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); }}
12436 return nsAutoString{subdirName +{auto tryResult1100 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1092)::ok_type
>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1092.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError
("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1095
.propagateErr(); } const auto& subdir = tryResult1095.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12459); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12460); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12464, mozilla::dom::quota::Severity::Error); return tryResult1096
.propagateErr(); } const auto& subdirWithSuffix = tryResult1096
.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect
(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )"
, tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1097
.propagateErr(); } const bool& exists = tryResult1097.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12471
); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12473, mozilla::dom::quota::Severity::Error); return tryResult1098
.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1099)::ok_type
>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12479, mozilla::dom::quota::Severity::Error); return tryResult1099
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1100)::ok_type>); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1092.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12456, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& subdir = tryResult1095.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12459); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12459); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12460); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12464, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& subdirWithSuffix = tryResult1096.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1097.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12467, mozilla::dom::quota::Severity::Error); return tryResult1097.propagateErr(); } const bool& exists = tryResult1097.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1098.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); return tryResult1098.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1099)::ok_type>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1099.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12479, mozilla::dom::quota::Severity::Error); return tryResult1099.propagateErr(); }}; return Ok{}; })"
, tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12482, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); }}
12437 kFileManagerDirectoryNameSuffix};{auto tryResult1100 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1092)::ok_type
>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1092.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError
("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1095
.propagateErr(); } const auto& subdir = tryResult1095.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12459); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12460); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12464, mozilla::dom::quota::Severity::Error); return tryResult1096
.propagateErr(); } const auto& subdirWithSuffix = tryResult1096
.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect
(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )"
, tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1097
.propagateErr(); } const bool& exists = tryResult1097.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12471
); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12473, mozilla::dom::quota::Severity::Error); return tryResult1098
.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1099)::ok_type
>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12479, mozilla::dom::quota::Severity::Error); return tryResult1099
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1100)::ok_type>); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1092.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12456, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& subdir = tryResult1095.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12459); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12459); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12460); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12464, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& subdirWithSuffix = tryResult1096.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1097.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12467, mozilla::dom::quota::Severity::Error); return tryResult1097.propagateErr(); } const bool& exists = tryResult1097.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1098.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); return tryResult1098.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1099)::ok_type>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1099.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12479, mozilla::dom::quota::Severity::Error); return tryResult1099.propagateErr(); }}; return Ok{}; })"
, tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12482, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); }}
12438 }{auto tryResult1100 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1092)::ok_type
>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1092.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError
("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1095
.propagateErr(); } const auto& subdir = tryResult1095.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12459); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12460); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12464, mozilla::dom::quota::Severity::Error); return tryResult1096
.propagateErr(); } const auto& subdirWithSuffix = tryResult1096
.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect
(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )"
, tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1097
.propagateErr(); } const bool& exists = tryResult1097.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12471
); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12473, mozilla::dom::quota::Severity::Error); return tryResult1098
.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1099)::ok_type
>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12479, mozilla::dom::quota::Severity::Error); return tryResult1099
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1100)::ok_type>); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1092.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12456, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& subdir = tryResult1095.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12459); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12459); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12460); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12464, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& subdirWithSuffix = tryResult1096.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1097.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12467, mozilla::dom::quota::Severity::Error); return tryResult1097.propagateErr(); } const bool& exists = tryResult1097.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1098.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); return tryResult1098.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1099)::ok_type>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1099.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12479, mozilla::dom::quota::Severity::Error); return tryResult1099.propagateErr(); }}; return Ok{}; })"
, tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12482, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); }}
12439
12440 // Windows doesn't allow a directory to end with a dot ('.'), so{auto tryResult1100 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1092)::ok_type
>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1092.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError
("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1095
.propagateErr(); } const auto& subdir = tryResult1095.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12459); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12460); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12464, mozilla::dom::quota::Severity::Error); return tryResult1096
.propagateErr(); } const auto& subdirWithSuffix = tryResult1096
.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect
(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )"
, tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1097
.propagateErr(); } const bool& exists = tryResult1097.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12471
); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12473, mozilla::dom::quota::Severity::Error); return tryResult1098
.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1099)::ok_type
>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12479, mozilla::dom::quota::Severity::Error); return tryResult1099
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1100)::ok_type>); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1092.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12456, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& subdir = tryResult1095.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12459); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12459); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12460); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12464, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& subdirWithSuffix = tryResult1096.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1097.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12467, mozilla::dom::quota::Severity::Error); return tryResult1097.propagateErr(); } const bool& exists = tryResult1097.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1098.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); return tryResult1098.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1099)::ok_type>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1099.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12479, mozilla::dom::quota::Severity::Error); return tryResult1099.propagateErr(); }}; return Ok{}; })"
, tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12482, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); }}
12441 // we have to check that possibility here too. We do this on all{auto tryResult1100 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1092)::ok_type
>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1092.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError
("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1095
.propagateErr(); } const auto& subdir = tryResult1095.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12459); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12460); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12464, mozilla::dom::quota::Severity::Error); return tryResult1096
.propagateErr(); } const auto& subdirWithSuffix = tryResult1096
.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect
(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )"
, tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1097
.propagateErr(); } const bool& exists = tryResult1097.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12471
); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12473, mozilla::dom::quota::Severity::Error); return tryResult1098
.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1099)::ok_type
>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12479, mozilla::dom::quota::Severity::Error); return tryResult1099
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1100)::ok_type>); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1092.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12456, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& subdir = tryResult1095.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12459); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12459); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12460); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12464, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& subdirWithSuffix = tryResult1096.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1097.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12467, mozilla::dom::quota::Severity::Error); return tryResult1097.propagateErr(); } const bool& exists = tryResult1097.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1098.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); return tryResult1098.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1099)::ok_type>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1099.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12479, mozilla::dom::quota::Severity::Error); return tryResult1099.propagateErr(); }}; return Ok{}; })"
, tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12482, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); }}
12442 // platforms, because the origin directory may have been created{auto tryResult1100 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1092)::ok_type
>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1092.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError
("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1095
.propagateErr(); } const auto& subdir = tryResult1095.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12459); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12460); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12464, mozilla::dom::quota::Severity::Error); return tryResult1096
.propagateErr(); } const auto& subdirWithSuffix = tryResult1096
.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect
(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )"
, tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1097
.propagateErr(); } const bool& exists = tryResult1097.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12471
); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12473, mozilla::dom::quota::Severity::Error); return tryResult1098
.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1099)::ok_type
>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12479, mozilla::dom::quota::Severity::Error); return tryResult1099
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1100)::ok_type>); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1092.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12456, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& subdir = tryResult1095.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12459); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12459); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12460); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12464, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& subdirWithSuffix = tryResult1096.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1097.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12467, mozilla::dom::quota::Severity::Error); return tryResult1097.propagateErr(); } const bool& exists = tryResult1097.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1098.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); return tryResult1098.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1099)::ok_type>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1099.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12479, mozilla::dom::quota::Severity::Error); return tryResult1099.propagateErr(); }}; return Ok{}; })"
, tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12482, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); }}
12443 // on Windows and now accessed on different OS.{auto tryResult1100 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1092)::ok_type
>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1092.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError
("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1095
.propagateErr(); } const auto& subdir = tryResult1095.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12459); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12460); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12464, mozilla::dom::quota::Severity::Error); return tryResult1096
.propagateErr(); } const auto& subdirWithSuffix = tryResult1096
.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect
(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )"
, tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1097
.propagateErr(); } const bool& exists = tryResult1097.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12471
); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12473, mozilla::dom::quota::Severity::Error); return tryResult1098
.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1099)::ok_type
>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12479, mozilla::dom::quota::Severity::Error); return tryResult1099
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1100)::ok_type>); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1092.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12456, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& subdir = tryResult1095.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12459); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12459); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12460); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12464, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& subdirWithSuffix = tryResult1096.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1097.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12467, mozilla::dom::quota::Severity::Error); return tryResult1097.propagateErr(); } const bool& exists = tryResult1097.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1098.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); return tryResult1098.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1099)::ok_type>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1099.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12479, mozilla::dom::quota::Severity::Error); return tryResult1099.propagateErr(); }}; return Ok{}; })"
, tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12482, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); }}
12444 const nsAutoString subdirNameWithDot = subdirName + u"."_ns;{auto tryResult1100 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1092)::ok_type
>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1092.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError
("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1095
.propagateErr(); } const auto& subdir = tryResult1095.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12459); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12460); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12464, mozilla::dom::quota::Severity::Error); return tryResult1096
.propagateErr(); } const auto& subdirWithSuffix = tryResult1096
.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect
(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )"
, tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1097
.propagateErr(); } const bool& exists = tryResult1097.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12471
); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12473, mozilla::dom::quota::Severity::Error); return tryResult1098
.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1099)::ok_type
>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12479, mozilla::dom::quota::Severity::Error); return tryResult1099
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1100)::ok_type>); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1092.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12456, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& subdir = tryResult1095.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12459); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12459); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12460); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12464, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& subdirWithSuffix = tryResult1096.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1097.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12467, mozilla::dom::quota::Severity::Error); return tryResult1097.propagateErr(); } const bool& exists = tryResult1097.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1098.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); return tryResult1098.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1099)::ok_type>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1099.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12479, mozilla::dom::quota::Severity::Error); return tryResult1099.propagateErr(); }}; return Ok{}; })"
, tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12482, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); }}
12445 QM_TRY(OkIf(databaseFilenames.Contains(subdirNameWithDot)),{auto tryResult1100 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1092)::ok_type
>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1092.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError
("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1095
.propagateErr(); } const auto& subdir = tryResult1095.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12459); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12460); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12464, mozilla::dom::quota::Severity::Error); return tryResult1096
.propagateErr(); } const auto& subdirWithSuffix = tryResult1096
.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect
(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )"
, tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1097
.propagateErr(); } const bool& exists = tryResult1097.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12471
); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12473, mozilla::dom::quota::Severity::Error); return tryResult1098
.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1099)::ok_type
>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12479, mozilla::dom::quota::Severity::Error); return tryResult1099
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1100)::ok_type>); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1092.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12456, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& subdir = tryResult1095.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12459); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12459); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12460); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12464, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& subdirWithSuffix = tryResult1096.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1097.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12467, mozilla::dom::quota::Severity::Error); return tryResult1097.propagateErr(); } const bool& exists = tryResult1097.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1098.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); return tryResult1098.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1099)::ok_type>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1099.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12479, mozilla::dom::quota::Severity::Error); return tryResult1099.propagateErr(); }}; return Ok{}; })"
, tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12482, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); }}
12446 Err(NotOk{}));{auto tryResult1100 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1092)::ok_type
>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1092.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError
("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1095
.propagateErr(); } const auto& subdir = tryResult1095.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12459); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12460); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12464, mozilla::dom::quota::Severity::Error); return tryResult1096
.propagateErr(); } const auto& subdirWithSuffix = tryResult1096
.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect
(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )"
, tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1097
.propagateErr(); } const bool& exists = tryResult1097.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12471
); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12473, mozilla::dom::quota::Severity::Error); return tryResult1098
.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1099)::ok_type
>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12479, mozilla::dom::quota::Severity::Error); return tryResult1099
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1100)::ok_type>); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1092.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12456, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& subdir = tryResult1095.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12459); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12459); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12460); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12464, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& subdirWithSuffix = tryResult1096.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1097.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12467, mozilla::dom::quota::Severity::Error); return tryResult1097.propagateErr(); } const bool& exists = tryResult1097.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1098.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); return tryResult1098.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1099)::ok_type>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1099.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12479, mozilla::dom::quota::Severity::Error); return tryResult1099.propagateErr(); }}; return Ok{}; })"
, tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12482, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); }}
12447
12448 return nsAutoString{subdirNameWithDot +{auto tryResult1100 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1092)::ok_type
>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1092.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError
("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1095
.propagateErr(); } const auto& subdir = tryResult1095.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12459); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12460); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12464, mozilla::dom::quota::Severity::Error); return tryResult1096
.propagateErr(); } const auto& subdirWithSuffix = tryResult1096
.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect
(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )"
, tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1097
.propagateErr(); } const bool& exists = tryResult1097.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12471
); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12473, mozilla::dom::quota::Severity::Error); return tryResult1098
.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1099)::ok_type
>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12479, mozilla::dom::quota::Severity::Error); return tryResult1099
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1100)::ok_type>); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1092.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12456, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& subdir = tryResult1095.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12459); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12459); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12460); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12464, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& subdirWithSuffix = tryResult1096.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1097.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12467, mozilla::dom::quota::Severity::Error); return tryResult1097.propagateErr(); } const bool& exists = tryResult1097.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1098.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); return tryResult1098.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1099)::ok_type>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1099.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12479, mozilla::dom::quota::Severity::Error); return tryResult1099.propagateErr(); }}; return Ok{}; })"
, tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12482, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); }}
12449 kFileManagerDirectoryNameSuffix};{auto tryResult1100 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1092)::ok_type
>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1092.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError
("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1095
.propagateErr(); } const auto& subdir = tryResult1095.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12459); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12460); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12464, mozilla::dom::quota::Severity::Error); return tryResult1096
.propagateErr(); } const auto& subdirWithSuffix = tryResult1096
.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect
(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )"
, tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1097
.propagateErr(); } const bool& exists = tryResult1097.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12471
); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12473, mozilla::dom::quota::Severity::Error); return tryResult1098
.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1099)::ok_type
>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12479, mozilla::dom::quota::Severity::Error); return tryResult1099
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1100)::ok_type>); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1092.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12456, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& subdir = tryResult1095.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12459); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12459); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12460); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12464, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& subdirWithSuffix = tryResult1096.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1097.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12467, mozilla::dom::quota::Severity::Error); return tryResult1097.propagateErr(); } const bool& exists = tryResult1097.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1098.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); return tryResult1098.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1099)::ok_type>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1099.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12479, mozilla::dom::quota::Severity::Error); return tryResult1099.propagateErr(); }}; return Ok{}; })"
, tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12482, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); }}
12450 }()),{auto tryResult1100 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1092)::ok_type
>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1092.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError
("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1095
.propagateErr(); } const auto& subdir = tryResult1095.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12459); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12460); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12464, mozilla::dom::quota::Severity::Error); return tryResult1096
.propagateErr(); } const auto& subdirWithSuffix = tryResult1096
.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect
(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )"
, tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1097
.propagateErr(); } const bool& exists = tryResult1097.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12471
); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12473, mozilla::dom::quota::Severity::Error); return tryResult1098
.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1099)::ok_type
>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12479, mozilla::dom::quota::Severity::Error); return tryResult1099
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1100)::ok_type>); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1092.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12456, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& subdir = tryResult1095.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12459); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12459); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12460); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12464, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& subdirWithSuffix = tryResult1096.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1097.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12467, mozilla::dom::quota::Severity::Error); return tryResult1097.propagateErr(); } const bool& exists = tryResult1097.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1098.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); return tryResult1098.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1099)::ok_type>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1099.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12479, mozilla::dom::quota::Severity::Error); return tryResult1099.propagateErr(); }}; return Ok{}; })"
, tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12482, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); }}
12451 Ok{});{auto tryResult1100 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1092)::ok_type
>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1092.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError
("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1095
.propagateErr(); } const auto& subdir = tryResult1095.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12459); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12460); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12464, mozilla::dom::quota::Severity::Error); return tryResult1096
.propagateErr(); } const auto& subdirWithSuffix = tryResult1096
.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect
(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )"
, tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1097
.propagateErr(); } const bool& exists = tryResult1097.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12471
); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12473, mozilla::dom::quota::Severity::Error); return tryResult1098
.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1099)::ok_type
>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12479, mozilla::dom::quota::Severity::Error); return tryResult1099
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1100)::ok_type>); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1092.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12456, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& subdir = tryResult1095.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12459); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12459); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12460); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12464, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& subdirWithSuffix = tryResult1096.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1097.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12467, mozilla::dom::quota::Severity::Error); return tryResult1097.propagateErr(); } const bool& exists = tryResult1097.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1098.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); return tryResult1098.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1099)::ok_type>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1099.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12479, mozilla::dom::quota::Severity::Error); return tryResult1099.propagateErr(); }}; return Ok{}; })"
, tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12482, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); }}
12452
12453 // We do have a database that uses this subdir so we should rename it{auto tryResult1100 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1092)::ok_type
>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1092.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError
("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1095
.propagateErr(); } const auto& subdir = tryResult1095.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12459); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12460); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12464, mozilla::dom::quota::Severity::Error); return tryResult1096
.propagateErr(); } const auto& subdirWithSuffix = tryResult1096
.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect
(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )"
, tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1097
.propagateErr(); } const bool& exists = tryResult1097.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12471
); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12473, mozilla::dom::quota::Severity::Error); return tryResult1098
.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1099)::ok_type
>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12479, mozilla::dom::quota::Severity::Error); return tryResult1099
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1100)::ok_type>); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1092.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12456, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& subdir = tryResult1095.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12459); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12459); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12460); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12464, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& subdirWithSuffix = tryResult1096.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1097.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12467, mozilla::dom::quota::Severity::Error); return tryResult1097.propagateErr(); } const bool& exists = tryResult1097.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1098.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); return tryResult1098.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1099)::ok_type>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1099.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12479, mozilla::dom::quota::Severity::Error); return tryResult1099.propagateErr(); }}; return Ok{}; })"
, tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12482, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); }}
12454 // now.{auto tryResult1100 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1092)::ok_type
>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1092.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError
("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1095
.propagateErr(); } const auto& subdir = tryResult1095.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12459); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12460); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12464, mozilla::dom::quota::Severity::Error); return tryResult1096
.propagateErr(); } const auto& subdirWithSuffix = tryResult1096
.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect
(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )"
, tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1097
.propagateErr(); } const bool& exists = tryResult1097.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12471
); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12473, mozilla::dom::quota::Severity::Error); return tryResult1098
.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1099)::ok_type
>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12479, mozilla::dom::quota::Severity::Error); return tryResult1099
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1100)::ok_type>); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1092.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12456, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& subdir = tryResult1095.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12459); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12459); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12460); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12464, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& subdirWithSuffix = tryResult1096.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1097.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12467, mozilla::dom::quota::Severity::Error); return tryResult1097.propagateErr(); } const bool& exists = tryResult1097.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1098.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); return tryResult1098.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1099)::ok_type>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1099.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12479, mozilla::dom::quota::Severity::Error); return tryResult1099.propagateErr(); }}; return Ok{}; })"
, tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12482, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); }}
12455 QM_TRY_INSPECT(const auto& subdir,{auto tryResult1100 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1092)::ok_type
>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1092.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError
("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1095
.propagateErr(); } const auto& subdir = tryResult1095.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12459); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12460); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12464, mozilla::dom::quota::Severity::Error); return tryResult1096
.propagateErr(); } const auto& subdirWithSuffix = tryResult1096
.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect
(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )"
, tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1097
.propagateErr(); } const bool& exists = tryResult1097.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12471
); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12473, mozilla::dom::quota::Severity::Error); return tryResult1098
.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1099)::ok_type
>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12479, mozilla::dom::quota::Severity::Error); return tryResult1099
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1100)::ok_type>); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1092.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12456, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& subdir = tryResult1095.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12459); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12459); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12460); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12464, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& subdirWithSuffix = tryResult1096.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1097.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12467, mozilla::dom::quota::Severity::Error); return tryResult1097.propagateErr(); } const bool& exists = tryResult1097.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1098.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); return tryResult1098.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1099)::ok_type>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1099.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12479, mozilla::dom::quota::Severity::Error); return tryResult1099.propagateErr(); }}; return Ok{}; })"
, tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12482, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); }}
12456 CloneFileAndAppend(*aDirectory, subdirName));{auto tryResult1100 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1092)::ok_type
>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1092.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError
("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1095
.propagateErr(); } const auto& subdir = tryResult1095.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12459); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12460); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12464, mozilla::dom::quota::Severity::Error); return tryResult1096
.propagateErr(); } const auto& subdirWithSuffix = tryResult1096
.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect
(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )"
, tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1097
.propagateErr(); } const bool& exists = tryResult1097.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12471
); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12473, mozilla::dom::quota::Severity::Error); return tryResult1098
.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1099)::ok_type
>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12479, mozilla::dom::quota::Severity::Error); return tryResult1099
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1100)::ok_type>); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1092.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12456, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& subdir = tryResult1095.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12459); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12459); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12460); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12464, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& subdirWithSuffix = tryResult1096.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1097.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12467, mozilla::dom::quota::Severity::Error); return tryResult1097.propagateErr(); } const bool& exists = tryResult1097.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1098.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); return tryResult1098.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1099)::ok_type>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1099.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12479, mozilla::dom::quota::Severity::Error); return tryResult1099.propagateErr(); }}; return Ok{}; })"
, tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12482, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); }}
12457
12458 DebugOnly<bool> isDirectory;{auto tryResult1100 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1092)::ok_type
>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1092.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError
("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1095
.propagateErr(); } const auto& subdir = tryResult1095.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12459); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12460); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12464, mozilla::dom::quota::Severity::Error); return tryResult1096
.propagateErr(); } const auto& subdirWithSuffix = tryResult1096
.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect
(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )"
, tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1097
.propagateErr(); } const bool& exists = tryResult1097.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12471
); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12473, mozilla::dom::quota::Severity::Error); return tryResult1098
.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1099)::ok_type
>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12479, mozilla::dom::quota::Severity::Error); return tryResult1099
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1100)::ok_type>); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1092.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12456, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& subdir = tryResult1095.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12459); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12459); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12460); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12464, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& subdirWithSuffix = tryResult1096.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1097.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12467, mozilla::dom::quota::Severity::Error); return tryResult1097.propagateErr(); } const bool& exists = tryResult1097.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1098.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); return tryResult1098.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1099)::ok_type>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1099.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12479, mozilla::dom::quota::Severity::Error); return tryResult1099.propagateErr(); }}; return Ok{}; })"
, tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12482, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); }}
12459 MOZ_ASSERT(NS_SUCCEEDED(subdir->IsDirectory(&isDirectory)));{auto tryResult1100 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1092)::ok_type
>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1092.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError
("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1095
.propagateErr(); } const auto& subdir = tryResult1095.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12459); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12460); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12464, mozilla::dom::quota::Severity::Error); return tryResult1096
.propagateErr(); } const auto& subdirWithSuffix = tryResult1096
.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect
(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )"
, tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1097
.propagateErr(); } const bool& exists = tryResult1097.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12471
); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12473, mozilla::dom::quota::Severity::Error); return tryResult1098
.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1099)::ok_type
>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12479, mozilla::dom::quota::Severity::Error); return tryResult1099
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1100)::ok_type>); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1092.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12456, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& subdir = tryResult1095.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12459); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12459); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12460); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12464, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& subdirWithSuffix = tryResult1096.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1097.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12467, mozilla::dom::quota::Severity::Error); return tryResult1097.propagateErr(); } const bool& exists = tryResult1097.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1098.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); return tryResult1098.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1099)::ok_type>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1099.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12479, mozilla::dom::quota::Severity::Error); return tryResult1099.propagateErr(); }}; return Ok{}; })"
, tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12482, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); }}
12460 MOZ_ASSERT(isDirectory);{auto tryResult1100 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1092)::ok_type
>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1092.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError
("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1095
.propagateErr(); } const auto& subdir = tryResult1095.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12459); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12460); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12464, mozilla::dom::quota::Severity::Error); return tryResult1096
.propagateErr(); } const auto& subdirWithSuffix = tryResult1096
.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect
(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )"
, tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1097
.propagateErr(); } const bool& exists = tryResult1097.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12471
); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12473, mozilla::dom::quota::Severity::Error); return tryResult1098
.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1099)::ok_type
>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12479, mozilla::dom::quota::Severity::Error); return tryResult1099
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1100)::ok_type>); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1092.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12456, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& subdir = tryResult1095.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12459); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12459); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12460); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12464, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& subdirWithSuffix = tryResult1096.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1097.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12467, mozilla::dom::quota::Severity::Error); return tryResult1097.propagateErr(); } const bool& exists = tryResult1097.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1098.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); return tryResult1098.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1099)::ok_type>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1099.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12479, mozilla::dom::quota::Severity::Error); return tryResult1099.propagateErr(); }}; return Ok{}; })"
, tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12482, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); }}
12461
12462 // Check if the subdir with suffix already exists before renaming.{auto tryResult1100 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1092)::ok_type
>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1092.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError
("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1095
.propagateErr(); } const auto& subdir = tryResult1095.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12459); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12460); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12464, mozilla::dom::quota::Severity::Error); return tryResult1096
.propagateErr(); } const auto& subdirWithSuffix = tryResult1096
.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect
(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )"
, tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1097
.propagateErr(); } const bool& exists = tryResult1097.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12471
); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12473, mozilla::dom::quota::Severity::Error); return tryResult1098
.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1099)::ok_type
>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12479, mozilla::dom::quota::Severity::Error); return tryResult1099
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1100)::ok_type>); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1092.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12456, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& subdir = tryResult1095.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12459); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12459); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12460); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12464, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& subdirWithSuffix = tryResult1096.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1097.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12467, mozilla::dom::quota::Severity::Error); return tryResult1097.propagateErr(); } const bool& exists = tryResult1097.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1098.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); return tryResult1098.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1099)::ok_type>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1099.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12479, mozilla::dom::quota::Severity::Error); return tryResult1099.propagateErr(); }}; return Ok{}; })"
, tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12482, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); }}
12463 QM_TRY_INSPECT(const auto& subdirWithSuffix,{auto tryResult1100 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1092)::ok_type
>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1092.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError
("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1095
.propagateErr(); } const auto& subdir = tryResult1095.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12459); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12460); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12464, mozilla::dom::quota::Severity::Error); return tryResult1096
.propagateErr(); } const auto& subdirWithSuffix = tryResult1096
.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect
(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )"
, tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1097
.propagateErr(); } const bool& exists = tryResult1097.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12471
); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12473, mozilla::dom::quota::Severity::Error); return tryResult1098
.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1099)::ok_type
>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12479, mozilla::dom::quota::Severity::Error); return tryResult1099
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1100)::ok_type>); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1092.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12456, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& subdir = tryResult1095.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12459); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12459); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12460); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12464, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& subdirWithSuffix = tryResult1096.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1097.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12467, mozilla::dom::quota::Severity::Error); return tryResult1097.propagateErr(); } const bool& exists = tryResult1097.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1098.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); return tryResult1098.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1099)::ok_type>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1099.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12479, mozilla::dom::quota::Severity::Error); return tryResult1099.propagateErr(); }}; return Ok{}; })"
, tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12482, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); }}
12464 CloneFileAndAppend(*aDirectory, subdirNameWithSuffix));{auto tryResult1100 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1092)::ok_type
>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1092.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError
("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1095
.propagateErr(); } const auto& subdir = tryResult1095.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12459); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12460); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12464, mozilla::dom::quota::Severity::Error); return tryResult1096
.propagateErr(); } const auto& subdirWithSuffix = tryResult1096
.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect
(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )"
, tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1097
.propagateErr(); } const bool& exists = tryResult1097.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12471
); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12473, mozilla::dom::quota::Severity::Error); return tryResult1098
.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1099)::ok_type
>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12479, mozilla::dom::quota::Severity::Error); return tryResult1099
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1100)::ok_type>); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1092.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12456, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& subdir = tryResult1095.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12459); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12459); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12460); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12464, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& subdirWithSuffix = tryResult1096.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1097.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12467, mozilla::dom::quota::Severity::Error); return tryResult1097.propagateErr(); } const bool& exists = tryResult1097.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1098.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); return tryResult1098.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1099)::ok_type>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1099.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12479, mozilla::dom::quota::Severity::Error); return tryResult1099.propagateErr(); }}; return Ok{}; })"
, tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12482, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); }}
12465
12466 QM_TRY_INSPECT(const bool& exists,{auto tryResult1100 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1092)::ok_type
>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1092.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError
("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1095
.propagateErr(); } const auto& subdir = tryResult1095.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12459); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12460); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12464, mozilla::dom::quota::Severity::Error); return tryResult1096
.propagateErr(); } const auto& subdirWithSuffix = tryResult1096
.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect
(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )"
, tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1097
.propagateErr(); } const bool& exists = tryResult1097.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12471
); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12473, mozilla::dom::quota::Severity::Error); return tryResult1098
.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1099)::ok_type
>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12479, mozilla::dom::quota::Severity::Error); return tryResult1099
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1100)::ok_type>); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1092.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12456, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& subdir = tryResult1095.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12459); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12459); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12460); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12464, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& subdirWithSuffix = tryResult1096.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1097.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12467, mozilla::dom::quota::Severity::Error); return tryResult1097.propagateErr(); } const bool& exists = tryResult1097.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1098.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); return tryResult1098.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1099)::ok_type>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1099.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12479, mozilla::dom::quota::Severity::Error); return tryResult1099.propagateErr(); }}; return Ok{}; })"
, tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12482, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); }}
12467 MOZ_TO_RESULT_INVOKE_MEMBER(subdirWithSuffix, Exists));{auto tryResult1100 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1092)::ok_type
>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1092.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError
("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1095
.propagateErr(); } const auto& subdir = tryResult1095.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12459); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12460); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12464, mozilla::dom::quota::Severity::Error); return tryResult1096
.propagateErr(); } const auto& subdirWithSuffix = tryResult1096
.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect
(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )"
, tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1097
.propagateErr(); } const bool& exists = tryResult1097.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12471
); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12473, mozilla::dom::quota::Severity::Error); return tryResult1098
.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1099)::ok_type
>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12479, mozilla::dom::quota::Severity::Error); return tryResult1099
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1100)::ok_type>); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1092.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12456, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& subdir = tryResult1095.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12459); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12459); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12460); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12464, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& subdirWithSuffix = tryResult1096.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1097.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12467, mozilla::dom::quota::Severity::Error); return tryResult1097.propagateErr(); } const bool& exists = tryResult1097.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1098.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); return tryResult1098.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1099)::ok_type>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1099.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12479, mozilla::dom::quota::Severity::Error); return tryResult1099.propagateErr(); }}; return Ok{}; })"
, tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12482, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); }}
12468
12469 if (exists) {{auto tryResult1100 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1092)::ok_type
>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1092.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError
("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1095
.propagateErr(); } const auto& subdir = tryResult1095.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12459); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12460); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12464, mozilla::dom::quota::Severity::Error); return tryResult1096
.propagateErr(); } const auto& subdirWithSuffix = tryResult1096
.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect
(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )"
, tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1097
.propagateErr(); } const bool& exists = tryResult1097.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12471
); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12473, mozilla::dom::quota::Severity::Error); return tryResult1098
.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1099)::ok_type
>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12479, mozilla::dom::quota::Severity::Error); return tryResult1099
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1100)::ok_type>); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1092.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12456, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& subdir = tryResult1095.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12459); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12459); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12460); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12464, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& subdirWithSuffix = tryResult1096.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1097.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12467, mozilla::dom::quota::Severity::Error); return tryResult1097.propagateErr(); } const bool& exists = tryResult1097.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1098.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); return tryResult1098.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1099)::ok_type>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1099.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12479, mozilla::dom::quota::Severity::Error); return tryResult1099.propagateErr(); }}; return Ok{}; })"
, tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12482, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); }}
12470 IDB_WARNING("Deleting old %s files directory!",{auto tryResult1100 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1092)::ok_type
>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1092.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError
("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1095
.propagateErr(); } const auto& subdir = tryResult1095.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12459); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12460); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12464, mozilla::dom::quota::Severity::Error); return tryResult1096
.propagateErr(); } const auto& subdirWithSuffix = tryResult1096
.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect
(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )"
, tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1097
.propagateErr(); } const bool& exists = tryResult1097.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12471
); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12473, mozilla::dom::quota::Severity::Error); return tryResult1098
.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1099)::ok_type
>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12479, mozilla::dom::quota::Severity::Error); return tryResult1099
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1100)::ok_type>); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1092.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12456, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& subdir = tryResult1095.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12459); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12459); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12460); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12464, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& subdirWithSuffix = tryResult1096.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1097.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12467, mozilla::dom::quota::Severity::Error); return tryResult1097.propagateErr(); } const bool& exists = tryResult1097.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1098.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); return tryResult1098.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1099)::ok_type>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1099.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12479, mozilla::dom::quota::Severity::Error); return tryResult1099.propagateErr(); }}; return Ok{}; })"
, tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12482, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); }}
12471 NS_ConvertUTF16toUTF8(subdirName).get());{auto tryResult1100 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1092)::ok_type
>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1092.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError
("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1095
.propagateErr(); } const auto& subdir = tryResult1095.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12459); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12460); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12464, mozilla::dom::quota::Severity::Error); return tryResult1096
.propagateErr(); } const auto& subdirWithSuffix = tryResult1096
.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect
(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )"
, tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1097
.propagateErr(); } const bool& exists = tryResult1097.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12471
); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12473, mozilla::dom::quota::Severity::Error); return tryResult1098
.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1099)::ok_type
>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12479, mozilla::dom::quota::Severity::Error); return tryResult1099
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1100)::ok_type>); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1092.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12456, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& subdir = tryResult1095.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12459); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12459); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12460); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12464, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& subdirWithSuffix = tryResult1096.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1097.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12467, mozilla::dom::quota::Severity::Error); return tryResult1097.propagateErr(); } const bool& exists = tryResult1097.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1098.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); return tryResult1098.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1099)::ok_type>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1099.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12479, mozilla::dom::quota::Severity::Error); return tryResult1099.propagateErr(); }}; return Ok{}; })"
, tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12482, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); }}
12472
12473 QM_TRY(MOZ_TO_RESULT(subdir->Remove(/* aRecursive */ true)));{auto tryResult1100 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1092)::ok_type
>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1092.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError
("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1095
.propagateErr(); } const auto& subdir = tryResult1095.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12459); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12460); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12464, mozilla::dom::quota::Severity::Error); return tryResult1096
.propagateErr(); } const auto& subdirWithSuffix = tryResult1096
.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect
(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )"
, tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1097
.propagateErr(); } const bool& exists = tryResult1097.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12471
); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12473, mozilla::dom::quota::Severity::Error); return tryResult1098
.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1099)::ok_type
>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12479, mozilla::dom::quota::Severity::Error); return tryResult1099
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1100)::ok_type>); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1092.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12456, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& subdir = tryResult1095.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12459); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12459); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12460); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12464, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& subdirWithSuffix = tryResult1096.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1097.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12467, mozilla::dom::quota::Severity::Error); return tryResult1097.propagateErr(); } const bool& exists = tryResult1097.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1098.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); return tryResult1098.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1099)::ok_type>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1099.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12479, mozilla::dom::quota::Severity::Error); return tryResult1099.propagateErr(); }}; return Ok{}; })"
, tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12482, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); }}
12474
12475 return Ok{};{auto tryResult1100 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1092)::ok_type
>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1092.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError
("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1095
.propagateErr(); } const auto& subdir = tryResult1095.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12459); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12460); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12464, mozilla::dom::quota::Severity::Error); return tryResult1096
.propagateErr(); } const auto& subdirWithSuffix = tryResult1096
.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect
(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )"
, tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1097
.propagateErr(); } const bool& exists = tryResult1097.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12471
); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12473, mozilla::dom::quota::Severity::Error); return tryResult1098
.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1099)::ok_type
>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12479, mozilla::dom::quota::Severity::Error); return tryResult1099
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1100)::ok_type>); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1092.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12456, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& subdir = tryResult1095.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12459); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12459); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12460); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12464, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& subdirWithSuffix = tryResult1096.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1097.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12467, mozilla::dom::quota::Severity::Error); return tryResult1097.propagateErr(); } const bool& exists = tryResult1097.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1098.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); return tryResult1098.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1099)::ok_type>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1099.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12479, mozilla::dom::quota::Severity::Error); return tryResult1099.propagateErr(); }}; return Ok{}; })"
, tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12482, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); }}
12476 }{auto tryResult1100 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1092)::ok_type
>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1092.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError
("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1095
.propagateErr(); } const auto& subdir = tryResult1095.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12459); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12460); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12464, mozilla::dom::quota::Severity::Error); return tryResult1096
.propagateErr(); } const auto& subdirWithSuffix = tryResult1096
.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect
(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )"
, tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1097
.propagateErr(); } const bool& exists = tryResult1097.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12471
); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12473, mozilla::dom::quota::Severity::Error); return tryResult1098
.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1099)::ok_type
>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12479, mozilla::dom::quota::Severity::Error); return tryResult1099
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1100)::ok_type>); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1092.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12456, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& subdir = tryResult1095.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12459); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12459); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12460); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12464, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& subdirWithSuffix = tryResult1096.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1097.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12467, mozilla::dom::quota::Severity::Error); return tryResult1097.propagateErr(); } const bool& exists = tryResult1097.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1098.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); return tryResult1098.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1099)::ok_type>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1099.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12479, mozilla::dom::quota::Severity::Error); return tryResult1099.propagateErr(); }}; return Ok{}; })"
, tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12482, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); }}
12477
12478 // Finally, rename the subdir.{auto tryResult1100 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1092)::ok_type
>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1092.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError
("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1095
.propagateErr(); } const auto& subdir = tryResult1095.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12459); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12460); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12464, mozilla::dom::quota::Severity::Error); return tryResult1096
.propagateErr(); } const auto& subdirWithSuffix = tryResult1096
.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect
(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )"
, tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1097
.propagateErr(); } const bool& exists = tryResult1097.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12471
); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12473, mozilla::dom::quota::Severity::Error); return tryResult1098
.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1099)::ok_type
>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12479, mozilla::dom::quota::Severity::Error); return tryResult1099
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1100)::ok_type>); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1092.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12456, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& subdir = tryResult1095.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12459); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12459); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12460); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12464, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& subdirWithSuffix = tryResult1096.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1097.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12467, mozilla::dom::quota::Severity::Error); return tryResult1097.propagateErr(); } const bool& exists = tryResult1097.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1098.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); return tryResult1098.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1099)::ok_type>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1099.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12479, mozilla::dom::quota::Severity::Error); return tryResult1099.propagateErr(); }}; return Ok{}; })"
, tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12482, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); }}
12479 QM_TRY(MOZ_TO_RESULT(subdir->RenameTo(nullptr, subdirNameWithSuffix)));{auto tryResult1100 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1092)::ok_type
>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1092.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError
("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1095
.propagateErr(); } const auto& subdir = tryResult1095.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12459); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12460); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12464, mozilla::dom::quota::Severity::Error); return tryResult1096
.propagateErr(); } const auto& subdirWithSuffix = tryResult1096
.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect
(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )"
, tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1097
.propagateErr(); } const bool& exists = tryResult1097.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12471
); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12473, mozilla::dom::quota::Severity::Error); return tryResult1098
.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1099)::ok_type
>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12479, mozilla::dom::quota::Severity::Error); return tryResult1099
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1100)::ok_type>); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1092.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12456, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& subdir = tryResult1095.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12459); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12459); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12460); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12464, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& subdirWithSuffix = tryResult1096.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1097.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12467, mozilla::dom::quota::Severity::Error); return tryResult1097.propagateErr(); } const bool& exists = tryResult1097.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1098.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); return tryResult1098.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1099)::ok_type>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1099.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12479, mozilla::dom::quota::Severity::Error); return tryResult1099.propagateErr(); }}; return Ok{}; })"
, tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12482, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); }}
12480
12481 return Ok{};{auto tryResult1100 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1092)::ok_type
>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1092.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError
("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1095
.propagateErr(); } const auto& subdir = tryResult1095.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12459); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12460); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12464, mozilla::dom::quota::Severity::Error); return tryResult1096
.propagateErr(); } const auto& subdirWithSuffix = tryResult1096
.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect
(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )"
, tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1097
.propagateErr(); } const bool& exists = tryResult1097.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12471
); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12473, mozilla::dom::quota::Severity::Error); return tryResult1098
.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1099)::ok_type
>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12479, mozilla::dom::quota::Severity::Error); return tryResult1099
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1100)::ok_type>); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1092.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12456, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& subdir = tryResult1095.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12459); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12459); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12460); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12464, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& subdirWithSuffix = tryResult1096.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1097.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12467, mozilla::dom::quota::Severity::Error); return tryResult1097.propagateErr(); } const bool& exists = tryResult1097.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1098.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); return tryResult1098.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1099)::ok_type>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1099.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12479, mozilla::dom::quota::Severity::Error); return tryResult1099.propagateErr(); }}; return Ok{}; })"
, tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12482, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); }}
12482 })){auto tryResult1100 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1092)::ok_type
>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1092.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError
("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12456, mozilla::dom::quota::Severity::Error); return tryResult1095
.propagateErr(); } const auto& subdir = tryResult1095.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12459); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12460); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12464, mozilla::dom::quota::Severity::Error); return tryResult1096
.propagateErr(); } const auto& subdirWithSuffix = tryResult1096
.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect
(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )"
, tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12467, mozilla::dom::quota::Severity::Error); return tryResult1097
.propagateErr(); } const bool& exists = tryResult1097.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12471
); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12473, mozilla::dom::quota::Severity::Error); return tryResult1098
.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1099)::ok_type
>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12479, mozilla::dom::quota::Severity::Error); return tryResult1099
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1100)::ok_type>); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1092 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1092.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12424, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1094 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1094.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1094.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12451, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1093 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1093.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12446, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1094.inspect();; auto tryResult1095 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1095.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12456, mozilla::dom::quota::Severity::Error); return tryResult1095.propagateErr(); } const auto& subdir = tryResult1095.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12459); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12459); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12460); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1096 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1096.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12464, mozilla::dom::quota::Severity::Error); return tryResult1096.propagateErr(); } const auto& subdirWithSuffix = tryResult1096.inspect();; auto tryResult1097 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1097.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1097.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12467, mozilla::dom::quota::Severity::Error); return tryResult1097.propagateErr(); } const bool& exists = tryResult1097.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12471); } while (0); {auto tryResult1098 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1098)::ok_type>); if ((__builtin_expect(!!(tryResult1098.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1098.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12473, mozilla::dom::quota::Severity::Error); return tryResult1098.propagateErr(); }}; return Ok{}; } {auto tryResult1099 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1099)::ok_type>); if ((__builtin_expect(!!(tryResult1099.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1099.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12479, mozilla::dom::quota::Severity::Error); return tryResult1099.propagateErr(); }}; return Ok{}; })"
, tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12482, mozilla::dom::quota::Severity::Error); return tryResult1100
.propagateErr(); }}
;
12483
12484 return NS_OK;
12485}
12486
12487nsresult QuotaClient::UpgradeStorageFrom2_1To2_2(nsIFile* aDirectory) {
12488 AssertIsOnIOThread();
12489 MOZ_ASSERT(aDirectory)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDirectory)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDirectory))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12489); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectory"
")"); do { MOZ_CrashSequence(__null, 12489); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
1
Assuming 'aDirectory' is non-null
2
Taking false branch
3
Loop condition is false. Exiting loop
12490
12491 QM_TRY(CollectEachFile({auto tryResult1104 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1101 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1101.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1101.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12493, mozilla::dom::quota::Severity::Error); return tryResult1101
.propagateErr(); } const auto& dirEntryKind = tryResult1101
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1102
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1102
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1102.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12502, mozilla::dom::quota::Severity::Error); return tryResult1102
.propagateErr(); } const auto& leafName = tryResult1102.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12508
); } while (0); {auto tryResult1103 = (ToResult(file->Remove
(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1103)::ok_type>); if ((__builtin_expect(!!(tryResult1103
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1103.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12510, mozilla::dom::quota::Severity::Error); return tryResult1103
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1104)::ok_type>); if ((__builtin_expect
(!!(tryResult1104.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1101 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1101.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1101.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, mozilla::dom::quota::Severity::Error); return tryResult1101.propagateErr(); } const auto& dirEntryKind = tryResult1101.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1102 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1102.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1102.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12502, mozilla::dom::quota::Severity::Error); return tryResult1102.propagateErr(); } const auto& leafName = tryResult1102.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508); } while (0); {auto tryResult1103 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1103)::ok_type>); if ((__builtin_expect(!!(tryResult1103.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1103.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12510, mozilla::dom::quota::Severity::Error); return tryResult1103.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1104.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12522, mozilla::dom::quota::Severity::Error); return tryResult1104
.propagateErr(); }}
4
Calling 'CollectEachFile<(lambda at /root/firefox-clang/dom/indexedDB/ActorsParent.cpp:12491:3)>'
12492 *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> {{auto tryResult1104 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1101 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1101.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1101.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12493, mozilla::dom::quota::Severity::Error); return tryResult1101
.propagateErr(); } const auto& dirEntryKind = tryResult1101
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1102
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1102
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1102.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12502, mozilla::dom::quota::Severity::Error); return tryResult1102
.propagateErr(); } const auto& leafName = tryResult1102.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12508
); } while (0); {auto tryResult1103 = (ToResult(file->Remove
(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1103)::ok_type>); if ((__builtin_expect(!!(tryResult1103
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1103.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12510, mozilla::dom::quota::Severity::Error); return tryResult1103
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1104)::ok_type>); if ((__builtin_expect
(!!(tryResult1104.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1101 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1101.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1101.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, mozilla::dom::quota::Severity::Error); return tryResult1101.propagateErr(); } const auto& dirEntryKind = tryResult1101.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1102 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1102.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1102.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12502, mozilla::dom::quota::Severity::Error); return tryResult1102.propagateErr(); } const auto& leafName = tryResult1102.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508); } while (0); {auto tryResult1103 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1103)::ok_type>); if ((__builtin_expect(!!(tryResult1103.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1103.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12510, mozilla::dom::quota::Severity::Error); return tryResult1103.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1104.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12522, mozilla::dom::quota::Severity::Error); return tryResult1104
.propagateErr(); }}
12493 QM_TRY_INSPECT(const auto& dirEntryKind, GetDirEntryKind(*file));{auto tryResult1104 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1101 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1101.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1101.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12493, mozilla::dom::quota::Severity::Error); return tryResult1101
.propagateErr(); } const auto& dirEntryKind = tryResult1101
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1102
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1102
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1102.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12502, mozilla::dom::quota::Severity::Error); return tryResult1102
.propagateErr(); } const auto& leafName = tryResult1102.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12508
); } while (0); {auto tryResult1103 = (ToResult(file->Remove
(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1103)::ok_type>); if ((__builtin_expect(!!(tryResult1103
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1103.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12510, mozilla::dom::quota::Severity::Error); return tryResult1103
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1104)::ok_type>); if ((__builtin_expect
(!!(tryResult1104.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1101 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1101.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1101.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, mozilla::dom::quota::Severity::Error); return tryResult1101.propagateErr(); } const auto& dirEntryKind = tryResult1101.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1102 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1102.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1102.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12502, mozilla::dom::quota::Severity::Error); return tryResult1102.propagateErr(); } const auto& leafName = tryResult1102.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508); } while (0); {auto tryResult1103 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1103)::ok_type>); if ((__builtin_expect(!!(tryResult1103.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1103.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12510, mozilla::dom::quota::Severity::Error); return tryResult1103.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1104.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12522, mozilla::dom::quota::Severity::Error); return tryResult1104
.propagateErr(); }}
12494
12495 switch (dirEntryKind) {{auto tryResult1104 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1101 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1101.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1101.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12493, mozilla::dom::quota::Severity::Error); return tryResult1101
.propagateErr(); } const auto& dirEntryKind = tryResult1101
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1102
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1102
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1102.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12502, mozilla::dom::quota::Severity::Error); return tryResult1102
.propagateErr(); } const auto& leafName = tryResult1102.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12508
); } while (0); {auto tryResult1103 = (ToResult(file->Remove
(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1103)::ok_type>); if ((__builtin_expect(!!(tryResult1103
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1103.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12510, mozilla::dom::quota::Severity::Error); return tryResult1103
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1104)::ok_type>); if ((__builtin_expect
(!!(tryResult1104.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1101 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1101.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1101.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, mozilla::dom::quota::Severity::Error); return tryResult1101.propagateErr(); } const auto& dirEntryKind = tryResult1101.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1102 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1102.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1102.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12502, mozilla::dom::quota::Severity::Error); return tryResult1102.propagateErr(); } const auto& leafName = tryResult1102.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508); } while (0); {auto tryResult1103 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1103)::ok_type>); if ((__builtin_expect(!!(tryResult1103.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1103.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12510, mozilla::dom::quota::Severity::Error); return tryResult1103.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1104.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12522, mozilla::dom::quota::Severity::Error); return tryResult1104
.propagateErr(); }}
12496 case nsIFileKind::ExistsAsDirectory:{auto tryResult1104 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1101 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1101.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1101.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12493, mozilla::dom::quota::Severity::Error); return tryResult1101
.propagateErr(); } const auto& dirEntryKind = tryResult1101
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1102
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1102
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1102.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12502, mozilla::dom::quota::Severity::Error); return tryResult1102
.propagateErr(); } const auto& leafName = tryResult1102.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12508
); } while (0); {auto tryResult1103 = (ToResult(file->Remove
(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1103)::ok_type>); if ((__builtin_expect(!!(tryResult1103
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1103.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12510, mozilla::dom::quota::Severity::Error); return tryResult1103
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1104)::ok_type>); if ((__builtin_expect
(!!(tryResult1104.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1101 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1101.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1101.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, mozilla::dom::quota::Severity::Error); return tryResult1101.propagateErr(); } const auto& dirEntryKind = tryResult1101.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1102 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1102.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1102.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12502, mozilla::dom::quota::Severity::Error); return tryResult1102.propagateErr(); } const auto& leafName = tryResult1102.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508); } while (0); {auto tryResult1103 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1103)::ok_type>); if ((__builtin_expect(!!(tryResult1103.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1103.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12510, mozilla::dom::quota::Severity::Error); return tryResult1103.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1104.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12522, mozilla::dom::quota::Severity::Error); return tryResult1104
.propagateErr(); }}
12497 break;{auto tryResult1104 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1101 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1101.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1101.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12493, mozilla::dom::quota::Severity::Error); return tryResult1101
.propagateErr(); } const auto& dirEntryKind = tryResult1101
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1102
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1102
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1102.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12502, mozilla::dom::quota::Severity::Error); return tryResult1102
.propagateErr(); } const auto& leafName = tryResult1102.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12508
); } while (0); {auto tryResult1103 = (ToResult(file->Remove
(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1103)::ok_type>); if ((__builtin_expect(!!(tryResult1103
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1103.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12510, mozilla::dom::quota::Severity::Error); return tryResult1103
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1104)::ok_type>); if ((__builtin_expect
(!!(tryResult1104.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1101 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1101.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1101.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, mozilla::dom::quota::Severity::Error); return tryResult1101.propagateErr(); } const auto& dirEntryKind = tryResult1101.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1102 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1102.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1102.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12502, mozilla::dom::quota::Severity::Error); return tryResult1102.propagateErr(); } const auto& leafName = tryResult1102.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508); } while (0); {auto tryResult1103 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1103)::ok_type>); if ((__builtin_expect(!!(tryResult1103.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1103.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12510, mozilla::dom::quota::Severity::Error); return tryResult1103.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1104.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12522, mozilla::dom::quota::Severity::Error); return tryResult1104
.propagateErr(); }}
12498
12499 case nsIFileKind::ExistsAsFile: {{auto tryResult1104 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1101 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1101.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1101.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12493, mozilla::dom::quota::Severity::Error); return tryResult1101
.propagateErr(); } const auto& dirEntryKind = tryResult1101
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1102
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1102
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1102.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12502, mozilla::dom::quota::Severity::Error); return tryResult1102
.propagateErr(); } const auto& leafName = tryResult1102.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12508
); } while (0); {auto tryResult1103 = (ToResult(file->Remove
(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1103)::ok_type>); if ((__builtin_expect(!!(tryResult1103
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1103.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12510, mozilla::dom::quota::Severity::Error); return tryResult1103
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1104)::ok_type>); if ((__builtin_expect
(!!(tryResult1104.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1101 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1101.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1101.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, mozilla::dom::quota::Severity::Error); return tryResult1101.propagateErr(); } const auto& dirEntryKind = tryResult1101.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1102 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1102.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1102.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12502, mozilla::dom::quota::Severity::Error); return tryResult1102.propagateErr(); } const auto& leafName = tryResult1102.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508); } while (0); {auto tryResult1103 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1103)::ok_type>); if ((__builtin_expect(!!(tryResult1103.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1103.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12510, mozilla::dom::quota::Severity::Error); return tryResult1103.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1104.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12522, mozilla::dom::quota::Severity::Error); return tryResult1104
.propagateErr(); }}
12500 QM_TRY_INSPECT({auto tryResult1104 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1101 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1101.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1101.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12493, mozilla::dom::quota::Severity::Error); return tryResult1101
.propagateErr(); } const auto& dirEntryKind = tryResult1101
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1102
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1102
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1102.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12502, mozilla::dom::quota::Severity::Error); return tryResult1102
.propagateErr(); } const auto& leafName = tryResult1102.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12508
); } while (0); {auto tryResult1103 = (ToResult(file->Remove
(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1103)::ok_type>); if ((__builtin_expect(!!(tryResult1103
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1103.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12510, mozilla::dom::quota::Severity::Error); return tryResult1103
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1104)::ok_type>); if ((__builtin_expect
(!!(tryResult1104.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1101 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1101.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1101.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, mozilla::dom::quota::Severity::Error); return tryResult1101.propagateErr(); } const auto& dirEntryKind = tryResult1101.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1102 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1102.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1102.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12502, mozilla::dom::quota::Severity::Error); return tryResult1102.propagateErr(); } const auto& leafName = tryResult1102.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508); } while (0); {auto tryResult1103 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1103)::ok_type>); if ((__builtin_expect(!!(tryResult1103.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1103.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12510, mozilla::dom::quota::Severity::Error); return tryResult1103.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1104.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12522, mozilla::dom::quota::Severity::Error); return tryResult1104
.propagateErr(); }}
12501 const auto& leafName,{auto tryResult1104 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1101 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1101.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1101.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12493, mozilla::dom::quota::Severity::Error); return tryResult1101
.propagateErr(); } const auto& dirEntryKind = tryResult1101
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1102
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1102
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1102.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12502, mozilla::dom::quota::Severity::Error); return tryResult1102
.propagateErr(); } const auto& leafName = tryResult1102.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12508
); } while (0); {auto tryResult1103 = (ToResult(file->Remove
(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1103)::ok_type>); if ((__builtin_expect(!!(tryResult1103
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1103.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12510, mozilla::dom::quota::Severity::Error); return tryResult1103
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1104)::ok_type>); if ((__builtin_expect
(!!(tryResult1104.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1101 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1101.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1101.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, mozilla::dom::quota::Severity::Error); return tryResult1101.propagateErr(); } const auto& dirEntryKind = tryResult1101.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1102 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1102.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1102.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12502, mozilla::dom::quota::Severity::Error); return tryResult1102.propagateErr(); } const auto& leafName = tryResult1102.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508); } while (0); {auto tryResult1103 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1103)::ok_type>); if ((__builtin_expect(!!(tryResult1103.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1103.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12510, mozilla::dom::quota::Severity::Error); return tryResult1103.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1104.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12522, mozilla::dom::quota::Severity::Error); return tryResult1104
.propagateErr(); }}
12502 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsString, file, GetLeafName));{auto tryResult1104 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1101 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1101.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1101.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12493, mozilla::dom::quota::Severity::Error); return tryResult1101
.propagateErr(); } const auto& dirEntryKind = tryResult1101
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1102
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1102
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1102.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12502, mozilla::dom::quota::Severity::Error); return tryResult1102
.propagateErr(); } const auto& leafName = tryResult1102.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12508
); } while (0); {auto tryResult1103 = (ToResult(file->Remove
(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1103)::ok_type>); if ((__builtin_expect(!!(tryResult1103
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1103.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12510, mozilla::dom::quota::Severity::Error); return tryResult1103
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1104)::ok_type>); if ((__builtin_expect
(!!(tryResult1104.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1101 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1101.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1101.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, mozilla::dom::quota::Severity::Error); return tryResult1101.propagateErr(); } const auto& dirEntryKind = tryResult1101.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1102 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1102.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1102.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12502, mozilla::dom::quota::Severity::Error); return tryResult1102.propagateErr(); } const auto& leafName = tryResult1102.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508); } while (0); {auto tryResult1103 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1103)::ok_type>); if ((__builtin_expect(!!(tryResult1103.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1103.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12510, mozilla::dom::quota::Severity::Error); return tryResult1103.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1104.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12522, mozilla::dom::quota::Severity::Error); return tryResult1104
.propagateErr(); }}
12503
12504 // It's reported that files ending with ".tmp" somehow live in the{auto tryResult1104 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1101 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1101.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1101.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12493, mozilla::dom::quota::Severity::Error); return tryResult1101
.propagateErr(); } const auto& dirEntryKind = tryResult1101
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1102
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1102
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1102.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12502, mozilla::dom::quota::Severity::Error); return tryResult1102
.propagateErr(); } const auto& leafName = tryResult1102.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12508
); } while (0); {auto tryResult1103 = (ToResult(file->Remove
(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1103)::ok_type>); if ((__builtin_expect(!!(tryResult1103
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1103.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12510, mozilla::dom::quota::Severity::Error); return tryResult1103
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1104)::ok_type>); if ((__builtin_expect
(!!(tryResult1104.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1101 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1101.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1101.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, mozilla::dom::quota::Severity::Error); return tryResult1101.propagateErr(); } const auto& dirEntryKind = tryResult1101.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1102 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1102.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1102.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12502, mozilla::dom::quota::Severity::Error); return tryResult1102.propagateErr(); } const auto& leafName = tryResult1102.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508); } while (0); {auto tryResult1103 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1103)::ok_type>); if ((__builtin_expect(!!(tryResult1103.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1103.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12510, mozilla::dom::quota::Severity::Error); return tryResult1103.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1104.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12522, mozilla::dom::quota::Severity::Error); return tryResult1104
.propagateErr(); }}
12505 // indexedDB directories in Bug 1503883. Such files shouldn't exist{auto tryResult1104 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1101 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1101.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1101.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12493, mozilla::dom::quota::Severity::Error); return tryResult1101
.propagateErr(); } const auto& dirEntryKind = tryResult1101
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1102
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1102
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1102.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12502, mozilla::dom::quota::Severity::Error); return tryResult1102
.propagateErr(); } const auto& leafName = tryResult1102.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12508
); } while (0); {auto tryResult1103 = (ToResult(file->Remove
(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1103)::ok_type>); if ((__builtin_expect(!!(tryResult1103
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1103.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12510, mozilla::dom::quota::Severity::Error); return tryResult1103
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1104)::ok_type>); if ((__builtin_expect
(!!(tryResult1104.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1101 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1101.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1101.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, mozilla::dom::quota::Severity::Error); return tryResult1101.propagateErr(); } const auto& dirEntryKind = tryResult1101.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1102 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1102.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1102.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12502, mozilla::dom::quota::Severity::Error); return tryResult1102.propagateErr(); } const auto& leafName = tryResult1102.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508); } while (0); {auto tryResult1103 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1103)::ok_type>); if ((__builtin_expect(!!(tryResult1103.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1103.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12510, mozilla::dom::quota::Severity::Error); return tryResult1103.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1104.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12522, mozilla::dom::quota::Severity::Error); return tryResult1104
.propagateErr(); }}
12506 // in the indexedDB directory so remove them in this upgrade.{auto tryResult1104 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1101 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1101.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1101.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12493, mozilla::dom::quota::Severity::Error); return tryResult1101
.propagateErr(); } const auto& dirEntryKind = tryResult1101
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1102
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1102
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1102.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12502, mozilla::dom::quota::Severity::Error); return tryResult1102
.propagateErr(); } const auto& leafName = tryResult1102.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12508
); } while (0); {auto tryResult1103 = (ToResult(file->Remove
(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1103)::ok_type>); if ((__builtin_expect(!!(tryResult1103
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1103.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12510, mozilla::dom::quota::Severity::Error); return tryResult1103
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1104)::ok_type>); if ((__builtin_expect
(!!(tryResult1104.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1101 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1101.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1101.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, mozilla::dom::quota::Severity::Error); return tryResult1101.propagateErr(); } const auto& dirEntryKind = tryResult1101.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1102 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1102.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1102.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12502, mozilla::dom::quota::Severity::Error); return tryResult1102.propagateErr(); } const auto& leafName = tryResult1102.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508); } while (0); {auto tryResult1103 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1103)::ok_type>); if ((__builtin_expect(!!(tryResult1103.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1103.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12510, mozilla::dom::quota::Severity::Error); return tryResult1103.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1104.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12522, mozilla::dom::quota::Severity::Error); return tryResult1104
.propagateErr(); }}
12507 if (StringEndsWith(leafName, u".tmp"_ns)) {{auto tryResult1104 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1101 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1101.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1101.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12493, mozilla::dom::quota::Severity::Error); return tryResult1101
.propagateErr(); } const auto& dirEntryKind = tryResult1101
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1102
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1102
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1102.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12502, mozilla::dom::quota::Severity::Error); return tryResult1102
.propagateErr(); } const auto& leafName = tryResult1102.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12508
); } while (0); {auto tryResult1103 = (ToResult(file->Remove
(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1103)::ok_type>); if ((__builtin_expect(!!(tryResult1103
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1103.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12510, mozilla::dom::quota::Severity::Error); return tryResult1103
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1104)::ok_type>); if ((__builtin_expect
(!!(tryResult1104.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1101 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1101.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1101.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, mozilla::dom::quota::Severity::Error); return tryResult1101.propagateErr(); } const auto& dirEntryKind = tryResult1101.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1102 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1102.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1102.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12502, mozilla::dom::quota::Severity::Error); return tryResult1102.propagateErr(); } const auto& leafName = tryResult1102.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508); } while (0); {auto tryResult1103 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1103)::ok_type>); if ((__builtin_expect(!!(tryResult1103.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1103.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12510, mozilla::dom::quota::Severity::Error); return tryResult1103.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1104.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12522, mozilla::dom::quota::Severity::Error); return tryResult1104
.propagateErr(); }}
12508 IDB_WARNING("Deleting unknown temporary file!");{auto tryResult1104 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1101 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1101.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1101.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12493, mozilla::dom::quota::Severity::Error); return tryResult1101
.propagateErr(); } const auto& dirEntryKind = tryResult1101
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1102
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1102
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1102.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12502, mozilla::dom::quota::Severity::Error); return tryResult1102
.propagateErr(); } const auto& leafName = tryResult1102.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12508
); } while (0); {auto tryResult1103 = (ToResult(file->Remove
(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1103)::ok_type>); if ((__builtin_expect(!!(tryResult1103
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1103.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12510, mozilla::dom::quota::Severity::Error); return tryResult1103
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1104)::ok_type>); if ((__builtin_expect
(!!(tryResult1104.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1101 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1101.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1101.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, mozilla::dom::quota::Severity::Error); return tryResult1101.propagateErr(); } const auto& dirEntryKind = tryResult1101.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1102 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1102.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1102.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12502, mozilla::dom::quota::Severity::Error); return tryResult1102.propagateErr(); } const auto& leafName = tryResult1102.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508); } while (0); {auto tryResult1103 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1103)::ok_type>); if ((__builtin_expect(!!(tryResult1103.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1103.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12510, mozilla::dom::quota::Severity::Error); return tryResult1103.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1104.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12522, mozilla::dom::quota::Severity::Error); return tryResult1104
.propagateErr(); }}
12509
12510 QM_TRY(MOZ_TO_RESULT(file->Remove(false)));{auto tryResult1104 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1101 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1101.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1101.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12493, mozilla::dom::quota::Severity::Error); return tryResult1101
.propagateErr(); } const auto& dirEntryKind = tryResult1101
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1102
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1102
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1102.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12502, mozilla::dom::quota::Severity::Error); return tryResult1102
.propagateErr(); } const auto& leafName = tryResult1102.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12508
); } while (0); {auto tryResult1103 = (ToResult(file->Remove
(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1103)::ok_type>); if ((__builtin_expect(!!(tryResult1103
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1103.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12510, mozilla::dom::quota::Severity::Error); return tryResult1103
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1104)::ok_type>); if ((__builtin_expect
(!!(tryResult1104.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1101 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1101.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1101.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, mozilla::dom::quota::Severity::Error); return tryResult1101.propagateErr(); } const auto& dirEntryKind = tryResult1101.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1102 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1102.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1102.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12502, mozilla::dom::quota::Severity::Error); return tryResult1102.propagateErr(); } const auto& leafName = tryResult1102.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508); } while (0); {auto tryResult1103 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1103)::ok_type>); if ((__builtin_expect(!!(tryResult1103.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1103.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12510, mozilla::dom::quota::Severity::Error); return tryResult1103.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1104.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12522, mozilla::dom::quota::Severity::Error); return tryResult1104
.propagateErr(); }}
12511 }{auto tryResult1104 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1101 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1101.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1101.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12493, mozilla::dom::quota::Severity::Error); return tryResult1101
.propagateErr(); } const auto& dirEntryKind = tryResult1101
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1102
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1102
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1102.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12502, mozilla::dom::quota::Severity::Error); return tryResult1102
.propagateErr(); } const auto& leafName = tryResult1102.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12508
); } while (0); {auto tryResult1103 = (ToResult(file->Remove
(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1103)::ok_type>); if ((__builtin_expect(!!(tryResult1103
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1103.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12510, mozilla::dom::quota::Severity::Error); return tryResult1103
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1104)::ok_type>); if ((__builtin_expect
(!!(tryResult1104.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1101 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1101.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1101.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, mozilla::dom::quota::Severity::Error); return tryResult1101.propagateErr(); } const auto& dirEntryKind = tryResult1101.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1102 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1102.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1102.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12502, mozilla::dom::quota::Severity::Error); return tryResult1102.propagateErr(); } const auto& leafName = tryResult1102.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508); } while (0); {auto tryResult1103 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1103)::ok_type>); if ((__builtin_expect(!!(tryResult1103.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1103.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12510, mozilla::dom::quota::Severity::Error); return tryResult1103.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1104.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12522, mozilla::dom::quota::Severity::Error); return tryResult1104
.propagateErr(); }}
12512
12513 break;{auto tryResult1104 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1101 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1101.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1101.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12493, mozilla::dom::quota::Severity::Error); return tryResult1101
.propagateErr(); } const auto& dirEntryKind = tryResult1101
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1102
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1102
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1102.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12502, mozilla::dom::quota::Severity::Error); return tryResult1102
.propagateErr(); } const auto& leafName = tryResult1102.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12508
); } while (0); {auto tryResult1103 = (ToResult(file->Remove
(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1103)::ok_type>); if ((__builtin_expect(!!(tryResult1103
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1103.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12510, mozilla::dom::quota::Severity::Error); return tryResult1103
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1104)::ok_type>); if ((__builtin_expect
(!!(tryResult1104.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1101 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1101.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1101.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, mozilla::dom::quota::Severity::Error); return tryResult1101.propagateErr(); } const auto& dirEntryKind = tryResult1101.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1102 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1102.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1102.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12502, mozilla::dom::quota::Severity::Error); return tryResult1102.propagateErr(); } const auto& leafName = tryResult1102.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508); } while (0); {auto tryResult1103 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1103)::ok_type>); if ((__builtin_expect(!!(tryResult1103.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1103.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12510, mozilla::dom::quota::Severity::Error); return tryResult1103.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1104.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12522, mozilla::dom::quota::Severity::Error); return tryResult1104
.propagateErr(); }}
12514 }{auto tryResult1104 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1101 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1101.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1101.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12493, mozilla::dom::quota::Severity::Error); return tryResult1101
.propagateErr(); } const auto& dirEntryKind = tryResult1101
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1102
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1102
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1102.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12502, mozilla::dom::quota::Severity::Error); return tryResult1102
.propagateErr(); } const auto& leafName = tryResult1102.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12508
); } while (0); {auto tryResult1103 = (ToResult(file->Remove
(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1103)::ok_type>); if ((__builtin_expect(!!(tryResult1103
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1103.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12510, mozilla::dom::quota::Severity::Error); return tryResult1103
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1104)::ok_type>); if ((__builtin_expect
(!!(tryResult1104.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1101 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1101.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1101.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, mozilla::dom::quota::Severity::Error); return tryResult1101.propagateErr(); } const auto& dirEntryKind = tryResult1101.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1102 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1102.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1102.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12502, mozilla::dom::quota::Severity::Error); return tryResult1102.propagateErr(); } const auto& leafName = tryResult1102.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508); } while (0); {auto tryResult1103 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1103)::ok_type>); if ((__builtin_expect(!!(tryResult1103.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1103.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12510, mozilla::dom::quota::Severity::Error); return tryResult1103.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1104.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12522, mozilla::dom::quota::Severity::Error); return tryResult1104
.propagateErr(); }}
12515
12516 case nsIFileKind::DoesNotExist:{auto tryResult1104 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1101 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1101.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1101.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12493, mozilla::dom::quota::Severity::Error); return tryResult1101
.propagateErr(); } const auto& dirEntryKind = tryResult1101
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1102
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1102
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1102.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12502, mozilla::dom::quota::Severity::Error); return tryResult1102
.propagateErr(); } const auto& leafName = tryResult1102.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12508
); } while (0); {auto tryResult1103 = (ToResult(file->Remove
(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1103)::ok_type>); if ((__builtin_expect(!!(tryResult1103
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1103.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12510, mozilla::dom::quota::Severity::Error); return tryResult1103
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1104)::ok_type>); if ((__builtin_expect
(!!(tryResult1104.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1101 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1101.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1101.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, mozilla::dom::quota::Severity::Error); return tryResult1101.propagateErr(); } const auto& dirEntryKind = tryResult1101.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1102 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1102.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1102.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12502, mozilla::dom::quota::Severity::Error); return tryResult1102.propagateErr(); } const auto& leafName = tryResult1102.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508); } while (0); {auto tryResult1103 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1103)::ok_type>); if ((__builtin_expect(!!(tryResult1103.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1103.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12510, mozilla::dom::quota::Severity::Error); return tryResult1103.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1104.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12522, mozilla::dom::quota::Severity::Error); return tryResult1104
.propagateErr(); }}
12517 // Ignore files that got removed externally while iterating.{auto tryResult1104 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1101 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1101.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1101.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12493, mozilla::dom::quota::Severity::Error); return tryResult1101
.propagateErr(); } const auto& dirEntryKind = tryResult1101
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1102
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1102
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1102.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12502, mozilla::dom::quota::Severity::Error); return tryResult1102
.propagateErr(); } const auto& leafName = tryResult1102.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12508
); } while (0); {auto tryResult1103 = (ToResult(file->Remove
(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1103)::ok_type>); if ((__builtin_expect(!!(tryResult1103
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1103.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12510, mozilla::dom::quota::Severity::Error); return tryResult1103
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1104)::ok_type>); if ((__builtin_expect
(!!(tryResult1104.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1101 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1101.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1101.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, mozilla::dom::quota::Severity::Error); return tryResult1101.propagateErr(); } const auto& dirEntryKind = tryResult1101.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1102 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1102.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1102.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12502, mozilla::dom::quota::Severity::Error); return tryResult1102.propagateErr(); } const auto& leafName = tryResult1102.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508); } while (0); {auto tryResult1103 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1103)::ok_type>); if ((__builtin_expect(!!(tryResult1103.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1103.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12510, mozilla::dom::quota::Severity::Error); return tryResult1103.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1104.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12522, mozilla::dom::quota::Severity::Error); return tryResult1104
.propagateErr(); }}
12518 break;{auto tryResult1104 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1101 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1101.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1101.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12493, mozilla::dom::quota::Severity::Error); return tryResult1101
.propagateErr(); } const auto& dirEntryKind = tryResult1101
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1102
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1102
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1102.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12502, mozilla::dom::quota::Severity::Error); return tryResult1102
.propagateErr(); } const auto& leafName = tryResult1102.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12508
); } while (0); {auto tryResult1103 = (ToResult(file->Remove
(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1103)::ok_type>); if ((__builtin_expect(!!(tryResult1103
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1103.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12510, mozilla::dom::quota::Severity::Error); return tryResult1103
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1104)::ok_type>); if ((__builtin_expect
(!!(tryResult1104.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1101 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1101.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1101.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, mozilla::dom::quota::Severity::Error); return tryResult1101.propagateErr(); } const auto& dirEntryKind = tryResult1101.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1102 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1102.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1102.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12502, mozilla::dom::quota::Severity::Error); return tryResult1102.propagateErr(); } const auto& leafName = tryResult1102.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508); } while (0); {auto tryResult1103 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1103)::ok_type>); if ((__builtin_expect(!!(tryResult1103.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1103.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12510, mozilla::dom::quota::Severity::Error); return tryResult1103.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1104.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12522, mozilla::dom::quota::Severity::Error); return tryResult1104
.propagateErr(); }}
12519 }{auto tryResult1104 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1101 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1101.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1101.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12493, mozilla::dom::quota::Severity::Error); return tryResult1101
.propagateErr(); } const auto& dirEntryKind = tryResult1101
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1102
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1102
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1102.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12502, mozilla::dom::quota::Severity::Error); return tryResult1102
.propagateErr(); } const auto& leafName = tryResult1102.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12508
); } while (0); {auto tryResult1103 = (ToResult(file->Remove
(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1103)::ok_type>); if ((__builtin_expect(!!(tryResult1103
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1103.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12510, mozilla::dom::quota::Severity::Error); return tryResult1103
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1104)::ok_type>); if ((__builtin_expect
(!!(tryResult1104.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1101 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1101.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1101.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, mozilla::dom::quota::Severity::Error); return tryResult1101.propagateErr(); } const auto& dirEntryKind = tryResult1101.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1102 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1102.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1102.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12502, mozilla::dom::quota::Severity::Error); return tryResult1102.propagateErr(); } const auto& leafName = tryResult1102.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508); } while (0); {auto tryResult1103 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1103)::ok_type>); if ((__builtin_expect(!!(tryResult1103.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1103.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12510, mozilla::dom::quota::Severity::Error); return tryResult1103.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1104.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12522, mozilla::dom::quota::Severity::Error); return tryResult1104
.propagateErr(); }}
12520
12521 return Ok{};{auto tryResult1104 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1101 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1101.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1101.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12493, mozilla::dom::quota::Severity::Error); return tryResult1101
.propagateErr(); } const auto& dirEntryKind = tryResult1101
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1102
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1102
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1102.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12502, mozilla::dom::quota::Severity::Error); return tryResult1102
.propagateErr(); } const auto& leafName = tryResult1102.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12508
); } while (0); {auto tryResult1103 = (ToResult(file->Remove
(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1103)::ok_type>); if ((__builtin_expect(!!(tryResult1103
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1103.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12510, mozilla::dom::quota::Severity::Error); return tryResult1103
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1104)::ok_type>); if ((__builtin_expect
(!!(tryResult1104.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1101 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1101.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1101.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, mozilla::dom::quota::Severity::Error); return tryResult1101.propagateErr(); } const auto& dirEntryKind = tryResult1101.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1102 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1102.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1102.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12502, mozilla::dom::quota::Severity::Error); return tryResult1102.propagateErr(); } const auto& leafName = tryResult1102.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508); } while (0); {auto tryResult1103 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1103)::ok_type>); if ((__builtin_expect(!!(tryResult1103.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1103.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12510, mozilla::dom::quota::Severity::Error); return tryResult1103.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1104.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12522, mozilla::dom::quota::Severity::Error); return tryResult1104
.propagateErr(); }}
12522 })){auto tryResult1104 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1101 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1101.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1101.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12493, mozilla::dom::quota::Severity::Error); return tryResult1101
.propagateErr(); } const auto& dirEntryKind = tryResult1101
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1102
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1102
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1102.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12502, mozilla::dom::quota::Severity::Error); return tryResult1102
.propagateErr(); } const auto& leafName = tryResult1102.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12508
); } while (0); {auto tryResult1103 = (ToResult(file->Remove
(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1103)::ok_type>); if ((__builtin_expect(!!(tryResult1103
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1103.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12510, mozilla::dom::quota::Severity::Error); return tryResult1103
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1104)::ok_type>); if ((__builtin_expect
(!!(tryResult1104.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1101 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1101.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1101.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12493, mozilla::dom::quota::Severity::Error); return tryResult1101.propagateErr(); } const auto& dirEntryKind = tryResult1101.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1102 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1102.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1102.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12502, mozilla::dom::quota::Severity::Error); return tryResult1102.propagateErr(); } const auto& leafName = tryResult1102.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508); } while (0); {auto tryResult1103 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1103)::ok_type>); if ((__builtin_expect(!!(tryResult1103.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1103.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12510, mozilla::dom::quota::Severity::Error); return tryResult1103.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1104.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12522, mozilla::dom::quota::Severity::Error); return tryResult1104
.propagateErr(); }}
;
12523
12524 return NS_OK;
12525}
12526
12527Result<UsageInfo, nsresult> QuotaClient::InitOrigin(
12528 PersistenceType aPersistenceType, const OriginMetadata& aOriginMetadata,
12529 const AtomicBool& aCanceled) {
12530 AssertIsOnIOThread();
12531
12532 QM_TRY_RETURN(MOZ_TO_RESULT_INVOKE_MEMBER(this, GetUsageForOriginInternal,{auto tryResult1105 = (::mozilla::ToResultInvokeMember( (this
), &::mozilla::detail::DerefedType<decltype(this)>::
GetUsageForOriginInternal , aPersistenceType, aOriginMetadata
, aCanceled, true)); if ((__builtin_expect(!!(tryResult1105.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (this), &::mozilla::detail::DerefedType<decltype(this)>::GetUsageForOriginInternal , aPersistenceType, aOriginMetadata, aCanceled, true)"
, tryResult1105.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Error); } return tryResult1105
;}
12533 aPersistenceType, aOriginMetadata,{auto tryResult1105 = (::mozilla::ToResultInvokeMember( (this
), &::mozilla::detail::DerefedType<decltype(this)>::
GetUsageForOriginInternal , aPersistenceType, aOriginMetadata
, aCanceled, true)); if ((__builtin_expect(!!(tryResult1105.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (this), &::mozilla::detail::DerefedType<decltype(this)>::GetUsageForOriginInternal , aPersistenceType, aOriginMetadata, aCanceled, true)"
, tryResult1105.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Error); } return tryResult1105
;}
12534 aCanceled,{auto tryResult1105 = (::mozilla::ToResultInvokeMember( (this
), &::mozilla::detail::DerefedType<decltype(this)>::
GetUsageForOriginInternal , aPersistenceType, aOriginMetadata
, aCanceled, true)); if ((__builtin_expect(!!(tryResult1105.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (this), &::mozilla::detail::DerefedType<decltype(this)>::GetUsageForOriginInternal , aPersistenceType, aOriginMetadata, aCanceled, true)"
, tryResult1105.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Error); } return tryResult1105
;}
12535 /* aInitializing*/ true)){auto tryResult1105 = (::mozilla::ToResultInvokeMember( (this
), &::mozilla::detail::DerefedType<decltype(this)>::
GetUsageForOriginInternal , aPersistenceType, aOriginMetadata
, aCanceled, true)); if ((__builtin_expect(!!(tryResult1105.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (this), &::mozilla::detail::DerefedType<decltype(this)>::GetUsageForOriginInternal , aPersistenceType, aOriginMetadata, aCanceled, true)"
, tryResult1105.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Error); } return tryResult1105
;}
;
12536}
12537
12538nsresult QuotaClient::InitOriginWithoutTracking(
12539 PersistenceType aPersistenceType, const OriginMetadata& aOriginMetadata,
12540 const AtomicBool& aCanceled) {
12541 AssertIsOnIOThread();
12542
12543 return GetUsageForOriginInternal(aPersistenceType, aOriginMetadata, aCanceled,
12544 /* aInitializing*/ true, nullptr);
12545}
12546
12547Result<UsageInfo, nsresult> QuotaClient::GetUsageForOrigin(
12548 PersistenceType aPersistenceType, const OriginMetadata& aOriginMetadata,
12549 const AtomicBool& aCanceled) {
12550 AssertIsOnIOThread();
12551
12552 QM_TRY_RETURN(MOZ_TO_RESULT_INVOKE_MEMBER(this, GetUsageForOriginInternal,{auto tryResult1106 = (::mozilla::ToResultInvokeMember( (this
), &::mozilla::detail::DerefedType<decltype(this)>::
GetUsageForOriginInternal , aPersistenceType, aOriginMetadata
, aCanceled, false)); if ((__builtin_expect(!!(tryResult1106.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (this), &::mozilla::detail::DerefedType<decltype(this)>::GetUsageForOriginInternal , aPersistenceType, aOriginMetadata, aCanceled, false)"
, tryResult1106.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12555, mozilla::dom::quota::Severity::Error); } return tryResult1106
;}
12553 aPersistenceType, aOriginMetadata,{auto tryResult1106 = (::mozilla::ToResultInvokeMember( (this
), &::mozilla::detail::DerefedType<decltype(this)>::
GetUsageForOriginInternal , aPersistenceType, aOriginMetadata
, aCanceled, false)); if ((__builtin_expect(!!(tryResult1106.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (this), &::mozilla::detail::DerefedType<decltype(this)>::GetUsageForOriginInternal , aPersistenceType, aOriginMetadata, aCanceled, false)"
, tryResult1106.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12555, mozilla::dom::quota::Severity::Error); } return tryResult1106
;}
12554 aCanceled,{auto tryResult1106 = (::mozilla::ToResultInvokeMember( (this
), &::mozilla::detail::DerefedType<decltype(this)>::
GetUsageForOriginInternal , aPersistenceType, aOriginMetadata
, aCanceled, false)); if ((__builtin_expect(!!(tryResult1106.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (this), &::mozilla::detail::DerefedType<decltype(this)>::GetUsageForOriginInternal , aPersistenceType, aOriginMetadata, aCanceled, false)"
, tryResult1106.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12555, mozilla::dom::quota::Severity::Error); } return tryResult1106
;}
12555 /* aInitializing*/ false)){auto tryResult1106 = (::mozilla::ToResultInvokeMember( (this
), &::mozilla::detail::DerefedType<decltype(this)>::
GetUsageForOriginInternal , aPersistenceType, aOriginMetadata
, aCanceled, false)); if ((__builtin_expect(!!(tryResult1106.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (this), &::mozilla::detail::DerefedType<decltype(this)>::GetUsageForOriginInternal , aPersistenceType, aOriginMetadata, aCanceled, false)"
, tryResult1106.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12555, mozilla::dom::quota::Severity::Error); } return tryResult1106
;}
;
12556}
12557
12558nsresult QuotaClient::GetUsageForOriginInternal(
12559 PersistenceType aPersistenceType, const OriginMetadata& aOriginMetadata,
12560 const AtomicBool& aCanceled, const bool aInitializing,
12561 UsageInfo* aUsageInfo) {
12562 GECKO_TRACE_SCOPE("dom::indexedDB", "QuotaClient::GetUsageForOriginInternal")auto GECKO_TRACE_SCOPE___COUNTER__ = mozilla::gecko_trace::TracerProvider
::GetTracer("dom::indexedDB") ->StartSpan("QuotaClient::GetUsageForOriginInternal"
) ->Enter();
;
12563
12564 AssertIsOnIOThread();
12565 MOZ_ASSERT(aOriginMetadata.mPersistenceType == aPersistenceType)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aOriginMetadata.mPersistenceType == aPersistenceType
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aOriginMetadata.mPersistenceType == aPersistenceType
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"aOriginMetadata.mPersistenceType == aPersistenceType", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12565); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aOriginMetadata.mPersistenceType == aPersistenceType"
")"); do { MOZ_CrashSequence(__null, 12565); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12566
12567 QM_TRY_INSPECT(const nsCOMPtr<nsIFile>& directory,auto tryResult1107 = (GetDirectory(aOriginMetadata)); if ((__builtin_expect
(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirectory(aOriginMetadata)", tryResult1107.inspectErr(),
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12568,
mozilla::dom::quota::Severity::Error); return tryResult1107.
propagateErr(); } const nsCOMPtr<nsIFile>& directory
= tryResult1107.inspect();
12568 GetDirectory(aOriginMetadata))auto tryResult1107 = (GetDirectory(aOriginMetadata)); if ((__builtin_expect
(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirectory(aOriginMetadata)", tryResult1107.inspectErr(),
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12568,
mozilla::dom::quota::Severity::Error); return tryResult1107.
propagateErr(); } const nsCOMPtr<nsIFile>& directory
= tryResult1107.inspect();
;
12569
12570 // We need to see if there are any files in the directory already. If they
12571 // are database files then we need to cleanup stored files (if it's needed)
12572 // and also get the usage.
12573
12574 // XXX Can we avoid unwrapping into non-const variables here? (Only
12575 // databaseFilenames is currently modified below)
12576 QM_TRY_UNWRAP((auto [subdirsToProcess, databaseFilenames, obsoleteFilenames]),auto tryResult1108 = (GetDatabaseFilenames<ObsoleteFilenamesHandling
::Include>( *directory, aCanceled)); if ((__builtin_expect
(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDatabaseFilenames<ObsoleteFilenamesHandling::Include>( *directory, aCanceled)"
, tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12578, mozilla::dom::quota::Severity::Error); return tryResult1108
.propagateErr(); } auto [subdirsToProcess, databaseFilenames,
obsoleteFilenames] = tryResult1108.unwrap();
12577 GetDatabaseFilenames<ObsoleteFilenamesHandling::Include>(auto tryResult1108 = (GetDatabaseFilenames<ObsoleteFilenamesHandling
::Include>( *directory, aCanceled)); if ((__builtin_expect
(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDatabaseFilenames<ObsoleteFilenamesHandling::Include>( *directory, aCanceled)"
, tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12578, mozilla::dom::quota::Severity::Error); return tryResult1108
.propagateErr(); } auto [subdirsToProcess, databaseFilenames,
obsoleteFilenames] = tryResult1108.unwrap();
12578 *directory, aCanceled))auto tryResult1108 = (GetDatabaseFilenames<ObsoleteFilenamesHandling
::Include>( *directory, aCanceled)); if ((__builtin_expect
(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDatabaseFilenames<ObsoleteFilenamesHandling::Include>( *directory, aCanceled)"
, tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12578, mozilla::dom::quota::Severity::Error); return tryResult1108
.propagateErr(); } auto [subdirsToProcess, databaseFilenames,
obsoleteFilenames] = tryResult1108.unwrap();
;
12579
12580 // Databases whose removal failed. Their remaining files still count towards
12581 // quota, so that the removal retried later subtracts only what was added.
12582 nsTHashSet<nsString> leftoverFilenames;
12583
12584 if (aInitializing) {
12585 QM_TRY(CollectEachInRange({auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12586 subdirsToProcess,{auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12587 [&directory, &obsoleteFilenames = obsoleteFilenames,{auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12588 &databaseFilenames = databaseFilenames, &leftoverFilenames,{auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12589 aPersistenceType, &aOriginMetadata]({auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12590 const nsAString& subdirName) -> Result<Ok, nsresult> {{auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12591 // The directory must have the correct suffix.{auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12592 nsDependentSubstring subdirNameBase;{auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12593 QM_TRY(QM_OR_ELSE_WARN({auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12594 // Expression.{auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12595 ([&subdirName, &subdirNameBase] {{auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12596 QM_TRY_RETURN(OkIf(GetFilenameBase({auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12597 subdirName, kFileManagerDirectoryNameSuffix,{auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12598 subdirNameBase)));{auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12599 }()),{auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12600 // Fallback.{auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12601 ([&directory,{auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12602 &subdirName](const NotOk) -> Result<Ok, nsresult> {{auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12603 // If there is an unexpected directory in the idb{auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12604 // directory, trying to delete at first instead of{auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12605 // breaking the whole initialization.{auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12606 QM_TRY(MOZ_TO_RESULT({auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12607 DeleteFilesNoQuota(directory, subdirName)),{auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12608 Err(NS_ERROR_UNEXPECTED));{auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12609
12610 return Ok{};{auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12611 })),{auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12612 Ok{});{auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12613
12614 if (obsoleteFilenames.Contains(subdirNameBase)) {{auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12615 QM_WARNONLY_TRY({auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12616 MOZ_TO_RESULT(RemoveDatabaseFilesAndDirectory({auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12617 *directory, subdirNameBase, /* aQuotaManager */ nullptr,{auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12618 aPersistenceType, aOriginMetadata,{auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12619 /* aDatabaseName */ u""_ns)),{auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12620 ([&leftoverFilenames, &subdirNameBase](const auto&) {{auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12621 leftoverFilenames.Insert(subdirNameBase);{auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12622 }));{auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12623
12624 databaseFilenames.Remove(subdirNameBase);{auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12625 return Ok{};{auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12626 }{auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12627
12628 // The directory base must exist in databaseFilenames.{auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12629 // If there is an unexpected directory in the idb directory, trying to{auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12630 // delete at first instead of breaking the whole initialization.{auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12631
12632 // XXX This is still somewhat quirky. It would be nice to make it{auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12633 // clear that the warning handler is infallible, which would also{auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12634 // remove the need for the error type conversion.{auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12635 QM_WARNONLY_TRY(QM_OR_ELSE_WARN({auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12636 // Expression.{auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12637 OkIf(databaseFilenames.Contains(subdirNameBase)){auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12638 .mapErr([](const NotOk) { return NS_ERROR_FAILURE; }),{auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12639 // Fallback.{auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12640 ([&directory,{auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12641 &subdirName](const nsresult) -> Result<Ok, nsresult> {{auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12642 // XXX It seems if we really got here, we can fail the{auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12643 // MOZ_ASSERT(!quotaManager->IsTemporaryStorageInitializedInternal());{auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12644 // assertion in DeleteFilesNoQuota.{auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12645 QM_TRY(MOZ_TO_RESULT(DeleteFilesNoQuota(directory, subdirName)),{auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12646 Err(NS_ERROR_UNEXPECTED));{auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12647
12648 return Ok{};{auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12649 })));{auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12650
12651 return Ok{};{auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
12652 })){auto tryResult1115 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, &leftoverFilenames
, aPersistenceType, &aOriginMetadata]( const nsAString&
subdirName) -> Result<Ok, nsresult> { nsDependentSubstring
subdirNameBase; {auto tryResult1111 = ((([&subdirName, &
subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase
( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase
))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12611, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111
.unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112
.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames
, &subdirNameBase](const auto&) { leftoverFilenames.Insert
(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove
(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf
(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const
NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto
& firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1113)::ok_type>); if ((__builtin_expect
(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12646
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1114.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1115
)::ok_type>); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1111 = ((([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1109.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1111)::ok_type>); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1111.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1109.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1109 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1109.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12598, mozilla::dom::quota::Severity::Error); } return tryResult1109;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12611, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1110 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1110.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12608, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1112 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { auto tryTempError = tryResult1112.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12622, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1114 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1114)::ok_type>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12649, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1113 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12646, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1114.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12649, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12652, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); }}
;
12653 }
12654
12655 for (const auto& databaseFilename : databaseFilenames) {
12656 if (aCanceled) {
12657 break;
12658 }
12659
12660 QM_TRY_INSPECT(auto tryResult1116 = (CloneFileAndAppend(*directory, databaseFilename
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*directory, databaseFilename + kFileManagerDirectoryNameSuffix)"
, tryResult1116.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12663, mozilla::dom::quota::Severity::Error); return tryResult1116
.propagateErr(); } const auto& fmDirectory = tryResult1116
.inspect();
12661 const auto& fmDirectory,auto tryResult1116 = (CloneFileAndAppend(*directory, databaseFilename
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*directory, databaseFilename + kFileManagerDirectoryNameSuffix)"
, tryResult1116.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12663, mozilla::dom::quota::Severity::Error); return tryResult1116
.propagateErr(); } const auto& fmDirectory = tryResult1116
.inspect();
12662 CloneFileAndAppend(*directory,auto tryResult1116 = (CloneFileAndAppend(*directory, databaseFilename
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*directory, databaseFilename + kFileManagerDirectoryNameSuffix)"
, tryResult1116.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12663, mozilla::dom::quota::Severity::Error); return tryResult1116
.propagateErr(); } const auto& fmDirectory = tryResult1116
.inspect();
12663 databaseFilename + kFileManagerDirectoryNameSuffix))auto tryResult1116 = (CloneFileAndAppend(*directory, databaseFilename
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult1116.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*directory, databaseFilename + kFileManagerDirectoryNameSuffix)"
, tryResult1116.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12663, mozilla::dom::quota::Severity::Error); return tryResult1116
.propagateErr(); } const auto& fmDirectory = tryResult1116
.inspect();
;
12664
12665 QM_TRY_INSPECT(auto tryResult1117 = (CloneFileAndAppend(*directory, databaseFilename
+ kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1117.isErr
()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, databaseFilename + kSQLiteSuffix)"
, tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12667, mozilla::dom::quota::Severity::Error); return tryResult1117
.propagateErr(); } const auto& databaseFile = tryResult1117
.inspect();
12666 const auto& databaseFile,auto tryResult1117 = (CloneFileAndAppend(*directory, databaseFilename
+ kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1117.isErr
()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, databaseFilename + kSQLiteSuffix)"
, tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12667, mozilla::dom::quota::Severity::Error); return tryResult1117
.propagateErr(); } const auto& databaseFile = tryResult1117
.inspect();
12667 CloneFileAndAppend(*directory, databaseFilename + kSQLiteSuffix))auto tryResult1117 = (CloneFileAndAppend(*directory, databaseFilename
+ kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1117.isErr
()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, databaseFilename + kSQLiteSuffix)"
, tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12667, mozilla::dom::quota::Severity::Error); return tryResult1117
.propagateErr(); } const auto& databaseFile = tryResult1117
.inspect();
;
12668
12669 if (aInitializing) {
12670 QM_TRY(MOZ_TO_RESULT(DatabaseFileManager::InitDirectory({auto tryResult1118 = (ToResult(DatabaseFileManager::InitDirectory
( *fmDirectory, *databaseFile, aOriginMetadata.mOrigin, TelemetryIdForFile
(databaseFile)))); static_assert(std::is_empty_v<typename decltype
(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DatabaseFileManager::InitDirectory( *fmDirectory, *databaseFile, aOriginMetadata.mOrigin, TelemetryIdForFile(databaseFile)))"
, tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12672, mozilla::dom::quota::Severity::Error); return tryResult1118
.propagateErr(); }}
12671 *fmDirectory, *databaseFile, aOriginMetadata.mOrigin,{auto tryResult1118 = (ToResult(DatabaseFileManager::InitDirectory
( *fmDirectory, *databaseFile, aOriginMetadata.mOrigin, TelemetryIdForFile
(databaseFile)))); static_assert(std::is_empty_v<typename decltype
(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DatabaseFileManager::InitDirectory( *fmDirectory, *databaseFile, aOriginMetadata.mOrigin, TelemetryIdForFile(databaseFile)))"
, tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12672, mozilla::dom::quota::Severity::Error); return tryResult1118
.propagateErr(); }}
12672 TelemetryIdForFile(databaseFile)))){auto tryResult1118 = (ToResult(DatabaseFileManager::InitDirectory
( *fmDirectory, *databaseFile, aOriginMetadata.mOrigin, TelemetryIdForFile
(databaseFile)))); static_assert(std::is_empty_v<typename decltype
(tryResult1118)::ok_type>); if ((__builtin_expect(!!(tryResult1118
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DatabaseFileManager::InitDirectory( *fmDirectory, *databaseFile, aOriginMetadata.mOrigin, TelemetryIdForFile(databaseFile)))"
, tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12672, mozilla::dom::quota::Severity::Error); return tryResult1118
.propagateErr(); }}
;
12673 }
12674
12675 if (aUsageInfo) {
12676 {
12677 QM_TRY_INSPECT(const int64_t& fileSize,auto tryResult1119 = (::mozilla::ToResultInvokeMember( (databaseFile
), &::mozilla::detail::DerefedType<decltype(databaseFile
)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1119
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (databaseFile), &::mozilla::detail::DerefedType<decltype(databaseFile)>::GetFileSize )"
, tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12678, mozilla::dom::quota::Severity::Error); return tryResult1119
.propagateErr(); } const int64_t& fileSize = tryResult1119
.inspect();
12678 MOZ_TO_RESULT_INVOKE_MEMBER(databaseFile, GetFileSize))auto tryResult1119 = (::mozilla::ToResultInvokeMember( (databaseFile
), &::mozilla::detail::DerefedType<decltype(databaseFile
)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1119
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (databaseFile), &::mozilla::detail::DerefedType<decltype(databaseFile)>::GetFileSize )"
, tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12678, mozilla::dom::quota::Severity::Error); return tryResult1119
.propagateErr(); } const int64_t& fileSize = tryResult1119
.inspect();
;
12679
12680 MOZ_ASSERT(fileSize >= 0)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileSize >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileSize >= 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("fileSize >= 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12680
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize >= 0"
")"); do { MOZ_CrashSequence(__null, 12680); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12681
12682 *aUsageInfo += DatabaseUsageType(Some(uint64_t(fileSize)));
12683 }
12684
12685 {
12686 QM_TRY_INSPECT(const auto& walFile,auto tryResult1120 = (CloneFileAndAppend(*directory, databaseFilename
+ kSQLiteWALSuffix)); if ((__builtin_expect(!!(tryResult1120
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, databaseFilename + kSQLiteWALSuffix)"
, tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12688, mozilla::dom::quota::Severity::Error); return tryResult1120
.propagateErr(); } const auto& walFile = tryResult1120.inspect
();
12687 CloneFileAndAppend(*directory,auto tryResult1120 = (CloneFileAndAppend(*directory, databaseFilename
+ kSQLiteWALSuffix)); if ((__builtin_expect(!!(tryResult1120
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, databaseFilename + kSQLiteWALSuffix)"
, tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12688, mozilla::dom::quota::Severity::Error); return tryResult1120
.propagateErr(); } const auto& walFile = tryResult1120.inspect
();
12688 databaseFilename + kSQLiteWALSuffix))auto tryResult1120 = (CloneFileAndAppend(*directory, databaseFilename
+ kSQLiteWALSuffix)); if ((__builtin_expect(!!(tryResult1120
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, databaseFilename + kSQLiteWALSuffix)"
, tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12688, mozilla::dom::quota::Severity::Error); return tryResult1120
.propagateErr(); } const auto& walFile = tryResult1120.inspect
();
;
12689
12690 // QM_OR_ELSE_WARN_IF is not used here since we just want to log
12691 // NS_ERROR_FILE_NOT_FOUND result and not spam the reports (the -wal
12692 // file doesn't have to exist).
12693 QM_TRY_INSPECT(const int64_t& walFileSize,auto tryResult1121 = (mozilla::dom::quota::OrElseIf( (::mozilla
::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType
<decltype(walFile)>::GetFileSize )), [&](const auto
& firstRes) { bool res = ([](const nsresult rv) { return rv
== NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota
::HandleError("\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12702, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, (ErrToOk<0,
int64_t>))); if ((__builtin_expect(!!(tryResult1121.isErr
()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12702, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))"
, tryResult1121.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12702, mozilla::dom::quota::Severity::Error); return tryResult1121
.propagateErr(); } const int64_t& walFileSize = tryResult1121
.inspect();
12694 QM_OR_ELSE_LOG_VERBOSE_IF(auto tryResult1121 = (mozilla::dom::quota::OrElseIf( (::mozilla
::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType
<decltype(walFile)>::GetFileSize )), [&](const auto
& firstRes) { bool res = ([](const nsresult rv) { return rv
== NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota
::HandleError("\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12702, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, (ErrToOk<0,
int64_t>))); if ((__builtin_expect(!!(tryResult1121.isErr
()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12702, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))"
, tryResult1121.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12702, mozilla::dom::quota::Severity::Error); return tryResult1121
.propagateErr(); } const int64_t& walFileSize = tryResult1121
.inspect();
12695 // Expression.auto tryResult1121 = (mozilla::dom::quota::OrElseIf( (::mozilla
::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType
<decltype(walFile)>::GetFileSize )), [&](const auto
& firstRes) { bool res = ([](const nsresult rv) { return rv
== NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota
::HandleError("\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12702, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, (ErrToOk<0,
int64_t>))); if ((__builtin_expect(!!(tryResult1121.isErr
()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12702, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))"
, tryResult1121.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12702, mozilla::dom::quota::Severity::Error); return tryResult1121
.propagateErr(); } const int64_t& walFileSize = tryResult1121
.inspect();
12696 MOZ_TO_RESULT_INVOKE_MEMBER(walFile, GetFileSize),auto tryResult1121 = (mozilla::dom::quota::OrElseIf( (::mozilla
::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType
<decltype(walFile)>::GetFileSize )), [&](const auto
& firstRes) { bool res = ([](const nsresult rv) { return rv
== NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota
::HandleError("\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12702, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, (ErrToOk<0,
int64_t>))); if ((__builtin_expect(!!(tryResult1121.isErr
()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12702, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))"
, tryResult1121.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12702, mozilla::dom::quota::Severity::Error); return tryResult1121
.propagateErr(); } const int64_t& walFileSize = tryResult1121
.inspect();
12697 // Predicate.auto tryResult1121 = (mozilla::dom::quota::OrElseIf( (::mozilla
::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType
<decltype(walFile)>::GetFileSize )), [&](const auto
& firstRes) { bool res = ([](const nsresult rv) { return rv
== NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota
::HandleError("\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12702, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, (ErrToOk<0,
int64_t>))); if ((__builtin_expect(!!(tryResult1121.isErr
()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12702, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))"
, tryResult1121.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12702, mozilla::dom::quota::Severity::Error); return tryResult1121
.propagateErr(); } const int64_t& walFileSize = tryResult1121
.inspect();
12698 ([](const nsresult rv) {auto tryResult1121 = (mozilla::dom::quota::OrElseIf( (::mozilla
::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType
<decltype(walFile)>::GetFileSize )), [&](const auto
& firstRes) { bool res = ([](const nsresult rv) { return rv
== NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota
::HandleError("\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12702, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, (ErrToOk<0,
int64_t>))); if ((__builtin_expect(!!(tryResult1121.isErr
()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12702, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))"
, tryResult1121.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12702, mozilla::dom::quota::Severity::Error); return tryResult1121
.propagateErr(); } const int64_t& walFileSize = tryResult1121
.inspect();
12699 return rv == NS_ERROR_FILE_NOT_FOUND;auto tryResult1121 = (mozilla::dom::quota::OrElseIf( (::mozilla
::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType
<decltype(walFile)>::GetFileSize )), [&](const auto
& firstRes) { bool res = ([](const nsresult rv) { return rv
== NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota
::HandleError("\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12702, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, (ErrToOk<0,
int64_t>))); if ((__builtin_expect(!!(tryResult1121.isErr
()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12702, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))"
, tryResult1121.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12702, mozilla::dom::quota::Severity::Error); return tryResult1121
.propagateErr(); } const int64_t& walFileSize = tryResult1121
.inspect();
12700 }),auto tryResult1121 = (mozilla::dom::quota::OrElseIf( (::mozilla
::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType
<decltype(walFile)>::GetFileSize )), [&](const auto
& firstRes) { bool res = ([](const nsresult rv) { return rv
== NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota
::HandleError("\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12702, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, (ErrToOk<0,
int64_t>))); if ((__builtin_expect(!!(tryResult1121.isErr
()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12702, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))"
, tryResult1121.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12702, mozilla::dom::quota::Severity::Error); return tryResult1121
.propagateErr(); } const int64_t& walFileSize = tryResult1121
.inspect();
12701 // Fallback.auto tryResult1121 = (mozilla::dom::quota::OrElseIf( (::mozilla
::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType
<decltype(walFile)>::GetFileSize )), [&](const auto
& firstRes) { bool res = ([](const nsresult rv) { return rv
== NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota
::HandleError("\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12702, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, (ErrToOk<0,
int64_t>))); if ((__builtin_expect(!!(tryResult1121.isErr
()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12702, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))"
, tryResult1121.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12702, mozilla::dom::quota::Severity::Error); return tryResult1121
.propagateErr(); } const int64_t& walFileSize = tryResult1121
.inspect();
12702 (ErrToOk<0, int64_t>)))auto tryResult1121 = (mozilla::dom::quota::OrElseIf( (::mozilla
::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType
<decltype(walFile)>::GetFileSize )), [&](const auto
& firstRes) { bool res = ([](const nsresult rv) { return rv
== NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota
::HandleError("\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12702, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, (ErrToOk<0,
int64_t>))); if ((__builtin_expect(!!(tryResult1121.isErr
()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize )\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12702, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))"
, tryResult1121.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12702, mozilla::dom::quota::Severity::Error); return tryResult1121
.propagateErr(); } const int64_t& walFileSize = tryResult1121
.inspect();
;
12703 MOZ_ASSERT(walFileSize >= 0)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(walFileSize >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(walFileSize >= 0))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("walFileSize >= 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12703
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "walFileSize >= 0"
")"); do { MOZ_CrashSequence(__null, 12703); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12704 *aUsageInfo += DatabaseUsageType(Some(uint64_t(walFileSize)));
12705 }
12706
12707 {
12708 QM_TRY_INSPECT(const auto& fileUsage,auto tryResult1122 = (DatabaseFileManager::GetUsage(fmDirectory
)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { mozilla
::dom::quota::HandleError("DatabaseFileManager::GetUsage(fmDirectory)"
, tryResult1122.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12709, mozilla::dom::quota::Severity::Error); return tryResult1122
.propagateErr(); } const auto& fileUsage = tryResult1122.
inspect();
12709 DatabaseFileManager::GetUsage(fmDirectory))auto tryResult1122 = (DatabaseFileManager::GetUsage(fmDirectory
)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { mozilla
::dom::quota::HandleError("DatabaseFileManager::GetUsage(fmDirectory)"
, tryResult1122.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12709, mozilla::dom::quota::Severity::Error); return tryResult1122
.propagateErr(); } const auto& fileUsage = tryResult1122.
inspect();
;
12710
12711 *aUsageInfo += fileUsage;
12712 }
12713 }
12714 }
12715
12716 if (aUsageInfo) {
12717 for (const auto& leftoverFilename : leftoverFilenames) {
12718 if (aCanceled) {
12719 break;
12720 }
12721
12722 for (const auto& suffix : {kSQLiteSuffix, kSQLiteWALSuffix}) {
12723 QM_TRY_INSPECT(auto tryResult1123 = (CloneFileAndAppend(*directory, leftoverFilename
+ suffix)); if ((__builtin_expect(!!(tryResult1123.isErr()),
0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, leftoverFilename + suffix)"
, tryResult1123.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12725, mozilla::dom::quota::Severity::Error); return tryResult1123
.propagateErr(); } const auto& file = tryResult1123.inspect
();
12724 const auto& file,auto tryResult1123 = (CloneFileAndAppend(*directory, leftoverFilename
+ suffix)); if ((__builtin_expect(!!(tryResult1123.isErr()),
0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, leftoverFilename + suffix)"
, tryResult1123.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12725, mozilla::dom::quota::Severity::Error); return tryResult1123
.propagateErr(); } const auto& file = tryResult1123.inspect
();
12725 CloneFileAndAppend(*directory, leftoverFilename + suffix))auto tryResult1123 = (CloneFileAndAppend(*directory, leftoverFilename
+ suffix)); if ((__builtin_expect(!!(tryResult1123.isErr()),
0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, leftoverFilename + suffix)"
, tryResult1123.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12725, mozilla::dom::quota::Severity::Error); return tryResult1123
.propagateErr(); } const auto& file = tryResult1123.inspect
();
;
12726
12727 QM_TRY_INSPECT(const int64_t& fileSize,auto tryResult1124 = (mozilla::dom::quota::OrElseIf( (::mozilla
::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType
<decltype(file)>::GetFileSize )), [&](const auto&
firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla
::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize )\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12734, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, (ErrToOk<0,
int64_t>))); if ((__builtin_expect(!!(tryResult1124.isErr
()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize )), [&](const auto& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize )\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12734, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))"
, tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12734, mozilla::dom::quota::Severity::Error); return tryResult1124
.propagateErr(); } const int64_t& fileSize = tryResult1124
.inspect();
12728 QM_OR_ELSE_LOG_VERBOSE_IF(auto tryResult1124 = (mozilla::dom::quota::OrElseIf( (::mozilla
::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType
<decltype(file)>::GetFileSize )), [&](const auto&
firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla
::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize )\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12734, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, (ErrToOk<0,
int64_t>))); if ((__builtin_expect(!!(tryResult1124.isErr
()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize )), [&](const auto& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize )\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12734, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))"
, tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12734, mozilla::dom::quota::Severity::Error); return tryResult1124
.propagateErr(); } const int64_t& fileSize = tryResult1124
.inspect();
12729 // Expression.auto tryResult1124 = (mozilla::dom::quota::OrElseIf( (::mozilla
::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType
<decltype(file)>::GetFileSize )), [&](const auto&
firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla
::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize )\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12734, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, (ErrToOk<0,
int64_t>))); if ((__builtin_expect(!!(tryResult1124.isErr
()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize )), [&](const auto& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize )\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12734, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))"
, tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12734, mozilla::dom::quota::Severity::Error); return tryResult1124
.propagateErr(); } const int64_t& fileSize = tryResult1124
.inspect();
12730 MOZ_TO_RESULT_INVOKE_MEMBER(file, GetFileSize),auto tryResult1124 = (mozilla::dom::quota::OrElseIf( (::mozilla
::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType
<decltype(file)>::GetFileSize )), [&](const auto&
firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla
::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize )\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12734, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, (ErrToOk<0,
int64_t>))); if ((__builtin_expect(!!(tryResult1124.isErr
()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize )), [&](const auto& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize )\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12734, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))"
, tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12734, mozilla::dom::quota::Severity::Error); return tryResult1124
.propagateErr(); } const int64_t& fileSize = tryResult1124
.inspect();
12731 // Predicate.auto tryResult1124 = (mozilla::dom::quota::OrElseIf( (::mozilla
::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType
<decltype(file)>::GetFileSize )), [&](const auto&
firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla
::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize )\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12734, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, (ErrToOk<0,
int64_t>))); if ((__builtin_expect(!!(tryResult1124.isErr
()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize )), [&](const auto& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize )\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12734, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))"
, tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12734, mozilla::dom::quota::Severity::Error); return tryResult1124
.propagateErr(); } const int64_t& fileSize = tryResult1124
.inspect();
12732 IsFileNotFoundError,auto tryResult1124 = (mozilla::dom::quota::OrElseIf( (::mozilla
::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType
<decltype(file)>::GetFileSize )), [&](const auto&
firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla
::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize )\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12734, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, (ErrToOk<0,
int64_t>))); if ((__builtin_expect(!!(tryResult1124.isErr
()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize )), [&](const auto& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize )\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12734, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))"
, tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12734, mozilla::dom::quota::Severity::Error); return tryResult1124
.propagateErr(); } const int64_t& fileSize = tryResult1124
.inspect();
12733 // Fallback.auto tryResult1124 = (mozilla::dom::quota::OrElseIf( (::mozilla
::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType
<decltype(file)>::GetFileSize )), [&](const auto&
firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla
::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize )\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12734, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, (ErrToOk<0,
int64_t>))); if ((__builtin_expect(!!(tryResult1124.isErr
()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize )), [&](const auto& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize )\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12734, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))"
, tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12734, mozilla::dom::quota::Severity::Error); return tryResult1124
.propagateErr(); } const int64_t& fileSize = tryResult1124
.inspect();
12734 (ErrToOk<0, int64_t>)))auto tryResult1124 = (mozilla::dom::quota::OrElseIf( (::mozilla
::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType
<decltype(file)>::GetFileSize )), [&](const auto&
firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla
::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize )\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12734, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, (ErrToOk<0,
int64_t>))); if ((__builtin_expect(!!(tryResult1124.isErr
()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize )), [&](const auto& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize )\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12734, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))"
, tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12734, mozilla::dom::quota::Severity::Error); return tryResult1124
.propagateErr(); } const int64_t& fileSize = tryResult1124
.inspect();
;
12735 MOZ_ASSERT(fileSize >= 0)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileSize >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileSize >= 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("fileSize >= 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12735
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize >= 0"
")"); do { MOZ_CrashSequence(__null, 12735); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12736
12737 *aUsageInfo += DatabaseUsageType(Some(uint64_t(fileSize)));
12738 }
12739
12740 QM_TRY_INSPECT(auto tryResult1125 = (CloneFileAndAppend( *directory, leftoverFilename
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend( *directory, leftoverFilename + kFileManagerDirectoryNameSuffix)"
, tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12743, mozilla::dom::quota::Severity::Error); return tryResult1125
.propagateErr(); } const auto& fmDirectory = tryResult1125
.inspect();
12741 const auto& fmDirectory,auto tryResult1125 = (CloneFileAndAppend( *directory, leftoverFilename
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend( *directory, leftoverFilename + kFileManagerDirectoryNameSuffix)"
, tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12743, mozilla::dom::quota::Severity::Error); return tryResult1125
.propagateErr(); } const auto& fmDirectory = tryResult1125
.inspect();
12742 CloneFileAndAppend(auto tryResult1125 = (CloneFileAndAppend( *directory, leftoverFilename
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend( *directory, leftoverFilename + kFileManagerDirectoryNameSuffix)"
, tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12743, mozilla::dom::quota::Severity::Error); return tryResult1125
.propagateErr(); } const auto& fmDirectory = tryResult1125
.inspect();
12743 *directory, leftoverFilename + kFileManagerDirectoryNameSuffix))auto tryResult1125 = (CloneFileAndAppend( *directory, leftoverFilename
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend( *directory, leftoverFilename + kFileManagerDirectoryNameSuffix)"
, tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12743, mozilla::dom::quota::Severity::Error); return tryResult1125
.propagateErr(); } const auto& fmDirectory = tryResult1125
.inspect();
;
12744
12745 QM_TRY_INSPECT(const auto& fileUsage,auto tryResult1126 = (DatabaseFileManager::GetUsage(fmDirectory
)); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla
::dom::quota::HandleError("DatabaseFileManager::GetUsage(fmDirectory)"
, tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12746, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); } const auto& fileUsage = tryResult1126.
inspect();
12746 DatabaseFileManager::GetUsage(fmDirectory))auto tryResult1126 = (DatabaseFileManager::GetUsage(fmDirectory
)); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla
::dom::quota::HandleError("DatabaseFileManager::GetUsage(fmDirectory)"
, tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12746, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); } const auto& fileUsage = tryResult1126.
inspect();
;
12747
12748 *aUsageInfo += fileUsage;
12749 }
12750 }
12751
12752 return NS_OK;
12753}
12754
12755void QuotaClient::OnOriginClearCompleted(
12756 const OriginMetadata& aOriginMetadata) {
12757 AssertIsOnIOThread();
12758
12759 if (IndexedDatabaseManager* mgr = IndexedDatabaseManager::Get()) {
12760 mgr->InvalidateFileManagers(aOriginMetadata.mPersistenceType,
12761 aOriginMetadata.mOrigin);
12762 }
12763}
12764
12765void QuotaClient::OnRepositoryClearCompleted(PersistenceType aPersistenceType) {
12766 AssertIsOnIOThread();
12767
12768 if (IndexedDatabaseManager* mgr = IndexedDatabaseManager::Get()) {
12769 mgr->InvalidateFileManagers(aPersistenceType);
12770 }
12771}
12772
12773void QuotaClient::ReleaseIOThreadObjects() {
12774 AssertIsOnIOThread();
12775
12776 if (IndexedDatabaseManager* mgr = IndexedDatabaseManager::Get()) {
12777 mgr->InvalidateAllFileManagers();
12778 }
12779}
12780
12781void QuotaClient::AbortOperationsForLocks(
12782 const DirectoryLockIdTable& aDirectoryLockIds) {
12783 AssertIsOnBackgroundThread();
12784
12785 InvalidateLiveDatabasesMatching([&aDirectoryLockIds](const auto& database) {
12786 // If the database is registered in gLiveDatabaseHashtable then it must have
12787 // a directory lock.
12788 return IsLockForObjectContainedInLockTable(database, aDirectoryLockIds);
12789 });
12790}
12791
12792void QuotaClient::AbortOperationsForProcess(ContentParentId aContentParentId) {
12793 AssertIsOnBackgroundThread();
12794
12795 InvalidateLiveDatabasesMatching([&aContentParentId](const auto& database) {
12796 return database.IsOwnedByProcess(aContentParentId);
12797 });
12798}
12799
12800void QuotaClient::AbortAllOperations() {
12801 AssertIsOnBackgroundThread();
12802
12803 AbortAllMaintenances();
12804
12805 InvalidateLiveDatabasesMatching([](const auto&) { return true; });
12806}
12807
12808void QuotaClient::StartIdleMaintenance() {
12809 AssertIsOnBackgroundThread();
12810 if (IsShuttingDownOnBackgroundThread()) {
12811 MOZ_ASSERT(false, "!IsShuttingDownOnBackgroundThread()")do { static_assert( mozilla::detail::AssertionConditionType<
decltype(false)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("false" " (" "!IsShuttingDownOnBackgroundThread()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12811
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!IsShuttingDownOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 12811); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12812 return;
12813 }
12814
12815 DoMaintenance();
12816}
12817
12818void QuotaClient::StopIdleMaintenance() {
12819 AssertIsOnBackgroundThread();
12820
12821 AbortAllMaintenances();
12822}
12823
12824void QuotaClient::InitiateShutdown() {
12825 AssertIsOnBackgroundThread();
12826 MOZ_ASSERT(IsShuttingDownOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(IsShuttingDownOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(IsShuttingDownOnBackgroundThread
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12826); AnnotateMozCrashReason("MOZ_ASSERT" "(" "IsShuttingDownOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 12826); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12827
12828 if (mDeleteTimer) {
12829 // QuotaClient::AsyncDeleteFile will not schedule new timers beyond
12830 // shutdown. And we expect all critical (PBM) deletions to have been
12831 // triggered before this point via ClearPrivateRepository (w/out using
12832 // DeleteFilesRunnable at all).
12833 mDeleteTimer->Cancel();
12834 mDeleteTimer = nullptr;
12835 mPendingDeleteInfos.Clear();
12836 }
12837
12838 AbortAllOperations();
12839}
12840
12841bool QuotaClient::IsShutdownCompleted() const {
12842 return (!gFactoryOps || gFactoryOps->isEmpty()) &&
12843 (!gLiveDatabaseHashtable || !gLiveDatabaseHashtable->Count()) &&
12844 !mCurrentMaintenance && !DeleteFilesRunnable::IsDeletionPending();
12845}
12846
12847void QuotaClient::ForceKillActors() {
12848 // Currently we don't implement force killing actors.
12849}
12850
12851nsCString QuotaClient::GetShutdownStatus() const {
12852 AssertIsOnBackgroundThread();
12853
12854 nsCString data;
12855
12856 if (gFactoryOps && !gFactoryOps->isEmpty()) {
12857 data.Append("FactoryOperations: "_ns +
12858 IntToCString(static_cast<uint32_t>(gFactoryOps->length())) +
12859 " ("_ns);
12860
12861 // XXX It might be confusing to remove duplicates here, as the actual list
12862 // won't match the count then.
12863 nsTHashSet<nsCString> ids;
12864
12865 std::transform(gFactoryOps->begin(), gFactoryOps->end(), MakeInserter(ids),
12866 [](const FactoryOp* const factoryOp) {
12867 MOZ_ASSERT(factoryOp)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(factoryOp)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(factoryOp))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("factoryOp", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12867); AnnotateMozCrashReason("MOZ_ASSERT" "(" "factoryOp"
")"); do { MOZ_CrashSequence(__null, 12867); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12868
12869 nsCString id;
12870 factoryOp->Stringify(id);
12871 return id;
12872 });
12873
12874 StringJoinAppend(data, ", "_ns, ids);
12875
12876 data.Append(")\n");
12877 }
12878
12879 if (gLiveDatabaseHashtable && gLiveDatabaseHashtable->Count()) {
12880 data.Append("LiveDatabases: "_ns +
12881 IntToCString(gLiveDatabaseHashtable->Count()) + " ("_ns);
12882
12883 // XXX It might be confusing to remove duplicates here, as the actual list
12884 // won't match the count then.
12885 nsTHashSet<nsCString> ids;
12886
12887 for (const auto& entry : gLiveDatabaseHashtable->Values()) {
12888 MOZ_ASSERT(entry)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(entry)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(entry))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("entry", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12888); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry" ")"
); do { MOZ_CrashSequence(__null, 12888); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
12889
12890 std::transform(entry->mLiveDatabases.begin(), entry->mLiveDatabases.end(),
12891 MakeInserter(ids), [](const Database* const database) {
12892 nsCString id;
12893 database->Stringify(id);
12894 return id;
12895 });
12896 }
12897
12898 StringJoinAppend(data, ", "_ns, ids);
12899
12900 data.Append(")\n");
12901 }
12902
12903 if (mCurrentMaintenance) {
12904 data.Append("IdleMaintenance: 1 (");
12905 mCurrentMaintenance->Stringify(data);
12906 data.Append(")\n");
12907 }
12908
12909 return data;
12910}
12911
12912void QuotaClient::FinalizeShutdown() {
12913 RefPtr<ConnectionPool> connectionPool = gConnectionPool.get();
12914 if (connectionPool) {
12915 connectionPool->Shutdown();
12916
12917 gConnectionPool = nullptr;
12918 }
12919
12920 if (mMaintenanceThreadPool) {
12921 mMaintenanceThreadPool->Shutdown();
12922 mMaintenanceThreadPool = nullptr;
12923 }
12924}
12925
12926void QuotaClient::DeleteTimerCallback(nsITimer* aTimer, void* aClosure) {
12927 AssertIsOnBackgroundThread();
12928 MOZ_ASSERT(aTimer)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aTimer)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(aTimer))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aTimer", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12928); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aTimer" ")"
); do { MOZ_CrashSequence(__null, 12928); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
12929
12930 // Even though we do not schedule new timers after shutdown has started,
12931 // an already existing one might fire afterwards (actually we think it
12932 // shouldn't, but there is no reason to enforce this invariant). We can
12933 // just ignore it, the cleanup work is done in InitiateShutdown.
12934 if (NS_WARN_IF(IsShuttingDownOnBackgroundThread())NS_warn_if_impl(IsShuttingDownOnBackgroundThread(), "IsShuttingDownOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12934
)
) {
12935 return;
12936 }
12937
12938 auto* const self = static_cast<QuotaClient*>(aClosure);
12939 MOZ_ASSERT(self)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(self)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(self))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("self", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12939); AnnotateMozCrashReason("MOZ_ASSERT" "(" "self" ")")
; do { MOZ_CrashSequence(__null, 12939); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
12940 MOZ_ASSERT(self->mDeleteTimer)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(self->mDeleteTimer)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(self->mDeleteTimer))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("self->mDeleteTimer"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12940
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "self->mDeleteTimer"
")"); do { MOZ_CrashSequence(__null, 12940); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12941 MOZ_ASSERT(SameCOMIdentity(self->mDeleteTimer, aTimer))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(SameCOMIdentity(self->mDeleteTimer, aTimer))>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(SameCOMIdentity(self->mDeleteTimer, aTimer)))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("SameCOMIdentity(self->mDeleteTimer, aTimer)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12941
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "SameCOMIdentity(self->mDeleteTimer, aTimer)"
")"); do { MOZ_CrashSequence(__null, 12941); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12942
12943 for (const auto& pendingDeleteInfoEntry : self->mPendingDeleteInfos) {
12944 const auto& key = pendingDeleteInfoEntry.GetKey();
12945 const auto& value = pendingDeleteInfoEntry.GetData();
12946 MOZ_ASSERT(!value->IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!value->IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!value->IsEmpty()))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("!value->IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12946
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!value->IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 12946); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12947
12948 RefPtr<DeleteFilesRunnable> runnable = new DeleteFilesRunnable(
12949 SafeRefPtr{key, AcquireStrongRefFromRawPtr{}}, std::move(*value));
12950
12951 MOZ_ASSERT(value->IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(value->IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(value->IsEmpty()))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("value->IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12951
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "value->IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 12951); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12952
12953 runnable->RunImmediately();
12954 }
12955
12956 self->mPendingDeleteInfos.Clear();
12957}
12958
12959void QuotaClient::AbortAllMaintenances() {
12960 if (mCurrentMaintenance) {
12961 mCurrentMaintenance->Abort();
12962 }
12963
12964 for (const auto& maintenance : mMaintenanceQueue) {
12965 maintenance->Abort();
12966 }
12967}
12968
12969Result<nsCOMPtr<nsIFile>, nsresult> QuotaClient::GetDirectory(
12970 const OriginMetadata& aOriginMetadata) {
12971 QuotaManager* const quotaManager = QuotaManager::Get();
12972 NS_ASSERTION(quotaManager, "This should never fail!")do { if (!(quotaManager)) { NS_DebugBreak(NS_DEBUG_ASSERTION,
"This should never fail!", "quotaManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12972); MOZ_PretendNoReturn(); } } while (0)
;
12973
12974 QM_TRY_INSPECT(const auto& directory,auto tryResult1127 = (quotaManager->GetOriginDirectory(aOriginMetadata
)); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->GetOriginDirectory(aOriginMetadata)"
, tryResult1127.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12975, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); } const auto& directory = tryResult1127.
inspect();
12975 quotaManager->GetOriginDirectory(aOriginMetadata))auto tryResult1127 = (quotaManager->GetOriginDirectory(aOriginMetadata
)); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->GetOriginDirectory(aOriginMetadata)"
, tryResult1127.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12975, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); } const auto& directory = tryResult1127.
inspect();
;
12976
12977 MOZ_ASSERT(directory)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(directory)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(directory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("directory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12977); AnnotateMozCrashReason("MOZ_ASSERT" "(" "directory"
")"); do { MOZ_CrashSequence(__null, 12977); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12978
12979 QM_TRY(MOZ_TO_RESULT({auto tryResult1128 = (ToResult(directory->Append(static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1128
)::ok_type>); if ((__builtin_expect(!!(tryResult1128.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(directory->Append(static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12980, mozilla::dom::quota::Severity::Error); return tryResult1128
.propagateErr(); }}
12980 directory->Append(NS_LITERAL_STRING_FROM_CSTRING(IDB_DIRECTORY_NAME)))){auto tryResult1128 = (ToResult(directory->Append(static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1128
)::ok_type>); if ((__builtin_expect(!!(tryResult1128.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(directory->Append(static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12980, mozilla::dom::quota::Severity::Error); return tryResult1128
.propagateErr(); }}
;
12981
12982 return directory;
12983}
12984
12985template <QuotaClient::ObsoleteFilenamesHandling ObsoleteFilenames>
12986Result<QuotaClient::GetDatabaseFilenamesResult<ObsoleteFilenames>, nsresult>
12987QuotaClient::GetDatabaseFilenames(nsIFile& aDirectory,
12988 const AtomicBool& aCanceled) {
12989 AssertIsOnIOThread();
12990
12991 GetDatabaseFilenamesResult<ObsoleteFilenames> result;
12992
12993 QM_TRY(CollectEachFileAtomicCancelable({auto tryResult1131 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1129 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12997, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); } const auto& leafName = tryResult1129.inspect
();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12999, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); } const auto& dirEntryKind = tryResult1130
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13044); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1131
)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1129 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12997, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& leafName = tryResult1129.inspect();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12999, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); } const auto& dirEntryKind = tryResult1130.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13044); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13058, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
12994 aDirectory, aCanceled,{auto tryResult1131 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1129 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12997, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); } const auto& leafName = tryResult1129.inspect
();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12999, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); } const auto& dirEntryKind = tryResult1130
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13044); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1131
)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1129 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12997, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& leafName = tryResult1129.inspect();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12999, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); } const auto& dirEntryKind = tryResult1130.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13044); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13058, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
12995 [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> {{auto tryResult1131 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1129 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12997, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); } const auto& leafName = tryResult1129.inspect
();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12999, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); } const auto& dirEntryKind = tryResult1130
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13044); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1131
)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1129 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12997, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& leafName = tryResult1129.inspect();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12999, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); } const auto& dirEntryKind = tryResult1130.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13044); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13058, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
12996 QM_TRY_INSPECT(const auto& leafName, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED({auto tryResult1131 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1129 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12997, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); } const auto& leafName = tryResult1129.inspect
();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12999, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); } const auto& dirEntryKind = tryResult1130
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13044); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1131
)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1129 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12997, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& leafName = tryResult1129.inspect();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12999, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); } const auto& dirEntryKind = tryResult1130.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13044); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13058, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
12997 nsString, file, GetLeafName));{auto tryResult1131 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1129 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12997, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); } const auto& leafName = tryResult1129.inspect
();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12999, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); } const auto& dirEntryKind = tryResult1130
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13044); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1131
)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1129 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12997, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& leafName = tryResult1129.inspect();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12999, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); } const auto& dirEntryKind = tryResult1130.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13044); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13058, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
12998
12999 QM_TRY_INSPECT(const auto& dirEntryKind, GetDirEntryKind(*file));{auto tryResult1131 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1129 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12997, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); } const auto& leafName = tryResult1129.inspect
();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12999, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); } const auto& dirEntryKind = tryResult1130
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13044); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1131
)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1129 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12997, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& leafName = tryResult1129.inspect();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12999, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); } const auto& dirEntryKind = tryResult1130.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13044); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13058, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
13000
13001 switch (dirEntryKind) {{auto tryResult1131 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1129 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12997, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); } const auto& leafName = tryResult1129.inspect
();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12999, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); } const auto& dirEntryKind = tryResult1130
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13044); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1131
)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1129 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12997, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& leafName = tryResult1129.inspect();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12999, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); } const auto& dirEntryKind = tryResult1130.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13044); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13058, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
13002 case nsIFileKind::ExistsAsDirectory:{auto tryResult1131 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1129 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12997, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); } const auto& leafName = tryResult1129.inspect
();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12999, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); } const auto& dirEntryKind = tryResult1130
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13044); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1131
)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1129 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12997, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& leafName = tryResult1129.inspect();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12999, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); } const auto& dirEntryKind = tryResult1130.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13044); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13058, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
13003 result.subdirsToProcess.AppendElement(leafName);{auto tryResult1131 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1129 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12997, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); } const auto& leafName = tryResult1129.inspect
();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12999, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); } const auto& dirEntryKind = tryResult1130
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13044); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1131
)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1129 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12997, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& leafName = tryResult1129.inspect();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12999, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); } const auto& dirEntryKind = tryResult1130.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13044); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13058, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
13004 break;{auto tryResult1131 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1129 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12997, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); } const auto& leafName = tryResult1129.inspect
();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12999, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); } const auto& dirEntryKind = tryResult1130
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13044); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1131
)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1129 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12997, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& leafName = tryResult1129.inspect();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12999, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); } const auto& dirEntryKind = tryResult1130.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13044); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13058, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
13005
13006 case nsIFileKind::ExistsAsFile: {{auto tryResult1131 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1129 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12997, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); } const auto& leafName = tryResult1129.inspect
();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12999, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); } const auto& dirEntryKind = tryResult1130
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13044); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1131
)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1129 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12997, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& leafName = tryResult1129.inspect();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12999, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); } const auto& dirEntryKind = tryResult1130.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13044); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13058, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
13007 if constexpr (ObsoleteFilenames =={auto tryResult1131 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1129 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12997, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); } const auto& leafName = tryResult1129.inspect
();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12999, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); } const auto& dirEntryKind = tryResult1130
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13044); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1131
)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1129 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12997, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& leafName = tryResult1129.inspect();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12999, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); } const auto& dirEntryKind = tryResult1130.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13044); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13058, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
13008 ObsoleteFilenamesHandling::Include) {{auto tryResult1131 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1129 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12997, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); } const auto& leafName = tryResult1129.inspect
();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12999, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); } const auto& dirEntryKind = tryResult1130
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13044); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1131
)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1129 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12997, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& leafName = tryResult1129.inspect();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12999, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); } const auto& dirEntryKind = tryResult1130.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13044); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13058, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
13009 if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) {{auto tryResult1131 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1129 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12997, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); } const auto& leafName = tryResult1129.inspect
();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12999, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); } const auto& dirEntryKind = tryResult1130
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13044); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1131
)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1129 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12997, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& leafName = tryResult1129.inspect();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12999, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); } const auto& dirEntryKind = tryResult1130.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13044); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13058, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
13010 result.obsoleteFilenames.Insert({auto tryResult1131 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1129 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12997, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); } const auto& leafName = tryResult1129.inspect
();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12999, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); } const auto& dirEntryKind = tryResult1130
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13044); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1131
)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1129 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12997, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& leafName = tryResult1129.inspect();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12999, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); } const auto& dirEntryKind = tryResult1130.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13044); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13058, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
13011 Substring(leafName, kIdbDeletionMarkerFilePrefix.Length()));{auto tryResult1131 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1129 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12997, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); } const auto& leafName = tryResult1129.inspect
();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12999, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); } const auto& dirEntryKind = tryResult1130
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13044); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1131
)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1129 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12997, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& leafName = tryResult1129.inspect();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12999, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); } const auto& dirEntryKind = tryResult1130.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13044); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13058, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
13012 break;{auto tryResult1131 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1129 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12997, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); } const auto& leafName = tryResult1129.inspect
();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12999, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); } const auto& dirEntryKind = tryResult1130
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13044); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1131
)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1129 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12997, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& leafName = tryResult1129.inspect();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12999, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); } const auto& dirEntryKind = tryResult1130.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13044); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13058, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
13013 }{auto tryResult1131 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1129 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12997, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); } const auto& leafName = tryResult1129.inspect
();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12999, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); } const auto& dirEntryKind = tryResult1130
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13044); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1131
)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1129 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12997, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& leafName = tryResult1129.inspect();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12999, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); } const auto& dirEntryKind = tryResult1130.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13044); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13058, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
13014 }{auto tryResult1131 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1129 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12997, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); } const auto& leafName = tryResult1129.inspect
();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12999, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); } const auto& dirEntryKind = tryResult1130
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13044); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1131
)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1129 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12997, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& leafName = tryResult1129.inspect();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12999, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); } const auto& dirEntryKind = tryResult1130.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13044); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13058, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
13015
13016 // Skip OS metadata files. These files are only used in different{auto tryResult1131 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1129 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12997, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); } const auto& leafName = tryResult1129.inspect
();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12999, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); } const auto& dirEntryKind = tryResult1130
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13044); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1131
)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1129 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12997, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& leafName = tryResult1129.inspect();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12999, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); } const auto& dirEntryKind = tryResult1130.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13044); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13058, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
13017 // platforms, but the profile can be shared across different{auto tryResult1131 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1129 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12997, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); } const auto& leafName = tryResult1129.inspect
();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12999, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); } const auto& dirEntryKind = tryResult1130
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13044); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1131
)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1129 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12997, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& leafName = tryResult1129.inspect();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12999, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); } const auto& dirEntryKind = tryResult1130.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13044); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13058, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
13018 // operating systems, so we check it on all platforms.{auto tryResult1131 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1129 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12997, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); } const auto& leafName = tryResult1129.inspect
();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12999, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); } const auto& dirEntryKind = tryResult1130
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13044); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1131
)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1129 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12997, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& leafName = tryResult1129.inspect();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12999, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); } const auto& dirEntryKind = tryResult1130.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13044); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13058, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
13019 if (QuotaManager::IsOSMetadata(leafName)) {{auto tryResult1131 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1129 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12997, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); } const auto& leafName = tryResult1129.inspect
();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12999, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); } const auto& dirEntryKind = tryResult1130
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13044); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1131
)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1129 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12997, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& leafName = tryResult1129.inspect();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12999, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); } const auto& dirEntryKind = tryResult1130.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13044); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13058, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
13020 break;{auto tryResult1131 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1129 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12997, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); } const auto& leafName = tryResult1129.inspect
();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12999, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); } const auto& dirEntryKind = tryResult1130
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13044); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1131
)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1129 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12997, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& leafName = tryResult1129.inspect();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12999, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); } const auto& dirEntryKind = tryResult1130.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13044); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13058, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
13021 }{auto tryResult1131 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1129 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12997, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); } const auto& leafName = tryResult1129.inspect
();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12999, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); } const auto& dirEntryKind = tryResult1130
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13044); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1131
)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1129 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12997, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& leafName = tryResult1129.inspect();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12999, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); } const auto& dirEntryKind = tryResult1130.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13044); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13058, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
13022
13023 // Skip files starting with ".".{auto tryResult1131 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1129 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12997, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); } const auto& leafName = tryResult1129.inspect
();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12999, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); } const auto& dirEntryKind = tryResult1130
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13044); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1131
)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1129 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12997, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& leafName = tryResult1129.inspect();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12999, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); } const auto& dirEntryKind = tryResult1130.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13044); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13058, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
13024 if (QuotaManager::IsDotFile(leafName)) {{auto tryResult1131 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1129 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12997, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); } const auto& leafName = tryResult1129.inspect
();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12999, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); } const auto& dirEntryKind = tryResult1130
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13044); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1131
)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1129 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12997, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& leafName = tryResult1129.inspect();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12999, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); } const auto& dirEntryKind = tryResult1130.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13044); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13058, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
13025 break;{auto tryResult1131 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1129 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12997, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); } const auto& leafName = tryResult1129.inspect
();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12999, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); } const auto& dirEntryKind = tryResult1130
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13044); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1131
)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1129 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12997, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& leafName = tryResult1129.inspect();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12999, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); } const auto& dirEntryKind = tryResult1130.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13044); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13058, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
13026 }{auto tryResult1131 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1129 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12997, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); } const auto& leafName = tryResult1129.inspect
();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12999, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); } const auto& dirEntryKind = tryResult1130
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13044); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1131
)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1129 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12997, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& leafName = tryResult1129.inspect();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12999, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); } const auto& dirEntryKind = tryResult1130.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13044); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13058, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
13027
13028 // Skip SQLite temporary files. These files take up space on disk{auto tryResult1131 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1129 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12997, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); } const auto& leafName = tryResult1129.inspect
();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12999, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); } const auto& dirEntryKind = tryResult1130
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13044); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1131
)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1129 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12997, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& leafName = tryResult1129.inspect();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12999, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); } const auto& dirEntryKind = tryResult1130.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13044); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13058, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
13029 // but will be deleted as soon as the database is opened, so we{auto tryResult1131 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1129 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12997, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); } const auto& leafName = tryResult1129.inspect
();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12999, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); } const auto& dirEntryKind = tryResult1130
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13044); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1131
)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1129 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12997, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& leafName = tryResult1129.inspect();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12999, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); } const auto& dirEntryKind = tryResult1130.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13044); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13058, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
13030 // don't count them towards quota.{auto tryResult1131 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1129 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12997, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); } const auto& leafName = tryResult1129.inspect
();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12999, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); } const auto& dirEntryKind = tryResult1130
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13044); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1131
)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1129 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12997, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& leafName = tryResult1129.inspect();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12999, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); } const auto& dirEntryKind = tryResult1130.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13044); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13058, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
13031 if (StringEndsWith(leafName, kSQLiteJournalSuffix) ||{auto tryResult1131 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1129 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12997, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); } const auto& leafName = tryResult1129.inspect
();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12999, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); } const auto& dirEntryKind = tryResult1130
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13044); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1131
)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1129 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12997, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& leafName = tryResult1129.inspect();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12999, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); } const auto& dirEntryKind = tryResult1130.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13044); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13058, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
13032 StringEndsWith(leafName, kSQLiteSHMSuffix)) {{auto tryResult1131 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1129 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12997, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); } const auto& leafName = tryResult1129.inspect
();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12999, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); } const auto& dirEntryKind = tryResult1130
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13044); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1131
)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1129 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12997, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& leafName = tryResult1129.inspect();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12999, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); } const auto& dirEntryKind = tryResult1130.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13044); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13058, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
13033 break;{auto tryResult1131 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1129 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12997, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); } const auto& leafName = tryResult1129.inspect
();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12999, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); } const auto& dirEntryKind = tryResult1130
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13044); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1131
)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1129 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12997, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& leafName = tryResult1129.inspect();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12999, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); } const auto& dirEntryKind = tryResult1130.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13044); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13058, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
13034 }{auto tryResult1131 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1129 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12997, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); } const auto& leafName = tryResult1129.inspect
();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12999, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); } const auto& dirEntryKind = tryResult1130
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13044); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1131
)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1129 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12997, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& leafName = tryResult1129.inspect();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12999, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); } const auto& dirEntryKind = tryResult1130.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13044); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13058, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
13035
13036 // The SQLite WAL file does count towards quota, but it is handled{auto tryResult1131 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1129 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12997, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); } const auto& leafName = tryResult1129.inspect
();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12999, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); } const auto& dirEntryKind = tryResult1130
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13044); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1131
)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1129 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12997, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& leafName = tryResult1129.inspect();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12999, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); } const auto& dirEntryKind = tryResult1130.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13044); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13058, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
13037 // below once we find the actual database file.{auto tryResult1131 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1129 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12997, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); } const auto& leafName = tryResult1129.inspect
();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12999, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); } const auto& dirEntryKind = tryResult1130
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13044); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1131
)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1129 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12997, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& leafName = tryResult1129.inspect();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12999, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); } const auto& dirEntryKind = tryResult1130.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13044); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13058, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
13038 if (StringEndsWith(leafName, kSQLiteWALSuffix)) {{auto tryResult1131 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1129 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12997, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); } const auto& leafName = tryResult1129.inspect
();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12999, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); } const auto& dirEntryKind = tryResult1130
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13044); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1131
)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1129 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12997, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& leafName = tryResult1129.inspect();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12999, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); } const auto& dirEntryKind = tryResult1130.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13044); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13058, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
13039 break;{auto tryResult1131 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1129 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12997, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); } const auto& leafName = tryResult1129.inspect
();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12999, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); } const auto& dirEntryKind = tryResult1130
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13044); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1131
)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1129 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12997, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& leafName = tryResult1129.inspect();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12999, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); } const auto& dirEntryKind = tryResult1130.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13044); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13058, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
13040 }{auto tryResult1131 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1129 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12997, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); } const auto& leafName = tryResult1129.inspect
();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12999, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); } const auto& dirEntryKind = tryResult1130
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13044); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1131
)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1129 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12997, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& leafName = tryResult1129.inspect();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12999, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); } const auto& dirEntryKind = tryResult1130.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13044); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13058, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
13041
13042 nsDependentSubstring leafNameBase;{auto tryResult1131 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1129 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12997, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); } const auto& leafName = tryResult1129.inspect
();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12999, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); } const auto& dirEntryKind = tryResult1130
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13044); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1131
)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1129 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12997, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& leafName = tryResult1129.inspect();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12999, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); } const auto& dirEntryKind = tryResult1130.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13044); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13058, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
13043 if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) {{auto tryResult1131 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1129 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12997, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); } const auto& leafName = tryResult1129.inspect
();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12999, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); } const auto& dirEntryKind = tryResult1130
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13044); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1131
)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1129 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12997, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& leafName = tryResult1129.inspect();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12999, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); } const auto& dirEntryKind = tryResult1130.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13044); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13058, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
13044 UNKNOWN_FILE_WARNING(leafName);{auto tryResult1131 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1129 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12997, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); } const auto& leafName = tryResult1129.inspect
();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12999, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); } const auto& dirEntryKind = tryResult1130
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13044); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1131
)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1129 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12997, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& leafName = tryResult1129.inspect();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12999, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); } const auto& dirEntryKind = tryResult1130.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13044); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13058, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
13045 break;{auto tryResult1131 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1129 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12997, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); } const auto& leafName = tryResult1129.inspect
();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12999, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); } const auto& dirEntryKind = tryResult1130
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13044); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1131
)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1129 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12997, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& leafName = tryResult1129.inspect();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12999, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); } const auto& dirEntryKind = tryResult1130.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13044); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13058, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
13046 }{auto tryResult1131 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1129 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12997, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); } const auto& leafName = tryResult1129.inspect
();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12999, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); } const auto& dirEntryKind = tryResult1130
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13044); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1131
)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1129 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12997, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& leafName = tryResult1129.inspect();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12999, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); } const auto& dirEntryKind = tryResult1130.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13044); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13058, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
13047
13048 result.databaseFilenames.Insert(leafNameBase);{auto tryResult1131 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1129 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12997, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); } const auto& leafName = tryResult1129.inspect
();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12999, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); } const auto& dirEntryKind = tryResult1130
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13044); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1131
)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1129 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12997, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& leafName = tryResult1129.inspect();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12999, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); } const auto& dirEntryKind = tryResult1130.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13044); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13058, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
13049 break;{auto tryResult1131 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1129 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12997, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); } const auto& leafName = tryResult1129.inspect
();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12999, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); } const auto& dirEntryKind = tryResult1130
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13044); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1131
)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1129 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12997, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& leafName = tryResult1129.inspect();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12999, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); } const auto& dirEntryKind = tryResult1130.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13044); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13058, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
13050 }{auto tryResult1131 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1129 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12997, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); } const auto& leafName = tryResult1129.inspect
();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12999, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); } const auto& dirEntryKind = tryResult1130
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13044); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1131
)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1129 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12997, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& leafName = tryResult1129.inspect();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12999, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); } const auto& dirEntryKind = tryResult1130.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13044); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13058, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
13051
13052 case nsIFileKind::DoesNotExist:{auto tryResult1131 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1129 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12997, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); } const auto& leafName = tryResult1129.inspect
();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12999, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); } const auto& dirEntryKind = tryResult1130
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13044); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1131
)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1129 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12997, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& leafName = tryResult1129.inspect();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12999, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); } const auto& dirEntryKind = tryResult1130.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13044); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13058, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
13053 // Ignore files that got removed externally while iterating.{auto tryResult1131 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1129 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12997, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); } const auto& leafName = tryResult1129.inspect
();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12999, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); } const auto& dirEntryKind = tryResult1130
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13044); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1131
)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1129 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12997, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& leafName = tryResult1129.inspect();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12999, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); } const auto& dirEntryKind = tryResult1130.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13044); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13058, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
13054 break;{auto tryResult1131 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1129 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12997, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); } const auto& leafName = tryResult1129.inspect
();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12999, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); } const auto& dirEntryKind = tryResult1130
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13044); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1131
)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1129 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12997, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& leafName = tryResult1129.inspect();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12999, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); } const auto& dirEntryKind = tryResult1130.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13044); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13058, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
13055 }{auto tryResult1131 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1129 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12997, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); } const auto& leafName = tryResult1129.inspect
();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12999, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); } const auto& dirEntryKind = tryResult1130
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13044); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1131
)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1129 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12997, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& leafName = tryResult1129.inspect();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12999, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); } const auto& dirEntryKind = tryResult1130.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13044); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13058, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
13056
13057 return Ok{};{auto tryResult1131 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1129 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12997, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); } const auto& leafName = tryResult1129.inspect
();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12999, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); } const auto& dirEntryKind = tryResult1130
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13044); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1131
)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1129 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12997, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& leafName = tryResult1129.inspect();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12999, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); } const auto& dirEntryKind = tryResult1130.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13044); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13058, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
13058 })){auto tryResult1131 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1129 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12997, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); } const auto& leafName = tryResult1129.inspect
();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12999, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); } const auto& dirEntryKind = tryResult1130
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13044); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1131
)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1129 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12997, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& leafName = tryResult1129.inspect();; auto tryResult1130 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12999, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); } const auto& dirEntryKind = tryResult1130.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13044); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13058, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
;
13059
13060 return result;
13061}
13062
13063void QuotaClient::ProcessMaintenanceQueue() {
13064 AssertIsOnBackgroundThread();
13065
13066 if (mCurrentMaintenance || mMaintenanceQueue.IsEmpty()) {
13067 return;
13068 }
13069
13070 mCurrentMaintenance = mMaintenanceQueue[0];
13071 mMaintenanceQueue.RemoveElementAt(0);
13072
13073 mCurrentMaintenance->RunImmediately();
13074}
13075
13076/*******************************************************************************
13077 * DeleteFilesRunnable
13078 ******************************************************************************/
13079
13080uint64_t DeleteFilesRunnable::sPendingRunnables = 0;
13081
13082DeleteFilesRunnable::DeleteFilesRunnable(
13083 SafeRefPtr<DatabaseFileManager> aFileManager, nsTArray<int64_t>&& aFileIds)
13084 : Runnable("dom::indexeddb::DeleteFilesRunnable"),
13085 mOwningEventTarget(GetCurrentSerialEventTarget()),
13086 mFileManager(std::move(aFileManager)),
13087 mFileIds(std::move(aFileIds)),
13088 mState(State_Initial) {}
13089
13090#ifdef DEBUG1
13091DeleteFilesRunnable::~DeleteFilesRunnable() {
13092 MOZ_ASSERT(!mDEBUGCountsAsPending)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDEBUGCountsAsPending)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDEBUGCountsAsPending))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!mDEBUGCountsAsPending"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13092
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDEBUGCountsAsPending"
")"); do { MOZ_CrashSequence(__null, 13092); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13093}
13094#endif
13095
13096void DeleteFilesRunnable::RunImmediately() {
13097 AssertIsOnBackgroundThread();
13098 MOZ_ASSERT(mState == State_Initial)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State_Initial)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State_Initial))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State_Initial"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13098
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State_Initial"
")"); do { MOZ_CrashSequence(__null, 13098); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13099
13100 (void)this->Run();
13101}
13102
13103void DeleteFilesRunnable::Open() {
13104 AssertIsOnBackgroundThread();
13105 MOZ_ASSERT(mState == State_Initial)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State_Initial)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State_Initial))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State_Initial"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13105
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State_Initial"
")"); do { MOZ_CrashSequence(__null, 13105); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13106
13107 MOZ_ASSERT(!mDEBUGCountsAsPending)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDEBUGCountsAsPending)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDEBUGCountsAsPending))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!mDEBUGCountsAsPending"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13107
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDEBUGCountsAsPending"
")"); do { MOZ_CrashSequence(__null, 13107); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13108 sPendingRunnables++;
13109 DEBUGONLY(mDEBUGCountsAsPending = true)mDEBUGCountsAsPending = true;
13110
13111 QuotaManager* const quotaManager = QuotaManager::Get();
13112 if (NS_WARN_IF(!quotaManager)NS_warn_if_impl(!quotaManager, "!quotaManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13112)
) {
13113 Finish();
13114 return;
13115 }
13116
13117 mState = State_DirectoryOpenPending;
13118
13119 quotaManager
13120 ->OpenClientDirectory(
13121 {mFileManager->OriginMetadata(), quota::Client::IDB})
13122 ->Then(
13123 GetCurrentSerialEventTarget(), __func__,
13124 [self = RefPtr(this)](QuotaManager::ClientDirectoryLockHandlePromise::
13125 ResolveOrRejectValue&& aValue) {
13126 if (aValue.IsResolve()) {
13127 self->DirectoryLockAcquired(std::move(aValue.ResolveValue()));
13128 } else {
13129 self->DirectoryLockFailed();
13130 }
13131 });
13132}
13133
13134void DeleteFilesRunnable::DoDatabaseWork() {
13135 AssertIsOnIOThread();
13136 MOZ_ASSERT(mState == State_DatabaseWorkOpen)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State_DatabaseWorkOpen)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State_DatabaseWorkOpen
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State_DatabaseWorkOpen", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13136); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State_DatabaseWorkOpen"
")"); do { MOZ_CrashSequence(__null, 13136); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13137
13138 if (!mFileManager->Invalidated()) {
13139 for (int64_t fileId : mFileIds) {
13140 if (NS_FAILED(mFileManager->SyncDeleteFile(fileId))((bool)(__builtin_expect(!!(NS_FAILED_impl(mFileManager->SyncDeleteFile
(fileId))), 0)))
) {
13141 NS_WARNING("Failed to delete file!")NS_DebugBreak(NS_DEBUG_WARNING, "Failed to delete file!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13141
)
;
13142 }
13143 }
13144 }
13145
13146 Finish();
13147}
13148
13149void DeleteFilesRunnable::Finish() {
13150 MOZ_ASSERT(mState != State_UnblockingOpen)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState != State_UnblockingOpen)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState != State_UnblockingOpen
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState != State_UnblockingOpen", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13150); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState != State_UnblockingOpen"
")"); do { MOZ_CrashSequence(__null, 13150); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13151
13152 // Must set mState before dispatching otherwise we will race with the main
13153 // thread.
13154 mState = State_UnblockingOpen;
13155
13156 MOZ_ALWAYS_SUCCEEDS(mOwningEventTarget->Dispatch(this, NS_DISPATCH_NORMAL))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL
))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13156
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { MOZ_CrashSequence(__null, 13156); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
13157}
13158
13159void DeleteFilesRunnable::UnblockOpen() {
13160 AssertIsOnBackgroundThread();
13161 MOZ_ASSERT(mState == State_UnblockingOpen)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State_UnblockingOpen)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State_UnblockingOpen
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State_UnblockingOpen", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13161); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State_UnblockingOpen"
")"); do { MOZ_CrashSequence(__null, 13161); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13162
13163 {
13164 auto destroyingDirectoryLockHandle = std::move(mDirectoryLockHandle);
13165 }
13166
13167 MOZ_ASSERT(mDEBUGCountsAsPending)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDEBUGCountsAsPending)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDEBUGCountsAsPending))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("mDEBUGCountsAsPending"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13167
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGCountsAsPending"
")"); do { MOZ_CrashSequence(__null, 13167); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13168 sPendingRunnables--;
13169 DEBUGONLY(mDEBUGCountsAsPending = false)mDEBUGCountsAsPending = false;
13170
13171 mState = State_Completed;
13172}
13173
13174NS_IMETHODIMPnsresult
13175DeleteFilesRunnable::Run() {
13176 switch (mState) {
13177 case State_Initial:
13178 Open();
13179 break;
13180
13181 case State_DatabaseWorkOpen:
13182 DoDatabaseWork();
13183 break;
13184
13185 case State_UnblockingOpen:
13186 UnblockOpen();
13187 break;
13188
13189 case State_DirectoryOpenPending:
13190 default:
13191 MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13191
); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 13191); __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
13192 }
13193
13194 return NS_OK;
13195}
13196
13197void DeleteFilesRunnable::DirectoryLockAcquired(
13198 ClientDirectoryLockHandle aLockHandle) {
13199 AssertIsOnBackgroundThread();
13200 MOZ_ASSERT(mState == State_DirectoryOpenPending)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State_DirectoryOpenPending)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State_DirectoryOpenPending
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State_DirectoryOpenPending", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13200); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State_DirectoryOpenPending"
")"); do { MOZ_CrashSequence(__null, 13200); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13201 MOZ_ASSERT(!mDirectoryLockHandle)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDirectoryLockHandle)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDirectoryLockHandle))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("!mDirectoryLockHandle"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13201
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLockHandle"
")"); do { MOZ_CrashSequence(__null, 13201); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13202
13203 mDirectoryLockHandle = std::move(aLockHandle);
13204
13205 QuotaManager* const quotaManager = QuotaManager::Get();
13206 MOZ_ASSERT(quotaManager)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(quotaManager)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(quotaManager))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("quotaManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13206); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { MOZ_CrashSequence(__null, 13206); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13207
13208 // Must set this before dispatching otherwise we will race with the IO thread
13209 mState = State_DatabaseWorkOpen;
13210
13211 QM_TRY(MOZ_TO_RESULT({auto tryResult1132 = (ToResult(quotaManager->IOThread()->
Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert
(std::is_empty_v<typename decltype(tryResult1132)::ok_type
>); if ((__builtin_expect(!!(tryResult1132.isErr()), 0))) {
auto tryTempError = tryResult1132.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13213, mozilla::dom::quota::Severity::Error); [this](const nsresult
) { Finish(); }(tryTempError); [[maybe_unused]] constexpr const
auto& func = __func__; return ; }}
13212 quotaManager->IOThread()->Dispatch(this, NS_DISPATCH_NORMAL)),{auto tryResult1132 = (ToResult(quotaManager->IOThread()->
Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert
(std::is_empty_v<typename decltype(tryResult1132)::ok_type
>); if ((__builtin_expect(!!(tryResult1132.isErr()), 0))) {
auto tryTempError = tryResult1132.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13213, mozilla::dom::quota::Severity::Error); [this](const nsresult
) { Finish(); }(tryTempError); [[maybe_unused]] constexpr const
auto& func = __func__; return ; }}
13213 QM_VOID, [this](const nsresult) { Finish(); }){auto tryResult1132 = (ToResult(quotaManager->IOThread()->
Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert
(std::is_empty_v<typename decltype(tryResult1132)::ok_type
>); if ((__builtin_expect(!!(tryResult1132.isErr()), 0))) {
auto tryTempError = tryResult1132.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13213, mozilla::dom::quota::Severity::Error); [this](const nsresult
) { Finish(); }(tryTempError); [[maybe_unused]] constexpr const
auto& func = __func__; return ; }}
;
13214}
13215
13216void DeleteFilesRunnable::DirectoryLockFailed() {
13217 AssertIsOnBackgroundThread();
13218 MOZ_ASSERT(mState == State_DirectoryOpenPending)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State_DirectoryOpenPending)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State_DirectoryOpenPending
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State_DirectoryOpenPending", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13218); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State_DirectoryOpenPending"
")"); do { MOZ_CrashSequence(__null, 13218); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13219 MOZ_ASSERT(!mDirectoryLockHandle)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDirectoryLockHandle)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDirectoryLockHandle))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("!mDirectoryLockHandle"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13219
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLockHandle"
")"); do { MOZ_CrashSequence(__null, 13219); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13220
13221 Finish();
13222}
13223
13224void Maintenance::Abort() {
13225 AssertIsOnBackgroundThread();
13226
13227 // Safe because mDatabaseMaintenances is modified
13228 // only in the background thread
13229 for (const auto& aDatabaseMaintenance : mDatabaseMaintenances) {
13230 aDatabaseMaintenance.GetData()->Abort();
13231 }
13232
13233 mAborted = true;
13234}
13235
13236void Maintenance::RegisterDatabaseMaintenance(
13237 DatabaseMaintenance* aDatabaseMaintenance) {
13238 AssertIsOnBackgroundThread();
13239 MOZ_ASSERT(aDatabaseMaintenance)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDatabaseMaintenance)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDatabaseMaintenance))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("aDatabaseMaintenance"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13239
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseMaintenance"
")"); do { MOZ_CrashSequence(__null, 13239); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13240 MOZ_ASSERT(mState == State::BeginDatabaseMaintenance)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::BeginDatabaseMaintenance)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mState == State::BeginDatabaseMaintenance))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mState == State::BeginDatabaseMaintenance"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13240
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginDatabaseMaintenance"
")"); do { MOZ_CrashSequence(__null, 13240); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13241 MOZ_ASSERT(do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDatabaseMaintenances.Contains(aDatabaseMaintenance
->DatabasePath()))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDatabaseMaintenances.Contains
(aDatabaseMaintenance->DatabasePath())))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!mDatabaseMaintenances.Contains(aDatabaseMaintenance->DatabasePath())"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13242
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabaseMaintenances.Contains(aDatabaseMaintenance->DatabasePath())"
")"); do { MOZ_CrashSequence(__null, 13242); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
13242 !mDatabaseMaintenances.Contains(aDatabaseMaintenance->DatabasePath()))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDatabaseMaintenances.Contains(aDatabaseMaintenance
->DatabasePath()))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDatabaseMaintenances.Contains
(aDatabaseMaintenance->DatabasePath())))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!mDatabaseMaintenances.Contains(aDatabaseMaintenance->DatabasePath())"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13242
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabaseMaintenances.Contains(aDatabaseMaintenance->DatabasePath())"
")"); do { MOZ_CrashSequence(__null, 13242); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13243
13244 mDatabaseMaintenances.InsertOrUpdate(aDatabaseMaintenance->DatabasePath(),
13245 aDatabaseMaintenance);
13246}
13247
13248void Maintenance::UnregisterDatabaseMaintenance(
13249 DatabaseMaintenance* aDatabaseMaintenance) {
13250 AssertIsOnBackgroundThread();
13251 MOZ_ASSERT(aDatabaseMaintenance)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDatabaseMaintenance)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDatabaseMaintenance))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("aDatabaseMaintenance"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13251
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseMaintenance"
")"); do { MOZ_CrashSequence(__null, 13251); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13252 MOZ_ASSERT(mState == State::WaitingForDatabaseMaintenancesToComplete)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::WaitingForDatabaseMaintenancesToComplete
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mState == State::WaitingForDatabaseMaintenancesToComplete
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State::WaitingForDatabaseMaintenancesToComplete", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::WaitingForDatabaseMaintenancesToComplete"
")"); do { MOZ_CrashSequence(__null, 13252); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13253 MOZ_ASSERT(mDatabaseMaintenances.Get(aDatabaseMaintenance->DatabasePath()))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDatabaseMaintenances.Get(aDatabaseMaintenance->DatabasePath
()))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mDatabaseMaintenances.Get(aDatabaseMaintenance->DatabasePath
())))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mDatabaseMaintenances.Get(aDatabaseMaintenance->DatabasePath())"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13253
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabaseMaintenances.Get(aDatabaseMaintenance->DatabasePath())"
")"); do { MOZ_CrashSequence(__null, 13253); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13254
13255 mDatabaseMaintenances.Remove(aDatabaseMaintenance->DatabasePath());
13256
13257 if (mDatabaseMaintenances.Count()) {
13258 return;
13259 }
13260
13261 for (const auto& completeCallback : mCompleteCallbacks) {
13262 MOZ_ALWAYS_SUCCEEDS(NS_DispatchToCurrentThread(completeCallback))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(NS_DispatchToCurrentThread(completeCallback))), 1)))), 1))) {
} else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(NS_DispatchToCurrentThread(completeCallback))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13262
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(NS_DispatchToCurrentThread(completeCallback))"
")"); do { MOZ_CrashSequence(__null, 13262); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
13263 }
13264 mCompleteCallbacks.Clear();
13265
13266 mState = State::Finishing;
13267 Finish();
13268}
13269
13270void Maintenance::Stringify(nsACString& aResult) const {
13271 AssertIsOnBackgroundThread();
13272
13273 aResult.Append("DatabaseMaintenances: "_ns +
13274 IntToCString(mDatabaseMaintenances.Count()) + " ("_ns);
13275
13276 // XXX It might be confusing to remove duplicates here, as the actual list
13277 // won't match the count then.
13278 nsTHashSet<nsCString> ids;
13279 std::transform(mDatabaseMaintenances.Values().cbegin(),
13280 mDatabaseMaintenances.Values().cend(), MakeInserter(ids),
13281 [](const auto& entry) {
13282 MOZ_ASSERT(entry)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(entry)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(entry))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("entry", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13282); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry" ")"
); do { MOZ_CrashSequence(__null, 13282); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
13283
13284 nsCString id;
13285 entry->Stringify(id);
13286
13287 return id;
13288 });
13289
13290 StringJoinAppend(aResult, ", "_ns, ids);
13291
13292 aResult.Append(")");
13293}
13294
13295nsresult Maintenance::Start() {
13296 AssertIsOnBackgroundThread();
13297 MOZ_ASSERT(mState == State::Initial)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::Initial)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::Initial))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::Initial"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13297
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial"
")"); do { MOZ_CrashSequence(__null, 13297); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13298
13299 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread
(), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13299)
||
13300 IsAborted()) {
13301 return NS_ERROR_ABORT;
13302 }
13303
13304 // Make sure that the IndexedDatabaseManager is running so that we can check
13305 // for low disk space mode.
13306
13307 if (IndexedDatabaseManager::Get()) {
13308 OpenDirectory();
13309 return NS_OK;
13310 }
13311
13312 mState = State::CreateIndexedDatabaseManager;
13313 MOZ_ALWAYS_SUCCEEDS(NS_DispatchToMainThread(this))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(NS_DispatchToMainThread(this))), 1)))), 1))) { } else { do {
do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(NS_DispatchToMainThread(this))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13313
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(NS_DispatchToMainThread(this))"
")"); do { MOZ_CrashSequence(__null, 13313); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
13314
13315 return NS_OK;
13316}
13317
13318nsresult Maintenance::CreateIndexedDatabaseManager() {
13319 MOZ_ASSERT(NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(NS_IsMainThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(NS_IsMainThread()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("NS_IsMainThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13319
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "NS_IsMainThread()"
")"); do { MOZ_CrashSequence(__null, 13319); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13320 MOZ_ASSERT(mState == State::CreateIndexedDatabaseManager)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::CreateIndexedDatabaseManager)>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mState == State::CreateIndexedDatabaseManager))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::CreateIndexedDatabaseManager"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13320
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::CreateIndexedDatabaseManager"
")"); do { MOZ_CrashSequence(__null, 13320); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13321
13322 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13322)
||
13323 IsAborted()) {
13324 return NS_ERROR_ABORT;
13325 }
13326
13327 IndexedDatabaseManager* const mgr = IndexedDatabaseManager::GetOrCreate();
13328 if (NS_WARN_IF(!mgr)NS_warn_if_impl(!mgr, "!mgr", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13328)
) {
13329 return NS_ERROR_FAILURE;
13330 }
13331
13332 mState = State::IndexedDatabaseManagerOpen;
13333 MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget
::DISPATCH_NORMAL))), 1)))), 1))) { } else { do { do { } while
(false); MOZ_ReportCrash("" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13334
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { MOZ_CrashSequence(__null, 13334); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
13334 mQuotaClient->BackgroundThread()->Dispatch(this, NS_DISPATCH_NORMAL))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget
::DISPATCH_NORMAL))), 1)))), 1))) { } else { do { do { } while
(false); MOZ_ReportCrash("" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13334
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { MOZ_CrashSequence(__null, 13334); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
13335
13336 return NS_OK;
13337}
13338
13339RefPtr<UniversalDirectoryLockPromise> Maintenance::OpenStorageDirectory(
13340 const PersistenceScope& aPersistenceScope, bool aInitializeOrigins) {
13341 AssertIsOnBackgroundThread();
13342 MOZ_ASSERT(!QuotaClient::IsShuttingDownOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!QuotaClient::IsShuttingDownOnBackgroundThread())>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!QuotaClient::IsShuttingDownOnBackgroundThread()))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("!QuotaClient::IsShuttingDownOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13342
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!QuotaClient::IsShuttingDownOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 13342); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13343 MOZ_ASSERT(!mDirectoryLock)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDirectoryLock)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDirectoryLock))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!mDirectoryLock"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13343
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLock" ")"
); do { MOZ_CrashSequence(__null, 13343); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
13344 MOZ_ASSERT(!mAborted)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mAborted)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mAborted))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!mAborted", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13344); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mAborted"
")"); do { MOZ_CrashSequence(__null, 13344); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13345 MOZ_ASSERT(mState == State::DirectoryOpenPending)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::DirectoryOpenPending)>::isValid,
"invalid assertion condition"); if ((__builtin_expect(!!(!(!
!(mState == State::DirectoryOpenPending))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mState == State::DirectoryOpenPending"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13345
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryOpenPending"
")"); do { MOZ_CrashSequence(__null, 13345); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13346
13347 QuotaManager* quotaManager = QuotaManager::Get();
13348 MOZ_ASSERT(quotaManager)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(quotaManager)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(quotaManager))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("quotaManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13348); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { MOZ_CrashSequence(__null, 13348); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13349
13350 // Return a shared lock for <profile>/storage/repo(aPersistenceScope)/*/idb
13351 return quotaManager->OpenStorageDirectory(
13352 aPersistenceScope, OriginScope::FromNull(),
13353 ClientStorageScope::CreateFromClient(Client::IDB),
13354 /* aExclusive */ false, aInitializeOrigins, DirectoryLockCategory::None,
13355 SomeRef(mPendingDirectoryLock));
13356}
13357
13358nsresult Maintenance::OpenDirectory() {
13359 AssertIsOnBackgroundThread();
13360 MOZ_ASSERT(mState == State::Initial ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::Initial || mState == State::IndexedDatabaseManagerOpen
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mState == State::Initial || mState == State::IndexedDatabaseManagerOpen
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State::Initial || mState == State::IndexedDatabaseManagerOpen"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13361
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial || mState == State::IndexedDatabaseManagerOpen"
")"); do { MOZ_CrashSequence(__null, 13361); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
13361 mState == State::IndexedDatabaseManagerOpen)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::Initial || mState == State::IndexedDatabaseManagerOpen
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mState == State::Initial || mState == State::IndexedDatabaseManagerOpen
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State::Initial || mState == State::IndexedDatabaseManagerOpen"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13361
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial || mState == State::IndexedDatabaseManagerOpen"
")"); do { MOZ_CrashSequence(__null, 13361); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13362 MOZ_ASSERT(!mDirectoryLock)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDirectoryLock)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDirectoryLock))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!mDirectoryLock"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13362
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLock" ")"
); do { MOZ_CrashSequence(__null, 13362); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
13363 MOZ_ASSERT(QuotaManager::Get())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(QuotaManager::Get())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(QuotaManager::Get()))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("QuotaManager::Get()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13363
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "QuotaManager::Get()"
")"); do { MOZ_CrashSequence(__null, 13363); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13364
13365 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread
(), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13365)
||
13366 IsAborted()) {
13367 return NS_ERROR_ABORT;
13368 }
13369
13370 mState = State::DirectoryOpenPending;
13371
13372 // Since idle maintenance may occur before persistent or temporary storage is
13373 // initialized, make sure it's initialized here (all persistent and
13374 // non-persistent origins need to be cleaned up and quota info needs to be
13375 // loaded for non-persistent origins).
13376
13377 OpenStorageDirectory(PersistenceScope::CreateFromNull(),
13378 /* aInitializeOrigins */ true)
13379 ->Then(
13380 GetCurrentSerialEventTarget(), __func__,
13381 [self = RefPtr(this)](
13382 const UniversalDirectoryLockPromise::ResolveOrRejectValue&
13383 aValue) {
13384 if (aValue.IsResolve()) {
13385 self->DirectoryLockAcquired(aValue.ResolveValue());
13386 return;
13387 }
13388
13389 // Don't fail whole idle maintenance in case of an error, the
13390 // persistent repository can still be processed.
13391
13392 self->mPendingDirectoryLock = nullptr;
13393 self->mOpenStorageForAllRepositoriesFailed = true;
13394
13395 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread
(), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13395)
||
13396 self->IsAborted()) {
13397 self->DirectoryLockFailed();
13398 return;
13399 }
13400
13401 self->OpenStorageDirectory(PersistenceScope::CreateFromValue(
13402 PERSISTENCE_TYPE_PERSISTENT),
13403 /* aInitializeOrigins */ true)
13404 ->Then(GetCurrentSerialEventTarget(), __func__,
13405 [self](const UniversalDirectoryLockPromise::
13406 ResolveOrRejectValue& aValue) {
13407 if (aValue.IsResolve()) {
13408 self->DirectoryLockAcquired(aValue.ResolveValue());
13409 } else {
13410 self->DirectoryLockFailed();
13411 }
13412 });
13413 });
13414
13415 return NS_OK;
13416}
13417
13418nsresult Maintenance::DirectoryOpen() {
13419 AssertIsOnBackgroundThread();
13420 MOZ_ASSERT(mState == State::DirectoryOpenPending)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::DirectoryOpenPending)>::isValid,
"invalid assertion condition"); if ((__builtin_expect(!!(!(!
!(mState == State::DirectoryOpenPending))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mState == State::DirectoryOpenPending"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13420
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryOpenPending"
")"); do { MOZ_CrashSequence(__null, 13420); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13421 MOZ_ASSERT(mDirectoryLock)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDirectoryLock)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDirectoryLock))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mDirectoryLock"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13421
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLock" ")"
); do { MOZ_CrashSequence(__null, 13421); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
13422
13423 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread
(), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13423)
||
13424 IsAborted()) {
13425 return NS_ERROR_ABORT;
13426 }
13427
13428 QuotaManager* const quotaManager = QuotaManager::Get();
13429 MOZ_ASSERT(quotaManager)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(quotaManager)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(quotaManager))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("quotaManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13429); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { MOZ_CrashSequence(__null, 13429); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13430
13431 mState = State::DirectoryWorkOpen;
13432
13433 QM_TRY(MOZ_TO_RESULT({auto tryResult1133 = (ToResult(quotaManager->IOThread()->
Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert
(std::is_empty_v<typename decltype(tryResult1133)::ok_type
>); if ((__builtin_expect(!!(tryResult1133.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1133.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13435, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, NS_ERROR_FAILURE); }}
13434 quotaManager->IOThread()->Dispatch(this, NS_DISPATCH_NORMAL)),{auto tryResult1133 = (ToResult(quotaManager->IOThread()->
Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert
(std::is_empty_v<typename decltype(tryResult1133)::ok_type
>); if ((__builtin_expect(!!(tryResult1133.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1133.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13435, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, NS_ERROR_FAILURE); }}
13435 NS_ERROR_FAILURE){auto tryResult1133 = (ToResult(quotaManager->IOThread()->
Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert
(std::is_empty_v<typename decltype(tryResult1133)::ok_type
>); if ((__builtin_expect(!!(tryResult1133.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1133.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13435, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, NS_ERROR_FAILURE); }}
;
13436
13437 return NS_OK;
13438}
13439
13440nsresult Maintenance::DirectoryWork() {
13441 AssertIsOnIOThread();
13442 MOZ_ASSERT(mState == State::DirectoryWorkOpen)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::DirectoryWorkOpen)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::DirectoryWorkOpen
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State::DirectoryWorkOpen", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13442); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryWorkOpen"
")"); do { MOZ_CrashSequence(__null, 13442); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13443
13444 // The storage directory is structured like this:
13445 //
13446 // <profile>/storage/<persistence>/<origin>/idb/*.sqlite
13447 //
13448 // We have to find all database files that match any persistence type and any
13449 // origin. We ignore anything out of the ordinary for now.
13450
13451 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13451)
||
13452 IsAborted()) {
13453 return NS_ERROR_ABORT;
13454 }
13455
13456 QuotaManager* const quotaManager = QuotaManager::Get();
13457 MOZ_ASSERT(quotaManager)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(quotaManager)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(quotaManager))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("quotaManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13457); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { MOZ_CrashSequence(__null, 13457); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13458
13459 const nsCOMPtr<nsIFile> storageDir =
13460 GetFileForPath(quotaManager->GetStoragePath());
13461 QM_TRY(OkIf(storageDir), NS_ERROR_FAILURE){auto tryResult1134 = (OkIf(storageDir)); static_assert(std::
is_empty_v<typename decltype(tryResult1134)::ok_type>);
if ((__builtin_expect(!!(tryResult1134.isErr()), 0))) { [[maybe_unused
]] auto tryTempError = tryResult1134.unwrapErr(); mozilla::dom
::quota::HandleError("OkIf(storageDir)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13461, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(storageDir)", tryTempError
, NS_ERROR_FAILURE); }}
;
13462
13463 {
13464 QM_TRY_INSPECT(const bool& exists,auto tryResult1135 = (::mozilla::ToResultInvokeMember( (storageDir
), &::mozilla::detail::DerefedType<decltype(storageDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1135.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (storageDir), &::mozilla::detail::DerefedType<decltype(storageDir)>::Exists )"
, tryResult1135.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13465, mozilla::dom::quota::Severity::Error); return tryResult1135
.propagateErr(); } const bool& exists = tryResult1135.inspect
();
13465 MOZ_TO_RESULT_INVOKE_MEMBER(storageDir, Exists))auto tryResult1135 = (::mozilla::ToResultInvokeMember( (storageDir
), &::mozilla::detail::DerefedType<decltype(storageDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1135.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (storageDir), &::mozilla::detail::DerefedType<decltype(storageDir)>::Exists )"
, tryResult1135.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13465, mozilla::dom::quota::Severity::Error); return tryResult1135
.propagateErr(); } const bool& exists = tryResult1135.inspect
();
;
13466
13467 // XXX No warning here?
13468 if (!exists) {
13469 return NS_ERROR_NOT_AVAILABLE;
13470 }
13471 }
13472
13473 {
13474 QM_TRY_INSPECT(const bool& isDirectory,auto tryResult1136 = (::mozilla::ToResultInvokeMember( (storageDir
), &::mozilla::detail::DerefedType<decltype(storageDir
)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1136
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (storageDir), &::mozilla::detail::DerefedType<decltype(storageDir)>::IsDirectory )"
, tryResult1136.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1136
.propagateErr(); } const bool& isDirectory = tryResult1136
.inspect();
13475 MOZ_TO_RESULT_INVOKE_MEMBER(storageDir, IsDirectory))auto tryResult1136 = (::mozilla::ToResultInvokeMember( (storageDir
), &::mozilla::detail::DerefedType<decltype(storageDir
)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1136
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (storageDir), &::mozilla::detail::DerefedType<decltype(storageDir)>::IsDirectory )"
, tryResult1136.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1136
.propagateErr(); } const bool& isDirectory = tryResult1136
.inspect();
;
13476
13477 QM_TRY(OkIf(isDirectory), NS_ERROR_FAILURE){auto tryResult1137 = (OkIf(isDirectory)); static_assert(std::
is_empty_v<typename decltype(tryResult1137)::ok_type>);
if ((__builtin_expect(!!(tryResult1137.isErr()), 0))) { [[maybe_unused
]] auto tryTempError = tryResult1137.unwrapErr(); mozilla::dom
::quota::HandleError("OkIf(isDirectory)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13477, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError
, NS_ERROR_FAILURE); }}
;
13478 }
13479
13480 // There are currently only 4 persistence types, and we want to iterate them
13481 // in this order:
13482 static const PersistenceType kPersistenceTypes[] = {
13483 PERSISTENCE_TYPE_PERSISTENT, PERSISTENCE_TYPE_DEFAULT,
13484 PERSISTENCE_TYPE_TEMPORARY, PERSISTENCE_TYPE_PRIVATE};
13485
13486 static_assert(
13487 std::size(kPersistenceTypes) == size_t(PERSISTENCE_TYPE_INVALID),
13488 "Something changed with available persistence types!");
13489
13490 constexpr auto idbDirName =
13491 NS_LITERAL_STRING_FROM_CSTRING(IDB_DIRECTORY_NAME)static_cast<const nsLiteralString&>( nsLiteralString
(u"" "idb"))
;
13492
13493 for (const PersistenceType persistenceType : kPersistenceTypes) {
13494 // Loop over "<persistence>" directories.
13495 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13495)
||
13496 IsAborted()) {
13497 return NS_ERROR_ABORT;
13498 }
13499
13500 // Don't do any maintenance for private browsing databases, which are only
13501 // temporary.
13502 if (persistenceType == PERSISTENCE_TYPE_PRIVATE) {
13503 continue;
13504 }
13505
13506 const bool persistent = persistenceType == PERSISTENCE_TYPE_PERSISTENT;
13507
13508 if (!persistent && mOpenStorageForAllRepositoriesFailed) {
13509 // Non-persistent (best effort) repositories can't be processed if
13510 // temporary storage initialization failed.
13511 continue;
13512 }
13513
13514 // For all non-persistent types, temporary storage must already be
13515 // initialized
13516 MOZ_DIAGNOSTIC_ASSERT(do { static_assert( mozilla::detail::AssertionConditionType<
decltype(persistent || quotaManager->IsTemporaryStorageInitializedInternal
())>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(persistent || quotaManager->IsTemporaryStorageInitializedInternal
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("persistent || quotaManager->IsTemporaryStorageInitializedInternal()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13517
); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "persistent || quotaManager->IsTemporaryStorageInitializedInternal()"
")"); do { MOZ_CrashSequence(__null, 13517); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
13517 persistent || quotaManager->IsTemporaryStorageInitializedInternal())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(persistent || quotaManager->IsTemporaryStorageInitializedInternal
())>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(persistent || quotaManager->IsTemporaryStorageInitializedInternal
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("persistent || quotaManager->IsTemporaryStorageInitializedInternal()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13517
); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "persistent || quotaManager->IsTemporaryStorageInitializedInternal()"
")"); do { MOZ_CrashSequence(__null, 13517); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13518
13519 // XXX persistenceType == PERSISTENCE_TYPE_PERSISTENT shouldn't be a special
13520 // case...
13521 const auto persistenceTypeString =
13522 persistenceType == PERSISTENCE_TYPE_PERSISTENT
13523 ? "permanent"_ns
13524 : PersistenceTypeToString(persistenceType);
13525
13526 QM_TRY_INSPECT(const auto& persistenceDir,auto tryResult1138 = (CloneFileAndAppend(*storageDir, NS_ConvertASCIItoUTF16
( persistenceTypeString))); if ((__builtin_expect(!!(tryResult1138
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*storageDir, NS_ConvertASCIItoUTF16( persistenceTypeString))"
, tryResult1138.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13528, mozilla::dom::quota::Severity::Error); return tryResult1138
.propagateErr(); } const auto& persistenceDir = tryResult1138
.inspect();
13527 CloneFileAndAppend(*storageDir, NS_ConvertASCIItoUTF16(auto tryResult1138 = (CloneFileAndAppend(*storageDir, NS_ConvertASCIItoUTF16
( persistenceTypeString))); if ((__builtin_expect(!!(tryResult1138
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*storageDir, NS_ConvertASCIItoUTF16( persistenceTypeString))"
, tryResult1138.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13528, mozilla::dom::quota::Severity::Error); return tryResult1138
.propagateErr(); } const auto& persistenceDir = tryResult1138
.inspect();
13528 persistenceTypeString)))auto tryResult1138 = (CloneFileAndAppend(*storageDir, NS_ConvertASCIItoUTF16
( persistenceTypeString))); if ((__builtin_expect(!!(tryResult1138
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*storageDir, NS_ConvertASCIItoUTF16( persistenceTypeString))"
, tryResult1138.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13528, mozilla::dom::quota::Severity::Error); return tryResult1138
.propagateErr(); } const auto& persistenceDir = tryResult1138
.inspect();
;
13529
13530 {
13531 QM_TRY_INSPECT(const bool& exists,auto tryResult1139 = (::mozilla::ToResultInvokeMember( (persistenceDir
), &::mozilla::detail::DerefedType<decltype(persistenceDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1139.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (persistenceDir), &::mozilla::detail::DerefedType<decltype(persistenceDir)>::Exists )"
, tryResult1139.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13532, mozilla::dom::quota::Severity::Error); return tryResult1139
.propagateErr(); } const bool& exists = tryResult1139.inspect
();
13532 MOZ_TO_RESULT_INVOKE_MEMBER(persistenceDir, Exists))auto tryResult1139 = (::mozilla::ToResultInvokeMember( (persistenceDir
), &::mozilla::detail::DerefedType<decltype(persistenceDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1139.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (persistenceDir), &::mozilla::detail::DerefedType<decltype(persistenceDir)>::Exists )"
, tryResult1139.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13532, mozilla::dom::quota::Severity::Error); return tryResult1139
.propagateErr(); } const bool& exists = tryResult1139.inspect
();
;
13533
13534 if (!exists) {
13535 continue;
13536 }
13537
13538 QM_TRY_INSPECT(const bool& isDirectory,auto tryResult1140 = (::mozilla::ToResultInvokeMember( (persistenceDir
), &::mozilla::detail::DerefedType<decltype(persistenceDir
)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1140
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (persistenceDir), &::mozilla::detail::DerefedType<decltype(persistenceDir)>::IsDirectory )"
, tryResult1140.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13539, mozilla::dom::quota::Severity::Error); return tryResult1140
.propagateErr(); } const bool& isDirectory = tryResult1140
.inspect();
13539 MOZ_TO_RESULT_INVOKE_MEMBER(persistenceDir, IsDirectory))auto tryResult1140 = (::mozilla::ToResultInvokeMember( (persistenceDir
), &::mozilla::detail::DerefedType<decltype(persistenceDir
)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1140
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (persistenceDir), &::mozilla::detail::DerefedType<decltype(persistenceDir)>::IsDirectory )"
, tryResult1140.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13539, mozilla::dom::quota::Severity::Error); return tryResult1140
.propagateErr(); } const bool& isDirectory = tryResult1140
.inspect();
;
13540
13541 if (NS_WARN_IF(!isDirectory)NS_warn_if_impl(!isDirectory, "!isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13541)
) {
13542 continue;
13543 }
13544 }
13545
13546 // Loop over "<origin>/idb" directories.
13547 QM_TRY(CollectEachFile({auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13548 *persistenceDir,{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13549 [this, &quotaManager, persistenceType, persistent, &idbDirName]({auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13550 const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> {{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13551 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread()) ||{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13552 IsAborted()) {{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13553 return Err(NS_ERROR_ABORT);{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13554 }{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13555
13556 QM_TRY_INSPECT(const auto& dirEntryKind, GetDirEntryKind(*originDir));{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13557
13558 switch (dirEntryKind) {{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13559 case nsIFileKind::ExistsAsFile:{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13560 break;{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13561
13562 case nsIFileKind::ExistsAsDirectory: {{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13563 // Get the necessary information about the origin{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13564 // (GetOriginMetadata also checks if it's a valid origin).{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13565
13566 QM_TRY_UNWRAP(auto metadata,{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13567 quotaManager->GetOriginMetadata(originDir),{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13568 // Not much we can do here...{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13569 Ok{});{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13570
13571 if (!persistent &&{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13572 !quotaManager->IsTemporaryOriginInitializedInternal({auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13573 metadata)) {{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13574 glean::idb_maintenance::fallback_fullrestore_metadata.Add();{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13575
13576 // XXX GetOriginMetadata, which skips loading the metadata file{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13577 // and instead relies on parsing the origin directory name and{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13578 // reconstructing the principal, may produce a different origin{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13579 // string than the one originally used to create the origin{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13580 // directory.{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13581 //{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13582 // For now, if this mismatch occurs, we fall back to the slower{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13583 // LoadFullOriginMetadataWithRestore.{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13584 //{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13585 // In the future, it would be useful to report anonymized{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13586 // origin strings via telemetry to help investigate and{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13587 // eventually fix this mismatch.{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13588
13589 QM_TRY_INSPECT({auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13590 const auto& fullmetadataAndStatus,{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13591 quotaManager->LoadFullOriginMetadataWithRestoreAndStatus({auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13592 originDir),{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13593 Ok{});{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13594
13595 metadata = fullmetadataAndStatus.first;{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13596 if (fullmetadataAndStatus.second) {{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13597 /* metadata was restored */{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13598 glean::idb_maintenance::metadata_restored.Add();{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13599 }{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13600
13601 QM_TRY(OkIf(quotaManager->IsTemporaryOriginInitializedInternal({auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13602 metadata)),{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13603 /* unexpected but still fine to just skip it */ Ok{},{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13604 /* increment telemetry in case of failure */{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13605 [](const auto&) {{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13606 glean::idb_maintenance::unknown_metadata.Add();{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13607 });{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13608 }{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13609
13610 // We now use a dedicated repository for private browsing{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13611 // databases, but there could be some forgotten private browsing{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13612 // databases in other repositories, so it's better to check for{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13613 // that and don't do any maintenance for such databases.{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13614 if (metadata.mIsPrivate) {{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13615 return Ok{};{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13616 }{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13617
13618 QM_TRY_INSPECT(const auto& idbDir,{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13619 CloneFileAndAppend(*originDir, idbDirName));{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13620
13621 QM_TRY_INSPECT(const bool& exists,{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13622 MOZ_TO_RESULT_INVOKE_MEMBER(idbDir, Exists));{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13623
13624 if (!exists) {{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13625 return Ok{};{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13626 }{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13627
13628 QM_TRY_INSPECT(const bool& isDirectory,{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13629 MOZ_TO_RESULT_INVOKE_MEMBER(idbDir, IsDirectory));{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13630
13631 QM_TRY(OkIf(isDirectory), Ok{});{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13632
13633 nsTArray<nsString> databasePaths;{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13634
13635 // Loop over files in the "idb" directory.{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13636 QM_TRY(CollectEachFile({auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13637 *idbDir,{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13638 [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile){auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13639 -> Result<Ok, nsresult> {{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13640 if (NS_WARN_IF(QuotaClient::{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13641 IsShuttingDownOnNonBackgroundThread()) ||{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13642 IsAborted()) {{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13643 return Err(NS_ERROR_ABORT);{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13644 }{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13645
13646 QM_TRY_UNWRAP(auto idbFilePath,{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13647 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED({auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13648 nsString, idbDirFile, GetPath));{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13649
13650 if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) {{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13651 return Ok{};{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13652 }{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13653
13654 QM_TRY_INSPECT(const auto& dirEntryKind,{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13655 GetDirEntryKind(*idbDirFile));{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13656
13657 switch (dirEntryKind) {{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13658 case nsIFileKind::ExistsAsDirectory:{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13659 break;{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13660
13661 case nsIFileKind::ExistsAsFile:{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13662 // Found a database.{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13663
13664 MOZ_ASSERT(!databasePaths.Contains(idbFilePath));{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13665
13666 databasePaths.AppendElement(std::move(idbFilePath));{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13667 break;{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13668
13669 case nsIFileKind::DoesNotExist:{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13670 // Ignore files that got removed externally while{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13671 // iterating.{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13672 break;{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13673 }{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13674
13675 return Ok{};{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13676 }));{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13677
13678 if (!databasePaths.IsEmpty()) {{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13679 if (!persistent) {{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13680 auto maybeFullOriginMetadata ={auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13681 quotaManager->GetFullOriginMetadata(metadata);{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13682 auto fullOriginMetadata = maybeFullOriginMetadata.extract();{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13683
13684 // Skip origin maintenance if the origin hasn't been accessed{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13685 // since its last recorded maintenance. This avoids{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13686 // unnecessary I/O and prevents updating the accessed flag in{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13687 // metadata, which helps preserve the effectiveness of the L2{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13688 // quota info cache.{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13689 //{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13690 // This early-out is safe because maintenance is only needed{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13691 // when something has changed (e.g., new access or activity).{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13692 const Date accessDate ={auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13693 Date::FromTimestamp(fullOriginMetadata.mLastAccessTime);{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13694 const Date maintenanceDate ={auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13695 Date::FromDays(fullOriginMetadata.mLastMaintenanceDate);{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13696
13697 if (accessDate <= maintenanceDate) {{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13698 return Ok{};{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13699 }{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13700
13701 fullOriginMetadata.mLastMaintenanceDate ={auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13702 Date::Today().ToDays();{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13703 fullOriginMetadata.mAccessed = true;{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13704
13705 QM_TRY(MOZ_TO_RESULT(quotaManager->CreateDirectoryMetadata2({auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13706 *originDir, fullOriginMetadata)));{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13707
13708 quotaManager->UpdateOriginMaintenanceDate({auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13709 metadata, fullOriginMetadata.mLastMaintenanceDate);{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13710 quotaManager->UpdateOriginAccessed(metadata);{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13711 }{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13712
13713 mDirectoryInfos.EmplaceBack(persistenceType, metadata,{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13714 std::move(databasePaths));{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13715 }{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13716
13717 break;{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13718 }{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13719
13720 case nsIFileKind::DoesNotExist:{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13721 // Ignore files that got removed externally while iterating.{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13722 break;{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13723 }{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13724
13725 return Ok{};{auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
13726 })){auto tryResult1153 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13556, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); } const auto& dirEntryKind = tryResult1141
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError
("quotaManager->GetOriginMetadata(originDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13569
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata
.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus
( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()
), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.
unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)"
, tryTempError, Ok{}); } const auto& fullmetadataAndStatus
= tryResult1143.inspect();; metadata = fullmetadataAndStatus
.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance
::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager
->IsTemporaryOriginInitializedInternal( metadata))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13607, mozilla::dom::quota::Severity::Error); [](const auto
&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))"
, tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return
Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir,
idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()
), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)"
, tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13619, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& idbDir = tryResult1145.inspect
();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13622, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); } const bool& exists = tryResult1146.inspect
();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect
(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13629, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); } const bool& isDirectory = tryResult1147
.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13631
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok
{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151
= (CollectEachFile( *idbDir, [this, &databasePaths](const
nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok,
nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread
(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1149 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect
(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13648, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1150
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13655, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); } const auto& dirEntryKind = tryResult1150
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1151)::ok_type>);
if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13676, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata
(metadata); auto fullOriginMetadata = maybeFullOriginMetadata
.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); fullOriginMetadata.mAccessed = true
; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2
( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13706, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1153
)::ok_type>); if ((__builtin_expect(!!(tryResult1153.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13551) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1141 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1141.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13556, mozilla::dom::quota::Severity::Error); return tryResult1141.propagateErr(); } const auto& dirEntryKind = tryResult1141.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1142 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1142.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13569, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1142.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1143 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1143.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1143.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1144 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); static_assert(std::is_empty_v<typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13607, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1145 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13619, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& idbDir = tryResult1145.inspect();; auto tryResult1146 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622, mozilla::dom::quota::Severity::Error); return tryResult1146.propagateErr(); } const bool& exists = tryResult1146.inspect();; if (!exists) { return Ok{}; } auto tryResult1147 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1147.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1147.propagateErr(); } const bool& isDirectory = tryResult1147.inspect();; {auto tryResult1148 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13631, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1151 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1149.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1150.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13664); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1151)::ok_type>); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13641) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1149 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1149.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13648, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto idbFilePath = tryResult1149.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1150 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1150.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13655, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); } const auto& dirEntryKind = tryResult1150.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13664); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13664); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13676, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1152 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13706, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13726, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); }}
;
13727 }
13728
13729 mState = State::BeginDatabaseMaintenance;
13730
13731 MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget
::DISPATCH_NORMAL))), 1)))), 1))) { } else { do { do { } while
(false); MOZ_ReportCrash("" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13732
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { MOZ_CrashSequence(__null, 13732); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
13732 mQuotaClient->BackgroundThread()->Dispatch(this, NS_DISPATCH_NORMAL))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget
::DISPATCH_NORMAL))), 1)))), 1))) { } else { do { do { } while
(false); MOZ_ReportCrash("" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13732
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { MOZ_CrashSequence(__null, 13732); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
13733
13734 return NS_OK;
13735}
13736
13737nsresult Maintenance::BeginDatabaseMaintenance() {
13738 AssertIsOnBackgroundThread();
13739 MOZ_ASSERT(mState == State::BeginDatabaseMaintenance)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::BeginDatabaseMaintenance)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mState == State::BeginDatabaseMaintenance))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mState == State::BeginDatabaseMaintenance"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13739
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginDatabaseMaintenance"
")"); do { MOZ_CrashSequence(__null, 13739); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13740
13741 class MOZ_STACK_CLASS Helper final {
13742 public:
13743 static bool IsSafeToRunMaintenance(const nsAString& aDatabasePath) {
13744 if (gFactoryOps) {
13745 // XXX LinkedList should support reverse iteration via rbegin() and
13746 // rend(), see bug 1964967.
13747 for (const FactoryOp* existingOp = gFactoryOps->getLast(); existingOp;
13748 existingOp = existingOp->getPrevious()) {
13749 if (existingOp->DatabaseNameRef().isNothing()) {
13750 return false;
13751 }
13752
13753 if (!existingOp->DatabaseFilePathIsKnown()) {
13754 continue;
13755 }
13756
13757 if (existingOp->DatabaseFilePath() == aDatabasePath) {
13758 return false;
13759 }
13760 }
13761 }
13762
13763 if (gLiveDatabaseHashtable) {
13764 return std::all_of(gLiveDatabaseHashtable->Values().cbegin(),
13765 gLiveDatabaseHashtable->Values().cend(),
13766 [&aDatabasePath](const auto& liveDatabasesEntry) {
13767 // XXX std::all_of currently doesn't work with
13768 // LinkedList's iterator. See bug 1964969.
13769 for (const Database* const database :
13770 liveDatabasesEntry->mLiveDatabases) {
13771 if (database->FilePath() == aDatabasePath) {
13772 return false;
13773 }
13774 }
13775 return true;
13776 });
13777 }
13778
13779 return true;
13780 }
13781 };
13782
13783 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread
(), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13783)
||
13784 IsAborted()) {
13785 return NS_ERROR_ABORT;
13786 }
13787
13788 RefPtr<nsThreadPool> threadPool;
13789
13790 for (DirectoryInfo& directoryInfo : mDirectoryInfos) {
13791 for (const nsAString& databasePath : *directoryInfo.mDatabasePaths) {
13792 if (Helper::IsSafeToRunMaintenance(databasePath)) {
13793 RefPtr<ClientDirectoryLock> directoryLock =
13794 mDirectoryLock->SpecializeForClient(directoryInfo.mPersistenceType,
13795 *directoryInfo.mOriginMetadata,
13796 Client::IDB);
13797 MOZ_ASSERT(directoryLock)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(directoryLock)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(directoryLock))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("directoryLock",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13797)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "directoryLock" ")"
); do { MOZ_CrashSequence(__null, 13797); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
13798
13799 // No key needs to be passed here, because we skip encrypted databases
13800 // in DoDirectoryWork as long as they are only used in private browsing
13801 // mode.
13802 const auto databaseMaintenance = MakeRefPtr<DatabaseMaintenance>(
13803 this, std::move(directoryLock), directoryInfo.mPersistenceType,
13804 *directoryInfo.mOriginMetadata, databasePath, Nothing{});
13805
13806 if (!threadPool) {
13807 threadPool = mQuotaClient->GetOrCreateThreadPool();
13808 MOZ_ASSERT(threadPool)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(threadPool)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(threadPool))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("threadPool", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13808); AnnotateMozCrashReason("MOZ_ASSERT" "(" "threadPool"
")"); do { MOZ_CrashSequence(__null, 13808); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13809 }
13810
13811 // Perform database maintenance on a TaskQueue, as database connections
13812 // require a serial event target when being opened in order to allow
13813 // memory pressure notifications to clear caches (bug 1806751).
13814 const auto taskQueue = TaskQueue::Create(
13815 do_AddRef(threadPool), "IndexedDB Database Maintenance");
13816
13817 MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(taskQueue->Dispatch(databaseMaintenance, nsIEventTarget::
DISPATCH_NORMAL))), 1)))), 1))) { } else { do { do { } while (
false); MOZ_ReportCrash("" "NS_SUCCEEDED(taskQueue->Dispatch(databaseMaintenance, nsIEventTarget::DISPATCH_NORMAL))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13818
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(taskQueue->Dispatch(databaseMaintenance, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { MOZ_CrashSequence(__null, 13818); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
13818 taskQueue->Dispatch(databaseMaintenance, NS_DISPATCH_NORMAL))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(taskQueue->Dispatch(databaseMaintenance, nsIEventTarget::
DISPATCH_NORMAL))), 1)))), 1))) { } else { do { do { } while (
false); MOZ_ReportCrash("" "NS_SUCCEEDED(taskQueue->Dispatch(databaseMaintenance, nsIEventTarget::DISPATCH_NORMAL))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13818
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(taskQueue->Dispatch(databaseMaintenance, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { MOZ_CrashSequence(__null, 13818); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
13819
13820 RegisterDatabaseMaintenance(databaseMaintenance);
13821 }
13822 }
13823 }
13824
13825 mDirectoryInfos.Clear();
13826
13827 DropDirectoryLock(mDirectoryLock);
13828
13829 if (mDatabaseMaintenances.Count()) {
13830 mState = State::WaitingForDatabaseMaintenancesToComplete;
13831 } else {
13832 mState = State::Finishing;
13833 Finish();
13834 }
13835
13836 return NS_OK;
13837}
13838
13839void Maintenance::Finish() {
13840 AssertIsOnBackgroundThread();
13841 MOZ_ASSERT(mState == State::Finishing)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::Finishing)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::Finishing))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::Finishing"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13841
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Finishing"
")"); do { MOZ_CrashSequence(__null, 13841); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13842
13843 if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
) {
13844 mPromiseHolder.ResolveIfExists(true, __func__);
13845 } else {
13846 mPromiseHolder.RejectIfExists(mResultCode, __func__);
13847
13848 nsCString errorName;
13849 GetErrorName(mResultCode, errorName);
13850
13851 IDB_WARNING("Maintenance finished with error: %s", errorName.get())do { nsPrintfCString s("Maintenance finished with error: %s",
errorName.get()); mozilla::dom::indexedDB::ReportInternalError
("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13851,
s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13851); } while (0)
;
13852 }
13853
13854 SafeDropDirectoryLock(mDirectoryLock);
13855
13856 // It can happen that we are only referenced by mCurrentMaintenance which is
13857 // cleared in NoteFinishedMaintenance()
13858 const RefPtr<Maintenance> kungFuDeathGrip = this;
13859
13860 mQuotaClient->NoteFinishedMaintenance(this);
13861
13862 mState = State::Complete;
13863}
13864
13865NS_IMETHODIMPnsresult
13866Maintenance::Run() {
13867 MOZ_ASSERT(mState != State::Complete)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState != State::Complete)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState != State::Complete)))
, 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState != State::Complete"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13867
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState != State::Complete"
")"); do { MOZ_CrashSequence(__null, 13867); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13868
13869 const auto handleError = [this](const nsresult rv) {
13870 if (mState != State::Finishing) {
13871 if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
) {
13872 mResultCode = rv;
13873 }
13874
13875 // Must set mState before dispatching otherwise we will race with the
13876 // owning thread.
13877 mState = State::Finishing;
13878
13879 if (IsOnBackgroundThread()) {
13880 Finish();
13881 } else {
13882 MOZ_ALWAYS_SUCCEEDS(mQuotaClient->BackgroundThread()->Dispatch(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(mQuotaClient->BackgroundThread()->Dispatch( this, nsIEventTarget
::DISPATCH_NORMAL))), 1)))), 1))) { } else { do { do { } while
(false); MOZ_ReportCrash("" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch( this, nsIEventTarget::DISPATCH_NORMAL))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13883
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch( this, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { MOZ_CrashSequence(__null, 13883); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
13883 this, NS_DISPATCH_NORMAL))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(mQuotaClient->BackgroundThread()->Dispatch( this, nsIEventTarget
::DISPATCH_NORMAL))), 1)))), 1))) { } else { do { do { } while
(false); MOZ_ReportCrash("" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch( this, nsIEventTarget::DISPATCH_NORMAL))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13883
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch( this, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { MOZ_CrashSequence(__null, 13883); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
13884 }
13885 }
13886 };
13887
13888 switch (mState) {
13889 case State::Initial:
13890 QM_TRY(MOZ_TO_RESULT(Start()), NS_OK, handleError){auto tryResult1154 = (ToResult(Start())); static_assert(std::
is_empty_v<typename decltype(tryResult1154)::ok_type>);
if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { auto
tryTempError = tryResult1154.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(Start())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13890, mozilla::dom::quota::Severity::Error); handleError(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(Start())"
, tryTempError, NS_OK); }}
;
13891 break;
13892
13893 case State::CreateIndexedDatabaseManager:
13894 QM_TRY(MOZ_TO_RESULT(CreateIndexedDatabaseManager()), NS_OK, handleError){auto tryResult1155 = (ToResult(CreateIndexedDatabaseManager(
))); static_assert(std::is_empty_v<typename decltype(tryResult1155
)::ok_type>); if ((__builtin_expect(!!(tryResult1155.isErr
()), 0))) { auto tryTempError = tryResult1155.unwrapErr(); mozilla
::dom::quota::HandleError("ToResult(CreateIndexedDatabaseManager())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13894, mozilla::dom::quota::Severity::Error); handleError(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(CreateIndexedDatabaseManager())"
, tryTempError, NS_OK); }}
;
13895 break;
13896
13897 case State::IndexedDatabaseManagerOpen:
13898 QM_TRY(MOZ_TO_RESULT(OpenDirectory()), NS_OK, handleError){auto tryResult1156 = (ToResult(OpenDirectory())); static_assert
(std::is_empty_v<typename decltype(tryResult1156)::ok_type
>); if ((__builtin_expect(!!(tryResult1156.isErr()), 0))) {
auto tryTempError = tryResult1156.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(OpenDirectory())", tryTempError,
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13898,
mozilla::dom::quota::Severity::Error); handleError(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(OpenDirectory())"
, tryTempError, NS_OK); }}
;
13899 break;
13900
13901 case State::DirectoryWorkOpen:
13902 QM_TRY(MOZ_TO_RESULT(DirectoryWork()), NS_OK, handleError){auto tryResult1157 = (ToResult(DirectoryWork())); static_assert
(std::is_empty_v<typename decltype(tryResult1157)::ok_type
>); if ((__builtin_expect(!!(tryResult1157.isErr()), 0))) {
auto tryTempError = tryResult1157.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(DirectoryWork())", tryTempError,
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13902,
mozilla::dom::quota::Severity::Error); handleError(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DirectoryWork())"
, tryTempError, NS_OK); }}
;
13903 break;
13904
13905 case State::BeginDatabaseMaintenance:
13906 QM_TRY(MOZ_TO_RESULT(BeginDatabaseMaintenance()), NS_OK, handleError){auto tryResult1158 = (ToResult(BeginDatabaseMaintenance()));
static_assert(std::is_empty_v<typename decltype(tryResult1158
)::ok_type>); if ((__builtin_expect(!!(tryResult1158.isErr
()), 0))) { auto tryTempError = tryResult1158.unwrapErr(); mozilla
::dom::quota::HandleError("ToResult(BeginDatabaseMaintenance())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13906, mozilla::dom::quota::Severity::Error); handleError(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(BeginDatabaseMaintenance())"
, tryTempError, NS_OK); }}
;
13907 break;
13908
13909 case State::Finishing:
13910 Finish();
13911 break;
13912
13913 default:
13914 MOZ_CRASH("Bad state!")do { do { } while (false); MOZ_ReportCrash("" "Bad state!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13914); AnnotateMozCrashReason("MOZ_CRASH(" "Bad state!" ")"
); do { MOZ_CrashSequence(__null, 13914); __attribute__((nomerge
)) ::abort(); } while (false); } while (false)
;
13915 }
13916
13917 return NS_OK;
13918}
13919
13920void Maintenance::DirectoryLockAcquired(UniversalDirectoryLock* aLock) {
13921 AssertIsOnBackgroundThread();
13922 MOZ_ASSERT(mState == State::DirectoryOpenPending)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::DirectoryOpenPending)>::isValid,
"invalid assertion condition"); if ((__builtin_expect(!!(!(!
!(mState == State::DirectoryOpenPending))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mState == State::DirectoryOpenPending"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13922
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryOpenPending"
")"); do { MOZ_CrashSequence(__null, 13922); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13923 MOZ_ASSERT(!mDirectoryLock)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDirectoryLock)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDirectoryLock))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!mDirectoryLock"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13923
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLock" ")"
); do { MOZ_CrashSequence(__null, 13923); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
13924
13925 mDirectoryLock = std::exchange(mPendingDirectoryLock, nullptr);
13926
13927 nsresult rv = DirectoryOpen();
13928 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13928)
) {
13929 if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
) {
13930 mResultCode = rv;
13931 }
13932
13933 mState = State::Finishing;
13934 Finish();
13935
13936 return;
13937 }
13938}
13939
13940void Maintenance::DirectoryLockFailed() {
13941 AssertIsOnBackgroundThread();
13942 MOZ_ASSERT(mState == State::DirectoryOpenPending)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::DirectoryOpenPending)>::isValid,
"invalid assertion condition"); if ((__builtin_expect(!!(!(!
!(mState == State::DirectoryOpenPending))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mState == State::DirectoryOpenPending"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13942
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryOpenPending"
")"); do { MOZ_CrashSequence(__null, 13942); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13943 MOZ_ASSERT(!mDirectoryLock)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDirectoryLock)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDirectoryLock))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!mDirectoryLock"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13943
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLock" ")"
); do { MOZ_CrashSequence(__null, 13943); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
13944
13945 mPendingDirectoryLock = nullptr;
13946
13947 if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
) {
13948 mResultCode = NS_ERROR_FAILURE;
13949 }
13950
13951 mState = State::Finishing;
13952 Finish();
13953}
13954
13955void DatabaseMaintenance::Stringify(nsACString& aResult) const {
13956 AssertIsOnBackgroundThread();
13957
13958 aResult.AppendLiteral("Origin:");
13959 aResult.Append(AnonymizedOriginString(mOriginMetadata.mOrigin));
13960 aResult.Append(kQuotaGenericDelimiter);
13961
13962 aResult.AppendLiteral("PersistenceType:");
13963 aResult.Append(PersistenceTypeToString(mPersistenceType));
13964 aResult.Append(kQuotaGenericDelimiter);
13965
13966 aResult.AppendLiteral("Duration:");
13967 aResult.AppendInt((PR_Now() - mMaintenance->StartTime()) / PR_USEC_PER_MSEC1000L);
13968}
13969
13970nsresult DatabaseMaintenance::Abort() {
13971 AssertIsOnBackgroundThread();
13972
13973 // StopIdleMaintenance and AbortAllOperations may request abort independently
13974 if (!mAborted.compareExchange(false, true)) {
13975 return NS_OK;
13976 }
13977
13978 {
13979 auto shardStorageConnectionLocked = mSharedStorageConnection.Lock();
13980 if (nsCOMPtr<mozIStorageConnection> connection =
13981 *shardStorageConnectionLocked) {
13982 QM_TRY(MOZ_TO_RESULT(connection->Interrupt())){auto tryResult1159 = (ToResult(connection->Interrupt()));
static_assert(std::is_empty_v<typename decltype(tryResult1159
)::ok_type>); if ((__builtin_expect(!!(tryResult1159.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->Interrupt())"
, tryResult1159.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13982, mozilla::dom::quota::Severity::Error); return tryResult1159
.propagateErr(); }}
;
13983 }
13984 }
13985
13986 return NS_OK;
13987}
13988
13989void DatabaseMaintenance::PerformMaintenanceOnDatabase() {
13990 MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13990
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { MOZ_CrashSequence(__null, 13990); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13991 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13991
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 13991); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13992 MOZ_ASSERT(mMaintenance)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMaintenance)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mMaintenance))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mMaintenance", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13992); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaintenance"
")"); do { MOZ_CrashSequence(__null, 13992); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13993 MOZ_ASSERT(mMaintenance->StartTime())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMaintenance->StartTime())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mMaintenance->StartTime()
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mMaintenance->StartTime()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13993); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaintenance->StartTime()"
")"); do { MOZ_CrashSequence(__null, 13993); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13994 MOZ_ASSERT(mDirectoryLock)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDirectoryLock)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDirectoryLock))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mDirectoryLock"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13994
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLock" ")"
); do { MOZ_CrashSequence(__null, 13994); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
13995 MOZ_ASSERT(!mDatabasePath.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDatabasePath.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDatabasePath.IsEmpty()))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("!mDatabasePath.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13995
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabasePath.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 13995); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13996 MOZ_ASSERT(!mOriginMetadata.mGroup.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mOriginMetadata.mGroup.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mOriginMetadata.mGroup.IsEmpty
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!mOriginMetadata.mGroup.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13996); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mOriginMetadata.mGroup.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 13996); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13997 MOZ_ASSERT(!mOriginMetadata.mOrigin.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mOriginMetadata.mOrigin.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mOriginMetadata.mOrigin.IsEmpty
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!mOriginMetadata.mOrigin.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13997); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mOriginMetadata.mOrigin.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 13997); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13998
13999 if (NS_WARN_IF(IsAborted())NS_warn_if_impl(IsAborted(), "IsAborted()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13999)
) {
14000 return;
14001 }
14002
14003 const nsCOMPtr<nsIFile> databaseFile = GetFileForPath(mDatabasePath);
14004 MOZ_ASSERT(databaseFile)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(databaseFile)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(databaseFile))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("databaseFile", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14004); AnnotateMozCrashReason("MOZ_ASSERT" "(" "databaseFile"
")"); do { MOZ_CrashSequence(__null, 14004); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14005
14006 QM_TRY_UNWRAP(auto tryResult1160 = (GetStorageConnection(*databaseFile, mDirectoryLockId
, TelemetryIdForFile(databaseFile), mMaybeKey)); if ((__builtin_expect
(!!(tryResult1160.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1160.unwrapErr(); mozilla::dom::quota::HandleError
("GetStorageConnection(*databaseFile, mDirectoryLockId, TelemetryIdForFile(databaseFile), mMaybeKey)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14010, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return ; } const
NotNull<nsCOMPtr<mozIStorageConnection>> connection
= tryResult1160.unwrap();
14007 const NotNull<nsCOMPtr<mozIStorageConnection>> connection,auto tryResult1160 = (GetStorageConnection(*databaseFile, mDirectoryLockId
, TelemetryIdForFile(databaseFile), mMaybeKey)); if ((__builtin_expect
(!!(tryResult1160.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1160.unwrapErr(); mozilla::dom::quota::HandleError
("GetStorageConnection(*databaseFile, mDirectoryLockId, TelemetryIdForFile(databaseFile), mMaybeKey)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14010, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return ; } const
NotNull<nsCOMPtr<mozIStorageConnection>> connection
= tryResult1160.unwrap();
14008 GetStorageConnection(*databaseFile, mDirectoryLockId,auto tryResult1160 = (GetStorageConnection(*databaseFile, mDirectoryLockId
, TelemetryIdForFile(databaseFile), mMaybeKey)); if ((__builtin_expect
(!!(tryResult1160.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1160.unwrapErr(); mozilla::dom::quota::HandleError
("GetStorageConnection(*databaseFile, mDirectoryLockId, TelemetryIdForFile(databaseFile), mMaybeKey)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14010, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return ; } const
NotNull<nsCOMPtr<mozIStorageConnection>> connection
= tryResult1160.unwrap();
14009 TelemetryIdForFile(databaseFile), mMaybeKey),auto tryResult1160 = (GetStorageConnection(*databaseFile, mDirectoryLockId
, TelemetryIdForFile(databaseFile), mMaybeKey)); if ((__builtin_expect
(!!(tryResult1160.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1160.unwrapErr(); mozilla::dom::quota::HandleError
("GetStorageConnection(*databaseFile, mDirectoryLockId, TelemetryIdForFile(databaseFile), mMaybeKey)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14010, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return ; } const
NotNull<nsCOMPtr<mozIStorageConnection>> connection
= tryResult1160.unwrap();
14010 QM_VOID)auto tryResult1160 = (GetStorageConnection(*databaseFile, mDirectoryLockId
, TelemetryIdForFile(databaseFile), mMaybeKey)); if ((__builtin_expect
(!!(tryResult1160.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1160.unwrapErr(); mozilla::dom::quota::HandleError
("GetStorageConnection(*databaseFile, mDirectoryLockId, TelemetryIdForFile(databaseFile), mMaybeKey)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14010, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return ; } const
NotNull<nsCOMPtr<mozIStorageConnection>> connection
= tryResult1160.unwrap();
;
14011
14012 auto autoClearConnection = MakeScopeExit([&]() {
14013 auto sharedStorageConnectionLocked = mSharedStorageConnection.Lock();
14014 sharedStorageConnectionLocked.ref() = nullptr;
14015 connection->Close();
14016 });
14017
14018 {
14019 auto sharedStorageConnectionLocked = mSharedStorageConnection.Lock();
14020 sharedStorageConnectionLocked.ref() = connection;
14021 }
14022
14023 auto databaseIsOk = false;
14024 QM_TRY(MOZ_TO_RESULT(CheckIntegrity(*connection, &databaseIsOk)), QM_VOID){auto tryResult1161 = (ToResult(CheckIntegrity(*connection, &
databaseIsOk))); static_assert(std::is_empty_v<typename decltype
(tryResult1161)::ok_type>); if ((__builtin_expect(!!(tryResult1161
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1161
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(CheckIntegrity(*connection, &databaseIsOk))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14024, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return ; }}
;
14025
14026 QM_TRY(OkIf(databaseIsOk), QM_VOID, [](auto result) {{auto tryResult1162 = (OkIf(databaseIsOk)); static_assert(std
::is_empty_v<typename decltype(tryResult1162)::ok_type>
); if ((__builtin_expect(!!(tryResult1162.isErr()), 0))) { auto
tryTempError = tryResult1162.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(databaseIsOk)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14030, mozilla::dom::quota::Severity::Error); [](auto result
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "Database corruption detected!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14029
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "Database corruption detected!"
")"); do { MOZ_CrashSequence(__null, 14029); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return ; }}
14027 // XXX Handle this somehow! Probably need to clear all storage for the{auto tryResult1162 = (OkIf(databaseIsOk)); static_assert(std
::is_empty_v<typename decltype(tryResult1162)::ok_type>
); if ((__builtin_expect(!!(tryResult1162.isErr()), 0))) { auto
tryTempError = tryResult1162.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(databaseIsOk)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14030, mozilla::dom::quota::Severity::Error); [](auto result
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "Database corruption detected!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14029
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "Database corruption detected!"
")"); do { MOZ_CrashSequence(__null, 14029); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return ; }}
14028 // origin. See Bug 1760612.{auto tryResult1162 = (OkIf(databaseIsOk)); static_assert(std
::is_empty_v<typename decltype(tryResult1162)::ok_type>
); if ((__builtin_expect(!!(tryResult1162.isErr()), 0))) { auto
tryTempError = tryResult1162.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(databaseIsOk)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14030, mozilla::dom::quota::Severity::Error); [](auto result
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "Database corruption detected!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14029
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "Database corruption detected!"
")"); do { MOZ_CrashSequence(__null, 14029); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return ; }}
14029 MOZ_ASSERT(false, "Database corruption detected!");{auto tryResult1162 = (OkIf(databaseIsOk)); static_assert(std
::is_empty_v<typename decltype(tryResult1162)::ok_type>
); if ((__builtin_expect(!!(tryResult1162.isErr()), 0))) { auto
tryTempError = tryResult1162.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(databaseIsOk)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14030, mozilla::dom::quota::Severity::Error); [](auto result
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "Database corruption detected!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14029
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "Database corruption detected!"
")"); do { MOZ_CrashSequence(__null, 14029); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return ; }}
14030 }){auto tryResult1162 = (OkIf(databaseIsOk)); static_assert(std
::is_empty_v<typename decltype(tryResult1162)::ok_type>
); if ((__builtin_expect(!!(tryResult1162.isErr()), 0))) { auto
tryTempError = tryResult1162.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(databaseIsOk)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14030, mozilla::dom::quota::Severity::Error); [](auto result
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "Database corruption detected!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14029
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "Database corruption detected!"
")"); do { MOZ_CrashSequence(__null, 14029); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return ; }}
;
14031
14032 MaintenanceAction maintenanceAction;
14033 QM_TRY(MOZ_TO_RESULT(DetermineMaintenanceAction(*connection, databaseFile,{auto tryResult1163 = (ToResult(DetermineMaintenanceAction(*connection
, databaseFile, &maintenanceAction))); static_assert(std::
is_empty_v<typename decltype(tryResult1163)::ok_type>);
if ((__builtin_expect(!!(tryResult1163.isErr()), 0))) { [[maybe_unused
]] auto tryTempError = tryResult1163.unwrapErr(); mozilla::dom
::quota::HandleError("ToResult(DetermineMaintenanceAction(*connection, databaseFile, &maintenanceAction))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14035, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return ; }}
14034 &maintenanceAction)),{auto tryResult1163 = (ToResult(DetermineMaintenanceAction(*connection
, databaseFile, &maintenanceAction))); static_assert(std::
is_empty_v<typename decltype(tryResult1163)::ok_type>);
if ((__builtin_expect(!!(tryResult1163.isErr()), 0))) { [[maybe_unused
]] auto tryTempError = tryResult1163.unwrapErr(); mozilla::dom
::quota::HandleError("ToResult(DetermineMaintenanceAction(*connection, databaseFile, &maintenanceAction))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14035, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return ; }}
14035 QM_VOID){auto tryResult1163 = (ToResult(DetermineMaintenanceAction(*connection
, databaseFile, &maintenanceAction))); static_assert(std::
is_empty_v<typename decltype(tryResult1163)::ok_type>);
if ((__builtin_expect(!!(tryResult1163.isErr()), 0))) { [[maybe_unused
]] auto tryTempError = tryResult1163.unwrapErr(); mozilla::dom
::quota::HandleError("ToResult(DetermineMaintenanceAction(*connection, databaseFile, &maintenanceAction))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14035, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return ; }}
;
14036
14037 switch (maintenanceAction) {
14038 case MaintenanceAction::Nothing:
14039 break;
14040
14041 case MaintenanceAction::IncrementalVacuum:
14042 IncrementalVacuum(*connection);
14043 break;
14044
14045 case MaintenanceAction::FullVacuum:
14046 FullVacuum(*connection, databaseFile);
14047 break;
14048
14049 default:
14050 MOZ_CRASH("Unknown MaintenanceAction!")do { do { } while (false); MOZ_ReportCrash("" "Unknown MaintenanceAction!"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14050
); AnnotateMozCrashReason("MOZ_CRASH(" "Unknown MaintenanceAction!"
")"); do { MOZ_CrashSequence(__null, 14050); __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
14051 }
14052}
14053
14054nsresult DatabaseMaintenance::CheckIntegrity(mozIStorageConnection& aConnection,
14055 bool* aOk) {
14056 MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14056
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { MOZ_CrashSequence(__null, 14056); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14057 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14057
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 14057); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14058 MOZ_ASSERT(aOk)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aOk)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(aOk))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("aOk", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14058); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aOk" ")");
do { MOZ_CrashSequence(__null, 14058); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
14059
14060 if (NS_WARN_IF(IsAborted())NS_warn_if_impl(IsAborted(), "IsAborted()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14060)
) {
14061 return NS_ERROR_ABORT;
14062 }
14063
14064 // First do a full integrity_check. Scope statements tightly here because
14065 // later operations require zero live statements.
14066 {
14067 QM_TRY_INSPECT(const bool& ok, DatabasePassesIntegrityCheck(auto tryResult1164 = (DatabasePassesIntegrityCheck( aConnection
, IntegrityCheckMode::Full)); if ((__builtin_expect(!!(tryResult1164
.isErr()), 0))) { mozilla::dom::quota::HandleError("DatabasePassesIntegrityCheck( aConnection, IntegrityCheckMode::Full)"
, tryResult1164.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14068, mozilla::dom::quota::Severity::Error); return tryResult1164
.propagateErr(); } const bool& ok = tryResult1164.inspect
();
14068 aConnection, IntegrityCheckMode::Full))auto tryResult1164 = (DatabasePassesIntegrityCheck( aConnection
, IntegrityCheckMode::Full)); if ((__builtin_expect(!!(tryResult1164
.isErr()), 0))) { mozilla::dom::quota::HandleError("DatabasePassesIntegrityCheck( aConnection, IntegrityCheckMode::Full)"
, tryResult1164.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14068, mozilla::dom::quota::Severity::Error); return tryResult1164
.propagateErr(); } const bool& ok = tryResult1164.inspect
();
;
14069
14070 QM_TRY(OkIf(ok), NS_OK, [&aOk](const auto) { *aOk = false; }){auto tryResult1165 = (OkIf(ok)); static_assert(std::is_empty_v
<typename decltype(tryResult1165)::ok_type>); if ((__builtin_expect
(!!(tryResult1165.isErr()), 0))) { auto tryTempError = tryResult1165
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(ok)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14070
, mozilla::dom::quota::Severity::Error); [&aOk](const auto
) { *aOk = false; }(tryTempError); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(ok)", tryTempError, NS_OK); }}
;
14071 }
14072
14073 // Now enable and check for foreign key constraints.
14074 {
14075 QM_TRY_INSPECT(auto tryResult1168 = (([&aConnection]() -> Result<int32_t
, nsresult> { auto tryResult1166 = (CreateAndExecuteSingleStepStatement
( aConnection, "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect
(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)"
, tryResult1166.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14080, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); } const auto& stmt = tryResult1166.inspect
();; {auto tryResult1167 = (::mozilla::ToResultInvokeMember( (
*stmt), &::mozilla::detail::DerefedType<decltype(*stmt
)>::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1167
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)"
, tryResult1167.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14082, mozilla::dom::quota::Severity::Error); } return tryResult1167
;}; }())); if ((__builtin_expect(!!(tryResult1168.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&aConnection]() -> Result<int32_t, nsresult> { auto tryResult1166 = (CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CreateAndExecuteSingleStepStatement( aConnection, \\\"PRAGMA foreign_keys;\\\"_ns)\", tryResult1166.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14080, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); } const auto& stmt = tryResult1166.inspect();; {auto tryResult1167 = (::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)\", tryResult1167.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14082, mozilla::dom::quota::Severity::Error); } return tryResult1167;}; }())"
, tryResult1168.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14083, mozilla::dom::quota::Severity::Error); return tryResult1168
.propagateErr(); } const int32_t& foreignKeysWereEnabled =
tryResult1168.inspect();
14076 const int32_t& foreignKeysWereEnabled,auto tryResult1168 = (([&aConnection]() -> Result<int32_t
, nsresult> { auto tryResult1166 = (CreateAndExecuteSingleStepStatement
( aConnection, "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect
(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)"
, tryResult1166.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14080, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); } const auto& stmt = tryResult1166.inspect
();; {auto tryResult1167 = (::mozilla::ToResultInvokeMember( (
*stmt), &::mozilla::detail::DerefedType<decltype(*stmt
)>::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1167
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)"
, tryResult1167.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14082, mozilla::dom::quota::Severity::Error); } return tryResult1167
;}; }())); if ((__builtin_expect(!!(tryResult1168.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&aConnection]() -> Result<int32_t, nsresult> { auto tryResult1166 = (CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CreateAndExecuteSingleStepStatement( aConnection, \\\"PRAGMA foreign_keys;\\\"_ns)\", tryResult1166.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14080, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); } const auto& stmt = tryResult1166.inspect();; {auto tryResult1167 = (::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)\", tryResult1167.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14082, mozilla::dom::quota::Severity::Error); } return tryResult1167;}; }())"
, tryResult1168.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14083, mozilla::dom::quota::Severity::Error); return tryResult1168
.propagateErr(); } const int32_t& foreignKeysWereEnabled =
tryResult1168.inspect();
14077 ([&aConnection]() -> Result<int32_t, nsresult> {auto tryResult1168 = (([&aConnection]() -> Result<int32_t
, nsresult> { auto tryResult1166 = (CreateAndExecuteSingleStepStatement
( aConnection, "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect
(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)"
, tryResult1166.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14080, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); } const auto& stmt = tryResult1166.inspect
();; {auto tryResult1167 = (::mozilla::ToResultInvokeMember( (
*stmt), &::mozilla::detail::DerefedType<decltype(*stmt
)>::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1167
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)"
, tryResult1167.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14082, mozilla::dom::quota::Severity::Error); } return tryResult1167
;}; }())); if ((__builtin_expect(!!(tryResult1168.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&aConnection]() -> Result<int32_t, nsresult> { auto tryResult1166 = (CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CreateAndExecuteSingleStepStatement( aConnection, \\\"PRAGMA foreign_keys;\\\"_ns)\", tryResult1166.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14080, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); } const auto& stmt = tryResult1166.inspect();; {auto tryResult1167 = (::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)\", tryResult1167.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14082, mozilla::dom::quota::Severity::Error); } return tryResult1167;}; }())"
, tryResult1168.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14083, mozilla::dom::quota::Severity::Error); return tryResult1168
.propagateErr(); } const int32_t& foreignKeysWereEnabled =
tryResult1168.inspect();
14078 QM_TRY_INSPECT(const auto& stmt,auto tryResult1168 = (([&aConnection]() -> Result<int32_t
, nsresult> { auto tryResult1166 = (CreateAndExecuteSingleStepStatement
( aConnection, "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect
(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)"
, tryResult1166.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14080, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); } const auto& stmt = tryResult1166.inspect
();; {auto tryResult1167 = (::mozilla::ToResultInvokeMember( (
*stmt), &::mozilla::detail::DerefedType<decltype(*stmt
)>::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1167
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)"
, tryResult1167.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14082, mozilla::dom::quota::Severity::Error); } return tryResult1167
;}; }())); if ((__builtin_expect(!!(tryResult1168.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&aConnection]() -> Result<int32_t, nsresult> { auto tryResult1166 = (CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CreateAndExecuteSingleStepStatement( aConnection, \\\"PRAGMA foreign_keys;\\\"_ns)\", tryResult1166.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14080, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); } const auto& stmt = tryResult1166.inspect();; {auto tryResult1167 = (::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)\", tryResult1167.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14082, mozilla::dom::quota::Severity::Error); } return tryResult1167;}; }())"
, tryResult1168.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14083, mozilla::dom::quota::Severity::Error); return tryResult1168
.propagateErr(); } const int32_t& foreignKeysWereEnabled =
tryResult1168.inspect();
14079 CreateAndExecuteSingleStepStatement(auto tryResult1168 = (([&aConnection]() -> Result<int32_t
, nsresult> { auto tryResult1166 = (CreateAndExecuteSingleStepStatement
( aConnection, "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect
(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)"
, tryResult1166.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14080, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); } const auto& stmt = tryResult1166.inspect
();; {auto tryResult1167 = (::mozilla::ToResultInvokeMember( (
*stmt), &::mozilla::detail::DerefedType<decltype(*stmt
)>::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1167
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)"
, tryResult1167.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14082, mozilla::dom::quota::Severity::Error); } return tryResult1167
;}; }())); if ((__builtin_expect(!!(tryResult1168.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&aConnection]() -> Result<int32_t, nsresult> { auto tryResult1166 = (CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CreateAndExecuteSingleStepStatement( aConnection, \\\"PRAGMA foreign_keys;\\\"_ns)\", tryResult1166.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14080, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); } const auto& stmt = tryResult1166.inspect();; {auto tryResult1167 = (::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)\", tryResult1167.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14082, mozilla::dom::quota::Severity::Error); } return tryResult1167;}; }())"
, tryResult1168.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14083, mozilla::dom::quota::Severity::Error); return tryResult1168
.propagateErr(); } const int32_t& foreignKeysWereEnabled =
tryResult1168.inspect();
14080 aConnection, "PRAGMA foreign_keys;"_ns));auto tryResult1168 = (([&aConnection]() -> Result<int32_t
, nsresult> { auto tryResult1166 = (CreateAndExecuteSingleStepStatement
( aConnection, "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect
(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)"
, tryResult1166.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14080, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); } const auto& stmt = tryResult1166.inspect
();; {auto tryResult1167 = (::mozilla::ToResultInvokeMember( (
*stmt), &::mozilla::detail::DerefedType<decltype(*stmt
)>::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1167
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)"
, tryResult1167.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14082, mozilla::dom::quota::Severity::Error); } return tryResult1167
;}; }())); if ((__builtin_expect(!!(tryResult1168.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&aConnection]() -> Result<int32_t, nsresult> { auto tryResult1166 = (CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CreateAndExecuteSingleStepStatement( aConnection, \\\"PRAGMA foreign_keys;\\\"_ns)\", tryResult1166.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14080, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); } const auto& stmt = tryResult1166.inspect();; {auto tryResult1167 = (::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)\", tryResult1167.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14082, mozilla::dom::quota::Severity::Error); } return tryResult1167;}; }())"
, tryResult1168.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14083, mozilla::dom::quota::Severity::Error); return tryResult1168
.propagateErr(); } const int32_t& foreignKeysWereEnabled =
tryResult1168.inspect();
14081
14082 QM_TRY_RETURN(MOZ_TO_RESULT_INVOKE_MEMBER(*stmt, GetInt32, 0));auto tryResult1168 = (([&aConnection]() -> Result<int32_t
, nsresult> { auto tryResult1166 = (CreateAndExecuteSingleStepStatement
( aConnection, "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect
(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)"
, tryResult1166.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14080, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); } const auto& stmt = tryResult1166.inspect
();; {auto tryResult1167 = (::mozilla::ToResultInvokeMember( (
*stmt), &::mozilla::detail::DerefedType<decltype(*stmt
)>::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1167
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)"
, tryResult1167.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14082, mozilla::dom::quota::Severity::Error); } return tryResult1167
;}; }())); if ((__builtin_expect(!!(tryResult1168.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&aConnection]() -> Result<int32_t, nsresult> { auto tryResult1166 = (CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CreateAndExecuteSingleStepStatement( aConnection, \\\"PRAGMA foreign_keys;\\\"_ns)\", tryResult1166.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14080, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); } const auto& stmt = tryResult1166.inspect();; {auto tryResult1167 = (::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)\", tryResult1167.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14082, mozilla::dom::quota::Severity::Error); } return tryResult1167;}; }())"
, tryResult1168.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14083, mozilla::dom::quota::Severity::Error); return tryResult1168
.propagateErr(); } const int32_t& foreignKeysWereEnabled =
tryResult1168.inspect();
14083 }()))auto tryResult1168 = (([&aConnection]() -> Result<int32_t
, nsresult> { auto tryResult1166 = (CreateAndExecuteSingleStepStatement
( aConnection, "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect
(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)"
, tryResult1166.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14080, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); } const auto& stmt = tryResult1166.inspect
();; {auto tryResult1167 = (::mozilla::ToResultInvokeMember( (
*stmt), &::mozilla::detail::DerefedType<decltype(*stmt
)>::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1167
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)"
, tryResult1167.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14082, mozilla::dom::quota::Severity::Error); } return tryResult1167
;}; }())); if ((__builtin_expect(!!(tryResult1168.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&aConnection]() -> Result<int32_t, nsresult> { auto tryResult1166 = (CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CreateAndExecuteSingleStepStatement( aConnection, \\\"PRAGMA foreign_keys;\\\"_ns)\", tryResult1166.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14080, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); } const auto& stmt = tryResult1166.inspect();; {auto tryResult1167 = (::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)\", tryResult1167.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14082, mozilla::dom::quota::Severity::Error); } return tryResult1167;}; }())"
, tryResult1168.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14083, mozilla::dom::quota::Severity::Error); return tryResult1168
.propagateErr(); } const int32_t& foreignKeysWereEnabled =
tryResult1168.inspect();
;
14084
14085 if (!foreignKeysWereEnabled) {
14086 QM_TRY(MOZ_TO_RESULT({auto tryResult1169 = (ToResult(aConnection.ExecuteSimpleSQL(
"PRAGMA foreign_keys = ON;"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult1169)::ok_type>); if ((__builtin_expect
(!!(tryResult1169.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection.ExecuteSimpleSQL(\"PRAGMA foreign_keys = ON;\"_ns))"
, tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14087, mozilla::dom::quota::Severity::Error); return tryResult1169
.propagateErr(); }}
14087 aConnection.ExecuteSimpleSQL("PRAGMA foreign_keys = ON;"_ns))){auto tryResult1169 = (ToResult(aConnection.ExecuteSimpleSQL(
"PRAGMA foreign_keys = ON;"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult1169)::ok_type>); if ((__builtin_expect
(!!(tryResult1169.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection.ExecuteSimpleSQL(\"PRAGMA foreign_keys = ON;\"_ns))"
, tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14087, mozilla::dom::quota::Severity::Error); return tryResult1169
.propagateErr(); }}
;
14088 }
14089
14090 QM_TRY_INSPECT(const bool& foreignKeyError,auto tryResult1170 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection, "PRAGMA foreign_key_check;"_ns
)); if ((__builtin_expect(!!(tryResult1170.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"PRAGMA foreign_key_check;\"_ns)"
, tryResult1170.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14093, mozilla::dom::quota::Severity::Error); return tryResult1170
.propagateErr(); } const bool& foreignKeyError = tryResult1170
.inspect();
14091 CreateAndExecuteSingleStepStatement<auto tryResult1170 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection, "PRAGMA foreign_key_check;"_ns
)); if ((__builtin_expect(!!(tryResult1170.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"PRAGMA foreign_key_check;\"_ns)"
, tryResult1170.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14093, mozilla::dom::quota::Severity::Error); return tryResult1170
.propagateErr(); } const bool& foreignKeyError = tryResult1170
.inspect();
14092 SingleStepResult::ReturnNullIfNoResult>(auto tryResult1170 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection, "PRAGMA foreign_key_check;"_ns
)); if ((__builtin_expect(!!(tryResult1170.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"PRAGMA foreign_key_check;\"_ns)"
, tryResult1170.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14093, mozilla::dom::quota::Severity::Error); return tryResult1170
.propagateErr(); } const bool& foreignKeyError = tryResult1170
.inspect();
14093 aConnection, "PRAGMA foreign_key_check;"_ns))auto tryResult1170 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection, "PRAGMA foreign_key_check;"_ns
)); if ((__builtin_expect(!!(tryResult1170.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"PRAGMA foreign_key_check;\"_ns)"
, tryResult1170.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14093, mozilla::dom::quota::Severity::Error); return tryResult1170
.propagateErr(); } const bool& foreignKeyError = tryResult1170
.inspect();
;
14094
14095 if (!foreignKeysWereEnabled) {
14096 QM_TRY(MOZ_TO_RESULT({auto tryResult1171 = (ToResult(aConnection.ExecuteSimpleSQL(
"PRAGMA foreign_keys = OFF;"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult1171)::ok_type>); if ((__builtin_expect
(!!(tryResult1171.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection.ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))"
, tryResult1171.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14097, mozilla::dom::quota::Severity::Error); return tryResult1171
.propagateErr(); }}
14097 aConnection.ExecuteSimpleSQL("PRAGMA foreign_keys = OFF;"_ns))){auto tryResult1171 = (ToResult(aConnection.ExecuteSimpleSQL(
"PRAGMA foreign_keys = OFF;"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult1171)::ok_type>); if ((__builtin_expect
(!!(tryResult1171.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection.ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))"
, tryResult1171.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14097, mozilla::dom::quota::Severity::Error); return tryResult1171
.propagateErr(); }}
;
14098 }
14099
14100 if (foreignKeyError) {
14101 *aOk = false;
14102 return NS_OK;
14103 }
14104 }
14105
14106 *aOk = true;
14107 return NS_OK;
14108}
14109
14110nsresult DatabaseMaintenance::DetermineMaintenanceAction(
14111 mozIStorageConnection& aConnection, nsIFile* aDatabaseFile,
14112 MaintenanceAction* aMaintenanceAction) {
14113 MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14113
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { MOZ_CrashSequence(__null, 14113); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14114 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14114
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 14114); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14115 MOZ_ASSERT(aDatabaseFile)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDatabaseFile)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDatabaseFile))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("aDatabaseFile",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14115)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseFile" ")"
); do { MOZ_CrashSequence(__null, 14115); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
14116 MOZ_ASSERT(aMaintenanceAction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aMaintenanceAction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aMaintenanceAction))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("aMaintenanceAction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14116
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMaintenanceAction"
")"); do { MOZ_CrashSequence(__null, 14116); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14117
14118 if (NS_WARN_IF(IsAborted())NS_warn_if_impl(IsAborted(), "IsAborted()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14118)
) {
14119 return NS_ERROR_ABORT;
14120 }
14121
14122 QM_TRY_INSPECT(const int32_t& schemaVersion,auto tryResult1172 = (::mozilla::ToResultInvokeMember( (aConnection
), &::mozilla::detail::DerefedType<decltype(aConnection
)>::GetSchemaVersion )); if ((__builtin_expect(!!(tryResult1172
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aConnection), &::mozilla::detail::DerefedType<decltype(aConnection)>::GetSchemaVersion )"
, tryResult1172.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14123, mozilla::dom::quota::Severity::Error); return tryResult1172
.propagateErr(); } const int32_t& schemaVersion = tryResult1172
.inspect();
14123 MOZ_TO_RESULT_INVOKE_MEMBER(aConnection, GetSchemaVersion))auto tryResult1172 = (::mozilla::ToResultInvokeMember( (aConnection
), &::mozilla::detail::DerefedType<decltype(aConnection
)>::GetSchemaVersion )); if ((__builtin_expect(!!(tryResult1172
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aConnection), &::mozilla::detail::DerefedType<decltype(aConnection)>::GetSchemaVersion )"
, tryResult1172.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14123, mozilla::dom::quota::Severity::Error); return tryResult1172
.propagateErr(); } const int32_t& schemaVersion = tryResult1172
.inspect();
;
14124
14125 // Don't do anything if the schema version is less than 18; before that
14126 // version no databases had |auto_vacuum == INCREMENTAL| set and we didn't
14127 // track the values needed for the heuristics below.
14128 if (schemaVersion < MakeSchemaVersion(18, 0)) {
14129 *aMaintenanceAction = MaintenanceAction::Nothing;
14130 return NS_OK;
14131 }
14132
14133 // This method shouldn't make any permanent changes to the database, so make
14134 // sure everything gets rolled back when we leave.
14135 mozStorageTransaction transaction(&aConnection,
14136 /* aCommitOnComplete */ false);
14137
14138 QM_TRY(MOZ_TO_RESULT(transaction.Start())){auto tryResult1173 = (ToResult(transaction.Start())); static_assert
(std::is_empty_v<typename decltype(tryResult1173)::ok_type
>); if ((__builtin_expect(!!(tryResult1173.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(transaction.Start())"
, tryResult1173.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14138, mozilla::dom::quota::Severity::Error); return tryResult1173
.propagateErr(); }}
14139
14140 // Check to see when we last vacuumed this database.
14141 QM_TRY_INSPECT(const auto& stmt,auto tryResult1174 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT last_vacuum_time, last_vacuum_size " "FROM database;"_ns
)); if ((__builtin_expect(!!(tryResult1174.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT last_vacuum_time, last_vacuum_size \" \"FROM database;\"_ns)"
, tryResult1174.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14145, mozilla::dom::quota::Severity::Error); return tryResult1174
.propagateErr(); } const auto& stmt = tryResult1174.inspect
();
14142 CreateAndExecuteSingleStepStatement(auto tryResult1174 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT last_vacuum_time, last_vacuum_size " "FROM database;"_ns
)); if ((__builtin_expect(!!(tryResult1174.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT last_vacuum_time, last_vacuum_size \" \"FROM database;\"_ns)"
, tryResult1174.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14145, mozilla::dom::quota::Severity::Error); return tryResult1174
.propagateErr(); } const auto& stmt = tryResult1174.inspect
();
14143 aConnection,auto tryResult1174 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT last_vacuum_time, last_vacuum_size " "FROM database;"_ns
)); if ((__builtin_expect(!!(tryResult1174.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT last_vacuum_time, last_vacuum_size \" \"FROM database;\"_ns)"
, tryResult1174.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14145, mozilla::dom::quota::Severity::Error); return tryResult1174
.propagateErr(); } const auto& stmt = tryResult1174.inspect
();
14144 "SELECT last_vacuum_time, last_vacuum_size "auto tryResult1174 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT last_vacuum_time, last_vacuum_size " "FROM database;"_ns
)); if ((__builtin_expect(!!(tryResult1174.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT last_vacuum_time, last_vacuum_size \" \"FROM database;\"_ns)"
, tryResult1174.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14145, mozilla::dom::quota::Severity::Error); return tryResult1174
.propagateErr(); } const auto& stmt = tryResult1174.inspect
();
14145 "FROM database;"_ns))auto tryResult1174 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT last_vacuum_time, last_vacuum_size " "FROM database;"_ns
)); if ((__builtin_expect(!!(tryResult1174.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT last_vacuum_time, last_vacuum_size \" \"FROM database;\"_ns)"
, tryResult1174.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14145, mozilla::dom::quota::Severity::Error); return tryResult1174
.propagateErr(); } const auto& stmt = tryResult1174.inspect
();
;
14146
14147 QM_TRY_INSPECT(const PRTime& lastVacuumTime,auto tryResult1175 = (::mozilla::ToResultInvokeMember( (*stmt
), &::mozilla::detail::DerefedType<decltype(*stmt)>
::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1175.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt64 , 0)"
, tryResult1175.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14148, mozilla::dom::quota::Severity::Error); return tryResult1175
.propagateErr(); } const PRTime& lastVacuumTime = tryResult1175
.inspect();
14148 MOZ_TO_RESULT_INVOKE_MEMBER(*stmt, GetInt64, 0))auto tryResult1175 = (::mozilla::ToResultInvokeMember( (*stmt
), &::mozilla::detail::DerefedType<decltype(*stmt)>
::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1175.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt64 , 0)"
, tryResult1175.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14148, mozilla::dom::quota::Severity::Error); return tryResult1175
.propagateErr(); } const PRTime& lastVacuumTime = tryResult1175
.inspect();
;
14149
14150 QM_TRY_INSPECT(const int64_t& lastVacuumSize,auto tryResult1176 = (::mozilla::ToResultInvokeMember( (*stmt
), &::mozilla::detail::DerefedType<decltype(*stmt)>
::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1176.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt64 , 1)"
, tryResult1176.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14151, mozilla::dom::quota::Severity::Error); return tryResult1176
.propagateErr(); } const int64_t& lastVacuumSize = tryResult1176
.inspect();
14151 MOZ_TO_RESULT_INVOKE_MEMBER(*stmt, GetInt64, 1))auto tryResult1176 = (::mozilla::ToResultInvokeMember( (*stmt
), &::mozilla::detail::DerefedType<decltype(*stmt)>
::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1176.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt64 , 1)"
, tryResult1176.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14151, mozilla::dom::quota::Severity::Error); return tryResult1176
.propagateErr(); } const int64_t& lastVacuumSize = tryResult1176
.inspect();
;
14152
14153 NS_ASSERTION(lastVacuumSize > 0,do { if (!(lastVacuumSize > 0)) { NS_DebugBreak(NS_DEBUG_ASSERTION
, "Thy last vacuum size shall be greater than zero, less than "
"zero shall thy last vacuum size not be. Zero is right out."
, "lastVacuumSize > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14155); MOZ_PretendNoReturn(); } } while (0)
14154 "Thy last vacuum size shall be greater than zero, less than "do { if (!(lastVacuumSize > 0)) { NS_DebugBreak(NS_DEBUG_ASSERTION
, "Thy last vacuum size shall be greater than zero, less than "
"zero shall thy last vacuum size not be. Zero is right out."
, "lastVacuumSize > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14155); MOZ_PretendNoReturn(); } } while (0)
14155 "zero shall thy last vacuum size not be. Zero is right out.")do { if (!(lastVacuumSize > 0)) { NS_DebugBreak(NS_DEBUG_ASSERTION
, "Thy last vacuum size shall be greater than zero, less than "
"zero shall thy last vacuum size not be. Zero is right out."
, "lastVacuumSize > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14155); MOZ_PretendNoReturn(); } } while (0)
;
14156
14157 const PRTime startTime = mMaintenance->StartTime();
14158
14159 // This shouldn't really be possible...
14160 if (NS_WARN_IF(startTime <= lastVacuumTime)NS_warn_if_impl(startTime <= lastVacuumTime, "startTime <= lastVacuumTime"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14160
)
) {
14161 *aMaintenanceAction = MaintenanceAction::Nothing;
14162 return NS_OK;
14163 }
14164
14165 if (startTime - lastVacuumTime < kMinVacuumAge) {
14166 *aMaintenanceAction = MaintenanceAction::IncrementalVacuum;
14167 return NS_OK;
14168 }
14169
14170 // It has been more than a week since the database was vacuumed, so gather
14171 // statistics on its usage to see if vacuuming is worthwhile.
14172
14173 // Create a temporary copy of the dbstat table to speed up the queries that
14174 // come later.
14175 QM_TRY(MOZ_TO_RESULT(aConnection.ExecuteSimpleSQL({auto tryResult1177 = (ToResult(aConnection.ExecuteSimpleSQL(
"CREATE VIRTUAL TABLE __stats__ USING dbstat;" "CREATE TEMP TABLE __temp_stats__ AS SELECT * FROM __stats__;"_ns
))); static_assert(std::is_empty_v<typename decltype(tryResult1177
)::ok_type>); if ((__builtin_expect(!!(tryResult1177.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL( \"CREATE VIRTUAL TABLE __stats__ USING dbstat;\" \"CREATE TEMP TABLE __temp_stats__ AS SELECT * FROM __stats__;\"_ns))"
, tryResult1177.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14177, mozilla::dom::quota::Severity::Error); return tryResult1177
.propagateErr(); }}
14176 "CREATE VIRTUAL TABLE __stats__ USING dbstat;"{auto tryResult1177 = (ToResult(aConnection.ExecuteSimpleSQL(
"CREATE VIRTUAL TABLE __stats__ USING dbstat;" "CREATE TEMP TABLE __temp_stats__ AS SELECT * FROM __stats__;"_ns
))); static_assert(std::is_empty_v<typename decltype(tryResult1177
)::ok_type>); if ((__builtin_expect(!!(tryResult1177.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL( \"CREATE VIRTUAL TABLE __stats__ USING dbstat;\" \"CREATE TEMP TABLE __temp_stats__ AS SELECT * FROM __stats__;\"_ns))"
, tryResult1177.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14177, mozilla::dom::quota::Severity::Error); return tryResult1177
.propagateErr(); }}
14177 "CREATE TEMP TABLE __temp_stats__ AS SELECT * FROM __stats__;"_ns))){auto tryResult1177 = (ToResult(aConnection.ExecuteSimpleSQL(
"CREATE VIRTUAL TABLE __stats__ USING dbstat;" "CREATE TEMP TABLE __temp_stats__ AS SELECT * FROM __stats__;"_ns
))); static_assert(std::is_empty_v<typename decltype(tryResult1177
)::ok_type>); if ((__builtin_expect(!!(tryResult1177.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL( \"CREATE VIRTUAL TABLE __stats__ USING dbstat;\" \"CREATE TEMP TABLE __temp_stats__ AS SELECT * FROM __stats__;\"_ns))"
, tryResult1177.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14177, mozilla::dom::quota::Severity::Error); return tryResult1177
.propagateErr(); }}
;
14178
14179 { // Calculate the percentage of the database pages that are not in
14180 // contiguous order.
14181 QM_TRY_INSPECT(auto tryResult1178 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / "
"COUNT(*) " "FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ "
"WHERE __ts1__.name = __ts2__.name " "AND __ts1__.rowid = __ts2__.rowid + 1;"_ns
)); if ((__builtin_expect(!!(tryResult1178.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / \" \"COUNT(*) \" \"FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ \" \"WHERE __ts1__.name = __ts2__.name \" \"AND __ts1__.rowid = __ts2__.rowid + 1;\"_ns)"
, tryResult1178.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14189, mozilla::dom::quota::Severity::Error); return tryResult1178
.propagateErr(); } const auto& stmt = tryResult1178.inspect
();
14182 const auto& stmt,auto tryResult1178 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / "
"COUNT(*) " "FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ "
"WHERE __ts1__.name = __ts2__.name " "AND __ts1__.rowid = __ts2__.rowid + 1;"_ns
)); if ((__builtin_expect(!!(tryResult1178.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / \" \"COUNT(*) \" \"FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ \" \"WHERE __ts1__.name = __ts2__.name \" \"AND __ts1__.rowid = __ts2__.rowid + 1;\"_ns)"
, tryResult1178.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14189, mozilla::dom::quota::Severity::Error); return tryResult1178
.propagateErr(); } const auto& stmt = tryResult1178.inspect
();
14183 CreateAndExecuteSingleStepStatement(auto tryResult1178 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / "
"COUNT(*) " "FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ "
"WHERE __ts1__.name = __ts2__.name " "AND __ts1__.rowid = __ts2__.rowid + 1;"_ns
)); if ((__builtin_expect(!!(tryResult1178.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / \" \"COUNT(*) \" \"FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ \" \"WHERE __ts1__.name = __ts2__.name \" \"AND __ts1__.rowid = __ts2__.rowid + 1;\"_ns)"
, tryResult1178.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14189, mozilla::dom::quota::Severity::Error); return tryResult1178
.propagateErr(); } const auto& stmt = tryResult1178.inspect
();
14184 aConnection,auto tryResult1178 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / "
"COUNT(*) " "FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ "
"WHERE __ts1__.name = __ts2__.name " "AND __ts1__.rowid = __ts2__.rowid + 1;"_ns
)); if ((__builtin_expect(!!(tryResult1178.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / \" \"COUNT(*) \" \"FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ \" \"WHERE __ts1__.name = __ts2__.name \" \"AND __ts1__.rowid = __ts2__.rowid + 1;\"_ns)"
, tryResult1178.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14189, mozilla::dom::quota::Severity::Error); return tryResult1178
.propagateErr(); } const auto& stmt = tryResult1178.inspect
();
14185 "SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / "auto tryResult1178 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / "
"COUNT(*) " "FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ "
"WHERE __ts1__.name = __ts2__.name " "AND __ts1__.rowid = __ts2__.rowid + 1;"_ns
)); if ((__builtin_expect(!!(tryResult1178.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / \" \"COUNT(*) \" \"FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ \" \"WHERE __ts1__.name = __ts2__.name \" \"AND __ts1__.rowid = __ts2__.rowid + 1;\"_ns)"
, tryResult1178.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14189, mozilla::dom::quota::Severity::Error); return tryResult1178
.propagateErr(); } const auto& stmt = tryResult1178.inspect
();
14186 "COUNT(*) "auto tryResult1178 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / "
"COUNT(*) " "FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ "
"WHERE __ts1__.name = __ts2__.name " "AND __ts1__.rowid = __ts2__.rowid + 1;"_ns
)); if ((__builtin_expect(!!(tryResult1178.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / \" \"COUNT(*) \" \"FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ \" \"WHERE __ts1__.name = __ts2__.name \" \"AND __ts1__.rowid = __ts2__.rowid + 1;\"_ns)"
, tryResult1178.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14189, mozilla::dom::quota::Severity::Error); return tryResult1178
.propagateErr(); } const auto& stmt = tryResult1178.inspect
();
14187 "FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ "auto tryResult1178 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / "
"COUNT(*) " "FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ "
"WHERE __ts1__.name = __ts2__.name " "AND __ts1__.rowid = __ts2__.rowid + 1;"_ns
)); if ((__builtin_expect(!!(tryResult1178.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / \" \"COUNT(*) \" \"FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ \" \"WHERE __ts1__.name = __ts2__.name \" \"AND __ts1__.rowid = __ts2__.rowid + 1;\"_ns)"
, tryResult1178.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14189, mozilla::dom::quota::Severity::Error); return tryResult1178
.propagateErr(); } const auto& stmt = tryResult1178.inspect
();
14188 "WHERE __ts1__.name = __ts2__.name "auto tryResult1178 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / "
"COUNT(*) " "FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ "
"WHERE __ts1__.name = __ts2__.name " "AND __ts1__.rowid = __ts2__.rowid + 1;"_ns
)); if ((__builtin_expect(!!(tryResult1178.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / \" \"COUNT(*) \" \"FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ \" \"WHERE __ts1__.name = __ts2__.name \" \"AND __ts1__.rowid = __ts2__.rowid + 1;\"_ns)"
, tryResult1178.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14189, mozilla::dom::quota::Severity::Error); return tryResult1178
.propagateErr(); } const auto& stmt = tryResult1178.inspect
();
14189 "AND __ts1__.rowid = __ts2__.rowid + 1;"_ns))auto tryResult1178 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / "
"COUNT(*) " "FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ "
"WHERE __ts1__.name = __ts2__.name " "AND __ts1__.rowid = __ts2__.rowid + 1;"_ns
)); if ((__builtin_expect(!!(tryResult1178.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / \" \"COUNT(*) \" \"FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ \" \"WHERE __ts1__.name = __ts2__.name \" \"AND __ts1__.rowid = __ts2__.rowid + 1;\"_ns)"
, tryResult1178.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14189, mozilla::dom::quota::Severity::Error); return tryResult1178
.propagateErr(); } const auto& stmt = tryResult1178.inspect
();
;
14190
14191 QM_TRY_INSPECT(const int32_t& percentUnordered,auto tryResult1179 = (::mozilla::ToResultInvokeMember( (*stmt
), &::mozilla::detail::DerefedType<decltype(*stmt)>
::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1179.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)"
, tryResult1179.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14192, mozilla::dom::quota::Severity::Error); return tryResult1179
.propagateErr(); } const int32_t& percentUnordered = tryResult1179
.inspect();
14192 MOZ_TO_RESULT_INVOKE_MEMBER(*stmt, GetInt32, 0))auto tryResult1179 = (::mozilla::ToResultInvokeMember( (*stmt
), &::mozilla::detail::DerefedType<decltype(*stmt)>
::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1179.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)"
, tryResult1179.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14192, mozilla::dom::quota::Severity::Error); return tryResult1179
.propagateErr(); } const int32_t& percentUnordered = tryResult1179
.inspect();
;
14193
14194 MOZ_ASSERT(percentUnordered >= 0)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(percentUnordered >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(percentUnordered >= 0))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("percentUnordered >= 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14194
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "percentUnordered >= 0"
")"); do { MOZ_CrashSequence(__null, 14194); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14195 MOZ_ASSERT(percentUnordered <= 100)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(percentUnordered <= 100)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(percentUnordered <= 100))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("percentUnordered <= 100"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14195
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "percentUnordered <= 100"
")"); do { MOZ_CrashSequence(__null, 14195); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14196
14197 if (percentUnordered >= kPercentUnorderedThreshold) {
14198 *aMaintenanceAction = MaintenanceAction::FullVacuum;
14199 return NS_OK;
14200 }
14201 }
14202
14203 // Don't try a full vacuum if the file hasn't grown by 10%.
14204 QM_TRY_INSPECT(const int64_t& currentFileSize,auto tryResult1180 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1180
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )"
, tryResult1180.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14205, mozilla::dom::quota::Severity::Error); return tryResult1180
.propagateErr(); } const int64_t& currentFileSize = tryResult1180
.inspect();
14205 MOZ_TO_RESULT_INVOKE_MEMBER(aDatabaseFile, GetFileSize))auto tryResult1180 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1180
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )"
, tryResult1180.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14205, mozilla::dom::quota::Severity::Error); return tryResult1180
.propagateErr(); } const int64_t& currentFileSize = tryResult1180
.inspect();
;
14206
14207 if (currentFileSize <= lastVacuumSize ||
14208 (((currentFileSize - lastVacuumSize) * 100 / currentFileSize) <
14209 kPercentFileSizeGrowthThreshold)) {
14210 *aMaintenanceAction = MaintenanceAction::IncrementalVacuum;
14211 return NS_OK;
14212 }
14213
14214 { // See if there are any free pages that we can reclaim.
14215 QM_TRY_INSPECT(const auto& stmt,auto tryResult1181 = (CreateAndExecuteSingleStepStatement( aConnection
, "PRAGMA freelist_count;"_ns)); if ((__builtin_expect(!!(tryResult1181
.isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA freelist_count;\"_ns)"
, tryResult1181.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14217, mozilla::dom::quota::Severity::Error); return tryResult1181
.propagateErr(); } const auto& stmt = tryResult1181.inspect
();
14216 CreateAndExecuteSingleStepStatement(auto tryResult1181 = (CreateAndExecuteSingleStepStatement( aConnection
, "PRAGMA freelist_count;"_ns)); if ((__builtin_expect(!!(tryResult1181
.isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA freelist_count;\"_ns)"
, tryResult1181.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14217, mozilla::dom::quota::Severity::Error); return tryResult1181
.propagateErr(); } const auto& stmt = tryResult1181.inspect
();
14217 aConnection, "PRAGMA freelist_count;"_ns))auto tryResult1181 = (CreateAndExecuteSingleStepStatement( aConnection
, "PRAGMA freelist_count;"_ns)); if ((__builtin_expect(!!(tryResult1181
.isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA freelist_count;\"_ns)"
, tryResult1181.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14217, mozilla::dom::quota::Severity::Error); return tryResult1181
.propagateErr(); } const auto& stmt = tryResult1181.inspect
();
;
14218
14219 QM_TRY_INSPECT(const int32_t& freelistCount,auto tryResult1182 = (::mozilla::ToResultInvokeMember( (*stmt
), &::mozilla::detail::DerefedType<decltype(*stmt)>
::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1182.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)"
, tryResult1182.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14220, mozilla::dom::quota::Severity::Error); return tryResult1182
.propagateErr(); } const int32_t& freelistCount = tryResult1182
.inspect();
14220 MOZ_TO_RESULT_INVOKE_MEMBER(*stmt, GetInt32, 0))auto tryResult1182 = (::mozilla::ToResultInvokeMember( (*stmt
), &::mozilla::detail::DerefedType<decltype(*stmt)>
::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1182.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)"
, tryResult1182.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14220, mozilla::dom::quota::Severity::Error); return tryResult1182
.propagateErr(); } const int32_t& freelistCount = tryResult1182
.inspect();
;
14221
14222 MOZ_ASSERT(freelistCount >= 0)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(freelistCount >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(freelistCount >= 0))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("freelistCount >= 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14222
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "freelistCount >= 0"
")"); do { MOZ_CrashSequence(__null, 14222); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14223
14224 // If we have too many free pages then we should try an incremental
14225 // vacuum. If that causes too much fragmentation then we'll try a full
14226 // vacuum later.
14227 if (freelistCount > kMaxFreelistThreshold) {
14228 *aMaintenanceAction = MaintenanceAction::IncrementalVacuum;
14229 return NS_OK;
14230 }
14231 }
14232
14233 { // Calculate the percentage of unused bytes on pages in the database.
14234 QM_TRY_INSPECT(auto tryResult1183 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;"_ns
)); if ((__builtin_expect(!!(tryResult1183.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;\"_ns)"
, tryResult1183.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14238, mozilla::dom::quota::Severity::Error); return tryResult1183
.propagateErr(); } const auto& stmt = tryResult1183.inspect
();
14235 const auto& stmt,auto tryResult1183 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;"_ns
)); if ((__builtin_expect(!!(tryResult1183.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;\"_ns)"
, tryResult1183.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14238, mozilla::dom::quota::Severity::Error); return tryResult1183
.propagateErr(); } const auto& stmt = tryResult1183.inspect
();
14236 CreateAndExecuteSingleStepStatement(auto tryResult1183 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;"_ns
)); if ((__builtin_expect(!!(tryResult1183.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;\"_ns)"
, tryResult1183.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14238, mozilla::dom::quota::Severity::Error); return tryResult1183
.propagateErr(); } const auto& stmt = tryResult1183.inspect
();
14237 aConnection,auto tryResult1183 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;"_ns
)); if ((__builtin_expect(!!(tryResult1183.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;\"_ns)"
, tryResult1183.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14238, mozilla::dom::quota::Severity::Error); return tryResult1183
.propagateErr(); } const auto& stmt = tryResult1183.inspect
();
14238 "SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;"_ns))auto tryResult1183 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;"_ns
)); if ((__builtin_expect(!!(tryResult1183.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;\"_ns)"
, tryResult1183.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14238, mozilla::dom::quota::Severity::Error); return tryResult1183
.propagateErr(); } const auto& stmt = tryResult1183.inspect
();
;
14239
14240 QM_TRY_INSPECT(const int32_t& percentUnused,auto tryResult1184 = (::mozilla::ToResultInvokeMember( (*stmt
), &::mozilla::detail::DerefedType<decltype(*stmt)>
::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1184.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)"
, tryResult1184.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14241, mozilla::dom::quota::Severity::Error); return tryResult1184
.propagateErr(); } const int32_t& percentUnused = tryResult1184
.inspect();
14241 MOZ_TO_RESULT_INVOKE_MEMBER(*stmt, GetInt32, 0))auto tryResult1184 = (::mozilla::ToResultInvokeMember( (*stmt
), &::mozilla::detail::DerefedType<decltype(*stmt)>
::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1184.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)"
, tryResult1184.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14241, mozilla::dom::quota::Severity::Error); return tryResult1184
.propagateErr(); } const int32_t& percentUnused = tryResult1184
.inspect();
;
14242
14243 MOZ_ASSERT(percentUnused >= 0)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(percentUnused >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(percentUnused >= 0))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("percentUnused >= 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14243
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "percentUnused >= 0"
")"); do { MOZ_CrashSequence(__null, 14243); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14244 MOZ_ASSERT(percentUnused <= 100)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(percentUnused <= 100)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(percentUnused <= 100))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("percentUnused <= 100"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14244
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "percentUnused <= 100"
")"); do { MOZ_CrashSequence(__null, 14244); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14245
14246 *aMaintenanceAction = percentUnused >= kPercentUnusedThreshold
14247 ? MaintenanceAction::FullVacuum
14248 : MaintenanceAction::IncrementalVacuum;
14249 }
14250
14251 return NS_OK;
14252}
14253
14254void DatabaseMaintenance::IncrementalVacuum(
14255 mozIStorageConnection& aConnection) {
14256 MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14256
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { MOZ_CrashSequence(__null, 14256); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14257 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14257
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 14257); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14258
14259 if (NS_WARN_IF(IsAborted())NS_warn_if_impl(IsAborted(), "IsAborted()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14259)
) {
14260 return;
14261 }
14262
14263 nsresult rv = aConnection.ExecuteSimpleSQL("PRAGMA incremental_vacuum;"_ns);
14264 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14264)
) {
14265 return;
14266 }
14267}
14268
14269void DatabaseMaintenance::FullVacuum(mozIStorageConnection& aConnection,
14270 nsIFile* aDatabaseFile) {
14271 MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14271
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { MOZ_CrashSequence(__null, 14271); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14272 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14272
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 14272); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14273 MOZ_ASSERT(aDatabaseFile)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDatabaseFile)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDatabaseFile))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("aDatabaseFile",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14273)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseFile" ")"
); do { MOZ_CrashSequence(__null, 14273); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
14274
14275 if (NS_WARN_IF(IsAborted())NS_warn_if_impl(IsAborted(), "IsAborted()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14275)
) {
14276 return;
14277 }
14278
14279 QM_WARNONLY_TRY(([&]() -> Result<Ok, nsresult> {{auto tryResult1191 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1185 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1185)::ok_type>); if ((__builtin_expect(!!(tryResult1185
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1185.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14280, mozilla::dom::quota::Severity::Error); return tryResult1185
.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(vacuumTime > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14283
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { MOZ_CrashSequence(__null, 14283); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1186 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1186
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )"
, tryResult1186.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14286, mozilla::dom::quota::Severity::Error); return tryResult1186
.propagateErr(); } const int64_t& fileSize = tryResult1186
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(fileSize > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("fileSize > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14288
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"
); do { MOZ_CrashSequence(__null, 14288); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto tryResult1187
= (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement
> >( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(aConnection)>::CreateStatement), (aConnection
), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns
)); if ((__builtin_expect(!!(tryResult1187.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)"
, tryResult1187.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14297, mozilla::dom::quota::Severity::Error); return tryResult1187
.propagateErr(); } const auto& stmt = tryResult1187.inspect
();; {auto tryResult1188 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1188)::ok_type>); if ((__builtin_expect(!!(tryResult1188
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1188.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14299, mozilla::dom::quota::Severity::Error); return tryResult1188
.propagateErr(); }}; {auto tryResult1189 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1189)::ok_type>); if ((__builtin_expect
(!!(tryResult1189.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1189
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14301, mozilla::dom::quota::Severity::Error); return tryResult1189
.propagateErr(); }}; {auto tryResult1190 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1190.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14303, mozilla::dom::quota::Severity::Error); return tryResult1190
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1191)::ok_type>); if ((__builtin_expect
(!!(tryResult1191.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1185 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1185)::ok_type>); if ((__builtin_expect(!!(tryResult1185.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1185.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1185.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14283); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14283); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1186 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1186.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1186.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14286, mozilla::dom::quota::Severity::Error); return tryResult1186.propagateErr(); } const int64_t& fileSize = tryResult1186.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14288); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14288); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1187 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult1187.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult1187.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14297, mozilla::dom::quota::Severity::Error); return tryResult1187.propagateErr(); } const auto& stmt = tryResult1187.inspect();; {auto tryResult1188 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1188)::ok_type>); if ((__builtin_expect(!!(tryResult1188.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1188.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14299, mozilla::dom::quota::Severity::Error); return tryResult1188.propagateErr(); }}; {auto tryResult1189 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1189)::ok_type>); if ((__builtin_expect(!!(tryResult1189.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1189.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14301, mozilla::dom::quota::Severity::Error); return tryResult1189.propagateErr(); }}; {auto tryResult1190 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1190.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14303, mozilla::dom::quota::Severity::Error); return tryResult1190.propagateErr(); }}; return Ok{}; }())"
, tryResult1191.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14305, mozilla::dom::quota::Severity::Warning); }}
14280 QM_TRY(MOZ_TO_RESULT(aConnection.ExecuteSimpleSQL("VACUUM;"_ns)));{auto tryResult1191 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1185 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1185)::ok_type>); if ((__builtin_expect(!!(tryResult1185
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1185.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14280, mozilla::dom::quota::Severity::Error); return tryResult1185
.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(vacuumTime > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14283
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { MOZ_CrashSequence(__null, 14283); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1186 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1186
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )"
, tryResult1186.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14286, mozilla::dom::quota::Severity::Error); return tryResult1186
.propagateErr(); } const int64_t& fileSize = tryResult1186
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(fileSize > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("fileSize > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14288
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"
); do { MOZ_CrashSequence(__null, 14288); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto tryResult1187
= (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement
> >( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(aConnection)>::CreateStatement), (aConnection
), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns
)); if ((__builtin_expect(!!(tryResult1187.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)"
, tryResult1187.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14297, mozilla::dom::quota::Severity::Error); return tryResult1187
.propagateErr(); } const auto& stmt = tryResult1187.inspect
();; {auto tryResult1188 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1188)::ok_type>); if ((__builtin_expect(!!(tryResult1188
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1188.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14299, mozilla::dom::quota::Severity::Error); return tryResult1188
.propagateErr(); }}; {auto tryResult1189 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1189)::ok_type>); if ((__builtin_expect
(!!(tryResult1189.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1189
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14301, mozilla::dom::quota::Severity::Error); return tryResult1189
.propagateErr(); }}; {auto tryResult1190 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1190.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14303, mozilla::dom::quota::Severity::Error); return tryResult1190
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1191)::ok_type>); if ((__builtin_expect
(!!(tryResult1191.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1185 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1185)::ok_type>); if ((__builtin_expect(!!(tryResult1185.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1185.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1185.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14283); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14283); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1186 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1186.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1186.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14286, mozilla::dom::quota::Severity::Error); return tryResult1186.propagateErr(); } const int64_t& fileSize = tryResult1186.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14288); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14288); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1187 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult1187.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult1187.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14297, mozilla::dom::quota::Severity::Error); return tryResult1187.propagateErr(); } const auto& stmt = tryResult1187.inspect();; {auto tryResult1188 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1188)::ok_type>); if ((__builtin_expect(!!(tryResult1188.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1188.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14299, mozilla::dom::quota::Severity::Error); return tryResult1188.propagateErr(); }}; {auto tryResult1189 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1189)::ok_type>); if ((__builtin_expect(!!(tryResult1189.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1189.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14301, mozilla::dom::quota::Severity::Error); return tryResult1189.propagateErr(); }}; {auto tryResult1190 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1190.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14303, mozilla::dom::quota::Severity::Error); return tryResult1190.propagateErr(); }}; return Ok{}; }())"
, tryResult1191.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14305, mozilla::dom::quota::Severity::Warning); }}
14281
14282 const PRTime vacuumTime = PR_Now();{auto tryResult1191 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1185 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1185)::ok_type>); if ((__builtin_expect(!!(tryResult1185
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1185.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14280, mozilla::dom::quota::Severity::Error); return tryResult1185
.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(vacuumTime > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14283
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { MOZ_CrashSequence(__null, 14283); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1186 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1186
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )"
, tryResult1186.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14286, mozilla::dom::quota::Severity::Error); return tryResult1186
.propagateErr(); } const int64_t& fileSize = tryResult1186
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(fileSize > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("fileSize > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14288
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"
); do { MOZ_CrashSequence(__null, 14288); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto tryResult1187
= (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement
> >( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(aConnection)>::CreateStatement), (aConnection
), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns
)); if ((__builtin_expect(!!(tryResult1187.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)"
, tryResult1187.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14297, mozilla::dom::quota::Severity::Error); return tryResult1187
.propagateErr(); } const auto& stmt = tryResult1187.inspect
();; {auto tryResult1188 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1188)::ok_type>); if ((__builtin_expect(!!(tryResult1188
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1188.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14299, mozilla::dom::quota::Severity::Error); return tryResult1188
.propagateErr(); }}; {auto tryResult1189 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1189)::ok_type>); if ((__builtin_expect
(!!(tryResult1189.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1189
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14301, mozilla::dom::quota::Severity::Error); return tryResult1189
.propagateErr(); }}; {auto tryResult1190 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1190.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14303, mozilla::dom::quota::Severity::Error); return tryResult1190
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1191)::ok_type>); if ((__builtin_expect
(!!(tryResult1191.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1185 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1185)::ok_type>); if ((__builtin_expect(!!(tryResult1185.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1185.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1185.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14283); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14283); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1186 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1186.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1186.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14286, mozilla::dom::quota::Severity::Error); return tryResult1186.propagateErr(); } const int64_t& fileSize = tryResult1186.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14288); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14288); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1187 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult1187.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult1187.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14297, mozilla::dom::quota::Severity::Error); return tryResult1187.propagateErr(); } const auto& stmt = tryResult1187.inspect();; {auto tryResult1188 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1188)::ok_type>); if ((__builtin_expect(!!(tryResult1188.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1188.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14299, mozilla::dom::quota::Severity::Error); return tryResult1188.propagateErr(); }}; {auto tryResult1189 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1189)::ok_type>); if ((__builtin_expect(!!(tryResult1189.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1189.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14301, mozilla::dom::quota::Severity::Error); return tryResult1189.propagateErr(); }}; {auto tryResult1190 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1190.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14303, mozilla::dom::quota::Severity::Error); return tryResult1190.propagateErr(); }}; return Ok{}; }())"
, tryResult1191.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14305, mozilla::dom::quota::Severity::Warning); }}
14283 MOZ_ASSERT(vacuumTime > 0);{auto tryResult1191 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1185 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1185)::ok_type>); if ((__builtin_expect(!!(tryResult1185
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1185.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14280, mozilla::dom::quota::Severity::Error); return tryResult1185
.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(vacuumTime > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14283
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { MOZ_CrashSequence(__null, 14283); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1186 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1186
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )"
, tryResult1186.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14286, mozilla::dom::quota::Severity::Error); return tryResult1186
.propagateErr(); } const int64_t& fileSize = tryResult1186
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(fileSize > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("fileSize > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14288
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"
); do { MOZ_CrashSequence(__null, 14288); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto tryResult1187
= (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement
> >( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(aConnection)>::CreateStatement), (aConnection
), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns
)); if ((__builtin_expect(!!(tryResult1187.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)"
, tryResult1187.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14297, mozilla::dom::quota::Severity::Error); return tryResult1187
.propagateErr(); } const auto& stmt = tryResult1187.inspect
();; {auto tryResult1188 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1188)::ok_type>); if ((__builtin_expect(!!(tryResult1188
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1188.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14299, mozilla::dom::quota::Severity::Error); return tryResult1188
.propagateErr(); }}; {auto tryResult1189 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1189)::ok_type>); if ((__builtin_expect
(!!(tryResult1189.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1189
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14301, mozilla::dom::quota::Severity::Error); return tryResult1189
.propagateErr(); }}; {auto tryResult1190 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1190.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14303, mozilla::dom::quota::Severity::Error); return tryResult1190
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1191)::ok_type>); if ((__builtin_expect
(!!(tryResult1191.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1185 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1185)::ok_type>); if ((__builtin_expect(!!(tryResult1185.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1185.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1185.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14283); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14283); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1186 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1186.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1186.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14286, mozilla::dom::quota::Severity::Error); return tryResult1186.propagateErr(); } const int64_t& fileSize = tryResult1186.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14288); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14288); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1187 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult1187.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult1187.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14297, mozilla::dom::quota::Severity::Error); return tryResult1187.propagateErr(); } const auto& stmt = tryResult1187.inspect();; {auto tryResult1188 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1188)::ok_type>); if ((__builtin_expect(!!(tryResult1188.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1188.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14299, mozilla::dom::quota::Severity::Error); return tryResult1188.propagateErr(); }}; {auto tryResult1189 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1189)::ok_type>); if ((__builtin_expect(!!(tryResult1189.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1189.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14301, mozilla::dom::quota::Severity::Error); return tryResult1189.propagateErr(); }}; {auto tryResult1190 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1190.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14303, mozilla::dom::quota::Severity::Error); return tryResult1190.propagateErr(); }}; return Ok{}; }())"
, tryResult1191.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14305, mozilla::dom::quota::Severity::Warning); }}
14284
14285 QM_TRY_INSPECT(const int64_t& fileSize,{auto tryResult1191 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1185 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1185)::ok_type>); if ((__builtin_expect(!!(tryResult1185
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1185.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14280, mozilla::dom::quota::Severity::Error); return tryResult1185
.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(vacuumTime > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14283
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { MOZ_CrashSequence(__null, 14283); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1186 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1186
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )"
, tryResult1186.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14286, mozilla::dom::quota::Severity::Error); return tryResult1186
.propagateErr(); } const int64_t& fileSize = tryResult1186
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(fileSize > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("fileSize > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14288
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"
); do { MOZ_CrashSequence(__null, 14288); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto tryResult1187
= (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement
> >( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(aConnection)>::CreateStatement), (aConnection
), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns
)); if ((__builtin_expect(!!(tryResult1187.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)"
, tryResult1187.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14297, mozilla::dom::quota::Severity::Error); return tryResult1187
.propagateErr(); } const auto& stmt = tryResult1187.inspect
();; {auto tryResult1188 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1188)::ok_type>); if ((__builtin_expect(!!(tryResult1188
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1188.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14299, mozilla::dom::quota::Severity::Error); return tryResult1188
.propagateErr(); }}; {auto tryResult1189 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1189)::ok_type>); if ((__builtin_expect
(!!(tryResult1189.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1189
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14301, mozilla::dom::quota::Severity::Error); return tryResult1189
.propagateErr(); }}; {auto tryResult1190 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1190.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14303, mozilla::dom::quota::Severity::Error); return tryResult1190
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1191)::ok_type>); if ((__builtin_expect
(!!(tryResult1191.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1185 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1185)::ok_type>); if ((__builtin_expect(!!(tryResult1185.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1185.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1185.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14283); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14283); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1186 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1186.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1186.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14286, mozilla::dom::quota::Severity::Error); return tryResult1186.propagateErr(); } const int64_t& fileSize = tryResult1186.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14288); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14288); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1187 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult1187.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult1187.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14297, mozilla::dom::quota::Severity::Error); return tryResult1187.propagateErr(); } const auto& stmt = tryResult1187.inspect();; {auto tryResult1188 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1188)::ok_type>); if ((__builtin_expect(!!(tryResult1188.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1188.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14299, mozilla::dom::quota::Severity::Error); return tryResult1188.propagateErr(); }}; {auto tryResult1189 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1189)::ok_type>); if ((__builtin_expect(!!(tryResult1189.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1189.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14301, mozilla::dom::quota::Severity::Error); return tryResult1189.propagateErr(); }}; {auto tryResult1190 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1190.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14303, mozilla::dom::quota::Severity::Error); return tryResult1190.propagateErr(); }}; return Ok{}; }())"
, tryResult1191.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14305, mozilla::dom::quota::Severity::Warning); }}
14286 MOZ_TO_RESULT_INVOKE_MEMBER(aDatabaseFile, GetFileSize));{auto tryResult1191 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1185 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1185)::ok_type>); if ((__builtin_expect(!!(tryResult1185
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1185.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14280, mozilla::dom::quota::Severity::Error); return tryResult1185
.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(vacuumTime > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14283
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { MOZ_CrashSequence(__null, 14283); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1186 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1186
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )"
, tryResult1186.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14286, mozilla::dom::quota::Severity::Error); return tryResult1186
.propagateErr(); } const int64_t& fileSize = tryResult1186
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(fileSize > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("fileSize > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14288
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"
); do { MOZ_CrashSequence(__null, 14288); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto tryResult1187
= (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement
> >( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(aConnection)>::CreateStatement), (aConnection
), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns
)); if ((__builtin_expect(!!(tryResult1187.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)"
, tryResult1187.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14297, mozilla::dom::quota::Severity::Error); return tryResult1187
.propagateErr(); } const auto& stmt = tryResult1187.inspect
();; {auto tryResult1188 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1188)::ok_type>); if ((__builtin_expect(!!(tryResult1188
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1188.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14299, mozilla::dom::quota::Severity::Error); return tryResult1188
.propagateErr(); }}; {auto tryResult1189 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1189)::ok_type>); if ((__builtin_expect
(!!(tryResult1189.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1189
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14301, mozilla::dom::quota::Severity::Error); return tryResult1189
.propagateErr(); }}; {auto tryResult1190 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1190.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14303, mozilla::dom::quota::Severity::Error); return tryResult1190
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1191)::ok_type>); if ((__builtin_expect
(!!(tryResult1191.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1185 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1185)::ok_type>); if ((__builtin_expect(!!(tryResult1185.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1185.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1185.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14283); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14283); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1186 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1186.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1186.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14286, mozilla::dom::quota::Severity::Error); return tryResult1186.propagateErr(); } const int64_t& fileSize = tryResult1186.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14288); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14288); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1187 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult1187.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult1187.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14297, mozilla::dom::quota::Severity::Error); return tryResult1187.propagateErr(); } const auto& stmt = tryResult1187.inspect();; {auto tryResult1188 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1188)::ok_type>); if ((__builtin_expect(!!(tryResult1188.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1188.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14299, mozilla::dom::quota::Severity::Error); return tryResult1188.propagateErr(); }}; {auto tryResult1189 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1189)::ok_type>); if ((__builtin_expect(!!(tryResult1189.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1189.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14301, mozilla::dom::quota::Severity::Error); return tryResult1189.propagateErr(); }}; {auto tryResult1190 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1190.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14303, mozilla::dom::quota::Severity::Error); return tryResult1190.propagateErr(); }}; return Ok{}; }())"
, tryResult1191.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14305, mozilla::dom::quota::Severity::Warning); }}
14287
14288 MOZ_ASSERT(fileSize > 0);{auto tryResult1191 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1185 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1185)::ok_type>); if ((__builtin_expect(!!(tryResult1185
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1185.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14280, mozilla::dom::quota::Severity::Error); return tryResult1185
.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(vacuumTime > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14283
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { MOZ_CrashSequence(__null, 14283); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1186 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1186
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )"
, tryResult1186.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14286, mozilla::dom::quota::Severity::Error); return tryResult1186
.propagateErr(); } const int64_t& fileSize = tryResult1186
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(fileSize > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("fileSize > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14288
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"
); do { MOZ_CrashSequence(__null, 14288); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto tryResult1187
= (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement
> >( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(aConnection)>::CreateStatement), (aConnection
), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns
)); if ((__builtin_expect(!!(tryResult1187.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)"
, tryResult1187.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14297, mozilla::dom::quota::Severity::Error); return tryResult1187
.propagateErr(); } const auto& stmt = tryResult1187.inspect
();; {auto tryResult1188 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1188)::ok_type>); if ((__builtin_expect(!!(tryResult1188
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1188.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14299, mozilla::dom::quota::Severity::Error); return tryResult1188
.propagateErr(); }}; {auto tryResult1189 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1189)::ok_type>); if ((__builtin_expect
(!!(tryResult1189.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1189
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14301, mozilla::dom::quota::Severity::Error); return tryResult1189
.propagateErr(); }}; {auto tryResult1190 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1190.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14303, mozilla::dom::quota::Severity::Error); return tryResult1190
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1191)::ok_type>); if ((__builtin_expect
(!!(tryResult1191.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1185 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1185)::ok_type>); if ((__builtin_expect(!!(tryResult1185.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1185.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1185.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14283); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14283); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1186 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1186.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1186.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14286, mozilla::dom::quota::Severity::Error); return tryResult1186.propagateErr(); } const int64_t& fileSize = tryResult1186.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14288); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14288); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1187 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult1187.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult1187.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14297, mozilla::dom::quota::Severity::Error); return tryResult1187.propagateErr(); } const auto& stmt = tryResult1187.inspect();; {auto tryResult1188 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1188)::ok_type>); if ((__builtin_expect(!!(tryResult1188.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1188.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14299, mozilla::dom::quota::Severity::Error); return tryResult1188.propagateErr(); }}; {auto tryResult1189 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1189)::ok_type>); if ((__builtin_expect(!!(tryResult1189.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1189.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14301, mozilla::dom::quota::Severity::Error); return tryResult1189.propagateErr(); }}; {auto tryResult1190 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1190.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14303, mozilla::dom::quota::Severity::Error); return tryResult1190.propagateErr(); }}; return Ok{}; }())"
, tryResult1191.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14305, mozilla::dom::quota::Severity::Warning); }}
14289
14290 // The parameter names are not used, parameters are bound by index only{auto tryResult1191 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1185 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1185)::ok_type>); if ((__builtin_expect(!!(tryResult1185
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1185.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14280, mozilla::dom::quota::Severity::Error); return tryResult1185
.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(vacuumTime > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14283
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { MOZ_CrashSequence(__null, 14283); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1186 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1186
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )"
, tryResult1186.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14286, mozilla::dom::quota::Severity::Error); return tryResult1186
.propagateErr(); } const int64_t& fileSize = tryResult1186
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(fileSize > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("fileSize > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14288
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"
); do { MOZ_CrashSequence(__null, 14288); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto tryResult1187
= (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement
> >( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(aConnection)>::CreateStatement), (aConnection
), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns
)); if ((__builtin_expect(!!(tryResult1187.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)"
, tryResult1187.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14297, mozilla::dom::quota::Severity::Error); return tryResult1187
.propagateErr(); } const auto& stmt = tryResult1187.inspect
();; {auto tryResult1188 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1188)::ok_type>); if ((__builtin_expect(!!(tryResult1188
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1188.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14299, mozilla::dom::quota::Severity::Error); return tryResult1188
.propagateErr(); }}; {auto tryResult1189 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1189)::ok_type>); if ((__builtin_expect
(!!(tryResult1189.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1189
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14301, mozilla::dom::quota::Severity::Error); return tryResult1189
.propagateErr(); }}; {auto tryResult1190 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1190.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14303, mozilla::dom::quota::Severity::Error); return tryResult1190
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1191)::ok_type>); if ((__builtin_expect
(!!(tryResult1191.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1185 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1185)::ok_type>); if ((__builtin_expect(!!(tryResult1185.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1185.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1185.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14283); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14283); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1186 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1186.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1186.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14286, mozilla::dom::quota::Severity::Error); return tryResult1186.propagateErr(); } const int64_t& fileSize = tryResult1186.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14288); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14288); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1187 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult1187.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult1187.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14297, mozilla::dom::quota::Severity::Error); return tryResult1187.propagateErr(); } const auto& stmt = tryResult1187.inspect();; {auto tryResult1188 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1188)::ok_type>); if ((__builtin_expect(!!(tryResult1188.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1188.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14299, mozilla::dom::quota::Severity::Error); return tryResult1188.propagateErr(); }}; {auto tryResult1189 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1189)::ok_type>); if ((__builtin_expect(!!(tryResult1189.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1189.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14301, mozilla::dom::quota::Severity::Error); return tryResult1189.propagateErr(); }}; {auto tryResult1190 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1190.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14303, mozilla::dom::quota::Severity::Error); return tryResult1190.propagateErr(); }}; return Ok{}; }())"
, tryResult1191.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14305, mozilla::dom::quota::Severity::Warning); }}
14291 // locally in the same function.{auto tryResult1191 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1185 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1185)::ok_type>); if ((__builtin_expect(!!(tryResult1185
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1185.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14280, mozilla::dom::quota::Severity::Error); return tryResult1185
.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(vacuumTime > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14283
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { MOZ_CrashSequence(__null, 14283); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1186 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1186
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )"
, tryResult1186.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14286, mozilla::dom::quota::Severity::Error); return tryResult1186
.propagateErr(); } const int64_t& fileSize = tryResult1186
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(fileSize > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("fileSize > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14288
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"
); do { MOZ_CrashSequence(__null, 14288); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto tryResult1187
= (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement
> >( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(aConnection)>::CreateStatement), (aConnection
), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns
)); if ((__builtin_expect(!!(tryResult1187.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)"
, tryResult1187.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14297, mozilla::dom::quota::Severity::Error); return tryResult1187
.propagateErr(); } const auto& stmt = tryResult1187.inspect
();; {auto tryResult1188 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1188)::ok_type>); if ((__builtin_expect(!!(tryResult1188
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1188.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14299, mozilla::dom::quota::Severity::Error); return tryResult1188
.propagateErr(); }}; {auto tryResult1189 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1189)::ok_type>); if ((__builtin_expect
(!!(tryResult1189.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1189
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14301, mozilla::dom::quota::Severity::Error); return tryResult1189
.propagateErr(); }}; {auto tryResult1190 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1190.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14303, mozilla::dom::quota::Severity::Error); return tryResult1190
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1191)::ok_type>); if ((__builtin_expect
(!!(tryResult1191.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1185 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1185)::ok_type>); if ((__builtin_expect(!!(tryResult1185.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1185.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1185.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14283); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14283); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1186 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1186.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1186.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14286, mozilla::dom::quota::Severity::Error); return tryResult1186.propagateErr(); } const int64_t& fileSize = tryResult1186.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14288); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14288); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1187 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult1187.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult1187.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14297, mozilla::dom::quota::Severity::Error); return tryResult1187.propagateErr(); } const auto& stmt = tryResult1187.inspect();; {auto tryResult1188 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1188)::ok_type>); if ((__builtin_expect(!!(tryResult1188.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1188.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14299, mozilla::dom::quota::Severity::Error); return tryResult1188.propagateErr(); }}; {auto tryResult1189 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1189)::ok_type>); if ((__builtin_expect(!!(tryResult1189.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1189.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14301, mozilla::dom::quota::Severity::Error); return tryResult1189.propagateErr(); }}; {auto tryResult1190 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1190.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14303, mozilla::dom::quota::Severity::Error); return tryResult1190.propagateErr(); }}; return Ok{}; }())"
, tryResult1191.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14305, mozilla::dom::quota::Severity::Warning); }}
14292 QM_TRY_INSPECT(const auto& stmt, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED({auto tryResult1191 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1185 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1185)::ok_type>); if ((__builtin_expect(!!(tryResult1185
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1185.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14280, mozilla::dom::quota::Severity::Error); return tryResult1185
.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(vacuumTime > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14283
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { MOZ_CrashSequence(__null, 14283); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1186 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1186
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )"
, tryResult1186.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14286, mozilla::dom::quota::Severity::Error); return tryResult1186
.propagateErr(); } const int64_t& fileSize = tryResult1186
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(fileSize > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("fileSize > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14288
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"
); do { MOZ_CrashSequence(__null, 14288); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto tryResult1187
= (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement
> >( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(aConnection)>::CreateStatement), (aConnection
), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns
)); if ((__builtin_expect(!!(tryResult1187.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)"
, tryResult1187.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14297, mozilla::dom::quota::Severity::Error); return tryResult1187
.propagateErr(); } const auto& stmt = tryResult1187.inspect
();; {auto tryResult1188 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1188)::ok_type>); if ((__builtin_expect(!!(tryResult1188
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1188.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14299, mozilla::dom::quota::Severity::Error); return tryResult1188
.propagateErr(); }}; {auto tryResult1189 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1189)::ok_type>); if ((__builtin_expect
(!!(tryResult1189.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1189
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14301, mozilla::dom::quota::Severity::Error); return tryResult1189
.propagateErr(); }}; {auto tryResult1190 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1190.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14303, mozilla::dom::quota::Severity::Error); return tryResult1190
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1191)::ok_type>); if ((__builtin_expect
(!!(tryResult1191.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1185 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1185)::ok_type>); if ((__builtin_expect(!!(tryResult1185.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1185.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1185.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14283); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14283); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1186 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1186.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1186.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14286, mozilla::dom::quota::Severity::Error); return tryResult1186.propagateErr(); } const int64_t& fileSize = tryResult1186.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14288); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14288); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1187 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult1187.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult1187.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14297, mozilla::dom::quota::Severity::Error); return tryResult1187.propagateErr(); } const auto& stmt = tryResult1187.inspect();; {auto tryResult1188 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1188)::ok_type>); if ((__builtin_expect(!!(tryResult1188.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1188.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14299, mozilla::dom::quota::Severity::Error); return tryResult1188.propagateErr(); }}; {auto tryResult1189 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1189)::ok_type>); if ((__builtin_expect(!!(tryResult1189.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1189.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14301, mozilla::dom::quota::Severity::Error); return tryResult1189.propagateErr(); }}; {auto tryResult1190 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1190.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14303, mozilla::dom::quota::Severity::Error); return tryResult1190.propagateErr(); }}; return Ok{}; }())"
, tryResult1191.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14305, mozilla::dom::quota::Severity::Warning); }}
14293 nsCOMPtr<mozIStorageStatement>,{auto tryResult1191 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1185 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1185)::ok_type>); if ((__builtin_expect(!!(tryResult1185
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1185.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14280, mozilla::dom::quota::Severity::Error); return tryResult1185
.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(vacuumTime > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14283
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { MOZ_CrashSequence(__null, 14283); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1186 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1186
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )"
, tryResult1186.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14286, mozilla::dom::quota::Severity::Error); return tryResult1186
.propagateErr(); } const int64_t& fileSize = tryResult1186
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(fileSize > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("fileSize > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14288
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"
); do { MOZ_CrashSequence(__null, 14288); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto tryResult1187
= (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement
> >( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(aConnection)>::CreateStatement), (aConnection
), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns
)); if ((__builtin_expect(!!(tryResult1187.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)"
, tryResult1187.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14297, mozilla::dom::quota::Severity::Error); return tryResult1187
.propagateErr(); } const auto& stmt = tryResult1187.inspect
();; {auto tryResult1188 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1188)::ok_type>); if ((__builtin_expect(!!(tryResult1188
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1188.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14299, mozilla::dom::quota::Severity::Error); return tryResult1188
.propagateErr(); }}; {auto tryResult1189 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1189)::ok_type>); if ((__builtin_expect
(!!(tryResult1189.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1189
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14301, mozilla::dom::quota::Severity::Error); return tryResult1189
.propagateErr(); }}; {auto tryResult1190 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1190.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14303, mozilla::dom::quota::Severity::Error); return tryResult1190
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1191)::ok_type>); if ((__builtin_expect
(!!(tryResult1191.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1185 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1185)::ok_type>); if ((__builtin_expect(!!(tryResult1185.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1185.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1185.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14283); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14283); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1186 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1186.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1186.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14286, mozilla::dom::quota::Severity::Error); return tryResult1186.propagateErr(); } const int64_t& fileSize = tryResult1186.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14288); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14288); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1187 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult1187.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult1187.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14297, mozilla::dom::quota::Severity::Error); return tryResult1187.propagateErr(); } const auto& stmt = tryResult1187.inspect();; {auto tryResult1188 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1188)::ok_type>); if ((__builtin_expect(!!(tryResult1188.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1188.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14299, mozilla::dom::quota::Severity::Error); return tryResult1188.propagateErr(); }}; {auto tryResult1189 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1189)::ok_type>); if ((__builtin_expect(!!(tryResult1189.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1189.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14301, mozilla::dom::quota::Severity::Error); return tryResult1189.propagateErr(); }}; {auto tryResult1190 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1190.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14303, mozilla::dom::quota::Severity::Error); return tryResult1190.propagateErr(); }}; return Ok{}; }())"
, tryResult1191.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14305, mozilla::dom::quota::Severity::Warning); }}
14294 aConnection, CreateStatement,{auto tryResult1191 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1185 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1185)::ok_type>); if ((__builtin_expect(!!(tryResult1185
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1185.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14280, mozilla::dom::quota::Severity::Error); return tryResult1185
.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(vacuumTime > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14283
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { MOZ_CrashSequence(__null, 14283); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1186 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1186
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )"
, tryResult1186.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14286, mozilla::dom::quota::Severity::Error); return tryResult1186
.propagateErr(); } const int64_t& fileSize = tryResult1186
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(fileSize > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("fileSize > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14288
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"
); do { MOZ_CrashSequence(__null, 14288); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto tryResult1187
= (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement
> >( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(aConnection)>::CreateStatement), (aConnection
), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns
)); if ((__builtin_expect(!!(tryResult1187.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)"
, tryResult1187.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14297, mozilla::dom::quota::Severity::Error); return tryResult1187
.propagateErr(); } const auto& stmt = tryResult1187.inspect
();; {auto tryResult1188 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1188)::ok_type>); if ((__builtin_expect(!!(tryResult1188
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1188.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14299, mozilla::dom::quota::Severity::Error); return tryResult1188
.propagateErr(); }}; {auto tryResult1189 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1189)::ok_type>); if ((__builtin_expect
(!!(tryResult1189.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1189
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14301, mozilla::dom::quota::Severity::Error); return tryResult1189
.propagateErr(); }}; {auto tryResult1190 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1190.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14303, mozilla::dom::quota::Severity::Error); return tryResult1190
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1191)::ok_type>); if ((__builtin_expect
(!!(tryResult1191.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1185 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1185)::ok_type>); if ((__builtin_expect(!!(tryResult1185.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1185.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1185.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14283); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14283); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1186 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1186.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1186.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14286, mozilla::dom::quota::Severity::Error); return tryResult1186.propagateErr(); } const int64_t& fileSize = tryResult1186.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14288); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14288); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1187 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult1187.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult1187.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14297, mozilla::dom::quota::Severity::Error); return tryResult1187.propagateErr(); } const auto& stmt = tryResult1187.inspect();; {auto tryResult1188 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1188)::ok_type>); if ((__builtin_expect(!!(tryResult1188.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1188.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14299, mozilla::dom::quota::Severity::Error); return tryResult1188.propagateErr(); }}; {auto tryResult1189 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1189)::ok_type>); if ((__builtin_expect(!!(tryResult1189.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1189.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14301, mozilla::dom::quota::Severity::Error); return tryResult1189.propagateErr(); }}; {auto tryResult1190 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1190.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14303, mozilla::dom::quota::Severity::Error); return tryResult1190.propagateErr(); }}; return Ok{}; }())"
, tryResult1191.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14305, mozilla::dom::quota::Severity::Warning); }}
14295 "UPDATE database "{auto tryResult1191 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1185 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1185)::ok_type>); if ((__builtin_expect(!!(tryResult1185
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1185.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14280, mozilla::dom::quota::Severity::Error); return tryResult1185
.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(vacuumTime > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14283
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { MOZ_CrashSequence(__null, 14283); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1186 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1186
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )"
, tryResult1186.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14286, mozilla::dom::quota::Severity::Error); return tryResult1186
.propagateErr(); } const int64_t& fileSize = tryResult1186
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(fileSize > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("fileSize > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14288
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"
); do { MOZ_CrashSequence(__null, 14288); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto tryResult1187
= (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement
> >( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(aConnection)>::CreateStatement), (aConnection
), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns
)); if ((__builtin_expect(!!(tryResult1187.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)"
, tryResult1187.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14297, mozilla::dom::quota::Severity::Error); return tryResult1187
.propagateErr(); } const auto& stmt = tryResult1187.inspect
();; {auto tryResult1188 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1188)::ok_type>); if ((__builtin_expect(!!(tryResult1188
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1188.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14299, mozilla::dom::quota::Severity::Error); return tryResult1188
.propagateErr(); }}; {auto tryResult1189 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1189)::ok_type>); if ((__builtin_expect
(!!(tryResult1189.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1189
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14301, mozilla::dom::quota::Severity::Error); return tryResult1189
.propagateErr(); }}; {auto tryResult1190 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1190.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14303, mozilla::dom::quota::Severity::Error); return tryResult1190
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1191)::ok_type>); if ((__builtin_expect
(!!(tryResult1191.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1185 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1185)::ok_type>); if ((__builtin_expect(!!(tryResult1185.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1185.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1185.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14283); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14283); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1186 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1186.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1186.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14286, mozilla::dom::quota::Severity::Error); return tryResult1186.propagateErr(); } const int64_t& fileSize = tryResult1186.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14288); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14288); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1187 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult1187.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult1187.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14297, mozilla::dom::quota::Severity::Error); return tryResult1187.propagateErr(); } const auto& stmt = tryResult1187.inspect();; {auto tryResult1188 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1188)::ok_type>); if ((__builtin_expect(!!(tryResult1188.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1188.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14299, mozilla::dom::quota::Severity::Error); return tryResult1188.propagateErr(); }}; {auto tryResult1189 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1189)::ok_type>); if ((__builtin_expect(!!(tryResult1189.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1189.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14301, mozilla::dom::quota::Severity::Error); return tryResult1189.propagateErr(); }}; {auto tryResult1190 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1190.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14303, mozilla::dom::quota::Severity::Error); return tryResult1190.propagateErr(); }}; return Ok{}; }())"
, tryResult1191.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14305, mozilla::dom::quota::Severity::Warning); }}
14296 "SET last_vacuum_time = :time"{auto tryResult1191 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1185 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1185)::ok_type>); if ((__builtin_expect(!!(tryResult1185
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1185.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14280, mozilla::dom::quota::Severity::Error); return tryResult1185
.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(vacuumTime > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14283
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { MOZ_CrashSequence(__null, 14283); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1186 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1186
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )"
, tryResult1186.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14286, mozilla::dom::quota::Severity::Error); return tryResult1186
.propagateErr(); } const int64_t& fileSize = tryResult1186
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(fileSize > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("fileSize > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14288
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"
); do { MOZ_CrashSequence(__null, 14288); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto tryResult1187
= (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement
> >( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(aConnection)>::CreateStatement), (aConnection
), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns
)); if ((__builtin_expect(!!(tryResult1187.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)"
, tryResult1187.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14297, mozilla::dom::quota::Severity::Error); return tryResult1187
.propagateErr(); } const auto& stmt = tryResult1187.inspect
();; {auto tryResult1188 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1188)::ok_type>); if ((__builtin_expect(!!(tryResult1188
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1188.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14299, mozilla::dom::quota::Severity::Error); return tryResult1188
.propagateErr(); }}; {auto tryResult1189 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1189)::ok_type>); if ((__builtin_expect
(!!(tryResult1189.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1189
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14301, mozilla::dom::quota::Severity::Error); return tryResult1189
.propagateErr(); }}; {auto tryResult1190 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1190.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14303, mozilla::dom::quota::Severity::Error); return tryResult1190
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1191)::ok_type>); if ((__builtin_expect
(!!(tryResult1191.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1185 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1185)::ok_type>); if ((__builtin_expect(!!(tryResult1185.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1185.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1185.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14283); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14283); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1186 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1186.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1186.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14286, mozilla::dom::quota::Severity::Error); return tryResult1186.propagateErr(); } const int64_t& fileSize = tryResult1186.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14288); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14288); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1187 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult1187.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult1187.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14297, mozilla::dom::quota::Severity::Error); return tryResult1187.propagateErr(); } const auto& stmt = tryResult1187.inspect();; {auto tryResult1188 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1188)::ok_type>); if ((__builtin_expect(!!(tryResult1188.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1188.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14299, mozilla::dom::quota::Severity::Error); return tryResult1188.propagateErr(); }}; {auto tryResult1189 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1189)::ok_type>); if ((__builtin_expect(!!(tryResult1189.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1189.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14301, mozilla::dom::quota::Severity::Error); return tryResult1189.propagateErr(); }}; {auto tryResult1190 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1190.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14303, mozilla::dom::quota::Severity::Error); return tryResult1190.propagateErr(); }}; return Ok{}; }())"
, tryResult1191.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14305, mozilla::dom::quota::Severity::Warning); }}
14297 ", last_vacuum_size = :size;"_ns));{auto tryResult1191 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1185 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1185)::ok_type>); if ((__builtin_expect(!!(tryResult1185
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1185.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14280, mozilla::dom::quota::Severity::Error); return tryResult1185
.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(vacuumTime > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14283
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { MOZ_CrashSequence(__null, 14283); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1186 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1186
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )"
, tryResult1186.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14286, mozilla::dom::quota::Severity::Error); return tryResult1186
.propagateErr(); } const int64_t& fileSize = tryResult1186
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(fileSize > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("fileSize > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14288
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"
); do { MOZ_CrashSequence(__null, 14288); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto tryResult1187
= (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement
> >( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(aConnection)>::CreateStatement), (aConnection
), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns
)); if ((__builtin_expect(!!(tryResult1187.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)"
, tryResult1187.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14297, mozilla::dom::quota::Severity::Error); return tryResult1187
.propagateErr(); } const auto& stmt = tryResult1187.inspect
();; {auto tryResult1188 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1188)::ok_type>); if ((__builtin_expect(!!(tryResult1188
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1188.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14299, mozilla::dom::quota::Severity::Error); return tryResult1188
.propagateErr(); }}; {auto tryResult1189 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1189)::ok_type>); if ((__builtin_expect
(!!(tryResult1189.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1189
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14301, mozilla::dom::quota::Severity::Error); return tryResult1189
.propagateErr(); }}; {auto tryResult1190 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1190.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14303, mozilla::dom::quota::Severity::Error); return tryResult1190
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1191)::ok_type>); if ((__builtin_expect
(!!(tryResult1191.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1185 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1185)::ok_type>); if ((__builtin_expect(!!(tryResult1185.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1185.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1185.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14283); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14283); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1186 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1186.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1186.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14286, mozilla::dom::quota::Severity::Error); return tryResult1186.propagateErr(); } const int64_t& fileSize = tryResult1186.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14288); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14288); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1187 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult1187.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult1187.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14297, mozilla::dom::quota::Severity::Error); return tryResult1187.propagateErr(); } const auto& stmt = tryResult1187.inspect();; {auto tryResult1188 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1188)::ok_type>); if ((__builtin_expect(!!(tryResult1188.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1188.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14299, mozilla::dom::quota::Severity::Error); return tryResult1188.propagateErr(); }}; {auto tryResult1189 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1189)::ok_type>); if ((__builtin_expect(!!(tryResult1189.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1189.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14301, mozilla::dom::quota::Severity::Error); return tryResult1189.propagateErr(); }}; {auto tryResult1190 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1190.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14303, mozilla::dom::quota::Severity::Error); return tryResult1190.propagateErr(); }}; return Ok{}; }())"
, tryResult1191.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14305, mozilla::dom::quota::Severity::Warning); }}
14298
14299 QM_TRY(MOZ_TO_RESULT(stmt->BindInt64ByIndex(0, vacuumTime)));{auto tryResult1191 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1185 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1185)::ok_type>); if ((__builtin_expect(!!(tryResult1185
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1185.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14280, mozilla::dom::quota::Severity::Error); return tryResult1185
.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(vacuumTime > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14283
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { MOZ_CrashSequence(__null, 14283); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1186 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1186
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )"
, tryResult1186.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14286, mozilla::dom::quota::Severity::Error); return tryResult1186
.propagateErr(); } const int64_t& fileSize = tryResult1186
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(fileSize > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("fileSize > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14288
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"
); do { MOZ_CrashSequence(__null, 14288); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto tryResult1187
= (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement
> >( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(aConnection)>::CreateStatement), (aConnection
), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns
)); if ((__builtin_expect(!!(tryResult1187.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)"
, tryResult1187.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14297, mozilla::dom::quota::Severity::Error); return tryResult1187
.propagateErr(); } const auto& stmt = tryResult1187.inspect
();; {auto tryResult1188 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1188)::ok_type>); if ((__builtin_expect(!!(tryResult1188
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1188.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14299, mozilla::dom::quota::Severity::Error); return tryResult1188
.propagateErr(); }}; {auto tryResult1189 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1189)::ok_type>); if ((__builtin_expect
(!!(tryResult1189.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1189
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14301, mozilla::dom::quota::Severity::Error); return tryResult1189
.propagateErr(); }}; {auto tryResult1190 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1190.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14303, mozilla::dom::quota::Severity::Error); return tryResult1190
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1191)::ok_type>); if ((__builtin_expect
(!!(tryResult1191.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1185 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1185)::ok_type>); if ((__builtin_expect(!!(tryResult1185.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1185.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1185.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14283); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14283); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1186 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1186.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1186.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14286, mozilla::dom::quota::Severity::Error); return tryResult1186.propagateErr(); } const int64_t& fileSize = tryResult1186.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14288); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14288); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1187 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult1187.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult1187.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14297, mozilla::dom::quota::Severity::Error); return tryResult1187.propagateErr(); } const auto& stmt = tryResult1187.inspect();; {auto tryResult1188 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1188)::ok_type>); if ((__builtin_expect(!!(tryResult1188.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1188.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14299, mozilla::dom::quota::Severity::Error); return tryResult1188.propagateErr(); }}; {auto tryResult1189 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1189)::ok_type>); if ((__builtin_expect(!!(tryResult1189.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1189.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14301, mozilla::dom::quota::Severity::Error); return tryResult1189.propagateErr(); }}; {auto tryResult1190 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1190.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14303, mozilla::dom::quota::Severity::Error); return tryResult1190.propagateErr(); }}; return Ok{}; }())"
, tryResult1191.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14305, mozilla::dom::quota::Severity::Warning); }}
14300
14301 QM_TRY(MOZ_TO_RESULT(stmt->BindInt64ByIndex(1, fileSize)));{auto tryResult1191 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1185 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1185)::ok_type>); if ((__builtin_expect(!!(tryResult1185
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1185.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14280, mozilla::dom::quota::Severity::Error); return tryResult1185
.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(vacuumTime > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14283
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { MOZ_CrashSequence(__null, 14283); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1186 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1186
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )"
, tryResult1186.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14286, mozilla::dom::quota::Severity::Error); return tryResult1186
.propagateErr(); } const int64_t& fileSize = tryResult1186
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(fileSize > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("fileSize > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14288
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"
); do { MOZ_CrashSequence(__null, 14288); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto tryResult1187
= (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement
> >( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(aConnection)>::CreateStatement), (aConnection
), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns
)); if ((__builtin_expect(!!(tryResult1187.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)"
, tryResult1187.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14297, mozilla::dom::quota::Severity::Error); return tryResult1187
.propagateErr(); } const auto& stmt = tryResult1187.inspect
();; {auto tryResult1188 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1188)::ok_type>); if ((__builtin_expect(!!(tryResult1188
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1188.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14299, mozilla::dom::quota::Severity::Error); return tryResult1188
.propagateErr(); }}; {auto tryResult1189 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1189)::ok_type>); if ((__builtin_expect
(!!(tryResult1189.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1189
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14301, mozilla::dom::quota::Severity::Error); return tryResult1189
.propagateErr(); }}; {auto tryResult1190 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1190.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14303, mozilla::dom::quota::Severity::Error); return tryResult1190
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1191)::ok_type>); if ((__builtin_expect
(!!(tryResult1191.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1185 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1185)::ok_type>); if ((__builtin_expect(!!(tryResult1185.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1185.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1185.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14283); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14283); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1186 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1186.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1186.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14286, mozilla::dom::quota::Severity::Error); return tryResult1186.propagateErr(); } const int64_t& fileSize = tryResult1186.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14288); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14288); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1187 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult1187.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult1187.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14297, mozilla::dom::quota::Severity::Error); return tryResult1187.propagateErr(); } const auto& stmt = tryResult1187.inspect();; {auto tryResult1188 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1188)::ok_type>); if ((__builtin_expect(!!(tryResult1188.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1188.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14299, mozilla::dom::quota::Severity::Error); return tryResult1188.propagateErr(); }}; {auto tryResult1189 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1189)::ok_type>); if ((__builtin_expect(!!(tryResult1189.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1189.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14301, mozilla::dom::quota::Severity::Error); return tryResult1189.propagateErr(); }}; {auto tryResult1190 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1190.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14303, mozilla::dom::quota::Severity::Error); return tryResult1190.propagateErr(); }}; return Ok{}; }())"
, tryResult1191.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14305, mozilla::dom::quota::Severity::Warning); }}
14302
14303 QM_TRY(MOZ_TO_RESULT(stmt->Execute()));{auto tryResult1191 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1185 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1185)::ok_type>); if ((__builtin_expect(!!(tryResult1185
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1185.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14280, mozilla::dom::quota::Severity::Error); return tryResult1185
.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(vacuumTime > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14283
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { MOZ_CrashSequence(__null, 14283); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1186 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1186
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )"
, tryResult1186.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14286, mozilla::dom::quota::Severity::Error); return tryResult1186
.propagateErr(); } const int64_t& fileSize = tryResult1186
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(fileSize > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("fileSize > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14288
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"
); do { MOZ_CrashSequence(__null, 14288); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto tryResult1187
= (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement
> >( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(aConnection)>::CreateStatement), (aConnection
), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns
)); if ((__builtin_expect(!!(tryResult1187.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)"
, tryResult1187.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14297, mozilla::dom::quota::Severity::Error); return tryResult1187
.propagateErr(); } const auto& stmt = tryResult1187.inspect
();; {auto tryResult1188 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1188)::ok_type>); if ((__builtin_expect(!!(tryResult1188
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1188.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14299, mozilla::dom::quota::Severity::Error); return tryResult1188
.propagateErr(); }}; {auto tryResult1189 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1189)::ok_type>); if ((__builtin_expect
(!!(tryResult1189.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1189
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14301, mozilla::dom::quota::Severity::Error); return tryResult1189
.propagateErr(); }}; {auto tryResult1190 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1190.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14303, mozilla::dom::quota::Severity::Error); return tryResult1190
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1191)::ok_type>); if ((__builtin_expect
(!!(tryResult1191.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1185 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1185)::ok_type>); if ((__builtin_expect(!!(tryResult1185.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1185.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1185.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14283); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14283); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1186 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1186.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1186.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14286, mozilla::dom::quota::Severity::Error); return tryResult1186.propagateErr(); } const int64_t& fileSize = tryResult1186.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14288); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14288); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1187 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult1187.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult1187.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14297, mozilla::dom::quota::Severity::Error); return tryResult1187.propagateErr(); } const auto& stmt = tryResult1187.inspect();; {auto tryResult1188 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1188)::ok_type>); if ((__builtin_expect(!!(tryResult1188.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1188.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14299, mozilla::dom::quota::Severity::Error); return tryResult1188.propagateErr(); }}; {auto tryResult1189 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1189)::ok_type>); if ((__builtin_expect(!!(tryResult1189.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1189.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14301, mozilla::dom::quota::Severity::Error); return tryResult1189.propagateErr(); }}; {auto tryResult1190 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1190.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14303, mozilla::dom::quota::Severity::Error); return tryResult1190.propagateErr(); }}; return Ok{}; }())"
, tryResult1191.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14305, mozilla::dom::quota::Severity::Warning); }}
14304 return Ok{};{auto tryResult1191 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1185 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1185)::ok_type>); if ((__builtin_expect(!!(tryResult1185
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1185.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14280, mozilla::dom::quota::Severity::Error); return tryResult1185
.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(vacuumTime > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14283
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { MOZ_CrashSequence(__null, 14283); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1186 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1186
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )"
, tryResult1186.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14286, mozilla::dom::quota::Severity::Error); return tryResult1186
.propagateErr(); } const int64_t& fileSize = tryResult1186
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(fileSize > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("fileSize > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14288
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"
); do { MOZ_CrashSequence(__null, 14288); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto tryResult1187
= (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement
> >( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(aConnection)>::CreateStatement), (aConnection
), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns
)); if ((__builtin_expect(!!(tryResult1187.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)"
, tryResult1187.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14297, mozilla::dom::quota::Severity::Error); return tryResult1187
.propagateErr(); } const auto& stmt = tryResult1187.inspect
();; {auto tryResult1188 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1188)::ok_type>); if ((__builtin_expect(!!(tryResult1188
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1188.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14299, mozilla::dom::quota::Severity::Error); return tryResult1188
.propagateErr(); }}; {auto tryResult1189 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1189)::ok_type>); if ((__builtin_expect
(!!(tryResult1189.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1189
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14301, mozilla::dom::quota::Severity::Error); return tryResult1189
.propagateErr(); }}; {auto tryResult1190 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1190.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14303, mozilla::dom::quota::Severity::Error); return tryResult1190
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1191)::ok_type>); if ((__builtin_expect
(!!(tryResult1191.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1185 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1185)::ok_type>); if ((__builtin_expect(!!(tryResult1185.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1185.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1185.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14283); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14283); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1186 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1186.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1186.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14286, mozilla::dom::quota::Severity::Error); return tryResult1186.propagateErr(); } const int64_t& fileSize = tryResult1186.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14288); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14288); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1187 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult1187.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult1187.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14297, mozilla::dom::quota::Severity::Error); return tryResult1187.propagateErr(); } const auto& stmt = tryResult1187.inspect();; {auto tryResult1188 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1188)::ok_type>); if ((__builtin_expect(!!(tryResult1188.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1188.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14299, mozilla::dom::quota::Severity::Error); return tryResult1188.propagateErr(); }}; {auto tryResult1189 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1189)::ok_type>); if ((__builtin_expect(!!(tryResult1189.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1189.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14301, mozilla::dom::quota::Severity::Error); return tryResult1189.propagateErr(); }}; {auto tryResult1190 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1190.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14303, mozilla::dom::quota::Severity::Error); return tryResult1190.propagateErr(); }}; return Ok{}; }())"
, tryResult1191.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14305, mozilla::dom::quota::Severity::Warning); }}
14305 }())){auto tryResult1191 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1185 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1185)::ok_type>); if ((__builtin_expect(!!(tryResult1185
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1185.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14280, mozilla::dom::quota::Severity::Error); return tryResult1185
.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(vacuumTime > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14283
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { MOZ_CrashSequence(__null, 14283); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1186 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1186
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )"
, tryResult1186.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14286, mozilla::dom::quota::Severity::Error); return tryResult1186
.propagateErr(); } const int64_t& fileSize = tryResult1186
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(fileSize > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("fileSize > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14288
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"
); do { MOZ_CrashSequence(__null, 14288); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto tryResult1187
= (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement
> >( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(aConnection)>::CreateStatement), (aConnection
), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns
)); if ((__builtin_expect(!!(tryResult1187.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)"
, tryResult1187.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14297, mozilla::dom::quota::Severity::Error); return tryResult1187
.propagateErr(); } const auto& stmt = tryResult1187.inspect
();; {auto tryResult1188 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1188)::ok_type>); if ((__builtin_expect(!!(tryResult1188
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1188.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14299, mozilla::dom::quota::Severity::Error); return tryResult1188
.propagateErr(); }}; {auto tryResult1189 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1189)::ok_type>); if ((__builtin_expect
(!!(tryResult1189.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1189
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14301, mozilla::dom::quota::Severity::Error); return tryResult1189
.propagateErr(); }}; {auto tryResult1190 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1190.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14303, mozilla::dom::quota::Severity::Error); return tryResult1190
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1191)::ok_type>); if ((__builtin_expect
(!!(tryResult1191.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1185 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1185)::ok_type>); if ((__builtin_expect(!!(tryResult1185.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1185.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1185.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14283); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14283); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1186 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1186.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1186.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14286, mozilla::dom::quota::Severity::Error); return tryResult1186.propagateErr(); } const int64_t& fileSize = tryResult1186.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14288); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14288); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1187 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult1187.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult1187.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14297, mozilla::dom::quota::Severity::Error); return tryResult1187.propagateErr(); } const auto& stmt = tryResult1187.inspect();; {auto tryResult1188 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1188)::ok_type>); if ((__builtin_expect(!!(tryResult1188.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1188.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14299, mozilla::dom::quota::Severity::Error); return tryResult1188.propagateErr(); }}; {auto tryResult1189 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1189)::ok_type>); if ((__builtin_expect(!!(tryResult1189.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1189.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14301, mozilla::dom::quota::Severity::Error); return tryResult1189.propagateErr(); }}; {auto tryResult1190 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1190.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14303, mozilla::dom::quota::Severity::Error); return tryResult1190.propagateErr(); }}; return Ok{}; }())"
, tryResult1191.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14305, mozilla::dom::quota::Severity::Warning); }}
;
14306}
14307
14308void DatabaseMaintenance::RunOnOwningThread() {
14309 AssertIsOnBackgroundThread();
14310
14311 DropDirectoryLock(mDirectoryLock);
14312
14313 if (mCompleteCallback) {
14314 MOZ_ALWAYS_SUCCEEDS(NS_DispatchToCurrentThread(mCompleteCallback.forget()))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(NS_DispatchToCurrentThread(mCompleteCallback.forget()))), 1)
))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(NS_DispatchToCurrentThread(mCompleteCallback.forget()))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14314
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(NS_DispatchToCurrentThread(mCompleteCallback.forget()))"
")"); do { MOZ_CrashSequence(__null, 14314); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
14315 }
14316
14317 mMaintenance->UnregisterDatabaseMaintenance(this);
14318}
14319
14320void DatabaseMaintenance::RunOnConnectionThread() {
14321 MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14321
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { MOZ_CrashSequence(__null, 14321); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14322 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14322
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 14322); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14323
14324 PerformMaintenanceOnDatabase();
14325
14326 MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(mMaintenance->BackgroundThread()->Dispatch(this, nsIEventTarget
::DISPATCH_NORMAL))), 1)))), 1))) { } else { do { do { } while
(false); MOZ_ReportCrash("" "NS_SUCCEEDED(mMaintenance->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14327
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mMaintenance->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { MOZ_CrashSequence(__null, 14327); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
14327 mMaintenance->BackgroundThread()->Dispatch(this, NS_DISPATCH_NORMAL))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(mMaintenance->BackgroundThread()->Dispatch(this, nsIEventTarget
::DISPATCH_NORMAL))), 1)))), 1))) { } else { do { do { } while
(false); MOZ_ReportCrash("" "NS_SUCCEEDED(mMaintenance->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14327
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mMaintenance->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { MOZ_CrashSequence(__null, 14327); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
14328}
14329
14330NS_IMETHODIMPnsresult
14331DatabaseMaintenance::Run() {
14332 if (IsOnBackgroundThread()) {
14333 RunOnOwningThread();
14334 } else {
14335 RunOnConnectionThread();
14336 }
14337
14338 return NS_OK;
14339}
14340
14341/*******************************************************************************
14342 * Local class implementations
14343 ******************************************************************************/
14344
14345// static
14346nsAutoCString DatabaseOperationBase::MaybeGetBindingClauseForKeyRange(
14347 const Maybe<SerializedKeyRange>& aOptionalKeyRange,
14348 const nsACString& aKeyColumnName) {
14349 return aOptionalKeyRange.isSome()
14350 ? GetBindingClauseForKeyRange(aOptionalKeyRange.ref(),
14351 aKeyColumnName)
14352 : nsAutoCString{};
14353}
14354
14355// static
14356nsAutoCString DatabaseOperationBase::GetBindingClauseForKeyRange(
14357 const SerializedKeyRange& aKeyRange, const nsACString& aKeyColumnName) {
14358 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14358
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 14358); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14359 MOZ_ASSERT(!aKeyColumnName.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aKeyColumnName.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!aKeyColumnName.IsEmpty())))
, 0))) { do { } while (false); MOZ_ReportAssertionFailure("!aKeyColumnName.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14359
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aKeyColumnName.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 14359); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14360
14361 constexpr auto andStr = " AND "_ns;
14362 constexpr auto spacecolon = " :"_ns;
14363
14364 nsAutoCString result;
14365 if (aKeyRange.isOnly()) {
14366 // Both keys equal.
14367 result =
14368 andStr + aKeyColumnName + " ="_ns + spacecolon + kStmtParamNameLowerKey;
14369 } else {
14370 if (!aKeyRange.lower().IsUnset()) {
14371 // Lower key is set.
14372 result.Append(andStr + aKeyColumnName);
14373 result.AppendLiteral(" >");
14374 if (!aKeyRange.lowerOpen()) {
14375 result.AppendLiteral("=");
14376 }
14377 result.Append(spacecolon + kStmtParamNameLowerKey);
14378 }
14379
14380 if (!aKeyRange.upper().IsUnset()) {
14381 // Upper key is set.
14382 result.Append(andStr + aKeyColumnName);
14383 result.AppendLiteral(" <");
14384 if (!aKeyRange.upperOpen()) {
14385 result.AppendLiteral("=");
14386 }
14387 result.Append(spacecolon + kStmtParamNameUpperKey);
14388 }
14389 }
14390
14391 MOZ_ASSERT(!result.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!result.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!result.IsEmpty()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("!result.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14391
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!result.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 14391); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14392
14393 return result;
14394}
14395
14396// static
14397uint64_t DatabaseOperationBase::ReinterpretDoubleAsUInt64(double aDouble) {
14398 // This is a duplicate of the js engine's byte munging in StructuredClone.cpp
14399 return BitwiseCast<uint64_t>(aDouble);
14400}
14401
14402// static
14403template <typename KeyTransformation>
14404nsresult DatabaseOperationBase::MaybeBindKeyToStatement(
14405 const Key& aKey, mozIStorageStatement* const aStatement,
14406 const nsACString& aParameterName,
14407 const KeyTransformation& aKeyTransformation) {
14408 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14408
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 14408); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14409 MOZ_ASSERT(aStatement)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aStatement)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aStatement))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aStatement", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14409); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aStatement"
")"); do { MOZ_CrashSequence(__null, 14409); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14410
14411 if (!aKey.IsUnset()) {
14412 // XXX This case distinction could be avoided if QM_TRY_INSPECT would also
14413 // work with a function not returning a Result<V, E> but simply a V (which
14414 // is const Key& here) and then assuming it is always a success. Or the
14415 // transformation could be changed to return Result<const V&, void> but I
14416 // don't think that Result supports that at the moment.
14417 if constexpr (std::is_reference_v<
14418 std::invoke_result_t<KeyTransformation, Key>>) {
14419 QM_TRY(MOZ_TO_RESULT(aKeyTransformation(aKey).BindToStatement({auto tryResult1192 = (ToResult(aKeyTransformation(aKey).BindToStatement
( aStatement, aParameterName))); static_assert(std::is_empty_v
<typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect
(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aKeyTransformation(aKey).BindToStatement( aStatement, aParameterName))"
, tryResult1192.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14420, mozilla::dom::quota::Severity::Error); return tryResult1192
.propagateErr(); }}
14420 aStatement, aParameterName))){auto tryResult1192 = (ToResult(aKeyTransformation(aKey).BindToStatement
( aStatement, aParameterName))); static_assert(std::is_empty_v
<typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect
(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aKeyTransformation(aKey).BindToStatement( aStatement, aParameterName))"
, tryResult1192.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14420, mozilla::dom::quota::Severity::Error); return tryResult1192
.propagateErr(); }}
;
14421 } else {
14422 QM_TRY_INSPECT(const auto& transformedKey, aKeyTransformation(aKey))auto tryResult1193 = (aKeyTransformation(aKey)); if ((__builtin_expect
(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError
("aKeyTransformation(aKey)", tryResult1193.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14422, mozilla::dom::quota::Severity::Error); return tryResult1193
.propagateErr(); } const auto& transformedKey = tryResult1193
.inspect();
;
14423 QM_TRY(MOZ_TO_RESULT({auto tryResult1194 = (ToResult(transformedKey.BindToStatement
(aStatement, aParameterName))); static_assert(std::is_empty_v
<typename decltype(tryResult1194)::ok_type>); if ((__builtin_expect
(!!(tryResult1194.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(transformedKey.BindToStatement(aStatement, aParameterName))"
, tryResult1194.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14424, mozilla::dom::quota::Severity::Error); return tryResult1194
.propagateErr(); }}
14424 transformedKey.BindToStatement(aStatement, aParameterName))){auto tryResult1194 = (ToResult(transformedKey.BindToStatement
(aStatement, aParameterName))); static_assert(std::is_empty_v
<typename decltype(tryResult1194)::ok_type>); if ((__builtin_expect
(!!(tryResult1194.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(transformedKey.BindToStatement(aStatement, aParameterName))"
, tryResult1194.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14424, mozilla::dom::quota::Severity::Error); return tryResult1194
.propagateErr(); }}
;
14425 }
14426 }
14427
14428 return NS_OK;
14429}
14430
14431// static
14432template <typename KeyTransformation>
14433nsresult DatabaseOperationBase::BindTransformedKeyRangeToStatement(
14434 const SerializedKeyRange& aKeyRange, mozIStorageStatement* const aStatement,
14435 const KeyTransformation& aKeyTransformation) {
14436 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14436
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 14436); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14437 MOZ_ASSERT(aStatement)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aStatement)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aStatement))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aStatement", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14437); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aStatement"
")"); do { MOZ_CrashSequence(__null, 14437); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14438
14439 QM_TRY(MOZ_TO_RESULT(MaybeBindKeyToStatement(aKeyRange.lower(), aStatement,{auto tryResult1195 = (ToResult(MaybeBindKeyToStatement(aKeyRange
.lower(), aStatement, kStmtParamNameLowerKey, aKeyTransformation
))); static_assert(std::is_empty_v<typename decltype(tryResult1195
)::ok_type>); if ((__builtin_expect(!!(tryResult1195.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(MaybeBindKeyToStatement(aKeyRange.lower(), aStatement, kStmtParamNameLowerKey, aKeyTransformation))"
, tryResult1195.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14441, mozilla::dom::quota::Severity::Error); return tryResult1195
.propagateErr(); }}
14440 kStmtParamNameLowerKey,{auto tryResult1195 = (ToResult(MaybeBindKeyToStatement(aKeyRange
.lower(), aStatement, kStmtParamNameLowerKey, aKeyTransformation
))); static_assert(std::is_empty_v<typename decltype(tryResult1195
)::ok_type>); if ((__builtin_expect(!!(tryResult1195.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(MaybeBindKeyToStatement(aKeyRange.lower(), aStatement, kStmtParamNameLowerKey, aKeyTransformation))"
, tryResult1195.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14441, mozilla::dom::quota::Severity::Error); return tryResult1195
.propagateErr(); }}
14441 aKeyTransformation))){auto tryResult1195 = (ToResult(MaybeBindKeyToStatement(aKeyRange
.lower(), aStatement, kStmtParamNameLowerKey, aKeyTransformation
))); static_assert(std::is_empty_v<typename decltype(tryResult1195
)::ok_type>); if ((__builtin_expect(!!(tryResult1195.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(MaybeBindKeyToStatement(aKeyRange.lower(), aStatement, kStmtParamNameLowerKey, aKeyTransformation))"
, tryResult1195.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14441, mozilla::dom::quota::Severity::Error); return tryResult1195
.propagateErr(); }}
;
14442
14443 if (aKeyRange.isOnly()) {
14444 return NS_OK;
14445 }
14446
14447 QM_TRY(MOZ_TO_RESULT(MaybeBindKeyToStatement(aKeyRange.upper(), aStatement,{auto tryResult1196 = (ToResult(MaybeBindKeyToStatement(aKeyRange
.upper(), aStatement, kStmtParamNameUpperKey, aKeyTransformation
))); static_assert(std::is_empty_v<typename decltype(tryResult1196
)::ok_type>); if ((__builtin_expect(!!(tryResult1196.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(MaybeBindKeyToStatement(aKeyRange.upper(), aStatement, kStmtParamNameUpperKey, aKeyTransformation))"
, tryResult1196.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14449, mozilla::dom::quota::Severity::Error); return tryResult1196
.propagateErr(); }}
14448 kStmtParamNameUpperKey,{auto tryResult1196 = (ToResult(MaybeBindKeyToStatement(aKeyRange
.upper(), aStatement, kStmtParamNameUpperKey, aKeyTransformation
))); static_assert(std::is_empty_v<typename decltype(tryResult1196
)::ok_type>); if ((__builtin_expect(!!(tryResult1196.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(MaybeBindKeyToStatement(aKeyRange.upper(), aStatement, kStmtParamNameUpperKey, aKeyTransformation))"
, tryResult1196.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14449, mozilla::dom::quota::Severity::Error); return tryResult1196
.propagateErr(); }}
14449 aKeyTransformation))){auto tryResult1196 = (ToResult(MaybeBindKeyToStatement(aKeyRange
.upper(), aStatement, kStmtParamNameUpperKey, aKeyTransformation
))); static_assert(std::is_empty_v<typename decltype(tryResult1196
)::ok_type>); if ((__builtin_expect(!!(tryResult1196.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(MaybeBindKeyToStatement(aKeyRange.upper(), aStatement, kStmtParamNameUpperKey, aKeyTransformation))"
, tryResult1196.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14449, mozilla::dom::quota::Severity::Error); return tryResult1196
.propagateErr(); }}
;
14450
14451 return NS_OK;
14452}
14453
14454// static
14455nsresult DatabaseOperationBase::BindKeyRangeToStatement(
14456 const SerializedKeyRange& aKeyRange,
14457 mozIStorageStatement* const aStatement) {
14458 return BindTransformedKeyRangeToStatement(
14459 aKeyRange, aStatement, [](const Key& key) -> const auto& { return key; });
14460}
14461
14462// static
14463nsresult DatabaseOperationBase::BindKeyRangeToStatement(
14464 const SerializedKeyRange& aKeyRange, mozIStorageStatement* const aStatement,
14465 const nsCString& aLocale) {
14466 MOZ_ASSERT(!aLocale.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aLocale.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!aLocale.IsEmpty()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("!aLocale.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14466
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aLocale.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 14466); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14467
14468 return BindTransformedKeyRangeToStatement(
14469 aKeyRange, aStatement,
14470 [&aLocale](const Key& key) { return key.ToLocaleAwareKey(aLocale); });
14471}
14472
14473// static
14474void CommonOpenOpHelperBase::AppendConditionClause(
14475 const nsACString& aColumnName, const nsACString& aStatementParameterName,
14476 bool aLessThan, bool aEquals, nsCString& aResult) {
14477 aResult += " AND "_ns + aColumnName + " "_ns;
14478
14479 if (aLessThan) {
14480 aResult.Append('<');
14481 } else {
14482 aResult.Append('>');
14483 }
14484
14485 if (aEquals) {
14486 aResult.Append('=');
14487 }
14488
14489 aResult += " :"_ns + aStatementParameterName;
14490}
14491
14492// static
14493Result<IndexDataValuesAutoArray, nsresult>
14494DatabaseOperationBase::IndexDataValuesFromUpdateInfos(
14495 const nsTArray<IndexUpdateInfo>& aUpdateInfos,
14496 const UniqueIndexTable& aUniqueIndexTable) {
14497 MOZ_ASSERT_IF(!aUpdateInfos.IsEmpty(), aUniqueIndexTable.Count())do { if (!aUpdateInfos.IsEmpty()) { do { static_assert( mozilla
::detail::AssertionConditionType<decltype(aUniqueIndexTable
.Count())>::isValid, "invalid assertion condition"); if ((
__builtin_expect(!!(!(!!(aUniqueIndexTable.Count()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("aUniqueIndexTable.Count()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14497
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aUniqueIndexTable.Count()"
")"); do { MOZ_CrashSequence(__null, 14497); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
14498
14499 AUTO_PROFILER_LABEL("DatabaseOperationBase::IndexDataValuesFromUpdateInfos",mozilla::AutoProfilerLabel raiiObject14500( "DatabaseOperationBase::IndexDataValuesFromUpdateInfos"
, nullptr, JS::ProfilingCategoryPair::DOM)
14500 DOM)mozilla::AutoProfilerLabel raiiObject14500( "DatabaseOperationBase::IndexDataValuesFromUpdateInfos"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
14501
14502 // XXX We could use TransformIntoNewArray here if it allowed to specify that
14503 // an AutoArray should be created.
14504 IndexDataValuesAutoArray indexValues;
14505
14506 if (NS_WARN_IF(!indexValues.SetCapacity(aUpdateInfos.Length(), fallible))NS_warn_if_impl(!indexValues.SetCapacity(aUpdateInfos.Length(
), fallible), "!indexValues.SetCapacity(aUpdateInfos.Length(), fallible)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14506
)
) {
14507 IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14507, idbInternalErrMsg.get()); } while (0)
;
14508 return Err(NS_ERROR_OUT_OF_MEMORY);
14509 }
14510
14511 std::transform(aUpdateInfos.cbegin(), aUpdateInfos.cend(),
14512 MakeBackInserter(indexValues),
14513 [&aUniqueIndexTable](const IndexUpdateInfo& updateInfo) {
14514 const IndexOrObjectStoreId& indexId = updateInfo.indexId();
14515
14516 bool unique = false;
14517 MOZ_ALWAYS_TRUE(aUniqueIndexTable.Get(indexId, &unique))do { if ((__builtin_expect(!!(aUniqueIndexTable.Get(indexId, &
unique)), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "aUniqueIndexTable.Get(indexId, &unique)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14517); AnnotateMozCrashReason("MOZ_CRASH(" "aUniqueIndexTable.Get(indexId, &unique)"
")"); do { MOZ_CrashSequence(__null, 14517); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
14518
14519 return IndexDataValue{indexId, unique, updateInfo.value(),
14520 updateInfo.localizedValue()};
14521 });
14522 indexValues.Sort();
14523
14524 return indexValues;
14525}
14526
14527// static
14528nsresult DatabaseOperationBase::InsertIndexTableRows(
14529 DatabaseConnection* aConnection, const IndexOrObjectStoreId aObjectStoreId,
14530 const Key& aObjectStoreKey, const nsTArray<IndexDataValue>& aIndexValues) {
14531 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14531); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 14531); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14532 aConnection->AssertIsOnConnectionThread();
14533 MOZ_ASSERT(!aObjectStoreKey.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aObjectStoreKey.IsUnset())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!aObjectStoreKey.IsUnset()))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!aObjectStoreKey.IsUnset()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14533
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aObjectStoreKey.IsUnset()"
")"); do { MOZ_CrashSequence(__null, 14533); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14534
14535 AUTO_PROFILER_LABEL("DatabaseOperationBase::InsertIndexTableRows", DOM)mozilla::AutoProfilerLabel raiiObject14535( "DatabaseOperationBase::InsertIndexTableRows"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
14536
14537 const uint32_t count = aIndexValues.Length();
14538 if (!count) {
14539 return NS_OK;
14540 }
14541
14542 auto insertUniqueStmt = DatabaseConnection::LazyStatement{
14543 *aConnection,
14544 "INSERT INTO unique_index_data "
14545 "(index_id, value, object_store_id, "
14546 "object_data_key, value_locale) "
14547 "VALUES (:"_ns +
14548 kStmtParamNameIndexId + ", :"_ns + kStmtParamNameValue + ", :"_ns +
14549 kStmtParamNameObjectStoreId + ", :"_ns + kStmtParamNameObjectDataKey +
14550 ", :"_ns + kStmtParamNameValueLocale + ");"_ns};
14551 auto insertStmt = DatabaseConnection::LazyStatement{
14552 *aConnection,
14553 "INSERT OR IGNORE INTO index_data "
14554 "(index_id, value, object_data_key, "
14555 "object_store_id, value_locale) "
14556 "VALUES (:"_ns +
14557 kStmtParamNameIndexId + ", :"_ns + kStmtParamNameValue + ", :"_ns +
14558 kStmtParamNameObjectDataKey + ", :"_ns + kStmtParamNameObjectStoreId +
14559 ", :"_ns + kStmtParamNameValueLocale + ");"_ns};
14560
14561 for (uint32_t index = 0; index < count; index++) {
14562 const IndexDataValue& info = aIndexValues[index];
14563
14564 auto& stmt = info.mUnique ? insertUniqueStmt : insertStmt;
14565
14566 QM_TRY_INSPECT(const auto& borrowedStmt, stmt.Borrow())auto tryResult1197 = (stmt.Borrow()); if ((__builtin_expect(!
!(tryResult1197.isErr()), 0))) { mozilla::dom::quota::HandleError
("stmt.Borrow()", tryResult1197.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14566, mozilla::dom::quota::Severity::Error); return tryResult1197
.propagateErr(); } const auto& borrowedStmt = tryResult1197
.inspect();
;
14567
14568 QM_TRY(MOZ_TO_RESULT({auto tryResult1198 = (ToResult(borrowedStmt->BindInt64ByName
(kStmtParamNameIndexId, info.mIndexId))); static_assert(std::
is_empty_v<typename decltype(tryResult1198)::ok_type>);
if ((__builtin_expect(!!(tryResult1198.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(borrowedStmt->BindInt64ByName(kStmtParamNameIndexId, info.mIndexId))"
, tryResult1198.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14569, mozilla::dom::quota::Severity::Error); return tryResult1198
.propagateErr(); }}
14569 borrowedStmt->BindInt64ByName(kStmtParamNameIndexId, info.mIndexId))){auto tryResult1198 = (ToResult(borrowedStmt->BindInt64ByName
(kStmtParamNameIndexId, info.mIndexId))); static_assert(std::
is_empty_v<typename decltype(tryResult1198)::ok_type>);
if ((__builtin_expect(!!(tryResult1198.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(borrowedStmt->BindInt64ByName(kStmtParamNameIndexId, info.mIndexId))"
, tryResult1198.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14569, mozilla::dom::quota::Severity::Error); return tryResult1198
.propagateErr(); }}
;
14570 QM_TRY(MOZ_TO_RESULT({auto tryResult1199 = (ToResult(info.mPosition.BindToStatement
(&*borrowedStmt, kStmtParamNameValue))); static_assert(std
::is_empty_v<typename decltype(tryResult1199)::ok_type>
); if ((__builtin_expect(!!(tryResult1199.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(info.mPosition.BindToStatement(&*borrowedStmt, kStmtParamNameValue))"
, tryResult1199.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14571, mozilla::dom::quota::Severity::Error); return tryResult1199
.propagateErr(); }}
14571 info.mPosition.BindToStatement(&*borrowedStmt, kStmtParamNameValue))){auto tryResult1199 = (ToResult(info.mPosition.BindToStatement
(&*borrowedStmt, kStmtParamNameValue))); static_assert(std
::is_empty_v<typename decltype(tryResult1199)::ok_type>
); if ((__builtin_expect(!!(tryResult1199.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(info.mPosition.BindToStatement(&*borrowedStmt, kStmtParamNameValue))"
, tryResult1199.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14571, mozilla::dom::quota::Severity::Error); return tryResult1199
.propagateErr(); }}
;
14572 QM_TRY(MOZ_TO_RESULT(info.mLocaleAwarePosition.BindToStatement({auto tryResult1200 = (ToResult(info.mLocaleAwarePosition.BindToStatement
( &*borrowedStmt, kStmtParamNameValueLocale))); static_assert
(std::is_empty_v<typename decltype(tryResult1200)::ok_type
>); if ((__builtin_expect(!!(tryResult1200.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(info.mLocaleAwarePosition.BindToStatement( &*borrowedStmt, kStmtParamNameValueLocale))"
, tryResult1200.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14573, mozilla::dom::quota::Severity::Error); return tryResult1200
.propagateErr(); }}
14573 &*borrowedStmt, kStmtParamNameValueLocale))){auto tryResult1200 = (ToResult(info.mLocaleAwarePosition.BindToStatement
( &*borrowedStmt, kStmtParamNameValueLocale))); static_assert
(std::is_empty_v<typename decltype(tryResult1200)::ok_type
>); if ((__builtin_expect(!!(tryResult1200.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(info.mLocaleAwarePosition.BindToStatement( &*borrowedStmt, kStmtParamNameValueLocale))"
, tryResult1200.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14573, mozilla::dom::quota::Severity::Error); return tryResult1200
.propagateErr(); }}
;
14574 QM_TRY(MOZ_TO_RESULT(borrowedStmt->BindInt64ByName({auto tryResult1201 = (ToResult(borrowedStmt->BindInt64ByName
( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1201)::ok_type
>); if ((__builtin_expect(!!(tryResult1201.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(borrowedStmt->BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1201.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14575, mozilla::dom::quota::Severity::Error); return tryResult1201
.propagateErr(); }}
14575 kStmtParamNameObjectStoreId, aObjectStoreId))){auto tryResult1201 = (ToResult(borrowedStmt->BindInt64ByName
( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1201)::ok_type
>); if ((__builtin_expect(!!(tryResult1201.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(borrowedStmt->BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1201.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14575, mozilla::dom::quota::Severity::Error); return tryResult1201
.propagateErr(); }}
;
14576 QM_TRY(MOZ_TO_RESULT(aObjectStoreKey.BindToStatement({auto tryResult1202 = (ToResult(aObjectStoreKey.BindToStatement
( &*borrowedStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1202)::ok_type
>); if ((__builtin_expect(!!(tryResult1202.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement( &*borrowedStmt, kStmtParamNameObjectDataKey))"
, tryResult1202.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14577, mozilla::dom::quota::Severity::Error); return tryResult1202
.propagateErr(); }}
14577 &*borrowedStmt, kStmtParamNameObjectDataKey))){auto tryResult1202 = (ToResult(aObjectStoreKey.BindToStatement
( &*borrowedStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1202)::ok_type
>); if ((__builtin_expect(!!(tryResult1202.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement( &*borrowedStmt, kStmtParamNameObjectDataKey))"
, tryResult1202.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14577, mozilla::dom::quota::Severity::Error); return tryResult1202
.propagateErr(); }}
;
14578
14579 // QM_OR_ELSE_WARN_IF is not used here since we just want to log the
14580 // collision and not spam the reports.
14581 QM_TRY(QM_OR_ELSE_LOG_VERBOSE_IF({auto tryResult1203 = (mozilla::dom::quota::OrElseIf( (ToResult
(borrowedStmt->Execute())), [&](const auto& firstRes
) { bool res = ([&info, index, &aIndexValues](nsresult
rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.
mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >=
0 && aIndexValues[index2].mIndexId == info.mIndexId;
--index2) { if (info.mPosition == aIndexValues[index2].mPosition
) { return true; } } } return false; })(firstRes); mozilla::dom
::quota::HandleError("\"ToResult(borrowedStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14606, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1203)::ok_type>); if ((__builtin_expect(!!(tryResult1203
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14606, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1203.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14606, mozilla::dom::quota::Severity::Error); return tryResult1203
.propagateErr(); }}
14582 // Expression.{auto tryResult1203 = (mozilla::dom::quota::OrElseIf( (ToResult
(borrowedStmt->Execute())), [&](const auto& firstRes
) { bool res = ([&info, index, &aIndexValues](nsresult
rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.
mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >=
0 && aIndexValues[index2].mIndexId == info.mIndexId;
--index2) { if (info.mPosition == aIndexValues[index2].mPosition
) { return true; } } } return false; })(firstRes); mozilla::dom
::quota::HandleError("\"ToResult(borrowedStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14606, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1203)::ok_type>); if ((__builtin_expect(!!(tryResult1203
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14606, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1203.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14606, mozilla::dom::quota::Severity::Error); return tryResult1203
.propagateErr(); }}
14583 MOZ_TO_RESULT(borrowedStmt->Execute()),{auto tryResult1203 = (mozilla::dom::quota::OrElseIf( (ToResult
(borrowedStmt->Execute())), [&](const auto& firstRes
) { bool res = ([&info, index, &aIndexValues](nsresult
rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.
mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >=
0 && aIndexValues[index2].mIndexId == info.mIndexId;
--index2) { if (info.mPosition == aIndexValues[index2].mPosition
) { return true; } } } return false; })(firstRes); mozilla::dom
::quota::HandleError("\"ToResult(borrowedStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14606, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1203)::ok_type>); if ((__builtin_expect(!!(tryResult1203
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14606, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1203.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14606, mozilla::dom::quota::Severity::Error); return tryResult1203
.propagateErr(); }}
14584 // Predicate.{auto tryResult1203 = (mozilla::dom::quota::OrElseIf( (ToResult
(borrowedStmt->Execute())), [&](const auto& firstRes
) { bool res = ([&info, index, &aIndexValues](nsresult
rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.
mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >=
0 && aIndexValues[index2].mIndexId == info.mIndexId;
--index2) { if (info.mPosition == aIndexValues[index2].mPosition
) { return true; } } } return false; })(firstRes); mozilla::dom
::quota::HandleError("\"ToResult(borrowedStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14606, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1203)::ok_type>); if ((__builtin_expect(!!(tryResult1203
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14606, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1203.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14606, mozilla::dom::quota::Severity::Error); return tryResult1203
.propagateErr(); }}
14585 ([&info, index, &aIndexValues](nsresult rv) {{auto tryResult1203 = (mozilla::dom::quota::OrElseIf( (ToResult
(borrowedStmt->Execute())), [&](const auto& firstRes
) { bool res = ([&info, index, &aIndexValues](nsresult
rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.
mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >=
0 && aIndexValues[index2].mIndexId == info.mIndexId;
--index2) { if (info.mPosition == aIndexValues[index2].mPosition
) { return true; } } } return false; })(firstRes); mozilla::dom
::quota::HandleError("\"ToResult(borrowedStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14606, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1203)::ok_type>); if ((__builtin_expect(!!(tryResult1203
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14606, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1203.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14606, mozilla::dom::quota::Severity::Error); return tryResult1203
.propagateErr(); }}
14586 if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) {{auto tryResult1203 = (mozilla::dom::quota::OrElseIf( (ToResult
(borrowedStmt->Execute())), [&](const auto& firstRes
) { bool res = ([&info, index, &aIndexValues](nsresult
rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.
mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >=
0 && aIndexValues[index2].mIndexId == info.mIndexId;
--index2) { if (info.mPosition == aIndexValues[index2].mPosition
) { return true; } } } return false; })(firstRes); mozilla::dom
::quota::HandleError("\"ToResult(borrowedStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14606, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1203)::ok_type>); if ((__builtin_expect(!!(tryResult1203
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14606, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1203.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14606, mozilla::dom::quota::Severity::Error); return tryResult1203
.propagateErr(); }}
14587 // If we're inserting multiple entries for the same unique{auto tryResult1203 = (mozilla::dom::quota::OrElseIf( (ToResult
(borrowedStmt->Execute())), [&](const auto& firstRes
) { bool res = ([&info, index, &aIndexValues](nsresult
rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.
mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >=
0 && aIndexValues[index2].mIndexId == info.mIndexId;
--index2) { if (info.mPosition == aIndexValues[index2].mPosition
) { return true; } } } return false; })(firstRes); mozilla::dom
::quota::HandleError("\"ToResult(borrowedStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14606, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1203)::ok_type>); if ((__builtin_expect(!!(tryResult1203
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14606, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1203.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14606, mozilla::dom::quota::Severity::Error); return tryResult1203
.propagateErr(); }}
14588 // index, then we might have failed to insert due to{auto tryResult1203 = (mozilla::dom::quota::OrElseIf( (ToResult
(borrowedStmt->Execute())), [&](const auto& firstRes
) { bool res = ([&info, index, &aIndexValues](nsresult
rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.
mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >=
0 && aIndexValues[index2].mIndexId == info.mIndexId;
--index2) { if (info.mPosition == aIndexValues[index2].mPosition
) { return true; } } } return false; })(firstRes); mozilla::dom
::quota::HandleError("\"ToResult(borrowedStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14606, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1203)::ok_type>); if ((__builtin_expect(!!(tryResult1203
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14606, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1203.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14606, mozilla::dom::quota::Severity::Error); return tryResult1203
.propagateErr(); }}
14589 // colliding with another entry for the same index in which{auto tryResult1203 = (mozilla::dom::quota::OrElseIf( (ToResult
(borrowedStmt->Execute())), [&](const auto& firstRes
) { bool res = ([&info, index, &aIndexValues](nsresult
rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.
mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >=
0 && aIndexValues[index2].mIndexId == info.mIndexId;
--index2) { if (info.mPosition == aIndexValues[index2].mPosition
) { return true; } } } return false; })(firstRes); mozilla::dom
::quota::HandleError("\"ToResult(borrowedStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14606, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1203)::ok_type>); if ((__builtin_expect(!!(tryResult1203
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14606, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1203.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14606, mozilla::dom::quota::Severity::Error); return tryResult1203
.propagateErr(); }}
14590 // case we should ignore it.{auto tryResult1203 = (mozilla::dom::quota::OrElseIf( (ToResult
(borrowedStmt->Execute())), [&](const auto& firstRes
) { bool res = ([&info, index, &aIndexValues](nsresult
rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.
mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >=
0 && aIndexValues[index2].mIndexId == info.mIndexId;
--index2) { if (info.mPosition == aIndexValues[index2].mPosition
) { return true; } } } return false; })(firstRes); mozilla::dom
::quota::HandleError("\"ToResult(borrowedStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14606, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1203)::ok_type>); if ((__builtin_expect(!!(tryResult1203
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14606, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1203.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14606, mozilla::dom::quota::Severity::Error); return tryResult1203
.propagateErr(); }}
14591 for (int32_t index2 = int32_t(index) - 1;{auto tryResult1203 = (mozilla::dom::quota::OrElseIf( (ToResult
(borrowedStmt->Execute())), [&](const auto& firstRes
) { bool res = ([&info, index, &aIndexValues](nsresult
rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.
mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >=
0 && aIndexValues[index2].mIndexId == info.mIndexId;
--index2) { if (info.mPosition == aIndexValues[index2].mPosition
) { return true; } } } return false; })(firstRes); mozilla::dom
::quota::HandleError("\"ToResult(borrowedStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14606, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1203)::ok_type>); if ((__builtin_expect(!!(tryResult1203
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14606, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1203.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14606, mozilla::dom::quota::Severity::Error); return tryResult1203
.propagateErr(); }}
14592 index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId;{auto tryResult1203 = (mozilla::dom::quota::OrElseIf( (ToResult
(borrowedStmt->Execute())), [&](const auto& firstRes
) { bool res = ([&info, index, &aIndexValues](nsresult
rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.
mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >=
0 && aIndexValues[index2].mIndexId == info.mIndexId;
--index2) { if (info.mPosition == aIndexValues[index2].mPosition
) { return true; } } } return false; })(firstRes); mozilla::dom
::quota::HandleError("\"ToResult(borrowedStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14606, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1203)::ok_type>); if ((__builtin_expect(!!(tryResult1203
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14606, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1203.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14606, mozilla::dom::quota::Severity::Error); return tryResult1203
.propagateErr(); }}
14593 --index2) {{auto tryResult1203 = (mozilla::dom::quota::OrElseIf( (ToResult
(borrowedStmt->Execute())), [&](const auto& firstRes
) { bool res = ([&info, index, &aIndexValues](nsresult
rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.
mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >=
0 && aIndexValues[index2].mIndexId == info.mIndexId;
--index2) { if (info.mPosition == aIndexValues[index2].mPosition
) { return true; } } } return false; })(firstRes); mozilla::dom
::quota::HandleError("\"ToResult(borrowedStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14606, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1203)::ok_type>); if ((__builtin_expect(!!(tryResult1203
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14606, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1203.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14606, mozilla::dom::quota::Severity::Error); return tryResult1203
.propagateErr(); }}
14594 if (info.mPosition == aIndexValues[index2].mPosition) {{auto tryResult1203 = (mozilla::dom::quota::OrElseIf( (ToResult
(borrowedStmt->Execute())), [&](const auto& firstRes
) { bool res = ([&info, index, &aIndexValues](nsresult
rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.
mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >=
0 && aIndexValues[index2].mIndexId == info.mIndexId;
--index2) { if (info.mPosition == aIndexValues[index2].mPosition
) { return true; } } } return false; })(firstRes); mozilla::dom
::quota::HandleError("\"ToResult(borrowedStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14606, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1203)::ok_type>); if ((__builtin_expect(!!(tryResult1203
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14606, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1203.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14606, mozilla::dom::quota::Severity::Error); return tryResult1203
.propagateErr(); }}
14595 // We found a key with the same value for the same{auto tryResult1203 = (mozilla::dom::quota::OrElseIf( (ToResult
(borrowedStmt->Execute())), [&](const auto& firstRes
) { bool res = ([&info, index, &aIndexValues](nsresult
rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.
mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >=
0 && aIndexValues[index2].mIndexId == info.mIndexId;
--index2) { if (info.mPosition == aIndexValues[index2].mPosition
) { return true; } } } return false; })(firstRes); mozilla::dom
::quota::HandleError("\"ToResult(borrowedStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14606, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1203)::ok_type>); if ((__builtin_expect(!!(tryResult1203
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14606, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1203.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14606, mozilla::dom::quota::Severity::Error); return tryResult1203
.propagateErr(); }}
14596 // index. So we must have had a collision with a value{auto tryResult1203 = (mozilla::dom::quota::OrElseIf( (ToResult
(borrowedStmt->Execute())), [&](const auto& firstRes
) { bool res = ([&info, index, &aIndexValues](nsresult
rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.
mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >=
0 && aIndexValues[index2].mIndexId == info.mIndexId;
--index2) { if (info.mPosition == aIndexValues[index2].mPosition
) { return true; } } } return false; })(firstRes); mozilla::dom
::quota::HandleError("\"ToResult(borrowedStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14606, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1203)::ok_type>); if ((__builtin_expect(!!(tryResult1203
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14606, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1203.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14606, mozilla::dom::quota::Severity::Error); return tryResult1203
.propagateErr(); }}
14597 // we just inserted.{auto tryResult1203 = (mozilla::dom::quota::OrElseIf( (ToResult
(borrowedStmt->Execute())), [&](const auto& firstRes
) { bool res = ([&info, index, &aIndexValues](nsresult
rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.
mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >=
0 && aIndexValues[index2].mIndexId == info.mIndexId;
--index2) { if (info.mPosition == aIndexValues[index2].mPosition
) { return true; } } } return false; })(firstRes); mozilla::dom
::quota::HandleError("\"ToResult(borrowedStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14606, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1203)::ok_type>); if ((__builtin_expect(!!(tryResult1203
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14606, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1203.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14606, mozilla::dom::quota::Severity::Error); return tryResult1203
.propagateErr(); }}
14598 return true;{auto tryResult1203 = (mozilla::dom::quota::OrElseIf( (ToResult
(borrowedStmt->Execute())), [&](const auto& firstRes
) { bool res = ([&info, index, &aIndexValues](nsresult
rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.
mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >=
0 && aIndexValues[index2].mIndexId == info.mIndexId;
--index2) { if (info.mPosition == aIndexValues[index2].mPosition
) { return true; } } } return false; })(firstRes); mozilla::dom
::quota::HandleError("\"ToResult(borrowedStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14606, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1203)::ok_type>); if ((__builtin_expect(!!(tryResult1203
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14606, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1203.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14606, mozilla::dom::quota::Severity::Error); return tryResult1203
.propagateErr(); }}
14599 }{auto tryResult1203 = (mozilla::dom::quota::OrElseIf( (ToResult
(borrowedStmt->Execute())), [&](const auto& firstRes
) { bool res = ([&info, index, &aIndexValues](nsresult
rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.
mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >=
0 && aIndexValues[index2].mIndexId == info.mIndexId;
--index2) { if (info.mPosition == aIndexValues[index2].mPosition
) { return true; } } } return false; })(firstRes); mozilla::dom
::quota::HandleError("\"ToResult(borrowedStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14606, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1203)::ok_type>); if ((__builtin_expect(!!(tryResult1203
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14606, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1203.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14606, mozilla::dom::quota::Severity::Error); return tryResult1203
.propagateErr(); }}
14600 }{auto tryResult1203 = (mozilla::dom::quota::OrElseIf( (ToResult
(borrowedStmt->Execute())), [&](const auto& firstRes
) { bool res = ([&info, index, &aIndexValues](nsresult
rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.
mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >=
0 && aIndexValues[index2].mIndexId == info.mIndexId;
--index2) { if (info.mPosition == aIndexValues[index2].mPosition
) { return true; } } } return false; })(firstRes); mozilla::dom
::quota::HandleError("\"ToResult(borrowedStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14606, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1203)::ok_type>); if ((__builtin_expect(!!(tryResult1203
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14606, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1203.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14606, mozilla::dom::quota::Severity::Error); return tryResult1203
.propagateErr(); }}
14601 }{auto tryResult1203 = (mozilla::dom::quota::OrElseIf( (ToResult
(borrowedStmt->Execute())), [&](const auto& firstRes
) { bool res = ([&info, index, &aIndexValues](nsresult
rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.
mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >=
0 && aIndexValues[index2].mIndexId == info.mIndexId;
--index2) { if (info.mPosition == aIndexValues[index2].mPosition
) { return true; } } } return false; })(firstRes); mozilla::dom
::quota::HandleError("\"ToResult(borrowedStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14606, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1203)::ok_type>); if ((__builtin_expect(!!(tryResult1203
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14606, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1203.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14606, mozilla::dom::quota::Severity::Error); return tryResult1203
.propagateErr(); }}
14602
14603 return false;{auto tryResult1203 = (mozilla::dom::quota::OrElseIf( (ToResult
(borrowedStmt->Execute())), [&](const auto& firstRes
) { bool res = ([&info, index, &aIndexValues](nsresult
rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.
mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >=
0 && aIndexValues[index2].mIndexId == info.mIndexId;
--index2) { if (info.mPosition == aIndexValues[index2].mPosition
) { return true; } } } return false; })(firstRes); mozilla::dom
::quota::HandleError("\"ToResult(borrowedStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14606, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1203)::ok_type>); if ((__builtin_expect(!!(tryResult1203
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14606, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1203.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14606, mozilla::dom::quota::Severity::Error); return tryResult1203
.propagateErr(); }}
14604 }),{auto tryResult1203 = (mozilla::dom::quota::OrElseIf( (ToResult
(borrowedStmt->Execute())), [&](const auto& firstRes
) { bool res = ([&info, index, &aIndexValues](nsresult
rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.
mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >=
0 && aIndexValues[index2].mIndexId == info.mIndexId;
--index2) { if (info.mPosition == aIndexValues[index2].mPosition
) { return true; } } } return false; })(firstRes); mozilla::dom
::quota::HandleError("\"ToResult(borrowedStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14606, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1203)::ok_type>); if ((__builtin_expect(!!(tryResult1203
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14606, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1203.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14606, mozilla::dom::quota::Severity::Error); return tryResult1203
.propagateErr(); }}
14605 // Fallback.{auto tryResult1203 = (mozilla::dom::quota::OrElseIf( (ToResult
(borrowedStmt->Execute())), [&](const auto& firstRes
) { bool res = ([&info, index, &aIndexValues](nsresult
rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.
mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >=
0 && aIndexValues[index2].mIndexId == info.mIndexId;
--index2) { if (info.mPosition == aIndexValues[index2].mPosition
) { return true; } } } return false; })(firstRes); mozilla::dom
::quota::HandleError("\"ToResult(borrowedStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14606, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1203)::ok_type>); if ((__builtin_expect(!!(tryResult1203
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14606, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1203.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14606, mozilla::dom::quota::Severity::Error); return tryResult1203
.propagateErr(); }}
14606 ErrToDefaultOk<>)){auto tryResult1203 = (mozilla::dom::quota::OrElseIf( (ToResult
(borrowedStmt->Execute())), [&](const auto& firstRes
) { bool res = ([&info, index, &aIndexValues](nsresult
rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.
mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >=
0 && aIndexValues[index2].mIndexId == info.mIndexId;
--index2) { if (info.mPosition == aIndexValues[index2].mPosition
) { return true; } } } return false; })(firstRes); mozilla::dom
::quota::HandleError("\"ToResult(borrowedStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14606, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1203)::ok_type>); if ((__builtin_expect(!!(tryResult1203
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14606, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1203.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14606, mozilla::dom::quota::Severity::Error); return tryResult1203
.propagateErr(); }}
;
14607 }
14608
14609 return NS_OK;
14610}
14611
14612// static
14613nsresult DatabaseOperationBase::DeleteIndexDataTableRows(
14614 DatabaseConnection* aConnection, const Key& aObjectStoreKey,
14615 const nsTArray<IndexDataValue>& aIndexValues) {
14616 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14616); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 14616); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14617 aConnection->AssertIsOnConnectionThread();
14618 MOZ_ASSERT(!aObjectStoreKey.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aObjectStoreKey.IsUnset())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!aObjectStoreKey.IsUnset()))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!aObjectStoreKey.IsUnset()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14618
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aObjectStoreKey.IsUnset()"
")"); do { MOZ_CrashSequence(__null, 14618); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14619
14620 AUTO_PROFILER_LABEL("DatabaseOperationBase::DeleteIndexDataTableRows", DOM)mozilla::AutoProfilerLabel raiiObject14620( "DatabaseOperationBase::DeleteIndexDataTableRows"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
14621
14622 const uint32_t count = aIndexValues.Length();
14623 if (!count) {
14624 return NS_OK;
14625 }
14626
14627 auto deleteUniqueStmt = DatabaseConnection::LazyStatement{
14628 *aConnection, "DELETE FROM unique_index_data WHERE index_id = :"_ns +
14629 kStmtParamNameIndexId + " AND value = :"_ns +
14630 kStmtParamNameValue + ";"_ns};
14631 auto deleteStmt = DatabaseConnection::LazyStatement{
14632 *aConnection, "DELETE FROM index_data WHERE index_id = :"_ns +
14633 kStmtParamNameIndexId + " AND value = :"_ns +
14634 kStmtParamNameValue + " AND object_data_key = :"_ns +
14635 kStmtParamNameObjectDataKey + ";"_ns};
14636
14637 for (uint32_t index = 0; index < count; index++) {
14638 const IndexDataValue& indexValue = aIndexValues[index];
14639
14640 auto& stmt = indexValue.mUnique ? deleteUniqueStmt : deleteStmt;
14641
14642 QM_TRY_INSPECT(const auto& borrowedStmt, stmt.Borrow())auto tryResult1204 = (stmt.Borrow()); if ((__builtin_expect(!
!(tryResult1204.isErr()), 0))) { mozilla::dom::quota::HandleError
("stmt.Borrow()", tryResult1204.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14642, mozilla::dom::quota::Severity::Error); return tryResult1204
.propagateErr(); } const auto& borrowedStmt = tryResult1204
.inspect();
;
14643
14644 QM_TRY(MOZ_TO_RESULT(borrowedStmt->BindInt64ByName(kStmtParamNameIndexId,{auto tryResult1205 = (ToResult(borrowedStmt->BindInt64ByName
(kStmtParamNameIndexId, indexValue.mIndexId))); static_assert
(std::is_empty_v<typename decltype(tryResult1205)::ok_type
>); if ((__builtin_expect(!!(tryResult1205.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(borrowedStmt->BindInt64ByName(kStmtParamNameIndexId, indexValue.mIndexId))"
, tryResult1205.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14645, mozilla::dom::quota::Severity::Error); return tryResult1205
.propagateErr(); }}
14645 indexValue.mIndexId))){auto tryResult1205 = (ToResult(borrowedStmt->BindInt64ByName
(kStmtParamNameIndexId, indexValue.mIndexId))); static_assert
(std::is_empty_v<typename decltype(tryResult1205)::ok_type
>); if ((__builtin_expect(!!(tryResult1205.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(borrowedStmt->BindInt64ByName(kStmtParamNameIndexId, indexValue.mIndexId))"
, tryResult1205.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14645, mozilla::dom::quota::Severity::Error); return tryResult1205
.propagateErr(); }}
;
14646
14647 QM_TRY(MOZ_TO_RESULT(indexValue.mPosition.BindToStatement({auto tryResult1206 = (ToResult(indexValue.mPosition.BindToStatement
( &*borrowedStmt, kStmtParamNameValue))); static_assert(std
::is_empty_v<typename decltype(tryResult1206)::ok_type>
); if ((__builtin_expect(!!(tryResult1206.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(indexValue.mPosition.BindToStatement( &*borrowedStmt, kStmtParamNameValue))"
, tryResult1206.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14648, mozilla::dom::quota::Severity::Error); return tryResult1206
.propagateErr(); }}
14648 &*borrowedStmt, kStmtParamNameValue))){auto tryResult1206 = (ToResult(indexValue.mPosition.BindToStatement
( &*borrowedStmt, kStmtParamNameValue))); static_assert(std
::is_empty_v<typename decltype(tryResult1206)::ok_type>
); if ((__builtin_expect(!!(tryResult1206.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(indexValue.mPosition.BindToStatement( &*borrowedStmt, kStmtParamNameValue))"
, tryResult1206.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14648, mozilla::dom::quota::Severity::Error); return tryResult1206
.propagateErr(); }}
;
14649
14650 if (!indexValue.mUnique) {
14651 QM_TRY(MOZ_TO_RESULT(aObjectStoreKey.BindToStatement({auto tryResult1207 = (ToResult(aObjectStoreKey.BindToStatement
( &*borrowedStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1207)::ok_type
>); if ((__builtin_expect(!!(tryResult1207.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement( &*borrowedStmt, kStmtParamNameObjectDataKey))"
, tryResult1207.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14652, mozilla::dom::quota::Severity::Error); return tryResult1207
.propagateErr(); }}
14652 &*borrowedStmt, kStmtParamNameObjectDataKey))){auto tryResult1207 = (ToResult(aObjectStoreKey.BindToStatement
( &*borrowedStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1207)::ok_type
>); if ((__builtin_expect(!!(tryResult1207.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement( &*borrowedStmt, kStmtParamNameObjectDataKey))"
, tryResult1207.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14652, mozilla::dom::quota::Severity::Error); return tryResult1207
.propagateErr(); }}
;
14653 }
14654
14655 QM_TRY(MOZ_TO_RESULT(borrowedStmt->Execute())){auto tryResult1208 = (ToResult(borrowedStmt->Execute()));
static_assert(std::is_empty_v<typename decltype(tryResult1208
)::ok_type>); if ((__builtin_expect(!!(tryResult1208.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedStmt->Execute())"
, tryResult1208.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14655, mozilla::dom::quota::Severity::Error); return tryResult1208
.propagateErr(); }}
;
14656 }
14657
14658 return NS_OK;
14659}
14660
14661// static
14662nsresult DatabaseOperationBase::DeleteObjectStoreDataTableRowsWithIndexes(
14663 DatabaseConnection* aConnection, const IndexOrObjectStoreId aObjectStoreId,
14664 const Maybe<SerializedKeyRange>& aKeyRange) {
14665 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14665); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 14665); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14666 aConnection->AssertIsOnConnectionThread();
14667 MOZ_ASSERT(aObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aObjectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aObjectStoreId))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("aObjectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14667
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aObjectStoreId" ")"
); do { MOZ_CrashSequence(__null, 14667); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
14668
14669#ifdef DEBUG1
14670 {
14671 QM_TRY_INSPECT(const bool& hasIndexes,auto tryResult1209 = (ObjectStoreHasIndexes(*aConnection, aObjectStoreId
)); if ((__builtin_expect(!!(tryResult1209.isErr()), 0))) { auto
tryTempError = tryResult1209.unwrapErr(); mozilla::dom::quota
::HandleError("ObjectStoreHasIndexes(*aConnection, aObjectStoreId)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14673, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14673); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ")"
); do { MOZ_CrashSequence(__null, 14673); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ObjectStoreHasIndexes(*aConnection, aObjectStoreId)"
, tryTempError, Err(tryTempError)); } const bool& hasIndexes
= tryResult1209.inspect();
14672 ObjectStoreHasIndexes(*aConnection, aObjectStoreId),auto tryResult1209 = (ObjectStoreHasIndexes(*aConnection, aObjectStoreId
)); if ((__builtin_expect(!!(tryResult1209.isErr()), 0))) { auto
tryTempError = tryResult1209.unwrapErr(); mozilla::dom::quota
::HandleError("ObjectStoreHasIndexes(*aConnection, aObjectStoreId)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14673, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14673); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ")"
); do { MOZ_CrashSequence(__null, 14673); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ObjectStoreHasIndexes(*aConnection, aObjectStoreId)"
, tryTempError, Err(tryTempError)); } const bool& hasIndexes
= tryResult1209.inspect();
14673 QM_PROPAGATE, [](const auto&) { MOZ_ASSERT(false); })auto tryResult1209 = (ObjectStoreHasIndexes(*aConnection, aObjectStoreId
)); if ((__builtin_expect(!!(tryResult1209.isErr()), 0))) { auto
tryTempError = tryResult1209.unwrapErr(); mozilla::dom::quota
::HandleError("ObjectStoreHasIndexes(*aConnection, aObjectStoreId)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14673, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14673); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ")"
); do { MOZ_CrashSequence(__null, 14673); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ObjectStoreHasIndexes(*aConnection, aObjectStoreId)"
, tryTempError, Err(tryTempError)); } const bool& hasIndexes
= tryResult1209.inspect();
;
14674 MOZ_ASSERT(hasIndexes,do { static_assert( mozilla::detail::AssertionConditionType<
decltype(hasIndexes)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(hasIndexes))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("hasIndexes" " (" "Don't use this slow method if there are no indexes!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14675
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "hasIndexes" ") ("
"Don't use this slow method if there are no indexes!" ")"); do
{ MOZ_CrashSequence(__null, 14675); __attribute__((nomerge))
::abort(); } while (false); } } while (false)
14675 "Don't use this slow method if there are no indexes!")do { static_assert( mozilla::detail::AssertionConditionType<
decltype(hasIndexes)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(hasIndexes))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("hasIndexes" " (" "Don't use this slow method if there are no indexes!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14675
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "hasIndexes" ") ("
"Don't use this slow method if there are no indexes!" ")"); do
{ MOZ_CrashSequence(__null, 14675); __attribute__((nomerge))
::abort(); } while (false); } } while (false)
;
14676 }
14677#endif
14678
14679 AUTO_PROFILER_LABEL(mozilla::AutoProfilerLabel raiiObject14680( "DatabaseOperationBase::DeleteObjectStoreDataTableRowsWithIndexes"
, nullptr, JS::ProfilingCategoryPair::DOM)
14680 "DatabaseOperationBase::DeleteObjectStoreDataTableRowsWithIndexes", DOM)mozilla::AutoProfilerLabel raiiObject14680( "DatabaseOperationBase::DeleteObjectStoreDataTableRowsWithIndexes"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
14681
14682 const bool singleRowOnly = aKeyRange.isSome() && aKeyRange.ref().isOnly();
14683
14684 const auto keyRangeClause =
14685 MaybeGetBindingClauseForKeyRange(aKeyRange, kColumnNameKey);
14686
14687 Key objectStoreKey;
14688 QM_TRY_INSPECT(auto tryResult1214 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1210 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1210.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14700, mozilla::dom::quota::Severity::Error); return tryResult1210
.propagateErr(); } auto selectStmt = tryResult1210.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1211)::ok_type>); if ((__builtin_expect
(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1211.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14705, mozilla::dom::quota::Severity::Error); return tryResult1211
.propagateErr(); }}; return selectStmt; } auto tryResult1212 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1212.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14715, mozilla::dom::quota::Severity::Error); return tryResult1212
.propagateErr(); } auto selectStmt = tryResult1212.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect
(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1213.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14719, mozilla::dom::quota::Severity::Error); return tryResult1213
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1214.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1210 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1210.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1210.propagateErr(); } auto selectStmt = tryResult1210.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1211)::ok_type>); if ((__builtin_expect(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1211.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14705, mozilla::dom::quota::Severity::Error); return tryResult1211.propagateErr(); }}; return selectStmt; } auto tryResult1212 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1212.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14715, mozilla::dom::quota::Severity::Error); return tryResult1212.propagateErr(); } auto selectStmt = tryResult1212.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1213.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14719, mozilla::dom::quota::Severity::Error); return tryResult1213.propagateErr(); }}; } return selectStmt; }())"
, tryResult1214.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14723, mozilla::dom::quota::Severity::Error); return tryResult1214
.propagateErr(); } const auto& selectStmt = tryResult1214
.inspect();
14689 const auto& selectStmt,auto tryResult1214 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1210 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1210.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14700, mozilla::dom::quota::Severity::Error); return tryResult1210
.propagateErr(); } auto selectStmt = tryResult1210.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1211)::ok_type>); if ((__builtin_expect
(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1211.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14705, mozilla::dom::quota::Severity::Error); return tryResult1211
.propagateErr(); }}; return selectStmt; } auto tryResult1212 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1212.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14715, mozilla::dom::quota::Severity::Error); return tryResult1212
.propagateErr(); } auto selectStmt = tryResult1212.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect
(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1213.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14719, mozilla::dom::quota::Severity::Error); return tryResult1213
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1214.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1210 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1210.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1210.propagateErr(); } auto selectStmt = tryResult1210.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1211)::ok_type>); if ((__builtin_expect(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1211.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14705, mozilla::dom::quota::Severity::Error); return tryResult1211.propagateErr(); }}; return selectStmt; } auto tryResult1212 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1212.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14715, mozilla::dom::quota::Severity::Error); return tryResult1212.propagateErr(); } auto selectStmt = tryResult1212.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1213.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14719, mozilla::dom::quota::Severity::Error); return tryResult1213.propagateErr(); }}; } return selectStmt; }())"
, tryResult1214.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14723, mozilla::dom::quota::Severity::Error); return tryResult1214
.propagateErr(); } const auto& selectStmt = tryResult1214
.inspect();
14690 ([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange,auto tryResult1214 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1210 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1210.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14700, mozilla::dom::quota::Severity::Error); return tryResult1210
.propagateErr(); } auto selectStmt = tryResult1210.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1211)::ok_type>); if ((__builtin_expect
(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1211.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14705, mozilla::dom::quota::Severity::Error); return tryResult1211
.propagateErr(); }}; return selectStmt; } auto tryResult1212 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1212.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14715, mozilla::dom::quota::Severity::Error); return tryResult1212
.propagateErr(); } auto selectStmt = tryResult1212.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect
(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1213.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14719, mozilla::dom::quota::Severity::Error); return tryResult1213
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1214.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1210 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1210.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1210.propagateErr(); } auto selectStmt = tryResult1210.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1211)::ok_type>); if ((__builtin_expect(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1211.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14705, mozilla::dom::quota::Severity::Error); return tryResult1211.propagateErr(); }}; return selectStmt; } auto tryResult1212 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1212.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14715, mozilla::dom::quota::Severity::Error); return tryResult1212.propagateErr(); } auto selectStmt = tryResult1212.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1213.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14719, mozilla::dom::quota::Severity::Error); return tryResult1213.propagateErr(); }}; } return selectStmt; }())"
, tryResult1214.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14723, mozilla::dom::quota::Severity::Error); return tryResult1214
.propagateErr(); } const auto& selectStmt = tryResult1214
.inspect();
14691 &keyRangeClause]()auto tryResult1214 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1210 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1210.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14700, mozilla::dom::quota::Severity::Error); return tryResult1210
.propagateErr(); } auto selectStmt = tryResult1210.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1211)::ok_type>); if ((__builtin_expect
(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1211.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14705, mozilla::dom::quota::Severity::Error); return tryResult1211
.propagateErr(); }}; return selectStmt; } auto tryResult1212 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1212.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14715, mozilla::dom::quota::Severity::Error); return tryResult1212
.propagateErr(); } auto selectStmt = tryResult1212.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect
(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1213.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14719, mozilla::dom::quota::Severity::Error); return tryResult1213
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1214.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1210 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1210.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1210.propagateErr(); } auto selectStmt = tryResult1210.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1211)::ok_type>); if ((__builtin_expect(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1211.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14705, mozilla::dom::quota::Severity::Error); return tryResult1211.propagateErr(); }}; return selectStmt; } auto tryResult1212 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1212.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14715, mozilla::dom::quota::Severity::Error); return tryResult1212.propagateErr(); } auto selectStmt = tryResult1212.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1213.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14719, mozilla::dom::quota::Severity::Error); return tryResult1213.propagateErr(); }}; } return selectStmt; }())"
, tryResult1214.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14723, mozilla::dom::quota::Severity::Error); return tryResult1214
.propagateErr(); } const auto& selectStmt = tryResult1214
.inspect();
14692 -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> {auto tryResult1214 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1210 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1210.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14700, mozilla::dom::quota::Severity::Error); return tryResult1210
.propagateErr(); } auto selectStmt = tryResult1210.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1211)::ok_type>); if ((__builtin_expect
(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1211.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14705, mozilla::dom::quota::Severity::Error); return tryResult1211
.propagateErr(); }}; return selectStmt; } auto tryResult1212 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1212.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14715, mozilla::dom::quota::Severity::Error); return tryResult1212
.propagateErr(); } auto selectStmt = tryResult1212.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect
(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1213.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14719, mozilla::dom::quota::Severity::Error); return tryResult1213
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1214.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1210 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1210.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1210.propagateErr(); } auto selectStmt = tryResult1210.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1211)::ok_type>); if ((__builtin_expect(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1211.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14705, mozilla::dom::quota::Severity::Error); return tryResult1211.propagateErr(); }}; return selectStmt; } auto tryResult1212 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1212.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14715, mozilla::dom::quota::Severity::Error); return tryResult1212.propagateErr(); } auto selectStmt = tryResult1212.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1213.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14719, mozilla::dom::quota::Severity::Error); return tryResult1213.propagateErr(); }}; } return selectStmt; }())"
, tryResult1214.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14723, mozilla::dom::quota::Severity::Error); return tryResult1214
.propagateErr(); } const auto& selectStmt = tryResult1214
.inspect();
14693 if (singleRowOnly) {auto tryResult1214 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1210 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1210.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14700, mozilla::dom::quota::Severity::Error); return tryResult1210
.propagateErr(); } auto selectStmt = tryResult1210.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1211)::ok_type>); if ((__builtin_expect
(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1211.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14705, mozilla::dom::quota::Severity::Error); return tryResult1211
.propagateErr(); }}; return selectStmt; } auto tryResult1212 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1212.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14715, mozilla::dom::quota::Severity::Error); return tryResult1212
.propagateErr(); } auto selectStmt = tryResult1212.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect
(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1213.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14719, mozilla::dom::quota::Severity::Error); return tryResult1213
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1214.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1210 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1210.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1210.propagateErr(); } auto selectStmt = tryResult1210.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1211)::ok_type>); if ((__builtin_expect(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1211.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14705, mozilla::dom::quota::Severity::Error); return tryResult1211.propagateErr(); }}; return selectStmt; } auto tryResult1212 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1212.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14715, mozilla::dom::quota::Severity::Error); return tryResult1212.propagateErr(); } auto selectStmt = tryResult1212.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1213.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14719, mozilla::dom::quota::Severity::Error); return tryResult1213.propagateErr(); }}; } return selectStmt; }())"
, tryResult1214.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14723, mozilla::dom::quota::Severity::Error); return tryResult1214
.propagateErr(); } const auto& selectStmt = tryResult1214
.inspect();
14694 QM_TRY_UNWRAP(auto selectStmt,auto tryResult1214 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1210 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1210.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14700, mozilla::dom::quota::Severity::Error); return tryResult1210
.propagateErr(); } auto selectStmt = tryResult1210.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1211)::ok_type>); if ((__builtin_expect
(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1211.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14705, mozilla::dom::quota::Severity::Error); return tryResult1211
.propagateErr(); }}; return selectStmt; } auto tryResult1212 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1212.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14715, mozilla::dom::quota::Severity::Error); return tryResult1212
.propagateErr(); } auto selectStmt = tryResult1212.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect
(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1213.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14719, mozilla::dom::quota::Severity::Error); return tryResult1213
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1214.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1210 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1210.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1210.propagateErr(); } auto selectStmt = tryResult1210.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1211)::ok_type>); if ((__builtin_expect(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1211.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14705, mozilla::dom::quota::Severity::Error); return tryResult1211.propagateErr(); }}; return selectStmt; } auto tryResult1212 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1212.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14715, mozilla::dom::quota::Severity::Error); return tryResult1212.propagateErr(); } auto selectStmt = tryResult1212.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1213.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14719, mozilla::dom::quota::Severity::Error); return tryResult1213.propagateErr(); }}; } return selectStmt; }())"
, tryResult1214.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14723, mozilla::dom::quota::Severity::Error); return tryResult1214
.propagateErr(); } const auto& selectStmt = tryResult1214
.inspect();
14695 aConnection->BorrowCachedStatement(auto tryResult1214 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1210 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1210.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14700, mozilla::dom::quota::Severity::Error); return tryResult1210
.propagateErr(); } auto selectStmt = tryResult1210.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1211)::ok_type>); if ((__builtin_expect
(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1211.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14705, mozilla::dom::quota::Severity::Error); return tryResult1211
.propagateErr(); }}; return selectStmt; } auto tryResult1212 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1212.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14715, mozilla::dom::quota::Severity::Error); return tryResult1212
.propagateErr(); } auto selectStmt = tryResult1212.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect
(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1213.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14719, mozilla::dom::quota::Severity::Error); return tryResult1213
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1214.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1210 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1210.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1210.propagateErr(); } auto selectStmt = tryResult1210.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1211)::ok_type>); if ((__builtin_expect(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1211.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14705, mozilla::dom::quota::Severity::Error); return tryResult1211.propagateErr(); }}; return selectStmt; } auto tryResult1212 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1212.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14715, mozilla::dom::quota::Severity::Error); return tryResult1212.propagateErr(); } auto selectStmt = tryResult1212.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1213.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14719, mozilla::dom::quota::Severity::Error); return tryResult1213.propagateErr(); }}; } return selectStmt; }())"
, tryResult1214.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14723, mozilla::dom::quota::Severity::Error); return tryResult1214
.propagateErr(); } const auto& selectStmt = tryResult1214
.inspect();
14696 "SELECT index_data_values "auto tryResult1214 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1210 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1210.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14700, mozilla::dom::quota::Severity::Error); return tryResult1210
.propagateErr(); } auto selectStmt = tryResult1210.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1211)::ok_type>); if ((__builtin_expect
(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1211.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14705, mozilla::dom::quota::Severity::Error); return tryResult1211
.propagateErr(); }}; return selectStmt; } auto tryResult1212 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1212.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14715, mozilla::dom::quota::Severity::Error); return tryResult1212
.propagateErr(); } auto selectStmt = tryResult1212.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect
(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1213.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14719, mozilla::dom::quota::Severity::Error); return tryResult1213
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1214.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1210 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1210.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1210.propagateErr(); } auto selectStmt = tryResult1210.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1211)::ok_type>); if ((__builtin_expect(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1211.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14705, mozilla::dom::quota::Severity::Error); return tryResult1211.propagateErr(); }}; return selectStmt; } auto tryResult1212 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1212.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14715, mozilla::dom::quota::Severity::Error); return tryResult1212.propagateErr(); } auto selectStmt = tryResult1212.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1213.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14719, mozilla::dom::quota::Severity::Error); return tryResult1213.propagateErr(); }}; } return selectStmt; }())"
, tryResult1214.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14723, mozilla::dom::quota::Severity::Error); return tryResult1214
.propagateErr(); } const auto& selectStmt = tryResult1214
.inspect();
14697 "FROM object_data "auto tryResult1214 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1210 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1210.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14700, mozilla::dom::quota::Severity::Error); return tryResult1210
.propagateErr(); } auto selectStmt = tryResult1210.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1211)::ok_type>); if ((__builtin_expect
(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1211.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14705, mozilla::dom::quota::Severity::Error); return tryResult1211
.propagateErr(); }}; return selectStmt; } auto tryResult1212 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1212.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14715, mozilla::dom::quota::Severity::Error); return tryResult1212
.propagateErr(); } auto selectStmt = tryResult1212.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect
(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1213.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14719, mozilla::dom::quota::Severity::Error); return tryResult1213
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1214.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1210 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1210.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1210.propagateErr(); } auto selectStmt = tryResult1210.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1211)::ok_type>); if ((__builtin_expect(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1211.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14705, mozilla::dom::quota::Severity::Error); return tryResult1211.propagateErr(); }}; return selectStmt; } auto tryResult1212 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1212.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14715, mozilla::dom::quota::Severity::Error); return tryResult1212.propagateErr(); } auto selectStmt = tryResult1212.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1213.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14719, mozilla::dom::quota::Severity::Error); return tryResult1213.propagateErr(); }}; } return selectStmt; }())"
, tryResult1214.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14723, mozilla::dom::quota::Severity::Error); return tryResult1214
.propagateErr(); } const auto& selectStmt = tryResult1214
.inspect();
14698 "WHERE object_store_id = :"_ns +auto tryResult1214 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1210 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1210.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14700, mozilla::dom::quota::Severity::Error); return tryResult1210
.propagateErr(); } auto selectStmt = tryResult1210.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1211)::ok_type>); if ((__builtin_expect
(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1211.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14705, mozilla::dom::quota::Severity::Error); return tryResult1211
.propagateErr(); }}; return selectStmt; } auto tryResult1212 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1212.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14715, mozilla::dom::quota::Severity::Error); return tryResult1212
.propagateErr(); } auto selectStmt = tryResult1212.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect
(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1213.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14719, mozilla::dom::quota::Severity::Error); return tryResult1213
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1214.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1210 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1210.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1210.propagateErr(); } auto selectStmt = tryResult1210.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1211)::ok_type>); if ((__builtin_expect(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1211.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14705, mozilla::dom::quota::Severity::Error); return tryResult1211.propagateErr(); }}; return selectStmt; } auto tryResult1212 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1212.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14715, mozilla::dom::quota::Severity::Error); return tryResult1212.propagateErr(); } auto selectStmt = tryResult1212.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1213.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14719, mozilla::dom::quota::Severity::Error); return tryResult1213.propagateErr(); }}; } return selectStmt; }())"
, tryResult1214.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14723, mozilla::dom::quota::Severity::Error); return tryResult1214
.propagateErr(); } const auto& selectStmt = tryResult1214
.inspect();
14699 kStmtParamNameObjectStoreId + " AND key = :"_ns +auto tryResult1214 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1210 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1210.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14700, mozilla::dom::quota::Severity::Error); return tryResult1210
.propagateErr(); } auto selectStmt = tryResult1210.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1211)::ok_type>); if ((__builtin_expect
(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1211.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14705, mozilla::dom::quota::Severity::Error); return tryResult1211
.propagateErr(); }}; return selectStmt; } auto tryResult1212 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1212.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14715, mozilla::dom::quota::Severity::Error); return tryResult1212
.propagateErr(); } auto selectStmt = tryResult1212.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect
(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1213.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14719, mozilla::dom::quota::Severity::Error); return tryResult1213
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1214.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1210 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1210.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1210.propagateErr(); } auto selectStmt = tryResult1210.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1211)::ok_type>); if ((__builtin_expect(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1211.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14705, mozilla::dom::quota::Severity::Error); return tryResult1211.propagateErr(); }}; return selectStmt; } auto tryResult1212 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1212.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14715, mozilla::dom::quota::Severity::Error); return tryResult1212.propagateErr(); } auto selectStmt = tryResult1212.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1213.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14719, mozilla::dom::quota::Severity::Error); return tryResult1213.propagateErr(); }}; } return selectStmt; }())"
, tryResult1214.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14723, mozilla::dom::quota::Severity::Error); return tryResult1214
.propagateErr(); } const auto& selectStmt = tryResult1214
.inspect();
14700 kStmtParamNameKey + ";"_ns));auto tryResult1214 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1210 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1210.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14700, mozilla::dom::quota::Severity::Error); return tryResult1210
.propagateErr(); } auto selectStmt = tryResult1210.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1211)::ok_type>); if ((__builtin_expect
(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1211.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14705, mozilla::dom::quota::Severity::Error); return tryResult1211
.propagateErr(); }}; return selectStmt; } auto tryResult1212 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1212.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14715, mozilla::dom::quota::Severity::Error); return tryResult1212
.propagateErr(); } auto selectStmt = tryResult1212.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect
(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1213.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14719, mozilla::dom::quota::Severity::Error); return tryResult1213
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1214.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1210 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1210.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1210.propagateErr(); } auto selectStmt = tryResult1210.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1211)::ok_type>); if ((__builtin_expect(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1211.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14705, mozilla::dom::quota::Severity::Error); return tryResult1211.propagateErr(); }}; return selectStmt; } auto tryResult1212 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1212.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14715, mozilla::dom::quota::Severity::Error); return tryResult1212.propagateErr(); } auto selectStmt = tryResult1212.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1213.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14719, mozilla::dom::quota::Severity::Error); return tryResult1213.propagateErr(); }}; } return selectStmt; }())"
, tryResult1214.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14723, mozilla::dom::quota::Severity::Error); return tryResult1214
.propagateErr(); } const auto& selectStmt = tryResult1214
.inspect();
14701
14702 objectStoreKey = aKeyRange.ref().lower();auto tryResult1214 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1210 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1210.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14700, mozilla::dom::quota::Severity::Error); return tryResult1210
.propagateErr(); } auto selectStmt = tryResult1210.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1211)::ok_type>); if ((__builtin_expect
(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1211.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14705, mozilla::dom::quota::Severity::Error); return tryResult1211
.propagateErr(); }}; return selectStmt; } auto tryResult1212 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1212.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14715, mozilla::dom::quota::Severity::Error); return tryResult1212
.propagateErr(); } auto selectStmt = tryResult1212.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect
(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1213.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14719, mozilla::dom::quota::Severity::Error); return tryResult1213
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1214.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1210 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1210.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1210.propagateErr(); } auto selectStmt = tryResult1210.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1211)::ok_type>); if ((__builtin_expect(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1211.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14705, mozilla::dom::quota::Severity::Error); return tryResult1211.propagateErr(); }}; return selectStmt; } auto tryResult1212 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1212.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14715, mozilla::dom::quota::Severity::Error); return tryResult1212.propagateErr(); } auto selectStmt = tryResult1212.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1213.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14719, mozilla::dom::quota::Severity::Error); return tryResult1213.propagateErr(); }}; } return selectStmt; }())"
, tryResult1214.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14723, mozilla::dom::quota::Severity::Error); return tryResult1214
.propagateErr(); } const auto& selectStmt = tryResult1214
.inspect();
14703
14704 QM_TRY(MOZ_TO_RESULT(auto tryResult1214 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1210 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1210.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14700, mozilla::dom::quota::Severity::Error); return tryResult1210
.propagateErr(); } auto selectStmt = tryResult1210.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1211)::ok_type>); if ((__builtin_expect
(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1211.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14705, mozilla::dom::quota::Severity::Error); return tryResult1211
.propagateErr(); }}; return selectStmt; } auto tryResult1212 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1212.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14715, mozilla::dom::quota::Severity::Error); return tryResult1212
.propagateErr(); } auto selectStmt = tryResult1212.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect
(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1213.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14719, mozilla::dom::quota::Severity::Error); return tryResult1213
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1214.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1210 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1210.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1210.propagateErr(); } auto selectStmt = tryResult1210.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1211)::ok_type>); if ((__builtin_expect(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1211.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14705, mozilla::dom::quota::Severity::Error); return tryResult1211.propagateErr(); }}; return selectStmt; } auto tryResult1212 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1212.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14715, mozilla::dom::quota::Severity::Error); return tryResult1212.propagateErr(); } auto selectStmt = tryResult1212.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1213.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14719, mozilla::dom::quota::Severity::Error); return tryResult1213.propagateErr(); }}; } return selectStmt; }())"
, tryResult1214.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14723, mozilla::dom::quota::Severity::Error); return tryResult1214
.propagateErr(); } const auto& selectStmt = tryResult1214
.inspect();
14705 objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey)));auto tryResult1214 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1210 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1210.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14700, mozilla::dom::quota::Severity::Error); return tryResult1210
.propagateErr(); } auto selectStmt = tryResult1210.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1211)::ok_type>); if ((__builtin_expect
(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1211.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14705, mozilla::dom::quota::Severity::Error); return tryResult1211
.propagateErr(); }}; return selectStmt; } auto tryResult1212 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1212.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14715, mozilla::dom::quota::Severity::Error); return tryResult1212
.propagateErr(); } auto selectStmt = tryResult1212.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect
(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1213.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14719, mozilla::dom::quota::Severity::Error); return tryResult1213
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1214.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1210 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1210.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1210.propagateErr(); } auto selectStmt = tryResult1210.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1211)::ok_type>); if ((__builtin_expect(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1211.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14705, mozilla::dom::quota::Severity::Error); return tryResult1211.propagateErr(); }}; return selectStmt; } auto tryResult1212 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1212.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14715, mozilla::dom::quota::Severity::Error); return tryResult1212.propagateErr(); } auto selectStmt = tryResult1212.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1213.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14719, mozilla::dom::quota::Severity::Error); return tryResult1213.propagateErr(); }}; } return selectStmt; }())"
, tryResult1214.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14723, mozilla::dom::quota::Severity::Error); return tryResult1214
.propagateErr(); } const auto& selectStmt = tryResult1214
.inspect();
14706
14707 return selectStmt;auto tryResult1214 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1210 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1210.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14700, mozilla::dom::quota::Severity::Error); return tryResult1210
.propagateErr(); } auto selectStmt = tryResult1210.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1211)::ok_type>); if ((__builtin_expect
(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1211.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14705, mozilla::dom::quota::Severity::Error); return tryResult1211
.propagateErr(); }}; return selectStmt; } auto tryResult1212 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1212.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14715, mozilla::dom::quota::Severity::Error); return tryResult1212
.propagateErr(); } auto selectStmt = tryResult1212.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect
(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1213.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14719, mozilla::dom::quota::Severity::Error); return tryResult1213
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1214.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1210 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1210.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1210.propagateErr(); } auto selectStmt = tryResult1210.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1211)::ok_type>); if ((__builtin_expect(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1211.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14705, mozilla::dom::quota::Severity::Error); return tryResult1211.propagateErr(); }}; return selectStmt; } auto tryResult1212 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1212.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14715, mozilla::dom::quota::Severity::Error); return tryResult1212.propagateErr(); } auto selectStmt = tryResult1212.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1213.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14719, mozilla::dom::quota::Severity::Error); return tryResult1213.propagateErr(); }}; } return selectStmt; }())"
, tryResult1214.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14723, mozilla::dom::quota::Severity::Error); return tryResult1214
.propagateErr(); } const auto& selectStmt = tryResult1214
.inspect();
14708 }auto tryResult1214 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1210 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1210.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14700, mozilla::dom::quota::Severity::Error); return tryResult1210
.propagateErr(); } auto selectStmt = tryResult1210.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1211)::ok_type>); if ((__builtin_expect
(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1211.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14705, mozilla::dom::quota::Severity::Error); return tryResult1211
.propagateErr(); }}; return selectStmt; } auto tryResult1212 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1212.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14715, mozilla::dom::quota::Severity::Error); return tryResult1212
.propagateErr(); } auto selectStmt = tryResult1212.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect
(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1213.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14719, mozilla::dom::quota::Severity::Error); return tryResult1213
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1214.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1210 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1210.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1210.propagateErr(); } auto selectStmt = tryResult1210.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1211)::ok_type>); if ((__builtin_expect(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1211.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14705, mozilla::dom::quota::Severity::Error); return tryResult1211.propagateErr(); }}; return selectStmt; } auto tryResult1212 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1212.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14715, mozilla::dom::quota::Severity::Error); return tryResult1212.propagateErr(); } auto selectStmt = tryResult1212.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1213.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14719, mozilla::dom::quota::Severity::Error); return tryResult1213.propagateErr(); }}; } return selectStmt; }())"
, tryResult1214.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14723, mozilla::dom::quota::Severity::Error); return tryResult1214
.propagateErr(); } const auto& selectStmt = tryResult1214
.inspect();
14709
14710 QM_TRY_UNWRAP(auto tryResult1214 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1210 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1210.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14700, mozilla::dom::quota::Severity::Error); return tryResult1210
.propagateErr(); } auto selectStmt = tryResult1210.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1211)::ok_type>); if ((__builtin_expect
(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1211.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14705, mozilla::dom::quota::Severity::Error); return tryResult1211
.propagateErr(); }}; return selectStmt; } auto tryResult1212 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1212.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14715, mozilla::dom::quota::Severity::Error); return tryResult1212
.propagateErr(); } auto selectStmt = tryResult1212.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect
(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1213.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14719, mozilla::dom::quota::Severity::Error); return tryResult1213
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1214.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1210 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1210.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1210.propagateErr(); } auto selectStmt = tryResult1210.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1211)::ok_type>); if ((__builtin_expect(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1211.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14705, mozilla::dom::quota::Severity::Error); return tryResult1211.propagateErr(); }}; return selectStmt; } auto tryResult1212 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1212.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14715, mozilla::dom::quota::Severity::Error); return tryResult1212.propagateErr(); } auto selectStmt = tryResult1212.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1213.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14719, mozilla::dom::quota::Severity::Error); return tryResult1213.propagateErr(); }}; } return selectStmt; }())"
, tryResult1214.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14723, mozilla::dom::quota::Severity::Error); return tryResult1214
.propagateErr(); } const auto& selectStmt = tryResult1214
.inspect();
14711 auto selectStmt,auto tryResult1214 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1210 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1210.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14700, mozilla::dom::quota::Severity::Error); return tryResult1210
.propagateErr(); } auto selectStmt = tryResult1210.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1211)::ok_type>); if ((__builtin_expect
(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1211.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14705, mozilla::dom::quota::Severity::Error); return tryResult1211
.propagateErr(); }}; return selectStmt; } auto tryResult1212 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1212.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14715, mozilla::dom::quota::Severity::Error); return tryResult1212
.propagateErr(); } auto selectStmt = tryResult1212.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect
(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1213.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14719, mozilla::dom::quota::Severity::Error); return tryResult1213
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1214.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1210 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1210.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1210.propagateErr(); } auto selectStmt = tryResult1210.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1211)::ok_type>); if ((__builtin_expect(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1211.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14705, mozilla::dom::quota::Severity::Error); return tryResult1211.propagateErr(); }}; return selectStmt; } auto tryResult1212 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1212.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14715, mozilla::dom::quota::Severity::Error); return tryResult1212.propagateErr(); } auto selectStmt = tryResult1212.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1213.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14719, mozilla::dom::quota::Severity::Error); return tryResult1213.propagateErr(); }}; } return selectStmt; }())"
, tryResult1214.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14723, mozilla::dom::quota::Severity::Error); return tryResult1214
.propagateErr(); } const auto& selectStmt = tryResult1214
.inspect();
14712 aConnection->BorrowCachedStatement(auto tryResult1214 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1210 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1210.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14700, mozilla::dom::quota::Severity::Error); return tryResult1210
.propagateErr(); } auto selectStmt = tryResult1210.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1211)::ok_type>); if ((__builtin_expect
(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1211.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14705, mozilla::dom::quota::Severity::Error); return tryResult1211
.propagateErr(); }}; return selectStmt; } auto tryResult1212 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1212.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14715, mozilla::dom::quota::Severity::Error); return tryResult1212
.propagateErr(); } auto selectStmt = tryResult1212.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect
(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1213.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14719, mozilla::dom::quota::Severity::Error); return tryResult1213
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1214.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1210 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1210.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1210.propagateErr(); } auto selectStmt = tryResult1210.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1211)::ok_type>); if ((__builtin_expect(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1211.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14705, mozilla::dom::quota::Severity::Error); return tryResult1211.propagateErr(); }}; return selectStmt; } auto tryResult1212 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1212.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14715, mozilla::dom::quota::Severity::Error); return tryResult1212.propagateErr(); } auto selectStmt = tryResult1212.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1213.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14719, mozilla::dom::quota::Severity::Error); return tryResult1213.propagateErr(); }}; } return selectStmt; }())"
, tryResult1214.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14723, mozilla::dom::quota::Severity::Error); return tryResult1214
.propagateErr(); } const auto& selectStmt = tryResult1214
.inspect();
14713 "SELECT index_data_values, "_ns + kColumnNameKey +auto tryResult1214 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1210 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1210.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14700, mozilla::dom::quota::Severity::Error); return tryResult1210
.propagateErr(); } auto selectStmt = tryResult1210.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1211)::ok_type>); if ((__builtin_expect
(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1211.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14705, mozilla::dom::quota::Severity::Error); return tryResult1211
.propagateErr(); }}; return selectStmt; } auto tryResult1212 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1212.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14715, mozilla::dom::quota::Severity::Error); return tryResult1212
.propagateErr(); } auto selectStmt = tryResult1212.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect
(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1213.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14719, mozilla::dom::quota::Severity::Error); return tryResult1213
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1214.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1210 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1210.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1210.propagateErr(); } auto selectStmt = tryResult1210.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1211)::ok_type>); if ((__builtin_expect(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1211.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14705, mozilla::dom::quota::Severity::Error); return tryResult1211.propagateErr(); }}; return selectStmt; } auto tryResult1212 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1212.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14715, mozilla::dom::quota::Severity::Error); return tryResult1212.propagateErr(); } auto selectStmt = tryResult1212.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1213.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14719, mozilla::dom::quota::Severity::Error); return tryResult1213.propagateErr(); }}; } return selectStmt; }())"
, tryResult1214.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14723, mozilla::dom::quota::Severity::Error); return tryResult1214
.propagateErr(); } const auto& selectStmt = tryResult1214
.inspect();
14714 " FROM object_data WHERE object_store_id = :"_ns +auto tryResult1214 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1210 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1210.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14700, mozilla::dom::quota::Severity::Error); return tryResult1210
.propagateErr(); } auto selectStmt = tryResult1210.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1211)::ok_type>); if ((__builtin_expect
(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1211.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14705, mozilla::dom::quota::Severity::Error); return tryResult1211
.propagateErr(); }}; return selectStmt; } auto tryResult1212 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1212.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14715, mozilla::dom::quota::Severity::Error); return tryResult1212
.propagateErr(); } auto selectStmt = tryResult1212.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect
(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1213.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14719, mozilla::dom::quota::Severity::Error); return tryResult1213
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1214.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1210 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1210.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1210.propagateErr(); } auto selectStmt = tryResult1210.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1211)::ok_type>); if ((__builtin_expect(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1211.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14705, mozilla::dom::quota::Severity::Error); return tryResult1211.propagateErr(); }}; return selectStmt; } auto tryResult1212 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1212.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14715, mozilla::dom::quota::Severity::Error); return tryResult1212.propagateErr(); } auto selectStmt = tryResult1212.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1213.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14719, mozilla::dom::quota::Severity::Error); return tryResult1213.propagateErr(); }}; } return selectStmt; }())"
, tryResult1214.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14723, mozilla::dom::quota::Severity::Error); return tryResult1214
.propagateErr(); } const auto& selectStmt = tryResult1214
.inspect();
14715 kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns));auto tryResult1214 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1210 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1210.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14700, mozilla::dom::quota::Severity::Error); return tryResult1210
.propagateErr(); } auto selectStmt = tryResult1210.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1211)::ok_type>); if ((__builtin_expect
(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1211.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14705, mozilla::dom::quota::Severity::Error); return tryResult1211
.propagateErr(); }}; return selectStmt; } auto tryResult1212 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1212.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14715, mozilla::dom::quota::Severity::Error); return tryResult1212
.propagateErr(); } auto selectStmt = tryResult1212.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect
(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1213.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14719, mozilla::dom::quota::Severity::Error); return tryResult1213
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1214.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1210 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1210.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1210.propagateErr(); } auto selectStmt = tryResult1210.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1211)::ok_type>); if ((__builtin_expect(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1211.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14705, mozilla::dom::quota::Severity::Error); return tryResult1211.propagateErr(); }}; return selectStmt; } auto tryResult1212 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1212.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14715, mozilla::dom::quota::Severity::Error); return tryResult1212.propagateErr(); } auto selectStmt = tryResult1212.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1213.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14719, mozilla::dom::quota::Severity::Error); return tryResult1213.propagateErr(); }}; } return selectStmt; }())"
, tryResult1214.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14723, mozilla::dom::quota::Severity::Error); return tryResult1214
.propagateErr(); } const auto& selectStmt = tryResult1214
.inspect();
14716
14717 if (aKeyRange.isSome()) {auto tryResult1214 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1210 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1210.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14700, mozilla::dom::quota::Severity::Error); return tryResult1210
.propagateErr(); } auto selectStmt = tryResult1210.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1211)::ok_type>); if ((__builtin_expect
(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1211.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14705, mozilla::dom::quota::Severity::Error); return tryResult1211
.propagateErr(); }}; return selectStmt; } auto tryResult1212 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1212.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14715, mozilla::dom::quota::Severity::Error); return tryResult1212
.propagateErr(); } auto selectStmt = tryResult1212.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect
(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1213.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14719, mozilla::dom::quota::Severity::Error); return tryResult1213
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1214.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1210 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1210.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1210.propagateErr(); } auto selectStmt = tryResult1210.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1211)::ok_type>); if ((__builtin_expect(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1211.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14705, mozilla::dom::quota::Severity::Error); return tryResult1211.propagateErr(); }}; return selectStmt; } auto tryResult1212 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1212.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14715, mozilla::dom::quota::Severity::Error); return tryResult1212.propagateErr(); } auto selectStmt = tryResult1212.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1213.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14719, mozilla::dom::quota::Severity::Error); return tryResult1213.propagateErr(); }}; } return selectStmt; }())"
, tryResult1214.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14723, mozilla::dom::quota::Severity::Error); return tryResult1214
.propagateErr(); } const auto& selectStmt = tryResult1214
.inspect();
14718 QM_TRY(MOZ_TO_RESULT(auto tryResult1214 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1210 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1210.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14700, mozilla::dom::quota::Severity::Error); return tryResult1210
.propagateErr(); } auto selectStmt = tryResult1210.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1211)::ok_type>); if ((__builtin_expect
(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1211.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14705, mozilla::dom::quota::Severity::Error); return tryResult1211
.propagateErr(); }}; return selectStmt; } auto tryResult1212 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1212.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14715, mozilla::dom::quota::Severity::Error); return tryResult1212
.propagateErr(); } auto selectStmt = tryResult1212.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect
(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1213.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14719, mozilla::dom::quota::Severity::Error); return tryResult1213
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1214.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1210 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1210.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1210.propagateErr(); } auto selectStmt = tryResult1210.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1211)::ok_type>); if ((__builtin_expect(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1211.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14705, mozilla::dom::quota::Severity::Error); return tryResult1211.propagateErr(); }}; return selectStmt; } auto tryResult1212 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1212.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14715, mozilla::dom::quota::Severity::Error); return tryResult1212.propagateErr(); } auto selectStmt = tryResult1212.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1213.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14719, mozilla::dom::quota::Severity::Error); return tryResult1213.propagateErr(); }}; } return selectStmt; }())"
, tryResult1214.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14723, mozilla::dom::quota::Severity::Error); return tryResult1214
.propagateErr(); } const auto& selectStmt = tryResult1214
.inspect();
14719 BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt)));auto tryResult1214 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1210 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1210.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14700, mozilla::dom::quota::Severity::Error); return tryResult1210
.propagateErr(); } auto selectStmt = tryResult1210.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1211)::ok_type>); if ((__builtin_expect
(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1211.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14705, mozilla::dom::quota::Severity::Error); return tryResult1211
.propagateErr(); }}; return selectStmt; } auto tryResult1212 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1212.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14715, mozilla::dom::quota::Severity::Error); return tryResult1212
.propagateErr(); } auto selectStmt = tryResult1212.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect
(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1213.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14719, mozilla::dom::quota::Severity::Error); return tryResult1213
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1214.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1210 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1210.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1210.propagateErr(); } auto selectStmt = tryResult1210.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1211)::ok_type>); if ((__builtin_expect(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1211.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14705, mozilla::dom::quota::Severity::Error); return tryResult1211.propagateErr(); }}; return selectStmt; } auto tryResult1212 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1212.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14715, mozilla::dom::quota::Severity::Error); return tryResult1212.propagateErr(); } auto selectStmt = tryResult1212.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1213.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14719, mozilla::dom::quota::Severity::Error); return tryResult1213.propagateErr(); }}; } return selectStmt; }())"
, tryResult1214.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14723, mozilla::dom::quota::Severity::Error); return tryResult1214
.propagateErr(); } const auto& selectStmt = tryResult1214
.inspect();
14720 }auto tryResult1214 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1210 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1210.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14700, mozilla::dom::quota::Severity::Error); return tryResult1210
.propagateErr(); } auto selectStmt = tryResult1210.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1211)::ok_type>); if ((__builtin_expect
(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1211.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14705, mozilla::dom::quota::Severity::Error); return tryResult1211
.propagateErr(); }}; return selectStmt; } auto tryResult1212 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1212.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14715, mozilla::dom::quota::Severity::Error); return tryResult1212
.propagateErr(); } auto selectStmt = tryResult1212.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect
(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1213.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14719, mozilla::dom::quota::Severity::Error); return tryResult1213
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1214.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1210 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1210.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1210.propagateErr(); } auto selectStmt = tryResult1210.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1211)::ok_type>); if ((__builtin_expect(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1211.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14705, mozilla::dom::quota::Severity::Error); return tryResult1211.propagateErr(); }}; return selectStmt; } auto tryResult1212 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1212.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14715, mozilla::dom::quota::Severity::Error); return tryResult1212.propagateErr(); } auto selectStmt = tryResult1212.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1213.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14719, mozilla::dom::quota::Severity::Error); return tryResult1213.propagateErr(); }}; } return selectStmt; }())"
, tryResult1214.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14723, mozilla::dom::quota::Severity::Error); return tryResult1214
.propagateErr(); } const auto& selectStmt = tryResult1214
.inspect();
14721
14722 return selectStmt;auto tryResult1214 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1210 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1210.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14700, mozilla::dom::quota::Severity::Error); return tryResult1210
.propagateErr(); } auto selectStmt = tryResult1210.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1211)::ok_type>); if ((__builtin_expect
(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1211.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14705, mozilla::dom::quota::Severity::Error); return tryResult1211
.propagateErr(); }}; return selectStmt; } auto tryResult1212 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1212.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14715, mozilla::dom::quota::Severity::Error); return tryResult1212
.propagateErr(); } auto selectStmt = tryResult1212.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect
(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1213.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14719, mozilla::dom::quota::Severity::Error); return tryResult1213
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1214.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1210 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1210.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1210.propagateErr(); } auto selectStmt = tryResult1210.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1211)::ok_type>); if ((__builtin_expect(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1211.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14705, mozilla::dom::quota::Severity::Error); return tryResult1211.propagateErr(); }}; return selectStmt; } auto tryResult1212 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1212.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14715, mozilla::dom::quota::Severity::Error); return tryResult1212.propagateErr(); } auto selectStmt = tryResult1212.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1213.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14719, mozilla::dom::quota::Severity::Error); return tryResult1213.propagateErr(); }}; } return selectStmt; }())"
, tryResult1214.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14723, mozilla::dom::quota::Severity::Error); return tryResult1214
.propagateErr(); } const auto& selectStmt = tryResult1214
.inspect();
14723 }()))auto tryResult1214 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1210 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1210.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14700, mozilla::dom::quota::Severity::Error); return tryResult1210
.propagateErr(); } auto selectStmt = tryResult1210.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1211)::ok_type>); if ((__builtin_expect
(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1211.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14705, mozilla::dom::quota::Severity::Error); return tryResult1211
.propagateErr(); }}; return selectStmt; } auto tryResult1212 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1212.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14715, mozilla::dom::quota::Severity::Error); return tryResult1212
.propagateErr(); } auto selectStmt = tryResult1212.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect
(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1213.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14719, mozilla::dom::quota::Severity::Error); return tryResult1213
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1214.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1210 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1210.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1210.propagateErr(); } auto selectStmt = tryResult1210.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1211 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1211)::ok_type>); if ((__builtin_expect(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1211.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14705, mozilla::dom::quota::Severity::Error); return tryResult1211.propagateErr(); }}; return selectStmt; } auto tryResult1212 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1212.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14715, mozilla::dom::quota::Severity::Error); return tryResult1212.propagateErr(); } auto selectStmt = tryResult1212.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1213 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1213)::ok_type>); if ((__builtin_expect(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1213.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14719, mozilla::dom::quota::Severity::Error); return tryResult1213.propagateErr(); }}; } return selectStmt; }())"
, tryResult1214.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14723, mozilla::dom::quota::Severity::Error); return tryResult1214
.propagateErr(); } const auto& selectStmt = tryResult1214
.inspect();
;
14724
14725 QM_TRY(MOZ_TO_RESULT(selectStmt->BindInt64ByName(kStmtParamNameObjectStoreId,{auto tryResult1215 = (ToResult(selectStmt->BindInt64ByName
(kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1215)::ok_type
>); if ((__builtin_expect(!!(tryResult1215.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt->BindInt64ByName(kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1215.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14726, mozilla::dom::quota::Severity::Error); return tryResult1215
.propagateErr(); }}
14726 aObjectStoreId))){auto tryResult1215 = (ToResult(selectStmt->BindInt64ByName
(kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1215)::ok_type
>); if ((__builtin_expect(!!(tryResult1215.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt->BindInt64ByName(kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1215.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14726, mozilla::dom::quota::Severity::Error); return tryResult1215
.propagateErr(); }}
;
14727
14728 DebugOnly<uint32_t> resultCountDEBUG = 0;
14729
14730 QM_TRY(CollectWhileHasResult({auto tryResult1219 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1216 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1216)::ok_type>); if ((__builtin_expect
(!!(tryResult1216.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1216.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14737, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1217 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1217)::ok_type>); if ((__builtin_expect
(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1217.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14743, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); }}; {auto tryResult1218 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1218)::ok_type>
); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1218.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14745, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1216 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1216)::ok_type>); if ((__builtin_expect(!!(tryResult1216.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1216.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14737, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1217 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1217)::ok_type>); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1217.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14743, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); }}; {auto tryResult1218 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1218.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14745, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1219.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14750, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); }}
14731 *selectStmt,{auto tryResult1219 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1216 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1216)::ok_type>); if ((__builtin_expect
(!!(tryResult1216.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1216.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14737, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1217 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1217)::ok_type>); if ((__builtin_expect
(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1217.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14743, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); }}; {auto tryResult1218 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1218)::ok_type>
); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1218.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14745, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1216 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1216)::ok_type>); if ((__builtin_expect(!!(tryResult1216.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1216.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14737, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1217 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1217)::ok_type>); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1217.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14743, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); }}; {auto tryResult1218 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1218.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14745, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1219.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14750, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); }}
14732 [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG,{auto tryResult1219 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1216 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1216)::ok_type>); if ((__builtin_expect
(!!(tryResult1216.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1216.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14737, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1217 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1217)::ok_type>); if ((__builtin_expect
(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1217.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14743, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); }}; {auto tryResult1218 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1218)::ok_type>
); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1218.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14745, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1216 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1216)::ok_type>); if ((__builtin_expect(!!(tryResult1216.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1216.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14737, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1217 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1217)::ok_type>); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1217.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14743, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); }}; {auto tryResult1218 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1218.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14745, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1219.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14750, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); }}
14733 indexValues = IndexDataValuesAutoArray{}]({auto tryResult1219 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1216 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1216)::ok_type>); if ((__builtin_expect
(!!(tryResult1216.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1216.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14737, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1217 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1217)::ok_type>); if ((__builtin_expect
(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1217.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14743, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); }}; {auto tryResult1218 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1218)::ok_type>
); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1218.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14745, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1216 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1216)::ok_type>); if ((__builtin_expect(!!(tryResult1216.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1216.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14737, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1217 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1217)::ok_type>); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1217.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14743, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); }}; {auto tryResult1218 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1218.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14745, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1219.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14750, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); }}
14734 auto& selectStmt) mutable -> Result<Ok, nsresult> {{auto tryResult1219 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1216 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1216)::ok_type>); if ((__builtin_expect
(!!(tryResult1216.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1216.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14737, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1217 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1217)::ok_type>); if ((__builtin_expect
(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1217.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14743, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); }}; {auto tryResult1218 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1218)::ok_type>
); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1218.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14745, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1216 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1216)::ok_type>); if ((__builtin_expect(!!(tryResult1216.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1216.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14737, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1217 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1217)::ok_type>); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1217.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14743, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); }}; {auto tryResult1218 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1218.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14745, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1219.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14750, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); }}
14735 if (!singleRowOnly) {{auto tryResult1219 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1216 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1216)::ok_type>); if ((__builtin_expect
(!!(tryResult1216.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1216.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14737, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1217 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1217)::ok_type>); if ((__builtin_expect
(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1217.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14743, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); }}; {auto tryResult1218 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1218)::ok_type>
); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1218.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14745, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1216 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1216)::ok_type>); if ((__builtin_expect(!!(tryResult1216.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1216.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14737, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1217 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1217)::ok_type>); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1217.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14743, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); }}; {auto tryResult1218 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1218.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14745, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1219.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14750, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); }}
14736 QM_TRY({auto tryResult1219 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1216 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1216)::ok_type>); if ((__builtin_expect
(!!(tryResult1216.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1216.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14737, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1217 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1217)::ok_type>); if ((__builtin_expect
(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1217.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14743, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); }}; {auto tryResult1218 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1218)::ok_type>
); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1218.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14745, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1216 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1216)::ok_type>); if ((__builtin_expect(!!(tryResult1216.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1216.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14737, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1217 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1217)::ok_type>); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1217.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14743, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); }}; {auto tryResult1218 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1218.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14745, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1219.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14750, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); }}
14737 MOZ_TO_RESULT(objectStoreKey.SetFromStatement(&selectStmt, 1)));{auto tryResult1219 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1216 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1216)::ok_type>); if ((__builtin_expect
(!!(tryResult1216.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1216.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14737, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1217 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1217)::ok_type>); if ((__builtin_expect
(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1217.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14743, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); }}; {auto tryResult1218 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1218)::ok_type>
); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1218.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14745, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1216 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1216)::ok_type>); if ((__builtin_expect(!!(tryResult1216.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1216.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14737, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1217 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1217)::ok_type>); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1217.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14743, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); }}; {auto tryResult1218 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1218.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14745, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1219.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14750, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); }}
14738
14739 indexValues.ClearAndRetainStorage();{auto tryResult1219 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1216 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1216)::ok_type>); if ((__builtin_expect
(!!(tryResult1216.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1216.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14737, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1217 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1217)::ok_type>); if ((__builtin_expect
(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1217.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14743, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); }}; {auto tryResult1218 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1218)::ok_type>
); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1218.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14745, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1216 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1216)::ok_type>); if ((__builtin_expect(!!(tryResult1216.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1216.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14737, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1217 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1217)::ok_type>); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1217.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14743, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); }}; {auto tryResult1218 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1218.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14745, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1219.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14750, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); }}
14740 }{auto tryResult1219 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1216 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1216)::ok_type>); if ((__builtin_expect
(!!(tryResult1216.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1216.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14737, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1217 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1217)::ok_type>); if ((__builtin_expect
(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1217.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14743, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); }}; {auto tryResult1218 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1218)::ok_type>
); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1218.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14745, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1216 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1216)::ok_type>); if ((__builtin_expect(!!(tryResult1216.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1216.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14737, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1217 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1217)::ok_type>); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1217.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14743, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); }}; {auto tryResult1218 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1218.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14745, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1219.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14750, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); }}
14741
14742 QM_TRY(MOZ_TO_RESULT({auto tryResult1219 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1216 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1216)::ok_type>); if ((__builtin_expect
(!!(tryResult1216.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1216.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14737, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1217 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1217)::ok_type>); if ((__builtin_expect
(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1217.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14743, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); }}; {auto tryResult1218 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1218)::ok_type>
); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1218.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14745, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1216 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1216)::ok_type>); if ((__builtin_expect(!!(tryResult1216.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1216.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14737, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1217 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1217)::ok_type>); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1217.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14743, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); }}; {auto tryResult1218 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1218.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14745, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1219.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14750, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); }}
14743 ReadCompressedIndexDataValues(selectStmt, 0, indexValues)));{auto tryResult1219 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1216 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1216)::ok_type>); if ((__builtin_expect
(!!(tryResult1216.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1216.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14737, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1217 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1217)::ok_type>); if ((__builtin_expect
(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1217.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14743, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); }}; {auto tryResult1218 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1218)::ok_type>
); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1218.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14745, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1216 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1216)::ok_type>); if ((__builtin_expect(!!(tryResult1216.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1216.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14737, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1217 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1217)::ok_type>); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1217.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14743, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); }}; {auto tryResult1218 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1218.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14745, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1219.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14750, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); }}
14744 QM_TRY(MOZ_TO_RESULT(DeleteIndexDataTableRows({auto tryResult1219 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1216 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1216)::ok_type>); if ((__builtin_expect
(!!(tryResult1216.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1216.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14737, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1217 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1217)::ok_type>); if ((__builtin_expect
(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1217.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14743, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); }}; {auto tryResult1218 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1218)::ok_type>
); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1218.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14745, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1216 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1216)::ok_type>); if ((__builtin_expect(!!(tryResult1216.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1216.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14737, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1217 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1217)::ok_type>); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1217.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14743, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); }}; {auto tryResult1218 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1218.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14745, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1219.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14750, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); }}
14745 aConnection, objectStoreKey, indexValues)));{auto tryResult1219 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1216 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1216)::ok_type>); if ((__builtin_expect
(!!(tryResult1216.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1216.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14737, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1217 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1217)::ok_type>); if ((__builtin_expect
(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1217.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14743, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); }}; {auto tryResult1218 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1218)::ok_type>
); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1218.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14745, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1216 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1216)::ok_type>); if ((__builtin_expect(!!(tryResult1216.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1216.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14737, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1217 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1217)::ok_type>); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1217.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14743, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); }}; {auto tryResult1218 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1218.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14745, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1219.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14750, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); }}
14746
14747 resultCountDEBUG++;{auto tryResult1219 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1216 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1216)::ok_type>); if ((__builtin_expect
(!!(tryResult1216.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1216.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14737, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1217 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1217)::ok_type>); if ((__builtin_expect
(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1217.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14743, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); }}; {auto tryResult1218 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1218)::ok_type>
); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1218.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14745, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1216 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1216)::ok_type>); if ((__builtin_expect(!!(tryResult1216.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1216.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14737, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1217 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1217)::ok_type>); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1217.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14743, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); }}; {auto tryResult1218 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1218.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14745, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1219.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14750, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); }}
14748
14749 return Ok{};{auto tryResult1219 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1216 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1216)::ok_type>); if ((__builtin_expect
(!!(tryResult1216.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1216.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14737, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1217 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1217)::ok_type>); if ((__builtin_expect
(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1217.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14743, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); }}; {auto tryResult1218 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1218)::ok_type>
); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1218.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14745, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1216 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1216)::ok_type>); if ((__builtin_expect(!!(tryResult1216.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1216.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14737, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1217 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1217)::ok_type>); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1217.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14743, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); }}; {auto tryResult1218 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1218.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14745, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1219.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14750, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); }}
14750 })){auto tryResult1219 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1216 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1216)::ok_type>); if ((__builtin_expect
(!!(tryResult1216.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1216.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14737, mozilla::dom::quota::Severity::Error); return tryResult1216
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1217 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1217)::ok_type>); if ((__builtin_expect
(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1217.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14743, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); }}; {auto tryResult1218 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1218)::ok_type>
); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1218.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14745, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1219)::ok_type
>); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1216 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1216)::ok_type>); if ((__builtin_expect(!!(tryResult1216.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1216.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14737, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1217 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1217)::ok_type>); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1217.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14743, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); }}; {auto tryResult1218 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1218.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14745, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1219.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14750, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); }}
;
14751
14752 MOZ_ASSERT_IF(singleRowOnly, resultCountDEBUG <= 1)do { if (singleRowOnly) { do { static_assert( mozilla::detail
::AssertionConditionType<decltype(resultCountDEBUG <= 1
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(resultCountDEBUG <= 1))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("resultCountDEBUG <= 1", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14752); AnnotateMozCrashReason("MOZ_ASSERT" "(" "resultCountDEBUG <= 1"
")"); do { MOZ_CrashSequence(__null, 14752); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
14753
14754 QM_TRY_UNWRAP(auto tryResult1220 = (aConnection->BorrowCachedStatement( "DELETE FROM object_data "_ns
+ "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"DELETE FROM object_data \"_ns + \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14758, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } auto deleteManyStmt = tryResult1220.unwrap
();
14755 auto deleteManyStmt,auto tryResult1220 = (aConnection->BorrowCachedStatement( "DELETE FROM object_data "_ns
+ "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"DELETE FROM object_data \"_ns + \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14758, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } auto deleteManyStmt = tryResult1220.unwrap
();
14756 aConnection->BorrowCachedStatement(auto tryResult1220 = (aConnection->BorrowCachedStatement( "DELETE FROM object_data "_ns
+ "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"DELETE FROM object_data \"_ns + \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14758, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } auto deleteManyStmt = tryResult1220.unwrap
();
14757 "DELETE FROM object_data "_ns + "WHERE object_store_id = :"_ns +auto tryResult1220 = (aConnection->BorrowCachedStatement( "DELETE FROM object_data "_ns
+ "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"DELETE FROM object_data \"_ns + \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14758, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } auto deleteManyStmt = tryResult1220.unwrap
();
14758 kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns))auto tryResult1220 = (aConnection->BorrowCachedStatement( "DELETE FROM object_data "_ns
+ "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"DELETE FROM object_data \"_ns + \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14758, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } auto deleteManyStmt = tryResult1220.unwrap
();
;
14759
14760 QM_TRY(MOZ_TO_RESULT(deleteManyStmt->BindInt64ByName({auto tryResult1221 = (ToResult(deleteManyStmt->BindInt64ByName
( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(deleteManyStmt->BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14761, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}
14761 kStmtParamNameObjectStoreId, aObjectStoreId))){auto tryResult1221 = (ToResult(deleteManyStmt->BindInt64ByName
( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(deleteManyStmt->BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14761, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); }}
;
14762
14763 if (aKeyRange.isSome()) {
14764 QM_TRY(MOZ_TO_RESULT({auto tryResult1222 = (ToResult(BindKeyRangeToStatement(aKeyRange
.ref(), &*deleteManyStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect
(!!(tryResult1222.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*deleteManyStmt))"
, tryResult1222.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14765, mozilla::dom::quota::Severity::Error); return tryResult1222
.propagateErr(); }}
14765 BindKeyRangeToStatement(aKeyRange.ref(), &*deleteManyStmt))){auto tryResult1222 = (ToResult(BindKeyRangeToStatement(aKeyRange
.ref(), &*deleteManyStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect
(!!(tryResult1222.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*deleteManyStmt))"
, tryResult1222.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14765, mozilla::dom::quota::Severity::Error); return tryResult1222
.propagateErr(); }}
;
14766 }
14767
14768 QM_TRY(MOZ_TO_RESULT(deleteManyStmt->Execute())){auto tryResult1223 = (ToResult(deleteManyStmt->Execute())
); static_assert(std::is_empty_v<typename decltype(tryResult1223
)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(deleteManyStmt->Execute())"
, tryResult1223.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14768, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}
;
14769
14770 return NS_OK;
14771}
14772
14773// static
14774nsresult DatabaseOperationBase::UpdateIndexValues(
14775 DatabaseConnection* aConnection, const IndexOrObjectStoreId aObjectStoreId,
14776 const Key& aObjectStoreKey, const nsTArray<IndexDataValue>& aIndexValues) {
14777 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14777); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 14777); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14778 aConnection->AssertIsOnConnectionThread();
14779 MOZ_ASSERT(!aObjectStoreKey.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aObjectStoreKey.IsUnset())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!aObjectStoreKey.IsUnset()))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!aObjectStoreKey.IsUnset()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14779
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aObjectStoreKey.IsUnset()"
")"); do { MOZ_CrashSequence(__null, 14779); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14780
14781 AUTO_PROFILER_LABEL("DatabaseOperationBase::UpdateIndexValues", DOM)mozilla::AutoProfilerLabel raiiObject14781( "DatabaseOperationBase::UpdateIndexValues"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
14782
14783 QM_TRY_UNWRAP((auto [indexDataValues, indexDataValuesLength]),auto tryResult1224 = (MakeCompressedIndexDataValues(aIndexValues
)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla
::dom::quota::HandleError("MakeCompressedIndexDataValues(aIndexValues)"
, tryResult1224.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14784, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } auto [indexDataValues, indexDataValuesLength
] = tryResult1224.unwrap();
14784 MakeCompressedIndexDataValues(aIndexValues))auto tryResult1224 = (MakeCompressedIndexDataValues(aIndexValues
)); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { mozilla
::dom::quota::HandleError("MakeCompressedIndexDataValues(aIndexValues)"
, tryResult1224.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14784, mozilla::dom::quota::Severity::Error); return tryResult1224
.propagateErr(); } auto [indexDataValues, indexDataValuesLength
] = tryResult1224.unwrap();
;
14785
14786 MOZ_ASSERT(!indexDataValuesLength == !(indexDataValues.get()))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!indexDataValuesLength == !(indexDataValues.get()))>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!indexDataValuesLength == !(indexDataValues.get())))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!indexDataValuesLength == !(indexDataValues.get())"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14786
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!indexDataValuesLength == !(indexDataValues.get())"
")"); do { MOZ_CrashSequence(__null, 14786); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14787
14788 QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1228 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues
+ " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues
= indexDataValues, indexDataValuesLength = indexDataValuesLength
, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement
& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1225
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1225
)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14802, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; {auto tryResult1226 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1226.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14805, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); }}; {auto tryResult1227 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1227.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14808, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1225 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14802, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; {auto tryResult1226 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1226.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14805, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); }}; {auto tryResult1227 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1227.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14808, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; return Ok{}; }))"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14811, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); }}
14789 "UPDATE object_data SET index_data_values = :"_ns +{auto tryResult1228 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues
+ " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues
= indexDataValues, indexDataValuesLength = indexDataValuesLength
, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement
& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1225
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1225
)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14802, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; {auto tryResult1226 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1226.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14805, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); }}; {auto tryResult1227 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1227.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14808, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1225 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14802, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; {auto tryResult1226 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1226.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14805, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); }}; {auto tryResult1227 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1227.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14808, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; return Ok{}; }))"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14811, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); }}
14790 kStmtParamNameIndexDataValues + " WHERE object_store_id = :"_ns +{auto tryResult1228 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues
+ " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues
= indexDataValues, indexDataValuesLength = indexDataValuesLength
, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement
& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1225
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1225
)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14802, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; {auto tryResult1226 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1226.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14805, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); }}; {auto tryResult1227 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1227.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14808, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1225 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14802, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; {auto tryResult1226 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1226.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14805, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); }}; {auto tryResult1227 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1227.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14808, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; return Ok{}; }))"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14811, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); }}
14791 kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey +{auto tryResult1228 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues
+ " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues
= indexDataValues, indexDataValuesLength = indexDataValuesLength
, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement
& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1225
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1225
)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14802, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; {auto tryResult1226 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1226.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14805, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); }}; {auto tryResult1227 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1227.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14808, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1225 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14802, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; {auto tryResult1226 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1226.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14805, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); }}; {auto tryResult1227 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1227.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14808, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; return Ok{}; }))"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14811, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); }}
14792 ";"_ns,{auto tryResult1228 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues
+ " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues
= indexDataValues, indexDataValuesLength = indexDataValuesLength
, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement
& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1225
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1225
)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14802, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; {auto tryResult1226 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1226.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14805, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); }}; {auto tryResult1227 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1227.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14808, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1225 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14802, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; {auto tryResult1226 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1226.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14805, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); }}; {auto tryResult1227 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1227.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14808, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; return Ok{}; }))"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14811, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); }}
14793 [&indexDataValues = indexDataValues,{auto tryResult1228 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues
+ " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues
= indexDataValues, indexDataValuesLength = indexDataValuesLength
, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement
& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1225
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1225
)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14802, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; {auto tryResult1226 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1226.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14805, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); }}; {auto tryResult1227 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1227.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14808, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1225 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14802, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; {auto tryResult1226 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1226.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14805, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); }}; {auto tryResult1227 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1227.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14808, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; return Ok{}; }))"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14811, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); }}
14794 indexDataValuesLength = indexDataValuesLength, aObjectStoreId,{auto tryResult1228 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues
+ " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues
= indexDataValues, indexDataValuesLength = indexDataValuesLength
, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement
& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1225
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1225
)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14802, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; {auto tryResult1226 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1226.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14805, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); }}; {auto tryResult1227 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1227.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14808, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1225 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14802, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; {auto tryResult1226 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1226.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14805, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); }}; {auto tryResult1227 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1227.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14808, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; return Ok{}; }))"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14811, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); }}
14795 &aObjectStoreKey]({auto tryResult1228 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues
+ " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues
= indexDataValues, indexDataValuesLength = indexDataValuesLength
, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement
& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1225
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1225
)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14802, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; {auto tryResult1226 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1226.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14805, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); }}; {auto tryResult1227 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1227.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14808, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1225 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14802, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; {auto tryResult1226 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1226.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14805, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); }}; {auto tryResult1227 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1227.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14808, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; return Ok{}; }))"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14811, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); }}
14796 mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> {{auto tryResult1228 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues
+ " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues
= indexDataValues, indexDataValuesLength = indexDataValuesLength
, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement
& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1225
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1225
)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14802, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; {auto tryResult1226 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1226.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14805, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); }}; {auto tryResult1227 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1227.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14808, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1225 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14802, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; {auto tryResult1226 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1226.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14805, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); }}; {auto tryResult1227 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1227.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14808, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; return Ok{}; }))"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14811, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); }}
14797 QM_TRY(MOZ_TO_RESULT({auto tryResult1228 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues
+ " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues
= indexDataValues, indexDataValuesLength = indexDataValuesLength
, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement
& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1225
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1225
)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14802, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; {auto tryResult1226 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1226.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14805, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); }}; {auto tryResult1227 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1227.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14808, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1225 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14802, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; {auto tryResult1226 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1226.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14805, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); }}; {auto tryResult1227 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1227.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14808, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; return Ok{}; }))"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14811, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); }}
14798 indexDataValues{auto tryResult1228 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues
+ " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues
= indexDataValues, indexDataValuesLength = indexDataValuesLength
, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement
& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1225
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1225
)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14802, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; {auto tryResult1226 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1226.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14805, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); }}; {auto tryResult1227 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1227.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14808, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1225 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14802, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; {auto tryResult1226 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1226.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14805, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); }}; {auto tryResult1227 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1227.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14808, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; return Ok{}; }))"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14811, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); }}
14799 ? updateStmt.BindAdoptedBlobByName({auto tryResult1228 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues
+ " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues
= indexDataValues, indexDataValuesLength = indexDataValuesLength
, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement
& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1225
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1225
)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14802, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; {auto tryResult1226 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1226.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14805, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); }}; {auto tryResult1227 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1227.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14808, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1225 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14802, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; {auto tryResult1226 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1226.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14805, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); }}; {auto tryResult1227 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1227.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14808, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; return Ok{}; }))"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14811, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); }}
14800 kStmtParamNameIndexDataValues, indexDataValues.release(),{auto tryResult1228 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues
+ " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues
= indexDataValues, indexDataValuesLength = indexDataValuesLength
, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement
& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1225
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1225
)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14802, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; {auto tryResult1226 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1226.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14805, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); }}; {auto tryResult1227 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1227.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14808, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1225 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14802, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; {auto tryResult1226 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1226.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14805, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); }}; {auto tryResult1227 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1227.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14808, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; return Ok{}; }))"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14811, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); }}
14801 indexDataValuesLength){auto tryResult1228 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues
+ " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues
= indexDataValues, indexDataValuesLength = indexDataValuesLength
, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement
& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1225
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1225
)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14802, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; {auto tryResult1226 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1226.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14805, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); }}; {auto tryResult1227 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1227.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14808, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1225 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14802, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; {auto tryResult1226 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1226.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14805, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); }}; {auto tryResult1227 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1227.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14808, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; return Ok{}; }))"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14811, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); }}
14802 : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)));{auto tryResult1228 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues
+ " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues
= indexDataValues, indexDataValuesLength = indexDataValuesLength
, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement
& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1225
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1225
)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14802, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; {auto tryResult1226 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1226.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14805, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); }}; {auto tryResult1227 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1227.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14808, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1225 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14802, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; {auto tryResult1226 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1226.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14805, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); }}; {auto tryResult1227 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1227.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14808, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; return Ok{}; }))"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14811, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); }}
14803
14804 QM_TRY(MOZ_TO_RESULT(updateStmt.BindInt64ByName({auto tryResult1228 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues
+ " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues
= indexDataValues, indexDataValuesLength = indexDataValuesLength
, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement
& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1225
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1225
)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14802, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; {auto tryResult1226 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1226.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14805, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); }}; {auto tryResult1227 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1227.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14808, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1225 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14802, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; {auto tryResult1226 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1226.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14805, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); }}; {auto tryResult1227 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1227.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14808, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; return Ok{}; }))"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14811, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); }}
14805 kStmtParamNameObjectStoreId, aObjectStoreId)));{auto tryResult1228 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues
+ " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues
= indexDataValues, indexDataValuesLength = indexDataValuesLength
, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement
& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1225
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1225
)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14802, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; {auto tryResult1226 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1226.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14805, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); }}; {auto tryResult1227 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1227.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14808, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1225 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14802, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; {auto tryResult1226 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1226.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14805, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); }}; {auto tryResult1227 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1227.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14808, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; return Ok{}; }))"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14811, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); }}
14806
14807 QM_TRY(MOZ_TO_RESULT({auto tryResult1228 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues
+ " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues
= indexDataValues, indexDataValuesLength = indexDataValuesLength
, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement
& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1225
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1225
)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14802, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; {auto tryResult1226 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1226.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14805, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); }}; {auto tryResult1227 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1227.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14808, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1225 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14802, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; {auto tryResult1226 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1226.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14805, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); }}; {auto tryResult1227 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1227.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14808, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; return Ok{}; }))"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14811, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); }}
14808 aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey)));{auto tryResult1228 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues
+ " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues
= indexDataValues, indexDataValuesLength = indexDataValuesLength
, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement
& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1225
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1225
)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14802, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; {auto tryResult1226 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1226.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14805, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); }}; {auto tryResult1227 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1227.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14808, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1225 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14802, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; {auto tryResult1226 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1226.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14805, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); }}; {auto tryResult1227 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1227.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14808, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; return Ok{}; }))"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14811, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); }}
14809
14810 return Ok{};{auto tryResult1228 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues
+ " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues
= indexDataValues, indexDataValuesLength = indexDataValuesLength
, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement
& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1225
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1225
)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14802, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; {auto tryResult1226 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1226.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14805, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); }}; {auto tryResult1227 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1227.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14808, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1225 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14802, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; {auto tryResult1226 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1226.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14805, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); }}; {auto tryResult1227 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1227.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14808, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; return Ok{}; }))"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14811, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); }}
14811 }))){auto tryResult1228 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues
+ " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues
= indexDataValues, indexDataValuesLength = indexDataValuesLength
, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement
& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1225
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1225
)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14802, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; {auto tryResult1226 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1226.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14805, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); }}; {auto tryResult1227 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1227.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14808, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1225 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14802, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; {auto tryResult1226 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1226.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14805, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); }}; {auto tryResult1227 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1227.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14808, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; return Ok{}; }))"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14811, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); }}
;
14812
14813 return NS_OK;
14814}
14815
14816// static
14817Result<bool, nsresult> DatabaseOperationBase::ObjectStoreHasIndexes(
14818 DatabaseConnection& aConnection,
14819 const IndexOrObjectStoreId aObjectStoreId) {
14820 aConnection.AssertIsOnConnectionThread();
14821 MOZ_ASSERT(aObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aObjectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aObjectStoreId))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("aObjectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14821
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aObjectStoreId" ")"
); do { MOZ_CrashSequence(__null, 14821); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
14822
14823 QM_TRY_RETURN(aConnection{auto tryResult1230 = (aConnection .BorrowAndExecuteSingleStepStatement
( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " LIMIT 1;"_ns, [aObjectStoreId
](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1229
= (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, aObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1229.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14831, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" LIMIT 1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1229 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14831, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult1230.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14834, mozilla::dom::quota::Severity::Error); } return tryResult1230
;}
14824 .BorrowAndExecuteSingleStepStatement({auto tryResult1230 = (aConnection .BorrowAndExecuteSingleStepStatement
( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " LIMIT 1;"_ns, [aObjectStoreId
](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1229
= (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, aObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1229.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14831, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" LIMIT 1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1229 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14831, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult1230.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14834, mozilla::dom::quota::Severity::Error); } return tryResult1230
;}
14825 "SELECT id "{auto tryResult1230 = (aConnection .BorrowAndExecuteSingleStepStatement
( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " LIMIT 1;"_ns, [aObjectStoreId
](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1229
= (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, aObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1229.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14831, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" LIMIT 1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1229 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14831, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult1230.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14834, mozilla::dom::quota::Severity::Error); } return tryResult1230
;}
14826 "FROM object_store_index "{auto tryResult1230 = (aConnection .BorrowAndExecuteSingleStepStatement
( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " LIMIT 1;"_ns, [aObjectStoreId
](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1229
= (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, aObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1229.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14831, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" LIMIT 1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1229 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14831, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult1230.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14834, mozilla::dom::quota::Severity::Error); } return tryResult1230
;}
14827 "WHERE object_store_id = :"_ns +{auto tryResult1230 = (aConnection .BorrowAndExecuteSingleStepStatement
( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " LIMIT 1;"_ns, [aObjectStoreId
](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1229
= (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, aObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1229.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14831, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" LIMIT 1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1229 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14831, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult1230.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14834, mozilla::dom::quota::Severity::Error); } return tryResult1230
;}
14828 kStmtParamNameObjectStoreId + " LIMIT 1;"_ns,{auto tryResult1230 = (aConnection .BorrowAndExecuteSingleStepStatement
( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " LIMIT 1;"_ns, [aObjectStoreId
](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1229
= (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, aObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1229.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14831, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" LIMIT 1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1229 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14831, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult1230.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14834, mozilla::dom::quota::Severity::Error); } return tryResult1230
;}
14829 [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> {{auto tryResult1230 = (aConnection .BorrowAndExecuteSingleStepStatement
( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " LIMIT 1;"_ns, [aObjectStoreId
](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1229
= (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, aObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1229.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14831, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" LIMIT 1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1229 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14831, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult1230.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14834, mozilla::dom::quota::Severity::Error); } return tryResult1230
;}
14830 QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByName({auto tryResult1230 = (aConnection .BorrowAndExecuteSingleStepStatement
( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " LIMIT 1;"_ns, [aObjectStoreId
](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1229
= (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, aObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1229.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14831, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" LIMIT 1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1229 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14831, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult1230.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14834, mozilla::dom::quota::Severity::Error); } return tryResult1230
;}
14831 kStmtParamNameObjectStoreId, aObjectStoreId)));{auto tryResult1230 = (aConnection .BorrowAndExecuteSingleStepStatement
( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " LIMIT 1;"_ns, [aObjectStoreId
](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1229
= (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, aObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1229.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14831, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" LIMIT 1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1229 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14831, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult1230.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14834, mozilla::dom::quota::Severity::Error); } return tryResult1230
;}
14832 return Ok{};{auto tryResult1230 = (aConnection .BorrowAndExecuteSingleStepStatement
( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " LIMIT 1;"_ns, [aObjectStoreId
](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1229
= (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, aObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1229.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14831, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" LIMIT 1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1229 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14831, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult1230.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14834, mozilla::dom::quota::Severity::Error); } return tryResult1230
;}
14833 }){auto tryResult1230 = (aConnection .BorrowAndExecuteSingleStepStatement
( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " LIMIT 1;"_ns, [aObjectStoreId
](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1229
= (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, aObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1229.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14831, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" LIMIT 1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1229 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14831, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult1230.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14834, mozilla::dom::quota::Severity::Error); } return tryResult1230
;}
14834 .map(IsSome)){auto tryResult1230 = (aConnection .BorrowAndExecuteSingleStepStatement
( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " LIMIT 1;"_ns, [aObjectStoreId
](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1229
= (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, aObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1229.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14831, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" LIMIT 1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1229 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14831, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult1230.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14834, mozilla::dom::quota::Severity::Error); } return tryResult1230
;}
;
14835}
14836
14837NS_IMPL_ISUPPORTS_INHERITED(DatabaseOperationBase, Runnable,nsresult DatabaseOperationBase::QueryInterface(const nsIID&
aIID, void** aInstancePtr) { do { if (!(aInstancePtr)) { NS_DebugBreak
(NS_DEBUG_ASSERTION, "QueryInterface requires a non-NULL destination!"
, "aInstancePtr", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14838); MOZ_PretendNoReturn(); } } while (0); nsresult rv =
NS_ERROR_FAILURE; static_assert(1 > 0, "Need more arguments to NS_INTERFACE_TABLE_INHERITED"
); static const QITableEntry table[] = { {&mozilla::detail
::kImplementedIID<DatabaseOperationBase, mozIStorageProgressHandler
>, int32_t( reinterpret_cast<char*>(static_cast<mozIStorageProgressHandler
*>((DatabaseOperationBase*)0x1000)) - reinterpret_cast<
char*>((DatabaseOperationBase*)0x1000))}, { nullptr, 0 } }
; static_assert(std::size(table) > 1, "need at least 1 interface"
); rv = NS_TableDrivenQI(static_cast<void*>(this), aIID
, aInstancePtr, table); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl
(rv)), 1)))) return rv; return Runnable::QueryInterface(aIID,
aInstancePtr); } MozExternalRefCountType DatabaseOperationBase
::AddRef(void) { static_assert(!std::is_destructible_v<DatabaseOperationBase
>, "Reference-counted class " "DatabaseOperationBase" " should not have a public destructor. "
"Make this class's destructor non-public"); nsrefcnt r = Runnable
::AddRef(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt
<DatabaseOperationBase>) { NS_LogAddRef((this), (r), ("DatabaseOperationBase"
), (uint32_t)(sizeof(*this))); } return r; } MozExternalRefCountType
DatabaseOperationBase::Release(void) { nsrefcnt r = Runnable
::Release(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt
<DatabaseOperationBase>) { NS_LogRelease((this), (r), (
"DatabaseOperationBase")); } return r; }
14838 mozIStorageProgressHandler)nsresult DatabaseOperationBase::QueryInterface(const nsIID&
aIID, void** aInstancePtr) { do { if (!(aInstancePtr)) { NS_DebugBreak
(NS_DEBUG_ASSERTION, "QueryInterface requires a non-NULL destination!"
, "aInstancePtr", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14838); MOZ_PretendNoReturn(); } } while (0); nsresult rv =
NS_ERROR_FAILURE; static_assert(1 > 0, "Need more arguments to NS_INTERFACE_TABLE_INHERITED"
); static const QITableEntry table[] = { {&mozilla::detail
::kImplementedIID<DatabaseOperationBase, mozIStorageProgressHandler
>, int32_t( reinterpret_cast<char*>(static_cast<mozIStorageProgressHandler
*>((DatabaseOperationBase*)0x1000)) - reinterpret_cast<
char*>((DatabaseOperationBase*)0x1000))}, { nullptr, 0 } }
; static_assert(std::size(table) > 1, "need at least 1 interface"
); rv = NS_TableDrivenQI(static_cast<void*>(this), aIID
, aInstancePtr, table); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl
(rv)), 1)))) return rv; return Runnable::QueryInterface(aIID,
aInstancePtr); } MozExternalRefCountType DatabaseOperationBase
::AddRef(void) { static_assert(!std::is_destructible_v<DatabaseOperationBase
>, "Reference-counted class " "DatabaseOperationBase" " should not have a public destructor. "
"Make this class's destructor non-public"); nsrefcnt r = Runnable
::AddRef(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt
<DatabaseOperationBase>) { NS_LogAddRef((this), (r), ("DatabaseOperationBase"
), (uint32_t)(sizeof(*this))); } return r; } MozExternalRefCountType
DatabaseOperationBase::Release(void) { nsrefcnt r = Runnable
::Release(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt
<DatabaseOperationBase>) { NS_LogRelease((this), (r), (
"DatabaseOperationBase")); } return r; }
14839
14840NS_IMETHODIMPnsresult
14841DatabaseOperationBase::OnProgress(mozIStorageConnection* aConnection,
14842 bool* _retval) {
14843 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14843
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 14843); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14844 MOZ_ASSERT(_retval)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(_retval)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(_retval))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("_retval", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14844); AnnotateMozCrashReason("MOZ_ASSERT" "(" "_retval" ")"
); do { MOZ_CrashSequence(__null, 14844); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
14845
14846 // This is intentionally racy.
14847 *_retval = QuotaClient::IsShuttingDownOnNonBackgroundThread() ||
14848 !OperationMayProceed();
14849 return NS_OK;
14850}
14851
14852DatabaseOperationBase::AutoSetProgressHandler::AutoSetProgressHandler()
14853 : mConnection(Nothing())
14854#ifdef DEBUG1
14855 ,
14856 mDEBUGDatabaseOp(nullptr)
14857#endif
14858{
14859 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14859
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 14859); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14860}
14861
14862DatabaseOperationBase::AutoSetProgressHandler::~AutoSetProgressHandler() {
14863 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14863
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 14863); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14864
14865 if (mConnection) {
14866 Unregister();
14867 }
14868}
14869
14870nsresult DatabaseOperationBase::AutoSetProgressHandler::Register(
14871 mozIStorageConnection& aConnection, DatabaseOperationBase* aDatabaseOp) {
14872 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14872
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 14872); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14873 MOZ_ASSERT(aDatabaseOp)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDatabaseOp)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDatabaseOp))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aDatabaseOp", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14873); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseOp"
")"); do { MOZ_CrashSequence(__null, 14873); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14874 MOZ_ASSERT(!mConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mConnection))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("!mConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14874); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mConnection"
")"); do { MOZ_CrashSequence(__null, 14874); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14875
14876 QM_TRY_UNWRAP(auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageProgressHandler> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::SetProgressHandler
), (aConnection), kStorageProgressGranularity, aDatabaseOp));
if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageProgressHandler>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::SetProgressHandler), (aConnection), kStorageProgressGranularity, aDatabaseOp)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14880, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const DebugOnly oldProgressHandler = tryResult1231
.unwrap();
14877 const DebugOnly oldProgressHandler,auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageProgressHandler> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::SetProgressHandler
), (aConnection), kStorageProgressGranularity, aDatabaseOp));
if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageProgressHandler>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::SetProgressHandler), (aConnection), kStorageProgressGranularity, aDatabaseOp)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14880, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const DebugOnly oldProgressHandler = tryResult1231
.unwrap();
14878 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageProgressHandler> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::SetProgressHandler
), (aConnection), kStorageProgressGranularity, aDatabaseOp));
if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageProgressHandler>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::SetProgressHandler), (aConnection), kStorageProgressGranularity, aDatabaseOp)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14880, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const DebugOnly oldProgressHandler = tryResult1231
.unwrap();
14879 nsCOMPtr<mozIStorageProgressHandler>, aConnection, SetProgressHandler,auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageProgressHandler> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::SetProgressHandler
), (aConnection), kStorageProgressGranularity, aDatabaseOp));
if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageProgressHandler>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::SetProgressHandler), (aConnection), kStorageProgressGranularity, aDatabaseOp)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14880, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const DebugOnly oldProgressHandler = tryResult1231
.unwrap();
14880 kStorageProgressGranularity, aDatabaseOp))auto tryResult1231 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageProgressHandler> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::SetProgressHandler
), (aConnection), kStorageProgressGranularity, aDatabaseOp));
if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageProgressHandler>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::SetProgressHandler), (aConnection), kStorageProgressGranularity, aDatabaseOp)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14880, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const DebugOnly oldProgressHandler = tryResult1231
.unwrap();
;
14881
14882 MOZ_ASSERT(!oldProgressHandler.inspect())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!oldProgressHandler.inspect())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!oldProgressHandler.inspect(
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!oldProgressHandler.inspect()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14882); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!oldProgressHandler.inspect()"
")"); do { MOZ_CrashSequence(__null, 14882); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14883
14884 mConnection = SomeRef(aConnection);
14885#ifdef DEBUG1
14886 mDEBUGDatabaseOp = aDatabaseOp;
14887#endif
14888
14889 return NS_OK;
14890}
14891
14892void DatabaseOperationBase::AutoSetProgressHandler::Unregister() {
14893 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14893
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 14893); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14894 MOZ_ASSERT(mConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14894); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection"
")"); do { MOZ_CrashSequence(__null, 14894); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14895
14896 nsCOMPtr<mozIStorageProgressHandler> oldHandler;
14897 MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(mConnection->RemoveProgressHandler(getter_AddRefs(oldHandler
)))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(mConnection->RemoveProgressHandler(getter_AddRefs(oldHandler)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14898
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mConnection->RemoveProgressHandler(getter_AddRefs(oldHandler)))"
")"); do { MOZ_CrashSequence(__null, 14898); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
14898 mConnection->RemoveProgressHandler(getter_AddRefs(oldHandler)))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(mConnection->RemoveProgressHandler(getter_AddRefs(oldHandler
)))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(mConnection->RemoveProgressHandler(getter_AddRefs(oldHandler)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14898
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mConnection->RemoveProgressHandler(getter_AddRefs(oldHandler)))"
")"); do { MOZ_CrashSequence(__null, 14898); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
14899 MOZ_ASSERT(oldHandler == mDEBUGDatabaseOp)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(oldHandler == mDEBUGDatabaseOp)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(oldHandler == mDEBUGDatabaseOp
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"oldHandler == mDEBUGDatabaseOp", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14899); AnnotateMozCrashReason("MOZ_ASSERT" "(" "oldHandler == mDEBUGDatabaseOp"
")"); do { MOZ_CrashSequence(__null, 14899); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14900
14901 mConnection = Nothing();
14902}
14903
14904FactoryOp::FactoryOp(SafeRefPtr<Factory> aFactory,
14905 const Maybe<ContentParentId>& aContentParentId,
14906 const PersistenceType aPersistenceType,
14907 const PrincipalInfo& aPrincipalInfo,
14908 const Maybe<nsString>& aDatabaseName, bool aDeleting)
14909 : DatabaseOperationBase(aFactory->GetLoggingInfo()->Id(),
14910 aFactory->GetLoggingInfo()->NextRequestSN()),
14911 mFactory(std::move(aFactory)),
14912 mContentParentId(aContentParentId),
14913 mPrincipalInfo(aPrincipalInfo),
14914 mDatabaseName(aDatabaseName),
14915 mDirectoryLockId(-1),
14916 mPersistenceType(aPersistenceType),
14917 mState(State::Initial),
14918 mWaitingForPermissionRetry(false),
14919 mEnforcingQuota(true),
14920 mDeleting(aDeleting) {
14921 AssertIsOnBackgroundThread();
14922 MOZ_ASSERT(mFactory)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mFactory)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mFactory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mFactory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14922); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFactory" ")"
); do { MOZ_CrashSequence(__null, 14922); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
14923 MOZ_ASSERT(!QuotaClient::IsShuttingDownOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!QuotaClient::IsShuttingDownOnBackgroundThread())>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!QuotaClient::IsShuttingDownOnBackgroundThread()))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("!QuotaClient::IsShuttingDownOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14923
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!QuotaClient::IsShuttingDownOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 14923); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14924}
14925
14926nsresult FactoryOp::DispatchThisAfterProcessingCurrentEvent(
14927 nsCOMPtr<nsIEventTarget> aEventTarget) {
14928 QM_TRY(MOZ_TO_RESULT(RunAfterProcessingCurrentEvent({auto tryResult1233 = (ToResult(RunAfterProcessingCurrentEvent
( [eventTarget = std::move(aEventTarget), self = RefPtr(this)
]() mutable { {auto tryResult1232 = (ToResult(eventTarget->
Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert
(std::is_empty_v<typename decltype(tryResult1232)::ok_type
>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))"
, tryResult1232.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14931, mozilla::dom::quota::Severity::Warning); }}; }))); static_assert
(std::is_empty_v<typename decltype(tryResult1233)::ok_type
>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RunAfterProcessingCurrentEvent( [eventTarget = std::move(aEventTarget), self = RefPtr(this)]() mutable { {auto tryResult1232 = (ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))\", tryResult1232.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14931, mozilla::dom::quota::Severity::Warning); }}; }))"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14932, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}
14929 [eventTarget = std::move(aEventTarget), self = RefPtr(this)]() mutable {{auto tryResult1233 = (ToResult(RunAfterProcessingCurrentEvent
( [eventTarget = std::move(aEventTarget), self = RefPtr(this)
]() mutable { {auto tryResult1232 = (ToResult(eventTarget->
Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert
(std::is_empty_v<typename decltype(tryResult1232)::ok_type
>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))"
, tryResult1232.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14931, mozilla::dom::quota::Severity::Warning); }}; }))); static_assert
(std::is_empty_v<typename decltype(tryResult1233)::ok_type
>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RunAfterProcessingCurrentEvent( [eventTarget = std::move(aEventTarget), self = RefPtr(this)]() mutable { {auto tryResult1232 = (ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))\", tryResult1232.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14931, mozilla::dom::quota::Severity::Warning); }}; }))"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14932, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}
14930 QM_WARNONLY_TRY(MOZ_TO_RESULT({auto tryResult1233 = (ToResult(RunAfterProcessingCurrentEvent
( [eventTarget = std::move(aEventTarget), self = RefPtr(this)
]() mutable { {auto tryResult1232 = (ToResult(eventTarget->
Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert
(std::is_empty_v<typename decltype(tryResult1232)::ok_type
>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))"
, tryResult1232.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14931, mozilla::dom::quota::Severity::Warning); }}; }))); static_assert
(std::is_empty_v<typename decltype(tryResult1233)::ok_type
>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RunAfterProcessingCurrentEvent( [eventTarget = std::move(aEventTarget), self = RefPtr(this)]() mutable { {auto tryResult1232 = (ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))\", tryResult1232.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14931, mozilla::dom::quota::Severity::Warning); }}; }))"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14932, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}
14931 eventTarget->Dispatch(self.forget(), NS_DISPATCH_NORMAL)));{auto tryResult1233 = (ToResult(RunAfterProcessingCurrentEvent
( [eventTarget = std::move(aEventTarget), self = RefPtr(this)
]() mutable { {auto tryResult1232 = (ToResult(eventTarget->
Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert
(std::is_empty_v<typename decltype(tryResult1232)::ok_type
>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))"
, tryResult1232.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14931, mozilla::dom::quota::Severity::Warning); }}; }))); static_assert
(std::is_empty_v<typename decltype(tryResult1233)::ok_type
>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RunAfterProcessingCurrentEvent( [eventTarget = std::move(aEventTarget), self = RefPtr(this)]() mutable { {auto tryResult1232 = (ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))\", tryResult1232.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14931, mozilla::dom::quota::Severity::Warning); }}; }))"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14932, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}
14932 }))){auto tryResult1233 = (ToResult(RunAfterProcessingCurrentEvent
( [eventTarget = std::move(aEventTarget), self = RefPtr(this)
]() mutable { {auto tryResult1232 = (ToResult(eventTarget->
Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert
(std::is_empty_v<typename decltype(tryResult1232)::ok_type
>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))"
, tryResult1232.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14931, mozilla::dom::quota::Severity::Warning); }}; }))); static_assert
(std::is_empty_v<typename decltype(tryResult1233)::ok_type
>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RunAfterProcessingCurrentEvent( [eventTarget = std::move(aEventTarget), self = RefPtr(this)]() mutable { {auto tryResult1232 = (ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))\", tryResult1232.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14931, mozilla::dom::quota::Severity::Warning); }}; }))"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14932, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}
;
14933
14934 return NS_OK;
14935}
14936
14937void FactoryOp::NoteDatabaseBlocked(Database* aDatabase) {
14938 AssertIsOnOwningThread();
14939 MOZ_ASSERT(aDatabase)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDatabase)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDatabase))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14939); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabase"
")"); do { MOZ_CrashSequence(__null, 14939); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14940 MOZ_ASSERT(mState == State::WaitingForOtherDatabasesToClose)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::WaitingForOtherDatabasesToClose)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mState == State::WaitingForOtherDatabasesToClose))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::WaitingForOtherDatabasesToClose"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14940
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::WaitingForOtherDatabasesToClose"
")"); do { MOZ_CrashSequence(__null, 14940); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14941 MOZ_ASSERT(!mMaybeBlockedDatabases.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mMaybeBlockedDatabases.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mMaybeBlockedDatabases.IsEmpty
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!mMaybeBlockedDatabases.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14941); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mMaybeBlockedDatabases.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 14941); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14942 MOZ_ASSERT(mMaybeBlockedDatabases.Contains(aDatabase))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMaybeBlockedDatabases.Contains(aDatabase))>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mMaybeBlockedDatabases.Contains(aDatabase)))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mMaybeBlockedDatabases.Contains(aDatabase)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14942
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.Contains(aDatabase)"
")"); do { MOZ_CrashSequence(__null, 14942); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14943
14944 // Only send the blocked event if all databases have reported back. If the
14945 // database was closed then it will have been removed from the array.
14946 // Otherwise if it was blocked its |mBlocked| flag will be true.
14947 bool sendBlockedEvent = true;
14948
14949 for (auto& info : mMaybeBlockedDatabases) {
14950 if (info == aDatabase) {
14951 // This database was blocked, mark accordingly.
14952 info.mBlocked = true;
14953 } else if (!info.mBlocked) {
14954 // A database has not yet reported back yet, don't send the event yet.
14955 sendBlockedEvent = false;
14956 }
14957 }
14958
14959 if (sendBlockedEvent) {
14960 SendBlockedNotification();
14961 }
14962}
14963
14964void FactoryOp::NoteDatabaseClosed(Database* const aDatabase) {
14965 AssertIsOnOwningThread();
14966 MOZ_ASSERT(aDatabase)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDatabase)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDatabase))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14966); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabase"
")"); do { MOZ_CrashSequence(__null, 14966); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14967 MOZ_ASSERT(mState == State::WaitingForOtherDatabasesToClose)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::WaitingForOtherDatabasesToClose)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mState == State::WaitingForOtherDatabasesToClose))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::WaitingForOtherDatabasesToClose"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14967
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::WaitingForOtherDatabasesToClose"
")"); do { MOZ_CrashSequence(__null, 14967); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14968 MOZ_ASSERT(!mMaybeBlockedDatabases.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mMaybeBlockedDatabases.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mMaybeBlockedDatabases.IsEmpty
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!mMaybeBlockedDatabases.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14968); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mMaybeBlockedDatabases.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 14968); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14969 MOZ_ASSERT(mMaybeBlockedDatabases.Contains(aDatabase))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMaybeBlockedDatabases.Contains(aDatabase))>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mMaybeBlockedDatabases.Contains(aDatabase)))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mMaybeBlockedDatabases.Contains(aDatabase)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14969
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.Contains(aDatabase)"
")"); do { MOZ_CrashSequence(__null, 14969); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14970
14971 mMaybeBlockedDatabases.RemoveElement(aDatabase);
14972
14973 if (!mMaybeBlockedDatabases.IsEmpty()) {
14974 return;
14975 }
14976
14977 DatabaseActorInfo* info;
14978 MOZ_ALWAYS_TRUE(gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info))do { if ((__builtin_expect(!!(gLiveDatabaseHashtable->Get(
mDatabaseId.ref(), &info)), 1))) { } else { do { do { } while
(false); MOZ_ReportCrash("" "gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14978
); AnnotateMozCrashReason("MOZ_CRASH(" "gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info)"
")"); do { MOZ_CrashSequence(__null, 14978); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
14979 MOZ_ASSERT(info->mWaitingFactoryOp == this)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(info->mWaitingFactoryOp == this)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(info->mWaitingFactoryOp ==
this))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("info->mWaitingFactoryOp == this", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14979); AnnotateMozCrashReason("MOZ_ASSERT" "(" "info->mWaitingFactoryOp == this"
")"); do { MOZ_CrashSequence(__null, 14979); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14980
14981 if (AreActorsAlive()) {
14982 // The IPDL strong reference has not yet been released, so we can clear
14983 // mWaitingFactoryOp immediately.
14984 info->mWaitingFactoryOp = nullptr;
14985
14986 WaitForTransactions();
14987 return;
14988 }
14989
14990 // The IPDL strong reference has been released, mWaitingFactoryOp holds the
14991 // last strong reference to us, so we need to move it to a stack variable
14992 // instead of clearing it immediately (We could clear it immediately if only
14993 // the other actor is destroyed, but we don't need to optimize for that, and
14994 // move it anyway).
14995 const RefPtr<FactoryOp> waitingFactoryOp = std::move(info->mWaitingFactoryOp);
14996
14997 IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14997, idbInternalErrMsg.get()); } while (0)
;
14998 SetFailureCodeIfUnset(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR);
14999
15000 // We hold a strong ref in waitingFactoryOp, so it's safe to call Run()
15001 // directly.
15002
15003 mState = State::SendingResults;
15004 MOZ_ALWAYS_SUCCEEDS(Run())do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(Run())), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(Run())", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15004); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(Run())"
")"); do { MOZ_CrashSequence(__null, 15004); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
15005}
15006
15007void FactoryOp::StringifyState(nsACString& aResult) const {
15008 AssertIsOnOwningThread();
15009
15010 switch (mState) {
15011 case State::Initial:
15012 aResult.AppendLiteral("Initial");
15013 return;
15014
15015 case State::DirectoryOpenPending:
15016 aResult.AppendLiteral("DirectoryOpenPending");
15017 return;
15018
15019 case State::DirectoryWorkOpen:
15020 aResult.AppendLiteral("DirectoryWorkOpen");
15021 return;
15022
15023 case State::DirectoryWorkDone:
15024 aResult.AppendLiteral("DirectoryWorkDone");
15025 return;
15026
15027 case State::DatabaseOpenPending:
15028 aResult.AppendLiteral("DatabaseOpenPending");
15029 return;
15030
15031 case State::DatabaseWorkOpen:
15032 aResult.AppendLiteral("DatabaseWorkOpen");
15033 return;
15034
15035 case State::BeginVersionChange:
15036 aResult.AppendLiteral("BeginVersionChange");
15037 return;
15038
15039 case State::WaitingForOtherDatabasesToClose:
15040 aResult.AppendLiteral("WaitingForOtherDatabasesToClose");
15041 return;
15042
15043 case State::WaitingForTransactionsToComplete:
15044 aResult.AppendLiteral("WaitingForTransactionsToComplete");
15045 return;
15046
15047 case State::DatabaseWorkVersionChange:
15048 aResult.AppendLiteral("DatabaseWorkVersionChange");
15049 return;
15050
15051 case State::SendingResults:
15052 aResult.AppendLiteral("SendingResults");
15053 return;
15054
15055 case State::Completed:
15056 aResult.AppendLiteral("Completed");
15057 return;
15058
15059 default:
15060 MOZ_CRASH("Bad state!")do { do { } while (false); MOZ_ReportCrash("" "Bad state!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15060); AnnotateMozCrashReason("MOZ_CRASH(" "Bad state!" ")"
); do { MOZ_CrashSequence(__null, 15060); __attribute__((nomerge
)) ::abort(); } while (false); } while (false)
;
15061 }
15062}
15063
15064void FactoryOp::Stringify(nsACString& aResult) const {
15065 AssertIsOnOwningThread();
15066
15067 aResult.AppendLiteral("PersistenceType:");
15068 aResult.Append(PersistenceTypeToString(mPersistenceType));
15069 aResult.Append(kQuotaGenericDelimiter);
15070
15071 aResult.AppendLiteral("Origin:");
15072 aResult.Append(AnonymizedOriginString(mOriginMetadata.mOrigin));
15073 aResult.Append(kQuotaGenericDelimiter);
15074
15075 aResult.AppendLiteral("State:");
15076 StringifyState(aResult);
15077}
15078
15079nsresult FactoryOp::Open() {
15080 AssertIsOnOwningThread();
15081 MOZ_ASSERT(mState == State::Initial)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::Initial)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::Initial))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::Initial"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15081
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial"
")"); do { MOZ_CrashSequence(__null, 15081); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15082 MOZ_ASSERT(mOriginMetadata.mOrigin.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mOriginMetadata.mOrigin.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOriginMetadata.mOrigin.IsEmpty
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mOriginMetadata.mOrigin.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15082); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOriginMetadata.mOrigin.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 15082); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15083 MOZ_ASSERT(!mDirectoryLockHandle)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDirectoryLockHandle)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDirectoryLockHandle))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("!mDirectoryLockHandle"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15083
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLockHandle"
")"); do { MOZ_CrashSequence(__null, 15083); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15084
15085 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread
(), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15085)
||
15086 IsActorDestroyed()) {
15087 IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15087, idbInternalErrMsg.get()); } while (0)
;
15088 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
15089 }
15090
15091 QM_TRY(QuotaManager::EnsureCreated()){auto tryResult1234 = (QuotaManager::EnsureCreated()); static_assert
(std::is_empty_v<typename decltype(tryResult1234)::ok_type
>); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) {
mozilla::dom::quota::HandleError("QuotaManager::EnsureCreated()"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15091, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); }}
;
15092
15093 QuotaManager* const quotaManager = QuotaManager::Get();
15094 MOZ_ASSERT(quotaManager)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(quotaManager)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(quotaManager))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("quotaManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15094); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { MOZ_CrashSequence(__null, 15094); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15095
15096 QM_TRY_UNWRAP(auto tryResult1235 = (quota::GetInfoFromValidatedPrincipalInfo
(*quotaManager, mPrincipalInfo)); if ((__builtin_expect(!!(tryResult1235
.isErr()), 0))) { mozilla::dom::quota::HandleError("quota::GetInfoFromValidatedPrincipalInfo(*quotaManager, mPrincipalInfo)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15098, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } auto principalMetadata = tryResult1235.unwrap
();
15097 auto principalMetadata,auto tryResult1235 = (quota::GetInfoFromValidatedPrincipalInfo
(*quotaManager, mPrincipalInfo)); if ((__builtin_expect(!!(tryResult1235
.isErr()), 0))) { mozilla::dom::quota::HandleError("quota::GetInfoFromValidatedPrincipalInfo(*quotaManager, mPrincipalInfo)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15098, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } auto principalMetadata = tryResult1235.unwrap
();
15098 quota::GetInfoFromValidatedPrincipalInfo(*quotaManager, mPrincipalInfo))auto tryResult1235 = (quota::GetInfoFromValidatedPrincipalInfo
(*quotaManager, mPrincipalInfo)); if ((__builtin_expect(!!(tryResult1235
.isErr()), 0))) { mozilla::dom::quota::HandleError("quota::GetInfoFromValidatedPrincipalInfo(*quotaManager, mPrincipalInfo)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15098, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } auto principalMetadata = tryResult1235.unwrap
();
;
15099
15100 mOriginMetadata = {std::move(principalMetadata), mPersistenceType};
15101
15102 if (mPrincipalInfo.type() == PrincipalInfo::TSystemPrincipalInfo) {
15103 MOZ_ASSERT(mPersistenceType == PERSISTENCE_TYPE_PERSISTENT)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mPersistenceType == PERSISTENCE_TYPE_PERSISTENT)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mPersistenceType == PERSISTENCE_TYPE_PERSISTENT))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("mPersistenceType == PERSISTENCE_TYPE_PERSISTENT"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15103
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mPersistenceType == PERSISTENCE_TYPE_PERSISTENT"
")"); do { MOZ_CrashSequence(__null, 15103); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15104
15105 mEnforcingQuota = false;
15106 } else if (mPrincipalInfo.type() == PrincipalInfo::TContentPrincipalInfo) {
15107 const ContentPrincipalInfo& contentPrincipalInfo =
15108 mPrincipalInfo.get_ContentPrincipalInfo();
15109
15110 MOZ_ASSERT_IF(do { if (QuotaManager::IsOriginInternal(contentPrincipalInfo.
originNoSuffix())) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(mPersistenceType == PERSISTENCE_TYPE_PERSISTENT)
>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mPersistenceType == PERSISTENCE_TYPE_PERSISTENT))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("mPersistenceType == PERSISTENCE_TYPE_PERSISTENT"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15112
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mPersistenceType == PERSISTENCE_TYPE_PERSISTENT"
")"); do { MOZ_CrashSequence(__null, 15112); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
15111 QuotaManager::IsOriginInternal(contentPrincipalInfo.originNoSuffix()),do { if (QuotaManager::IsOriginInternal(contentPrincipalInfo.
originNoSuffix())) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(mPersistenceType == PERSISTENCE_TYPE_PERSISTENT)
>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mPersistenceType == PERSISTENCE_TYPE_PERSISTENT))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("mPersistenceType == PERSISTENCE_TYPE_PERSISTENT"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15112
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mPersistenceType == PERSISTENCE_TYPE_PERSISTENT"
")"); do { MOZ_CrashSequence(__null, 15112); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
15112 mPersistenceType == PERSISTENCE_TYPE_PERSISTENT)do { if (QuotaManager::IsOriginInternal(contentPrincipalInfo.
originNoSuffix())) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(mPersistenceType == PERSISTENCE_TYPE_PERSISTENT)
>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mPersistenceType == PERSISTENCE_TYPE_PERSISTENT))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("mPersistenceType == PERSISTENCE_TYPE_PERSISTENT"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15112
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mPersistenceType == PERSISTENCE_TYPE_PERSISTENT"
")"); do { MOZ_CrashSequence(__null, 15112); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
15113
15114 mEnforcingQuota = mPersistenceType != PERSISTENCE_TYPE_PERSISTENT;
15115
15116 if (mOriginMetadata.mIsPrivate) {
15117 if (StaticPrefs::dom_indexedDB_privateBrowsing_enabled()) {
15118 // Explicitly disallow moz-extension urls from using the encrypted
15119 // indexedDB storage mode when the caller is an extension (see Bug
15120 // 1841806).
15121 if (StringBeginsWith(contentPrincipalInfo.originNoSuffix(),
15122 "moz-extension:"_ns)) {
15123 return NS_ERROR_DOM_INDEXEDDB_NOT_ALLOWED_ERR;
15124 }
15125
15126 mInPrivateBrowsing.Flip();
15127 } else {
15128 return NS_ERROR_DOM_INDEXEDDB_NOT_ALLOWED_ERR;
15129 }
15130 }
15131 } else {
15132 MOZ_ASSERT(false)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(false)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("false", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15132); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ")"
); do { MOZ_CrashSequence(__null, 15132); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
15133 }
15134
15135 if (mDatabaseName.isSome()) {
15136 mDatabaseFilenameBase = Some(GetDatabaseFilenameBase(
15137 mDatabaseName.ref(), mOriginMetadata.mIsPrivate));
15138 nsCString databaseId;
15139
15140 QuotaManager::GetStorageId(mPersistenceType, mOriginMetadata.mOrigin,
15141 Client::IDB, databaseId);
15142
15143 databaseId.Append('*');
15144 databaseId.Append(NS_ConvertUTF16toUTF8(*mDatabaseFilenameBase));
15145
15146 mDatabaseId = Some(std::move(databaseId));
15147
15148 // Need to get database file path before opening the directory.
15149 // XXX: For what reason?
15150 QM_TRY_UNWRAP(auto tryResult1240 = (([this, quotaManager]() -> mozilla::
Result<nsString, nsresult> { auto tryResult1236 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1236
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15154, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const auto& dbFile = tryResult1236.inspect
();; {auto tryResult1237 = (ToResult(dbFile->Append( static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1237
)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1237.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15157, mozilla::dom::quota::Severity::Error); return tryResult1237
.propagateErr(); }}; {auto tryResult1238 = (ToResult(dbFile->
Append(*mDatabaseFilenameBase + kSQLiteSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15160, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; {auto tryResult1239 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )"
, tryResult1239.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15163, mozilla::dom::quota::Severity::Error); } return tryResult1239
;}; }())); if ((__builtin_expect(!!(tryResult1240.isErr()), 0
))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1236 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15154, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const auto& dbFile = tryResult1236.inspect();; {auto tryResult1237 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1237.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15157, mozilla::dom::quota::Severity::Error); return tryResult1237.propagateErr(); }}; {auto tryResult1238 = (ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15160, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; {auto tryResult1239 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )\", tryResult1239.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15163, mozilla::dom::quota::Severity::Error); } return tryResult1239;}; }())"
, tryResult1240.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15164, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); } auto databaseFilePath = tryResult1240.unwrap
();
15151 auto databaseFilePath,auto tryResult1240 = (([this, quotaManager]() -> mozilla::
Result<nsString, nsresult> { auto tryResult1236 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1236
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15154, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const auto& dbFile = tryResult1236.inspect
();; {auto tryResult1237 = (ToResult(dbFile->Append( static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1237
)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1237.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15157, mozilla::dom::quota::Severity::Error); return tryResult1237
.propagateErr(); }}; {auto tryResult1238 = (ToResult(dbFile->
Append(*mDatabaseFilenameBase + kSQLiteSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15160, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; {auto tryResult1239 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )"
, tryResult1239.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15163, mozilla::dom::quota::Severity::Error); } return tryResult1239
;}; }())); if ((__builtin_expect(!!(tryResult1240.isErr()), 0
))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1236 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15154, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const auto& dbFile = tryResult1236.inspect();; {auto tryResult1237 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1237.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15157, mozilla::dom::quota::Severity::Error); return tryResult1237.propagateErr(); }}; {auto tryResult1238 = (ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15160, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; {auto tryResult1239 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )\", tryResult1239.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15163, mozilla::dom::quota::Severity::Error); } return tryResult1239;}; }())"
, tryResult1240.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15164, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); } auto databaseFilePath = tryResult1240.unwrap
();
15152 ([this, quotaManager]() -> mozilla::Result<nsString, nsresult> {auto tryResult1240 = (([this, quotaManager]() -> mozilla::
Result<nsString, nsresult> { auto tryResult1236 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1236
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15154, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const auto& dbFile = tryResult1236.inspect
();; {auto tryResult1237 = (ToResult(dbFile->Append( static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1237
)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1237.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15157, mozilla::dom::quota::Severity::Error); return tryResult1237
.propagateErr(); }}; {auto tryResult1238 = (ToResult(dbFile->
Append(*mDatabaseFilenameBase + kSQLiteSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15160, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; {auto tryResult1239 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )"
, tryResult1239.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15163, mozilla::dom::quota::Severity::Error); } return tryResult1239
;}; }())); if ((__builtin_expect(!!(tryResult1240.isErr()), 0
))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1236 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15154, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const auto& dbFile = tryResult1236.inspect();; {auto tryResult1237 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1237.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15157, mozilla::dom::quota::Severity::Error); return tryResult1237.propagateErr(); }}; {auto tryResult1238 = (ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15160, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; {auto tryResult1239 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )\", tryResult1239.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15163, mozilla::dom::quota::Severity::Error); } return tryResult1239;}; }())"
, tryResult1240.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15164, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); } auto databaseFilePath = tryResult1240.unwrap
();
15153 QM_TRY_INSPECT(const auto& dbFile,auto tryResult1240 = (([this, quotaManager]() -> mozilla::
Result<nsString, nsresult> { auto tryResult1236 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1236
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15154, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const auto& dbFile = tryResult1236.inspect
();; {auto tryResult1237 = (ToResult(dbFile->Append( static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1237
)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1237.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15157, mozilla::dom::quota::Severity::Error); return tryResult1237
.propagateErr(); }}; {auto tryResult1238 = (ToResult(dbFile->
Append(*mDatabaseFilenameBase + kSQLiteSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15160, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; {auto tryResult1239 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )"
, tryResult1239.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15163, mozilla::dom::quota::Severity::Error); } return tryResult1239
;}; }())); if ((__builtin_expect(!!(tryResult1240.isErr()), 0
))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1236 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15154, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const auto& dbFile = tryResult1236.inspect();; {auto tryResult1237 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1237.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15157, mozilla::dom::quota::Severity::Error); return tryResult1237.propagateErr(); }}; {auto tryResult1238 = (ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15160, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; {auto tryResult1239 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )\", tryResult1239.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15163, mozilla::dom::quota::Severity::Error); } return tryResult1239;}; }())"
, tryResult1240.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15164, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); } auto databaseFilePath = tryResult1240.unwrap
();
15154 quotaManager->GetOriginDirectory(mOriginMetadata));auto tryResult1240 = (([this, quotaManager]() -> mozilla::
Result<nsString, nsresult> { auto tryResult1236 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1236
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15154, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const auto& dbFile = tryResult1236.inspect
();; {auto tryResult1237 = (ToResult(dbFile->Append( static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1237
)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1237.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15157, mozilla::dom::quota::Severity::Error); return tryResult1237
.propagateErr(); }}; {auto tryResult1238 = (ToResult(dbFile->
Append(*mDatabaseFilenameBase + kSQLiteSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15160, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; {auto tryResult1239 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )"
, tryResult1239.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15163, mozilla::dom::quota::Severity::Error); } return tryResult1239
;}; }())); if ((__builtin_expect(!!(tryResult1240.isErr()), 0
))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1236 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15154, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const auto& dbFile = tryResult1236.inspect();; {auto tryResult1237 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1237.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15157, mozilla::dom::quota::Severity::Error); return tryResult1237.propagateErr(); }}; {auto tryResult1238 = (ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15160, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; {auto tryResult1239 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )\", tryResult1239.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15163, mozilla::dom::quota::Severity::Error); } return tryResult1239;}; }())"
, tryResult1240.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15164, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); } auto databaseFilePath = tryResult1240.unwrap
();
15155
15156 QM_TRY(MOZ_TO_RESULT(dbFile->Append(auto tryResult1240 = (([this, quotaManager]() -> mozilla::
Result<nsString, nsresult> { auto tryResult1236 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1236
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15154, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const auto& dbFile = tryResult1236.inspect
();; {auto tryResult1237 = (ToResult(dbFile->Append( static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1237
)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1237.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15157, mozilla::dom::quota::Severity::Error); return tryResult1237
.propagateErr(); }}; {auto tryResult1238 = (ToResult(dbFile->
Append(*mDatabaseFilenameBase + kSQLiteSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15160, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; {auto tryResult1239 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )"
, tryResult1239.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15163, mozilla::dom::quota::Severity::Error); } return tryResult1239
;}; }())); if ((__builtin_expect(!!(tryResult1240.isErr()), 0
))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1236 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15154, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const auto& dbFile = tryResult1236.inspect();; {auto tryResult1237 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1237.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15157, mozilla::dom::quota::Severity::Error); return tryResult1237.propagateErr(); }}; {auto tryResult1238 = (ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15160, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; {auto tryResult1239 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )\", tryResult1239.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15163, mozilla::dom::quota::Severity::Error); } return tryResult1239;}; }())"
, tryResult1240.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15164, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); } auto databaseFilePath = tryResult1240.unwrap
();
15157 NS_LITERAL_STRING_FROM_CSTRING(IDB_DIRECTORY_NAME))));auto tryResult1240 = (([this, quotaManager]() -> mozilla::
Result<nsString, nsresult> { auto tryResult1236 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1236
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15154, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const auto& dbFile = tryResult1236.inspect
();; {auto tryResult1237 = (ToResult(dbFile->Append( static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1237
)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1237.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15157, mozilla::dom::quota::Severity::Error); return tryResult1237
.propagateErr(); }}; {auto tryResult1238 = (ToResult(dbFile->
Append(*mDatabaseFilenameBase + kSQLiteSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15160, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; {auto tryResult1239 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )"
, tryResult1239.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15163, mozilla::dom::quota::Severity::Error); } return tryResult1239
;}; }())); if ((__builtin_expect(!!(tryResult1240.isErr()), 0
))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1236 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15154, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const auto& dbFile = tryResult1236.inspect();; {auto tryResult1237 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1237.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15157, mozilla::dom::quota::Severity::Error); return tryResult1237.propagateErr(); }}; {auto tryResult1238 = (ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15160, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; {auto tryResult1239 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )\", tryResult1239.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15163, mozilla::dom::quota::Severity::Error); } return tryResult1239;}; }())"
, tryResult1240.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15164, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); } auto databaseFilePath = tryResult1240.unwrap
();
15158
15159 QM_TRY(MOZ_TO_RESULT(auto tryResult1240 = (([this, quotaManager]() -> mozilla::
Result<nsString, nsresult> { auto tryResult1236 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1236
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15154, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const auto& dbFile = tryResult1236.inspect
();; {auto tryResult1237 = (ToResult(dbFile->Append( static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1237
)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1237.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15157, mozilla::dom::quota::Severity::Error); return tryResult1237
.propagateErr(); }}; {auto tryResult1238 = (ToResult(dbFile->
Append(*mDatabaseFilenameBase + kSQLiteSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15160, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; {auto tryResult1239 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )"
, tryResult1239.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15163, mozilla::dom::quota::Severity::Error); } return tryResult1239
;}; }())); if ((__builtin_expect(!!(tryResult1240.isErr()), 0
))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1236 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15154, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const auto& dbFile = tryResult1236.inspect();; {auto tryResult1237 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1237.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15157, mozilla::dom::quota::Severity::Error); return tryResult1237.propagateErr(); }}; {auto tryResult1238 = (ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15160, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; {auto tryResult1239 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )\", tryResult1239.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15163, mozilla::dom::quota::Severity::Error); } return tryResult1239;}; }())"
, tryResult1240.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15164, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); } auto databaseFilePath = tryResult1240.unwrap
();
15160 dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix)));auto tryResult1240 = (([this, quotaManager]() -> mozilla::
Result<nsString, nsresult> { auto tryResult1236 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1236
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15154, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const auto& dbFile = tryResult1236.inspect
();; {auto tryResult1237 = (ToResult(dbFile->Append( static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1237
)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1237.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15157, mozilla::dom::quota::Severity::Error); return tryResult1237
.propagateErr(); }}; {auto tryResult1238 = (ToResult(dbFile->
Append(*mDatabaseFilenameBase + kSQLiteSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15160, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; {auto tryResult1239 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )"
, tryResult1239.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15163, mozilla::dom::quota::Severity::Error); } return tryResult1239
;}; }())); if ((__builtin_expect(!!(tryResult1240.isErr()), 0
))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1236 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15154, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const auto& dbFile = tryResult1236.inspect();; {auto tryResult1237 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1237.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15157, mozilla::dom::quota::Severity::Error); return tryResult1237.propagateErr(); }}; {auto tryResult1238 = (ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15160, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; {auto tryResult1239 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )\", tryResult1239.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15163, mozilla::dom::quota::Severity::Error); } return tryResult1239;}; }())"
, tryResult1240.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15164, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); } auto databaseFilePath = tryResult1240.unwrap
();
15161
15162 QM_TRY_RETURN(auto tryResult1240 = (([this, quotaManager]() -> mozilla::
Result<nsString, nsresult> { auto tryResult1236 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1236
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15154, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const auto& dbFile = tryResult1236.inspect
();; {auto tryResult1237 = (ToResult(dbFile->Append( static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1237
)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1237.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15157, mozilla::dom::quota::Severity::Error); return tryResult1237
.propagateErr(); }}; {auto tryResult1238 = (ToResult(dbFile->
Append(*mDatabaseFilenameBase + kSQLiteSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15160, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; {auto tryResult1239 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )"
, tryResult1239.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15163, mozilla::dom::quota::Severity::Error); } return tryResult1239
;}; }())); if ((__builtin_expect(!!(tryResult1240.isErr()), 0
))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1236 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15154, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const auto& dbFile = tryResult1236.inspect();; {auto tryResult1237 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1237.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15157, mozilla::dom::quota::Severity::Error); return tryResult1237.propagateErr(); }}; {auto tryResult1238 = (ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15160, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; {auto tryResult1239 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )\", tryResult1239.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15163, mozilla::dom::quota::Severity::Error); } return tryResult1239;}; }())"
, tryResult1240.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15164, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); } auto databaseFilePath = tryResult1240.unwrap
();
15163 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsString, dbFile, GetPath));auto tryResult1240 = (([this, quotaManager]() -> mozilla::
Result<nsString, nsresult> { auto tryResult1236 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1236
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15154, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const auto& dbFile = tryResult1236.inspect
();; {auto tryResult1237 = (ToResult(dbFile->Append( static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1237
)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1237.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15157, mozilla::dom::quota::Severity::Error); return tryResult1237
.propagateErr(); }}; {auto tryResult1238 = (ToResult(dbFile->
Append(*mDatabaseFilenameBase + kSQLiteSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15160, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; {auto tryResult1239 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )"
, tryResult1239.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15163, mozilla::dom::quota::Severity::Error); } return tryResult1239
;}; }())); if ((__builtin_expect(!!(tryResult1240.isErr()), 0
))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1236 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15154, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const auto& dbFile = tryResult1236.inspect();; {auto tryResult1237 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1237.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15157, mozilla::dom::quota::Severity::Error); return tryResult1237.propagateErr(); }}; {auto tryResult1238 = (ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15160, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; {auto tryResult1239 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )\", tryResult1239.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15163, mozilla::dom::quota::Severity::Error); } return tryResult1239;}; }())"
, tryResult1240.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15164, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); } auto databaseFilePath = tryResult1240.unwrap
();
15164 }()))auto tryResult1240 = (([this, quotaManager]() -> mozilla::
Result<nsString, nsresult> { auto tryResult1236 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1236
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15154, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const auto& dbFile = tryResult1236.inspect
();; {auto tryResult1237 = (ToResult(dbFile->Append( static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1237
)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1237.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15157, mozilla::dom::quota::Severity::Error); return tryResult1237
.propagateErr(); }}; {auto tryResult1238 = (ToResult(dbFile->
Append(*mDatabaseFilenameBase + kSQLiteSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1238)::ok_type
>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15160, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; {auto tryResult1239 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )"
, tryResult1239.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15163, mozilla::dom::quota::Severity::Error); } return tryResult1239
;}; }())); if ((__builtin_expect(!!(tryResult1240.isErr()), 0
))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1236 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15154, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const auto& dbFile = tryResult1236.inspect();; {auto tryResult1237 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1237.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15157, mozilla::dom::quota::Severity::Error); return tryResult1237.propagateErr(); }}; {auto tryResult1238 = (ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15160, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; {auto tryResult1239 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )\", tryResult1239.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15163, mozilla::dom::quota::Severity::Error); } return tryResult1239;}; }())"
, tryResult1240.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15164, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); } auto databaseFilePath = tryResult1240.unwrap
();
;
15165
15166 mDatabaseFilePath = Some(std::move(databaseFilePath));
15167 }
15168
15169 // Open directory
15170 mState = State::DirectoryOpenPending;
15171
15172 quotaManager->OpenClientDirectory({mOriginMetadata, Client::IDB})
15173 ->Then(
15174 GetCurrentSerialEventTarget(), __func__,
15175 [self = RefPtr(this)](QuotaManager::ClientDirectoryLockHandlePromise::
15176 ResolveOrRejectValue&& aValue) {
15177 if (aValue.IsResolve()) {
15178 self->DirectoryLockAcquired(std::move(aValue.ResolveValue()));
15179 } else {
15180 self->DirectoryLockFailed();
15181 }
15182 });
15183
15184 return NS_OK;
15185}
15186
15187nsresult FactoryOp::DirectoryOpen() {
15188 AssertIsOnOwningThread();
15189 MOZ_ASSERT(mState == State::DirectoryOpenPending)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::DirectoryOpenPending)>::isValid,
"invalid assertion condition"); if ((__builtin_expect(!!(!(!
!(mState == State::DirectoryOpenPending))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mState == State::DirectoryOpenPending"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15189
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryOpenPending"
")"); do { MOZ_CrashSequence(__null, 15189); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15190 MOZ_ASSERT(mDirectoryLockHandle)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDirectoryLockHandle)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDirectoryLockHandle))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("mDirectoryLockHandle"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15190
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLockHandle"
")"); do { MOZ_CrashSequence(__null, 15190); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15191
15192 if (mDatabaseName.isNothing()) {
15193 QuotaManager* const quotaManager = QuotaManager::Get();
15194 MOZ_ASSERT(quotaManager)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(quotaManager)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(quotaManager))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("quotaManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { MOZ_CrashSequence(__null, 15194); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15195
15196 // Must set this before dispatching otherwise we will race with the IO
15197 // thread.
15198 mState = State::DirectoryWorkOpen;
15199
15200 QM_TRY(MOZ_TO_RESULT({auto tryResult1241 = (ToResult(quotaManager->IOThread()->
Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError = tryResult1241.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15202, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15202, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
15201 quotaManager->IOThread()->Dispatch(this, NS_DISPATCH_NORMAL)),{auto tryResult1241 = (ToResult(quotaManager->IOThread()->
Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError = tryResult1241.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15202, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15202, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
15202 NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR, IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult1241 = (ToResult(quotaManager->IOThread()->
Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError = tryResult1241.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15202, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15202, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
;
15203
15204 return NS_OK;
15205 }
15206
15207 mState = State::DirectoryWorkDone;
15208 MOZ_ALWAYS_SUCCEEDS(Run())do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(Run())), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(Run())", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15208); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(Run())"
")"); do { MOZ_CrashSequence(__null, 15208); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
15209
15210 return NS_OK;
15211}
15212
15213nsresult FactoryOp::DirectoryWorkDone() {
15214 AssertIsOnOwningThread();
15215 MOZ_ASSERT(mState == State::DirectoryWorkDone)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::DirectoryWorkDone)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::DirectoryWorkDone
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State::DirectoryWorkDone", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15215); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryWorkDone"
")"); do { MOZ_CrashSequence(__null, 15215); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15216 MOZ_ASSERT(mDirectoryLockHandle)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDirectoryLockHandle)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDirectoryLockHandle))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("mDirectoryLockHandle"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15216
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLockHandle"
")"); do { MOZ_CrashSequence(__null, 15216); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15217 MOZ_ASSERT(gFactoryOps)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(gFactoryOps)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(gFactoryOps))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("gFactoryOps", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15217); AnnotateMozCrashReason("MOZ_ASSERT" "(" "gFactoryOps"
")"); do { MOZ_CrashSequence(__null, 15217); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15218
15219 // See if this FactoryOp needs to wait.
15220 // FactoryOps are stored in gFactoryOps in the order they are created,
15221 // and currently there are three different FactoryOps that gets stored
15222 // i.e. OpenDatabaseOp, DeleteDatabaseOp, and GetDatabasesOp.
15223 // We iterate over the gFactoryOps list here and put this operation
15224 // into a waiting state if there is any existing operation that it needs
15225 // to wait for as done by MustWaitFor().
15226 const bool blocked = [&self = *this] {
15227 bool foundThis = false;
15228 bool blocked = false;
15229
15230 // XXX LinkedList should support reverse iteration via rbegin() and rend(),
15231 // see bug 1964967.
15232 for (FactoryOp* existingOp = gFactoryOps->getLast(); existingOp;
15233 existingOp = existingOp->getPrevious()) {
15234 if (existingOp == &self) {
15235 foundThis = true;
15236 continue;
15237 }
15238
15239 if (foundThis && self.MustWaitFor(*existingOp)) {
15240 existingOp->AddBlockingOp(self);
15241 self.AddBlockedOnOp(*existingOp);
15242 blocked = true;
15243 }
15244 }
15245
15246 return blocked;
15247 }() || [&self = *this] {
15248 QuotaClient* quotaClient = QuotaClient::GetInstance();
15249 MOZ_ASSERT(quotaClient)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(quotaClient)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(quotaClient))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("quotaClient", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15249); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaClient"
")"); do { MOZ_CrashSequence(__null, 15249); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15250
15251 if (RefPtr<Maintenance> currentMaintenance =
15252 quotaClient->GetCurrentMaintenance()) {
15253 if (self.mDatabaseName.isSome()) {
15254 if (RefPtr<DatabaseMaintenance> databaseMaintenance =
15255 currentMaintenance->GetDatabaseMaintenance(
15256 self.mDatabaseFilePath.ref())) {
15257 databaseMaintenance->WaitForCompletion(&self);
15258 return true;
15259 }
15260 } else if (currentMaintenance->HasDatabaseMaintenances()) {
15261 currentMaintenance->WaitForCompletion(&self);
15262 return true;
15263 }
15264 }
15265
15266 return false;
15267 }();
15268
15269 mState = State::DatabaseOpenPending;
15270 if (!blocked) {
15271 QM_TRY(MOZ_TO_RESULT(DatabaseOpen())){auto tryResult1242 = (ToResult(DatabaseOpen())); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(DatabaseOpen())",
tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15271, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}
;
15272 }
15273
15274 return NS_OK;
15275}
15276
15277nsresult FactoryOp::SendToIOThread() {
15278 AssertIsOnOwningThread();
15279 MOZ_ASSERT(mState == State::DatabaseOpenPending)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::DatabaseOpenPending)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::DatabaseOpenPending
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State::DatabaseOpenPending", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15279); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseOpenPending"
")"); do { MOZ_CrashSequence(__null, 15279); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15280
15281 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread
(), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15281)
||
15282 !OperationMayProceed()) {
15283 IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15283, idbInternalErrMsg.get()); } while (0)
;
15284 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
15285 }
15286
15287 QuotaManager* const quotaManager = QuotaManager::Get();
15288 MOZ_ASSERT(quotaManager)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(quotaManager)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(quotaManager))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("quotaManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15288); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { MOZ_CrashSequence(__null, 15288); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15289
15290 // Must set this before dispatching otherwise we will race with the IO thread.
15291 mState = State::DatabaseWorkOpen;
15292
15293 QM_TRY(MOZ_TO_RESULT({auto tryResult1243 = (ToResult(quotaManager->IOThread()->
Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert
(std::is_empty_v<typename decltype(tryResult1243)::ok_type
>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) {
auto tryTempError = tryResult1243.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15295, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15295, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
15294 quotaManager->IOThread()->Dispatch(this, NS_DISPATCH_NORMAL)),{auto tryResult1243 = (ToResult(quotaManager->IOThread()->
Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert
(std::is_empty_v<typename decltype(tryResult1243)::ok_type
>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) {
auto tryTempError = tryResult1243.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15295, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15295, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
15295 NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR, IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult1243 = (ToResult(quotaManager->IOThread()->
Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert
(std::is_empty_v<typename decltype(tryResult1243)::ok_type
>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) {
auto tryTempError = tryResult1243.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15295, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15295, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
;
15296
15297 NotifyDatabaseWorkStarted();
15298
15299 return NS_OK;
15300}
15301
15302void FactoryOp::WaitForTransactions() {
15303 AssertIsOnOwningThread();
15304 MOZ_ASSERT(mState == State::BeginVersionChange ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::BeginVersionChange || mState == State
::WaitingForOtherDatabasesToClose)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::BeginVersionChange
|| mState == State::WaitingForOtherDatabasesToClose))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("mState == State::BeginVersionChange || mState == State::WaitingForOtherDatabasesToClose"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15305
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginVersionChange || mState == State::WaitingForOtherDatabasesToClose"
")"); do { MOZ_CrashSequence(__null, 15305); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
15305 mState == State::WaitingForOtherDatabasesToClose)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::BeginVersionChange || mState == State
::WaitingForOtherDatabasesToClose)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::BeginVersionChange
|| mState == State::WaitingForOtherDatabasesToClose))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("mState == State::BeginVersionChange || mState == State::WaitingForOtherDatabasesToClose"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15305
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginVersionChange || mState == State::WaitingForOtherDatabasesToClose"
")"); do { MOZ_CrashSequence(__null, 15305); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15306 MOZ_ASSERT(!mDatabaseId.ref().IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDatabaseId.ref().IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDatabaseId.ref().IsEmpty()
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"!mDatabaseId.ref().IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15306); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabaseId.ref().IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 15306); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15307 MOZ_ASSERT(!IsActorDestroyed())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsActorDestroyed())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsActorDestroyed()))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("!IsActorDestroyed()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15307
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()"
")"); do { MOZ_CrashSequence(__null, 15307); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15308
15309 mState = State::WaitingForTransactionsToComplete;
15310
15311 RefPtr<WaitForTransactionsHelper> helper =
15312 new WaitForTransactionsHelper(mDatabaseId.ref(), this);
15313 helper->WaitForTransactions();
15314}
15315
15316void FactoryOp::CleanupMetadata() {
15317 AssertIsOnOwningThread();
15318
15319 for (const NotNull<RefPtr<FactoryOp>>& blockingOp : mBlocking) {
15320 blockingOp->MaybeUnblock(*this);
15321 }
15322 mBlocking.Clear();
15323
15324 MOZ_ASSERT(gFactoryOps)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(gFactoryOps)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(gFactoryOps))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("gFactoryOps", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15324); AnnotateMozCrashReason("MOZ_ASSERT" "(" "gFactoryOps"
")"); do { MOZ_CrashSequence(__null, 15324); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15325 removeFrom(*gFactoryOps);
15326
15327 // We might get here even after QuotaManagerOpen failed, so we need to check
15328 // if we have a quota manager.
15329 quota::QuotaManager::SafeMaybeRecordQuotaClientShutdownStep(
15330 quota::Client::IDB, "An element was removed from gFactoryOps"_ns);
15331
15332 // Match the IncreaseBusyCount in AllocPBackgroundIDBFactoryRequestParent().
15333 DecreaseBusyCount();
15334}
15335
15336void FactoryOp::FinishSendResults() {
15337 AssertIsOnOwningThread();
15338 MOZ_ASSERT(mState == State::SendingResults)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::SendingResults)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::SendingResults
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State::SendingResults", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15338); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::SendingResults"
")"); do { MOZ_CrashSequence(__null, 15338); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15339 MOZ_ASSERT(mFactory)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mFactory)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mFactory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mFactory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15339); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFactory" ")"
); do { MOZ_CrashSequence(__null, 15339); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
15340
15341 mState = State::Completed;
15342
15343 // Make sure to release the factory on this thread.
15344 mFactory = nullptr;
15345}
15346
15347nsresult FactoryOp::SendVersionChangeMessages(
15348 DatabaseActorInfo* aDatabaseActorInfo, Maybe<Database&> aOpeningDatabase,
15349 uint64_t aOldVersion, const Maybe<uint64_t>& aNewVersion) {
15350 AssertIsOnOwningThread();
15351 MOZ_ASSERT(aDatabaseActorInfo)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDatabaseActorInfo)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDatabaseActorInfo))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("aDatabaseActorInfo"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15351
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseActorInfo"
")"); do { MOZ_CrashSequence(__null, 15351); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15352 MOZ_ASSERT(mState == State::BeginVersionChange)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::BeginVersionChange)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::BeginVersionChange
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State::BeginVersionChange", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15352); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginVersionChange"
")"); do { MOZ_CrashSequence(__null, 15352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15353 MOZ_ASSERT(mMaybeBlockedDatabases.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMaybeBlockedDatabases.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mMaybeBlockedDatabases.IsEmpty
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mMaybeBlockedDatabases.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 15353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15354 MOZ_ASSERT(!IsActorDestroyed())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsActorDestroyed())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsActorDestroyed()))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("!IsActorDestroyed()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15354
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()"
")"); do { MOZ_CrashSequence(__null, 15354); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15355
15356 const uint32_t expectedCount = mDeleting ? 0 : 1;
15357 const uint32_t liveCount = aDatabaseActorInfo->mLiveDatabases.length();
15358 if (liveCount > expectedCount) {
15359 nsTArray<MaybeBlockedDatabaseInfo> maybeBlockedDatabases;
15360 for (Database* const database : aDatabaseActorInfo->mLiveDatabases) {
15361 if ((!aOpeningDatabase || database != &aOpeningDatabase.ref()) &&
15362 !database->IsClosed() &&
15363 NS_WARN_IF(!maybeBlockedDatabases.AppendElement(NS_warn_if_impl(!maybeBlockedDatabases.AppendElement( SafeRefPtr
{database, AcquireStrongRefFromRawPtr{}}, fallible), "!maybeBlockedDatabases.AppendElement( SafeRefPtr{database, AcquireStrongRefFromRawPtr{}}, fallible)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15364
)
15364 SafeRefPtr{database, AcquireStrongRefFromRawPtr{}}, fallible))NS_warn_if_impl(!maybeBlockedDatabases.AppendElement( SafeRefPtr
{database, AcquireStrongRefFromRawPtr{}}, fallible), "!maybeBlockedDatabases.AppendElement( SafeRefPtr{database, AcquireStrongRefFromRawPtr{}}, fallible)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15364
)
) {
15365 return NS_ERROR_OUT_OF_MEMORY;
15366 }
15367 }
15368
15369 mMaybeBlockedDatabases = std::move(maybeBlockedDatabases);
15370 }
15371
15372 // We don't want to wait forever if we were not able to send the
15373 // message.
15374 mMaybeBlockedDatabases.RemoveLastElements(
15375 mMaybeBlockedDatabases.end() -
15376 std::remove_if(mMaybeBlockedDatabases.begin(),
15377 mMaybeBlockedDatabases.end(),
15378 [aOldVersion, &aNewVersion](auto& maybeBlockedDatabase) {
15379 return !maybeBlockedDatabase->SendVersionChange(
15380 aOldVersion, aNewVersion);
15381 }));
15382
15383 return NS_OK;
15384} // namespace indexedDB
15385
15386nsAutoString FactoryOp::GetDatabaseFilenameBase(const nsAString& aDatabaseName,
15387 bool aIsPrivate) {
15388 nsAutoString databaseFilenameBase;
15389
15390 if (aIsPrivate) {
15391 MOZ_DIAGNOSTIC_ASSERT(gStorageDatabaseNameMutex)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(gStorageDatabaseNameMutex)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(gStorageDatabaseNameMutex)))
, 0))) { do { } while (false); MOZ_ReportAssertionFailure("gStorageDatabaseNameMutex"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15391
); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "gStorageDatabaseNameMutex"
")"); do { MOZ_CrashSequence(__null, 15391); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15392
15393 MutexAutoLock lock(*gStorageDatabaseNameMutex);
15394
15395 if (!gStorageDatabaseNameHashtable) {
15396 gStorageDatabaseNameHashtable = new StorageDatabaseNameHashtable();
15397 }
15398
15399 databaseFilenameBase.Append(
15400 gStorageDatabaseNameHashtable->LookupOrInsertWith(aDatabaseName, []() {
15401 return NSID_TrimBracketsUTF16(nsID::GenerateUUID());
15402 }));
15403
15404 return databaseFilenameBase;
15405 }
15406
15407 // WARNING: do not change this hash function. See the comment in HashName()
15408 // for details.
15409 databaseFilenameBase.AppendInt(HashName(aDatabaseName));
15410
15411 nsAutoCString escapedName;
15412 if (!NS_Escape(NS_ConvertUTF16toUTF8(aDatabaseName), escapedName,
15413 url_XPAlphas)) {
15414 MOZ_CRASH("Can't escape database name!")do { do { } while (false); MOZ_ReportCrash("" "Can't escape database name!"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15414
); AnnotateMozCrashReason("MOZ_CRASH(" "Can't escape database name!"
")"); do { MOZ_CrashSequence(__null, 15414); __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
15415 }
15416
15417 const char* forwardIter = escapedName.BeginReading();
15418 const char* backwardIter = escapedName.EndReading() - 1;
15419
15420 nsAutoCString substring;
15421 while (forwardIter <= backwardIter && substring.Length() < 21) {
15422 if (substring.Length() % 2) {
15423 substring.Append(*backwardIter--);
15424 } else {
15425 substring.Append(*forwardIter++);
15426 }
15427 }
15428
15429 databaseFilenameBase.AppendASCII(substring.get(), substring.Length());
15430
15431 return databaseFilenameBase;
15432}
15433
15434bool FactoryOp::MustWaitFor(const FactoryOp& aExistingOp) {
15435 AssertIsOnOwningThread();
15436
15437 // If the persistence types don't overlap, the op can proceed.
15438 if (aExistingOp.mPersistenceType != mPersistenceType) {
15439 return false;
15440 }
15441
15442 // If the origins don't overlap, the op can proceed.
15443 if (aExistingOp.mOriginMetadata.mOrigin != mOriginMetadata.mOrigin) {
15444 return false;
15445 }
15446
15447 // If the database ids don't overlap, the op doesn't need to wait.
15448 if (aExistingOp.mDatabaseId.isSome() && mDatabaseId.isSome() &&
15449 aExistingOp.mDatabaseId.ref() != mDatabaseId.ref()) {
15450 return false;
15451 }
15452
15453 // mDatabaseId being nothing means that this is GetDatabasesOp which
15454 // must be serialized with other GetDatabaseOps.
15455 return aExistingOp.mDatabaseId.isNothing() == mDatabaseId.isNothing();
15456}
15457
15458// Run() assumes that the caller holds a strong reference to the object that
15459// can't be cleared while Run() is being executed.
15460// So if you call Run() directly (as opposed to dispatching to an event queue)
15461// you need to make sure there's such a reference.
15462// See bug 1356824 for more details.
15463NS_IMETHODIMPnsresult
15464FactoryOp::Run() {
15465 const auto handleError = [this](const nsresult rv) {
15466 if (mState != State::SendingResults) {
15467 SetFailureCodeIfUnset(rv);
15468
15469 // Must set mState before dispatching otherwise we will race with the
15470 // owning thread.
15471 mState = State::SendingResults;
15472
15473 if (IsOnOwningThread()) {
15474 SendResults();
15475 } else {
15476 MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))
), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15477
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))"
")"); do { MOZ_CrashSequence(__null, 15477); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
15477 DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))
), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15477
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))"
")"); do { MOZ_CrashSequence(__null, 15477); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
15478 }
15479 }
15480 };
15481
15482 switch (mState) {
15483 case State::Initial:
15484 QM_WARNONLY_TRY(MOZ_TO_RESULT(Open()), handleError){auto tryResult1244 = (ToResult(Open())); static_assert(std::
is_empty_v<typename decltype(tryResult1244)::ok_type>);
if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto
tryTempError = tryResult1244.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(Open())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15484, mozilla::dom::quota::Severity::Warning); handleError
(tryTempError); }}
;
15485 break;
15486
15487 case State::DirectoryWorkOpen:
15488 QM_WARNONLY_TRY(MOZ_TO_RESULT(DoDirectoryWork()), handleError){auto tryResult1245 = (ToResult(DoDirectoryWork())); static_assert
(std::is_empty_v<typename decltype(tryResult1245)::ok_type
>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) {
auto tryTempError = tryResult1245.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(DoDirectoryWork())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15488
, mozilla::dom::quota::Severity::Warning); handleError(tryTempError
); }}
;
15489 break;
15490
15491 case State::DirectoryWorkDone:
15492 QM_WARNONLY_TRY(MOZ_TO_RESULT(DirectoryWorkDone()), handleError){auto tryResult1246 = (ToResult(DirectoryWorkDone())); static_assert
(std::is_empty_v<typename decltype(tryResult1246)::ok_type
>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) {
auto tryTempError = tryResult1246.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(DirectoryWorkDone())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15492
, mozilla::dom::quota::Severity::Warning); handleError(tryTempError
); }}
;
15493 break;
15494
15495 case State::DatabaseOpenPending:
15496 QM_WARNONLY_TRY(MOZ_TO_RESULT(DatabaseOpen()), handleError){auto tryResult1247 = (ToResult(DatabaseOpen())); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
auto tryTempError = tryResult1247.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(DatabaseOpen())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15496, mozilla::dom::quota::Severity::Warning); handleError
(tryTempError); }}
;
15497 break;
15498
15499 case State::DatabaseWorkOpen:
15500 QM_WARNONLY_TRY(MOZ_TO_RESULT(DoDatabaseWork()), handleError){auto tryResult1248 = (ToResult(DoDatabaseWork())); static_assert
(std::is_empty_v<typename decltype(tryResult1248)::ok_type
>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) {
auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(DoDatabaseWork())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15500
, mozilla::dom::quota::Severity::Warning); handleError(tryTempError
); }}
;
15501 break;
15502
15503 case State::BeginVersionChange:
15504 QM_WARNONLY_TRY(MOZ_TO_RESULT(BeginVersionChange()), handleError){auto tryResult1249 = (ToResult(BeginVersionChange())); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
auto tryTempError = tryResult1249.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(BeginVersionChange())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15504
, mozilla::dom::quota::Severity::Warning); handleError(tryTempError
); }}
;
15505 break;
15506
15507 case State::WaitingForTransactionsToComplete:
15508 QM_WARNONLY_TRY(MOZ_TO_RESULT(DispatchToWorkThread()), handleError){auto tryResult1250 = (ToResult(DispatchToWorkThread())); static_assert
(std::is_empty_v<typename decltype(tryResult1250)::ok_type
>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) {
auto tryTempError = tryResult1250.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(DispatchToWorkThread())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15508
, mozilla::dom::quota::Severity::Warning); handleError(tryTempError
); }}
;
15509 break;
15510
15511 case State::DatabaseWorkVersionUpdate:
15512 QM_WARNONLY_TRY(MOZ_TO_RESULT(DoVersionUpdate()), handleError){auto tryResult1251 = (ToResult(DoVersionUpdate())); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
auto tryTempError = tryResult1251.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(DoVersionUpdate())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15512
, mozilla::dom::quota::Severity::Warning); handleError(tryTempError
); }}
;
15513 break;
15514
15515 case State::SendingResults:
15516 SendResults();
15517 break;
15518
15519 default:
15520 MOZ_CRASH("Bad state!")do { do { } while (false); MOZ_ReportCrash("" "Bad state!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15520); AnnotateMozCrashReason("MOZ_CRASH(" "Bad state!" ")"
); do { MOZ_CrashSequence(__null, 15520); __attribute__((nomerge
)) ::abort(); } while (false); } while (false)
;
15521 }
15522
15523 return NS_OK;
15524}
15525
15526void FactoryOp::DirectoryLockAcquired(ClientDirectoryLockHandle aLockHandle) {
15527 AssertIsOnOwningThread();
15528 MOZ_ASSERT(aLockHandle)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aLockHandle)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aLockHandle))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aLockHandle", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aLockHandle"
")"); do { MOZ_CrashSequence(__null, 15528); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15529 MOZ_ASSERT(mState == State::DirectoryOpenPending)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::DirectoryOpenPending)>::isValid,
"invalid assertion condition"); if ((__builtin_expect(!!(!(!
!(mState == State::DirectoryOpenPending))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mState == State::DirectoryOpenPending"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15529
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryOpenPending"
")"); do { MOZ_CrashSequence(__null, 15529); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15530 MOZ_ASSERT(!mDirectoryLockHandle)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDirectoryLockHandle)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDirectoryLockHandle))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("!mDirectoryLockHandle"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15530
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLockHandle"
")"); do { MOZ_CrashSequence(__null, 15530); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15531
15532 mDirectoryLockHandle = std::move(aLockHandle);
15533
15534 MOZ_ASSERT(mDirectoryLockHandle->Id() >= 0)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDirectoryLockHandle->Id() >= 0)>::isValid,
"invalid assertion condition"); if ((__builtin_expect(!!(!(!
!(mDirectoryLockHandle->Id() >= 0))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mDirectoryLockHandle->Id() >= 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15534
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLockHandle->Id() >= 0"
")"); do { MOZ_CrashSequence(__null, 15534); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15535 mDirectoryLockId = mDirectoryLockHandle->Id();
15536
15537 auto cleanupAndReturn = [self = RefPtr(this)](const nsresult rv) {
15538 self->SetFailureCodeIfUnset(rv);
15539
15540 // The caller holds a strong reference to us, no need for a self reference
15541 // before calling Run().
15542
15543 self->mState = State::SendingResults;
15544 MOZ_ALWAYS_SUCCEEDS(self->Run())do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(self->Run())), 1)))), 1))) { } else { do { do { } while (
false); MOZ_ReportCrash("" "NS_SUCCEEDED(self->Run())", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15544); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(self->Run())"
")"); do { MOZ_CrashSequence(__null, 15544); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
15545 };
15546
15547 if (mDirectoryLockHandle->Invalidated()) {
15548 return cleanupAndReturn(NS_ERROR_DOM_INDEXEDDB_ABORT_ERR);
15549 }
15550
15551 QM_WARNONLY_TRY(MOZ_TO_RESULT(DirectoryOpen()), cleanupAndReturn){auto tryResult1252 = (ToResult(DirectoryOpen())); static_assert
(std::is_empty_v<typename decltype(tryResult1252)::ok_type
>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) {
auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(DirectoryOpen())", tryTempError,
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15551,
mozilla::dom::quota::Severity::Warning); cleanupAndReturn(tryTempError
); }}
;
15552}
15553
15554void FactoryOp::DirectoryLockFailed() {
15555 AssertIsOnOwningThread();
15556 MOZ_ASSERT(mState == State::DirectoryOpenPending)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::DirectoryOpenPending)>::isValid,
"invalid assertion condition"); if ((__builtin_expect(!!(!(!
!(mState == State::DirectoryOpenPending))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mState == State::DirectoryOpenPending"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15556
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryOpenPending"
")"); do { MOZ_CrashSequence(__null, 15556); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15557 MOZ_ASSERT(!mDirectoryLockHandle)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDirectoryLockHandle)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDirectoryLockHandle))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("!mDirectoryLockHandle"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15557
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLockHandle"
")"); do { MOZ_CrashSequence(__null, 15557); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15558
15559 if (!HasFailed()) {
15560 IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15560, idbInternalErrMsg.get()); } while (0)
;
15561 SetFailureCode(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR);
15562 }
15563
15564 // The caller holds a strong reference to us, no need for a self reference
15565 // before calling Run().
15566
15567 mState = State::SendingResults;
15568 MOZ_ALWAYS_SUCCEEDS(Run())do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(Run())), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(Run())", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15568); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(Run())"
")"); do { MOZ_CrashSequence(__null, 15568); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
15569}
15570
15571nsresult FactoryRequestOp::DoDirectoryWork() {
15572 MOZ_CRASH("Not implemented because this should be unreachable.")do { do { } while (false); MOZ_ReportCrash("" "Not implemented because this should be unreachable."
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15572
); AnnotateMozCrashReason("MOZ_CRASH(" "Not implemented because this should be unreachable."
")"); do { MOZ_CrashSequence(__null, 15572); __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
15573}
15574
15575void FactoryRequestOp::ActorDestroy(ActorDestroyReason aWhy) {
15576 AssertIsOnBackgroundThread();
15577
15578 NoteActorDestroyed();
15579}
15580
15581OpenDatabaseOp::OpenDatabaseOp(SafeRefPtr<Factory> aFactory,
15582 const Maybe<ContentParentId>& aContentParentId,
15583 const CommonFactoryRequestParams& aParams)
15584 : FactoryRequestOp(std::move(aFactory), aContentParentId, aParams,
15585 /* aDeleting */ false),
15586 mMetadata(MakeSafeRefPtr<FullDatabaseMetadata>(aParams.metadata())),
15587 mRequestedVersion(aParams.metadata().version()),
15588 mVersionChangeOp(nullptr),
15589 mTelemetryId(0) {}
15590
15591void OpenDatabaseOp::ActorDestroy(ActorDestroyReason aWhy) {
15592 AssertIsOnOwningThread();
15593
15594 FactoryRequestOp::ActorDestroy(aWhy);
15595
15596 if (mVersionChangeOp) {
15597 mVersionChangeOp->NoteActorDestroyed();
15598 }
15599}
15600
15601nsresult OpenDatabaseOp::DatabaseOpen() {
15602 AssertIsOnOwningThread();
15603 MOZ_ASSERT(mState == State::DatabaseOpenPending)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::DatabaseOpenPending)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::DatabaseOpenPending
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State::DatabaseOpenPending", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15603); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseOpenPending"
")"); do { MOZ_CrashSequence(__null, 15603); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15604
15605 nsresult rv = SendToIOThread();
15606 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15606)
) {
15607 return rv;
15608 }
15609
15610 return NS_OK;
15611}
15612
15613nsresult OpenDatabaseOp::DoDatabaseWork() {
15614 AssertIsOnIOThread();
15615 MOZ_ASSERT(mState == State::DatabaseWorkOpen)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::DatabaseWorkOpen)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::DatabaseWorkOpen
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State::DatabaseWorkOpen", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15615); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkOpen"
")"); do { MOZ_CrashSequence(__null, 15615); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15616
15617 AUTO_PROFILER_LABEL("OpenDatabaseOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject15617( "OpenDatabaseOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
15618
15619 QM_TRY(OkIf(!QuotaClient::IsShuttingDownOnNonBackgroundThread()),{auto tryResult1253 = (OkIf(!QuotaClient::IsShuttingDownOnNonBackgroundThread
())); static_assert(std::is_empty_v<typename decltype(tryResult1253
)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr
()), 0))) { auto tryTempError = tryResult1253.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!QuotaClient::IsShuttingDownOnNonBackgroundThread())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15620, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15620, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!QuotaClient::IsShuttingDownOnNonBackgroundThread())"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
15620 NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR, IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult1253 = (OkIf(!QuotaClient::IsShuttingDownOnNonBackgroundThread
())); static_assert(std::is_empty_v<typename decltype(tryResult1253
)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr
()), 0))) { auto tryTempError = tryResult1253.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!QuotaClient::IsShuttingDownOnNonBackgroundThread())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15620, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15620, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!QuotaClient::IsShuttingDownOnNonBackgroundThread())"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
;
15621
15622 if (!OperationMayProceed()) {
15623 IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15623, idbInternalErrMsg.get()); } while (0)
;
15624 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
15625 }
15626
15627 const nsAString& databaseName = mCommonParams.metadata().name();
15628 const PersistenceType persistenceType =
15629 mCommonParams.metadata().persistenceType();
15630
15631 QuotaManager* const quotaManager = QuotaManager::Get();
15632 MOZ_ASSERT(quotaManager)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(quotaManager)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(quotaManager))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("quotaManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15632); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { MOZ_CrashSequence(__null, 15632); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15633
15634 QM_TRY_INSPECT(auto tryResult1256 = (([persistenceType, &quotaManager, this
]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult
> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {
auto tryResult1254 = (quotaManager->GetOriginDirectory(mOriginMetadata
)); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15639, mozilla::dom::quota::Severity::Error); } return tryResult1254
;}; } {auto tryResult1255 = (quotaManager->GetOrCreateTemporaryOriginDirectory
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1255.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)"
, tryResult1255.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); } return tryResult1255
;}; }())); if ((__builtin_expect(!!(tryResult1256.isErr()), 0
))) { mozilla::dom::quota::HandleError("([persistenceType, &quotaManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1254 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15639, mozilla::dom::quota::Severity::Error); } return tryResult1254;}; } {auto tryResult1255 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1255.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); } return tryResult1255;}; }())"
, tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15644, mozilla::dom::quota::Severity::Error); return tryResult1256
.propagateErr(); } const auto& dbDirectory = tryResult1256
.inspect();
15635 const auto& dbDirectory,auto tryResult1256 = (([persistenceType, &quotaManager, this
]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult
> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {
auto tryResult1254 = (quotaManager->GetOriginDirectory(mOriginMetadata
)); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15639, mozilla::dom::quota::Severity::Error); } return tryResult1254
;}; } {auto tryResult1255 = (quotaManager->GetOrCreateTemporaryOriginDirectory
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1255.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)"
, tryResult1255.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); } return tryResult1255
;}; }())); if ((__builtin_expect(!!(tryResult1256.isErr()), 0
))) { mozilla::dom::quota::HandleError("([persistenceType, &quotaManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1254 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15639, mozilla::dom::quota::Severity::Error); } return tryResult1254;}; } {auto tryResult1255 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1255.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); } return tryResult1255;}; }())"
, tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15644, mozilla::dom::quota::Severity::Error); return tryResult1256
.propagateErr(); } const auto& dbDirectory = tryResult1256
.inspect();
15636 ([persistenceType, &quotaManager,auto tryResult1256 = (([persistenceType, &quotaManager, this
]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult
> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {
auto tryResult1254 = (quotaManager->GetOriginDirectory(mOriginMetadata
)); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15639, mozilla::dom::quota::Severity::Error); } return tryResult1254
;}; } {auto tryResult1255 = (quotaManager->GetOrCreateTemporaryOriginDirectory
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1255.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)"
, tryResult1255.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); } return tryResult1255
;}; }())); if ((__builtin_expect(!!(tryResult1256.isErr()), 0
))) { mozilla::dom::quota::HandleError("([persistenceType, &quotaManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1254 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15639, mozilla::dom::quota::Severity::Error); } return tryResult1254;}; } {auto tryResult1255 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1255.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); } return tryResult1255;}; }())"
, tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15644, mozilla::dom::quota::Severity::Error); return tryResult1256
.propagateErr(); } const auto& dbDirectory = tryResult1256
.inspect();
15637 this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> {auto tryResult1256 = (([persistenceType, &quotaManager, this
]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult
> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {
auto tryResult1254 = (quotaManager->GetOriginDirectory(mOriginMetadata
)); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15639, mozilla::dom::quota::Severity::Error); } return tryResult1254
;}; } {auto tryResult1255 = (quotaManager->GetOrCreateTemporaryOriginDirectory
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1255.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)"
, tryResult1255.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); } return tryResult1255
;}; }())); if ((__builtin_expect(!!(tryResult1256.isErr()), 0
))) { mozilla::dom::quota::HandleError("([persistenceType, &quotaManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1254 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15639, mozilla::dom::quota::Severity::Error); } return tryResult1254;}; } {auto tryResult1255 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1255.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); } return tryResult1255;}; }())"
, tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15644, mozilla::dom::quota::Severity::Error); return tryResult1256
.propagateErr(); } const auto& dbDirectory = tryResult1256
.inspect();
15638 if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) {auto tryResult1256 = (([persistenceType, &quotaManager, this
]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult
> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {
auto tryResult1254 = (quotaManager->GetOriginDirectory(mOriginMetadata
)); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15639, mozilla::dom::quota::Severity::Error); } return tryResult1254
;}; } {auto tryResult1255 = (quotaManager->GetOrCreateTemporaryOriginDirectory
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1255.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)"
, tryResult1255.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); } return tryResult1255
;}; }())); if ((__builtin_expect(!!(tryResult1256.isErr()), 0
))) { mozilla::dom::quota::HandleError("([persistenceType, &quotaManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1254 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15639, mozilla::dom::quota::Severity::Error); } return tryResult1254;}; } {auto tryResult1255 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1255.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); } return tryResult1255;}; }())"
, tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15644, mozilla::dom::quota::Severity::Error); return tryResult1256
.propagateErr(); } const auto& dbDirectory = tryResult1256
.inspect();
15639 QM_TRY_RETURN(quotaManager->GetOriginDirectory(mOriginMetadata));auto tryResult1256 = (([persistenceType, &quotaManager, this
]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult
> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {
auto tryResult1254 = (quotaManager->GetOriginDirectory(mOriginMetadata
)); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15639, mozilla::dom::quota::Severity::Error); } return tryResult1254
;}; } {auto tryResult1255 = (quotaManager->GetOrCreateTemporaryOriginDirectory
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1255.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)"
, tryResult1255.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); } return tryResult1255
;}; }())); if ((__builtin_expect(!!(tryResult1256.isErr()), 0
))) { mozilla::dom::quota::HandleError("([persistenceType, &quotaManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1254 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15639, mozilla::dom::quota::Severity::Error); } return tryResult1254;}; } {auto tryResult1255 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1255.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); } return tryResult1255;}; }())"
, tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15644, mozilla::dom::quota::Severity::Error); return tryResult1256
.propagateErr(); } const auto& dbDirectory = tryResult1256
.inspect();
15640 }auto tryResult1256 = (([persistenceType, &quotaManager, this
]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult
> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {
auto tryResult1254 = (quotaManager->GetOriginDirectory(mOriginMetadata
)); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15639, mozilla::dom::quota::Severity::Error); } return tryResult1254
;}; } {auto tryResult1255 = (quotaManager->GetOrCreateTemporaryOriginDirectory
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1255.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)"
, tryResult1255.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); } return tryResult1255
;}; }())); if ((__builtin_expect(!!(tryResult1256.isErr()), 0
))) { mozilla::dom::quota::HandleError("([persistenceType, &quotaManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1254 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15639, mozilla::dom::quota::Severity::Error); } return tryResult1254;}; } {auto tryResult1255 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1255.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); } return tryResult1255;}; }())"
, tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15644, mozilla::dom::quota::Severity::Error); return tryResult1256
.propagateErr(); } const auto& dbDirectory = tryResult1256
.inspect();
15641
15642 QM_TRY_RETURN(auto tryResult1256 = (([persistenceType, &quotaManager, this
]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult
> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {
auto tryResult1254 = (quotaManager->GetOriginDirectory(mOriginMetadata
)); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15639, mozilla::dom::quota::Severity::Error); } return tryResult1254
;}; } {auto tryResult1255 = (quotaManager->GetOrCreateTemporaryOriginDirectory
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1255.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)"
, tryResult1255.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); } return tryResult1255
;}; }())); if ((__builtin_expect(!!(tryResult1256.isErr()), 0
))) { mozilla::dom::quota::HandleError("([persistenceType, &quotaManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1254 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15639, mozilla::dom::quota::Severity::Error); } return tryResult1254;}; } {auto tryResult1255 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1255.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); } return tryResult1255;}; }())"
, tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15644, mozilla::dom::quota::Severity::Error); return tryResult1256
.propagateErr(); } const auto& dbDirectory = tryResult1256
.inspect();
15643 quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata));auto tryResult1256 = (([persistenceType, &quotaManager, this
]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult
> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {
auto tryResult1254 = (quotaManager->GetOriginDirectory(mOriginMetadata
)); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15639, mozilla::dom::quota::Severity::Error); } return tryResult1254
;}; } {auto tryResult1255 = (quotaManager->GetOrCreateTemporaryOriginDirectory
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1255.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)"
, tryResult1255.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); } return tryResult1255
;}; }())); if ((__builtin_expect(!!(tryResult1256.isErr()), 0
))) { mozilla::dom::quota::HandleError("([persistenceType, &quotaManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1254 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15639, mozilla::dom::quota::Severity::Error); } return tryResult1254;}; } {auto tryResult1255 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1255.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); } return tryResult1255;}; }())"
, tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15644, mozilla::dom::quota::Severity::Error); return tryResult1256
.propagateErr(); } const auto& dbDirectory = tryResult1256
.inspect();
15644 }()))auto tryResult1256 = (([persistenceType, &quotaManager, this
]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult
> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {
auto tryResult1254 = (quotaManager->GetOriginDirectory(mOriginMetadata
)); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15639, mozilla::dom::quota::Severity::Error); } return tryResult1254
;}; } {auto tryResult1255 = (quotaManager->GetOrCreateTemporaryOriginDirectory
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1255.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)"
, tryResult1255.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); } return tryResult1255
;}; }())); if ((__builtin_expect(!!(tryResult1256.isErr()), 0
))) { mozilla::dom::quota::HandleError("([persistenceType, &quotaManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1254 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1254.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15639, mozilla::dom::quota::Severity::Error); } return tryResult1254;}; } {auto tryResult1255 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1255.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1255.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); } return tryResult1255;}; }())"
, tryResult1256.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15644, mozilla::dom::quota::Severity::Error); return tryResult1256
.propagateErr(); } const auto& dbDirectory = tryResult1256
.inspect();
;
15645
15646 QM_TRY(MOZ_TO_RESULT({auto tryResult1257 = (ToResult(dbDirectory->Append(static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1257
)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbDirectory->Append(static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1257.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15647, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); }}
15647 dbDirectory->Append(NS_LITERAL_STRING_FROM_CSTRING(IDB_DIRECTORY_NAME)))){auto tryResult1257 = (ToResult(dbDirectory->Append(static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1257
)::ok_type>); if ((__builtin_expect(!!(tryResult1257.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbDirectory->Append(static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1257.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15647, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); }}
;
15648
15649 {
15650 QM_TRY_INSPECT(const bool& exists,auto tryResult1258 = (::mozilla::ToResultInvokeMember( (dbDirectory
), &::mozilla::detail::DerefedType<decltype(dbDirectory
)>::Exists )); if ((__builtin_expect(!!(tryResult1258.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (dbDirectory), &::mozilla::detail::DerefedType<decltype(dbDirectory)>::Exists )"
, tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); } const bool& exists = tryResult1258.inspect
();
15651 MOZ_TO_RESULT_INVOKE_MEMBER(dbDirectory, Exists))auto tryResult1258 = (::mozilla::ToResultInvokeMember( (dbDirectory
), &::mozilla::detail::DerefedType<decltype(dbDirectory
)>::Exists )); if ((__builtin_expect(!!(tryResult1258.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (dbDirectory), &::mozilla::detail::DerefedType<decltype(dbDirectory)>::Exists )"
, tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); } const bool& exists = tryResult1258.inspect
();
;
15652
15653 if (!exists) {
15654 QM_TRY(MOZ_TO_RESULT(dbDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))){auto tryResult1259 = (ToResult(dbDirectory->Create(nsIFile
::DIRECTORY_TYPE, 0755))); static_assert(std::is_empty_v<typename
decltype(tryResult1259)::ok_type>); if ((__builtin_expect
(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(dbDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))"
, tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15654, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); }}
;
15655 }
15656#ifdef DEBUG1
15657 else {
15658 bool isDirectory;
15659 MOZ_ASSERT(NS_SUCCEEDED(dbDirectory->IsDirectory(&isDirectory)))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(dbDirectory
->IsDirectory(&isDirectory))), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(dbDirectory->IsDirectory(&isDirectory)
)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(dbDirectory->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15659
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(dbDirectory->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 15659); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15660 MOZ_ASSERT(isDirectory)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(isDirectory)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15660); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 15660); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15661 }
15662#endif
15663 }
15664
15665 QM_TRY_INSPECT(const auto& markerFile,auto tryResult1260 = (CloneFileAndAppend(*dbDirectory, kIdbDeletionMarkerFilePrefix
+ *mDatabaseFilenameBase)); if ((__builtin_expect(!!(tryResult1260
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*dbDirectory, kIdbDeletionMarkerFilePrefix + *mDatabaseFilenameBase)"
, tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15667, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); } const auto& markerFile = tryResult1260
.inspect();
15666 CloneFileAndAppend(*dbDirectory, kIdbDeletionMarkerFilePrefix +auto tryResult1260 = (CloneFileAndAppend(*dbDirectory, kIdbDeletionMarkerFilePrefix
+ *mDatabaseFilenameBase)); if ((__builtin_expect(!!(tryResult1260
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*dbDirectory, kIdbDeletionMarkerFilePrefix + *mDatabaseFilenameBase)"
, tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15667, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); } const auto& markerFile = tryResult1260
.inspect();
15667 *mDatabaseFilenameBase))auto tryResult1260 = (CloneFileAndAppend(*dbDirectory, kIdbDeletionMarkerFilePrefix
+ *mDatabaseFilenameBase)); if ((__builtin_expect(!!(tryResult1260
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*dbDirectory, kIdbDeletionMarkerFilePrefix + *mDatabaseFilenameBase)"
, tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15667, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); } const auto& markerFile = tryResult1260
.inspect();
;
15668
15669 QM_TRY_INSPECT(const bool& exists,auto tryResult1261 = (::mozilla::ToResultInvokeMember( (markerFile
), &::mozilla::detail::DerefedType<decltype(markerFile
)>::Exists )); if ((__builtin_expect(!!(tryResult1261.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (markerFile), &::mozilla::detail::DerefedType<decltype(markerFile)>::Exists )"
, tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15670, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); } const bool& exists = tryResult1261.inspect
();
15670 MOZ_TO_RESULT_INVOKE_MEMBER(markerFile, Exists))auto tryResult1261 = (::mozilla::ToResultInvokeMember( (markerFile
), &::mozilla::detail::DerefedType<decltype(markerFile
)>::Exists )); if ((__builtin_expect(!!(tryResult1261.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (markerFile), &::mozilla::detail::DerefedType<decltype(markerFile)>::Exists )"
, tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15670, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); } const bool& exists = tryResult1261.inspect
();
;
15671
15672 if (exists) {
15673 // Delete the database and directroy since they should be deleted in
15674 // previous operation.
15675 // Note: only update usage to the QuotaManager when mEnforcingQuota == true
15676 QM_TRY(MOZ_TO_RESULT(RemoveDatabaseFilesAndDirectory({auto tryResult1262 = (ToResult(RemoveDatabaseFilesAndDirectory
( *dbDirectory, *mDatabaseFilenameBase, mEnforcingQuota ? quotaManager
: nullptr, persistenceType, mOriginMetadata, databaseName)))
; static_assert(std::is_empty_v<typename decltype(tryResult1262
)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *dbDirectory, *mDatabaseFilenameBase, mEnforcingQuota ? quotaManager : nullptr, persistenceType, mOriginMetadata, databaseName))"
, tryResult1262.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}
15677 *dbDirectory, *mDatabaseFilenameBase,{auto tryResult1262 = (ToResult(RemoveDatabaseFilesAndDirectory
( *dbDirectory, *mDatabaseFilenameBase, mEnforcingQuota ? quotaManager
: nullptr, persistenceType, mOriginMetadata, databaseName)))
; static_assert(std::is_empty_v<typename decltype(tryResult1262
)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *dbDirectory, *mDatabaseFilenameBase, mEnforcingQuota ? quotaManager : nullptr, persistenceType, mOriginMetadata, databaseName))"
, tryResult1262.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}
15678 mEnforcingQuota ? quotaManager : nullptr, persistenceType,{auto tryResult1262 = (ToResult(RemoveDatabaseFilesAndDirectory
( *dbDirectory, *mDatabaseFilenameBase, mEnforcingQuota ? quotaManager
: nullptr, persistenceType, mOriginMetadata, databaseName)))
; static_assert(std::is_empty_v<typename decltype(tryResult1262
)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *dbDirectory, *mDatabaseFilenameBase, mEnforcingQuota ? quotaManager : nullptr, persistenceType, mOriginMetadata, databaseName))"
, tryResult1262.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}
15679 mOriginMetadata, databaseName))){auto tryResult1262 = (ToResult(RemoveDatabaseFilesAndDirectory
( *dbDirectory, *mDatabaseFilenameBase, mEnforcingQuota ? quotaManager
: nullptr, persistenceType, mOriginMetadata, databaseName)))
; static_assert(std::is_empty_v<typename decltype(tryResult1262
)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *dbDirectory, *mDatabaseFilenameBase, mEnforcingQuota ? quotaManager : nullptr, persistenceType, mOriginMetadata, databaseName))"
, tryResult1262.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}
;
15680 }
15681
15682 QM_TRY_INSPECT(auto tryResult1263 = (CloneFileAndAppend(*dbDirectory, *mDatabaseFilenameBase
+ kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1263.isErr
()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*dbDirectory, *mDatabaseFilenameBase + kSQLiteSuffix)"
, tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); } const auto& dbFile = tryResult1263.inspect
();
15683 const auto& dbFile,auto tryResult1263 = (CloneFileAndAppend(*dbDirectory, *mDatabaseFilenameBase
+ kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1263.isErr
()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*dbDirectory, *mDatabaseFilenameBase + kSQLiteSuffix)"
, tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); } const auto& dbFile = tryResult1263.inspect
();
15684 CloneFileAndAppend(*dbDirectory, *mDatabaseFilenameBase + kSQLiteSuffix))auto tryResult1263 = (CloneFileAndAppend(*dbDirectory, *mDatabaseFilenameBase
+ kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1263.isErr
()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*dbDirectory, *mDatabaseFilenameBase + kSQLiteSuffix)"
, tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); } const auto& dbFile = tryResult1263.inspect
();
;
15685
15686 mTelemetryId = TelemetryIdForFile(dbFile);
15687
15688#ifdef DEBUG1
15689 {
15690 QM_TRY_INSPECT(auto tryResult1264 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect(!!
(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )"
, tryResult1264.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15692, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); } const auto& databaseFilePath = tryResult1264
.inspect();
15691 const auto& databaseFilePath,auto tryResult1264 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect(!!
(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )"
, tryResult1264.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15692, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); } const auto& databaseFilePath = tryResult1264
.inspect();
15692 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsString, dbFile, GetPath))auto tryResult1264 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect(!!
(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )"
, tryResult1264.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15692, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); } const auto& databaseFilePath = tryResult1264
.inspect();
;
15693
15694 MOZ_ASSERT(databaseFilePath == mDatabaseFilePath.ref())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(databaseFilePath == mDatabaseFilePath.ref())>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(databaseFilePath == mDatabaseFilePath.ref()))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("databaseFilePath == mDatabaseFilePath.ref()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15694
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "databaseFilePath == mDatabaseFilePath.ref()"
")"); do { MOZ_CrashSequence(__null, 15694); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15695 }
15696#endif
15697
15698 QM_TRY_INSPECT(auto tryResult1265 = (CloneFileAndAppend(*dbDirectory, *mDatabaseFilenameBase
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*dbDirectory, *mDatabaseFilenameBase + kFileManagerDirectoryNameSuffix)"
, tryResult1265.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15701, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); } const auto& fmDirectory = tryResult1265
.inspect();
15699 const auto& fmDirectory,auto tryResult1265 = (CloneFileAndAppend(*dbDirectory, *mDatabaseFilenameBase
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*dbDirectory, *mDatabaseFilenameBase + kFileManagerDirectoryNameSuffix)"
, tryResult1265.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15701, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); } const auto& fmDirectory = tryResult1265
.inspect();
15700 CloneFileAndAppend(*dbDirectory, *mDatabaseFilenameBase +auto tryResult1265 = (CloneFileAndAppend(*dbDirectory, *mDatabaseFilenameBase
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*dbDirectory, *mDatabaseFilenameBase + kFileManagerDirectoryNameSuffix)"
, tryResult1265.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15701, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); } const auto& fmDirectory = tryResult1265
.inspect();
15701 kFileManagerDirectoryNameSuffix))auto tryResult1265 = (CloneFileAndAppend(*dbDirectory, *mDatabaseFilenameBase
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*dbDirectory, *mDatabaseFilenameBase + kFileManagerDirectoryNameSuffix)"
, tryResult1265.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15701, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); } const auto& fmDirectory = tryResult1265
.inspect();
;
15702
15703 IndexedDatabaseManager* const idm = IndexedDatabaseManager::Get();
15704 MOZ_ASSERT(idm)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(idm)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(idm))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("idm", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15704); AnnotateMozCrashReason("MOZ_ASSERT" "(" "idm" ")");
do { MOZ_CrashSequence(__null, 15704); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
15705
15706 SafeRefPtr<DatabaseFileManager> fileManager = idm->GetFileManager(
15707 persistenceType, mOriginMetadata.mOrigin, databaseName);
15708
15709 if (!fileManager) {
15710 QM_TRY_UNWRAP(auto cipherKeyManager,auto tryResult1266 = (DatabaseFileManager::CreateCipherKeyManager
( mOriginMetadata, mInPrivateBrowsing)); if ((__builtin_expect
(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError
("DatabaseFileManager::CreateCipherKeyManager( mOriginMetadata, mInPrivateBrowsing)"
, tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15712, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); } auto cipherKeyManager = tryResult1266.unwrap
();
15711 DatabaseFileManager::CreateCipherKeyManager(auto tryResult1266 = (DatabaseFileManager::CreateCipherKeyManager
( mOriginMetadata, mInPrivateBrowsing)); if ((__builtin_expect
(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError
("DatabaseFileManager::CreateCipherKeyManager( mOriginMetadata, mInPrivateBrowsing)"
, tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15712, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); } auto cipherKeyManager = tryResult1266.unwrap
();
15712 mOriginMetadata, mInPrivateBrowsing))auto tryResult1266 = (DatabaseFileManager::CreateCipherKeyManager
( mOriginMetadata, mInPrivateBrowsing)); if ((__builtin_expect
(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError
("DatabaseFileManager::CreateCipherKeyManager( mOriginMetadata, mInPrivateBrowsing)"
, tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15712, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); } auto cipherKeyManager = tryResult1266.unwrap
();
;
15713 fileManager = MakeSafeRefPtr<DatabaseFileManager>(
15714 persistenceType, mOriginMetadata, databaseName, mDatabaseId.ref(),
15715 mDatabaseFilePath.ref(), mEnforcingQuota, mInPrivateBrowsing,
15716 std::move(cipherKeyManager));
15717 }
15718
15719 Maybe<CipherKey> maybeKey;
15720 if (fileManager->UsesEncryption()) {
15721 QM_TRY_UNWRAP(auto key, fileManager->MutableCipherKeyManagerRef().Ensure(auto tryResult1267 = (fileManager->MutableCipherKeyManagerRef
().Ensure( fileManager->CipherKeyIdForDatabase())); if ((__builtin_expect
(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError
("fileManager->MutableCipherKeyManagerRef().Ensure( fileManager->CipherKeyIdForDatabase())"
, tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15722, mozilla::dom::quota::Severity::Error); return tryResult1267
.propagateErr(); } auto key = tryResult1267.unwrap();
15722 fileManager->CipherKeyIdForDatabase()))auto tryResult1267 = (fileManager->MutableCipherKeyManagerRef
().Ensure( fileManager->CipherKeyIdForDatabase())); if ((__builtin_expect
(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError
("fileManager->MutableCipherKeyManagerRef().Ensure( fileManager->CipherKeyIdForDatabase())"
, tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15722, mozilla::dom::quota::Severity::Error); return tryResult1267
.propagateErr(); } auto key = tryResult1267.unwrap();
;
15723 maybeKey = Some(key);
15724 }
15725
15726 QM_TRY_UNWRAP(auto tryResult1268 = (CreateStorageConnection(*dbFile, *fmDirectory
, databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId
, maybeKey)); if ((__builtin_expect(!!(tryResult1268.isErr())
, 0))) { mozilla::dom::quota::HandleError("CreateStorageConnection(*dbFile, *fmDirectory, databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId, maybeKey)"
, tryResult1268.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15730, mozilla::dom::quota::Severity::Error); return tryResult1268
.propagateErr(); } NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1268.unwrap();
15727 NotNull<nsCOMPtr<mozIStorageConnection>> connection,auto tryResult1268 = (CreateStorageConnection(*dbFile, *fmDirectory
, databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId
, maybeKey)); if ((__builtin_expect(!!(tryResult1268.isErr())
, 0))) { mozilla::dom::quota::HandleError("CreateStorageConnection(*dbFile, *fmDirectory, databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId, maybeKey)"
, tryResult1268.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15730, mozilla::dom::quota::Severity::Error); return tryResult1268
.propagateErr(); } NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1268.unwrap();
15728 CreateStorageConnection(*dbFile, *fmDirectory, databaseName,auto tryResult1268 = (CreateStorageConnection(*dbFile, *fmDirectory
, databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId
, maybeKey)); if ((__builtin_expect(!!(tryResult1268.isErr())
, 0))) { mozilla::dom::quota::HandleError("CreateStorageConnection(*dbFile, *fmDirectory, databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId, maybeKey)"
, tryResult1268.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15730, mozilla::dom::quota::Severity::Error); return tryResult1268
.propagateErr(); } NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1268.unwrap();
15729 mOriginMetadata.mOrigin, mDirectoryLockId,auto tryResult1268 = (CreateStorageConnection(*dbFile, *fmDirectory
, databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId
, maybeKey)); if ((__builtin_expect(!!(tryResult1268.isErr())
, 0))) { mozilla::dom::quota::HandleError("CreateStorageConnection(*dbFile, *fmDirectory, databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId, maybeKey)"
, tryResult1268.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15730, mozilla::dom::quota::Severity::Error); return tryResult1268
.propagateErr(); } NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1268.unwrap();
15730 mTelemetryId, maybeKey))auto tryResult1268 = (CreateStorageConnection(*dbFile, *fmDirectory
, databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId
, maybeKey)); if ((__builtin_expect(!!(tryResult1268.isErr())
, 0))) { mozilla::dom::quota::HandleError("CreateStorageConnection(*dbFile, *fmDirectory, databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId, maybeKey)"
, tryResult1268.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15730, mozilla::dom::quota::Severity::Error); return tryResult1268
.propagateErr(); } NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1268.unwrap();
;
15731
15732 AutoSetProgressHandler asph;
15733 QM_TRY(MOZ_TO_RESULT(asph.Register(*connection, this))){auto tryResult1269 = (ToResult(asph.Register(*connection, this
))); static_assert(std::is_empty_v<typename decltype(tryResult1269
)::ok_type>); if ((__builtin_expect(!!(tryResult1269.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(asph.Register(*connection, this))"
, tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15733, mozilla::dom::quota::Severity::Error); return tryResult1269
.propagateErr(); }}
;
15734
15735 QM_TRY(MOZ_TO_RESULT(LoadDatabaseInformation(*connection))){auto tryResult1270 = (ToResult(LoadDatabaseInformation(*connection
))); static_assert(std::is_empty_v<typename decltype(tryResult1270
)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(LoadDatabaseInformation(*connection))"
, tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15735, mozilla::dom::quota::Severity::Error); return tryResult1270
.propagateErr(); }}
;
15736
15737 MOZ_ASSERT(mMetadata->mNextObjectStoreId > mMetadata->mObjectStores.Count())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMetadata->mNextObjectStoreId > mMetadata->
mObjectStores.Count())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mMetadata->mNextObjectStoreId
> mMetadata->mObjectStores.Count()))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mMetadata->mNextObjectStoreId > mMetadata->mObjectStores.Count()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15737
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata->mNextObjectStoreId > mMetadata->mObjectStores.Count()"
")"); do { MOZ_CrashSequence(__null, 15737); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15738 MOZ_ASSERT(mMetadata->mNextIndexId > 0)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMetadata->mNextIndexId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mMetadata->mNextIndexId >
0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mMetadata->mNextIndexId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15738); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata->mNextIndexId > 0"
")"); do { MOZ_CrashSequence(__null, 15738); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15739
15740 // See if we need to do a versionchange transaction
15741
15742 // Optional version semantics.
15743 if (!mRequestedVersion) {
15744 // If the requested version was not specified and the database was created,
15745 // treat it as if version 1 were requested.
15746 // Otherwise, treat it as if the current version were requested.
15747 mRequestedVersion = mMetadata->mCommonMetadata.version() == 0
15748 ? 1
15749 : mMetadata->mCommonMetadata.version();
15750 }
15751
15752 QM_TRY(OkIf(mMetadata->mCommonMetadata.version() <= mRequestedVersion),{auto tryResult1271 = (OkIf(mMetadata->mCommonMetadata.version
() <= mRequestedVersion)); static_assert(std::is_empty_v<
typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect
(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mMetadata->mCommonMetadata.version() <= mRequestedVersion)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mMetadata->mCommonMetadata.version() <= mRequestedVersion)"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_VERSION_ERR); }}
15753 NS_ERROR_DOM_INDEXEDDB_VERSION_ERR){auto tryResult1271 = (OkIf(mMetadata->mCommonMetadata.version
() <= mRequestedVersion)); static_assert(std::is_empty_v<
typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect
(!!(tryResult1271.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1271.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mMetadata->mCommonMetadata.version() <= mRequestedVersion)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mMetadata->mCommonMetadata.version() <= mRequestedVersion)"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_VERSION_ERR); }}
;
15754
15755 if (!fileManager->Initialized()) {
15756 QM_TRY(MOZ_TO_RESULT(fileManager->Init({auto tryResult1272 = (ToResult(fileManager->Init( fmDirectory
, mMetadata->mCommonMetadata.version(), *connection))); static_assert
(std::is_empty_v<typename decltype(tryResult1272)::ok_type
>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(fileManager->Init( fmDirectory, mMetadata->mCommonMetadata.version(), *connection))"
, tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15757, mozilla::dom::quota::Severity::Error); return tryResult1272
.propagateErr(); }}
15757 fmDirectory, mMetadata->mCommonMetadata.version(), *connection))){auto tryResult1272 = (ToResult(fileManager->Init( fmDirectory
, mMetadata->mCommonMetadata.version(), *connection))); static_assert
(std::is_empty_v<typename decltype(tryResult1272)::ok_type
>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(fileManager->Init( fmDirectory, mMetadata->mCommonMetadata.version(), *connection))"
, tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15757, mozilla::dom::quota::Severity::Error); return tryResult1272
.propagateErr(); }}
;
15758
15759 idm->AddFileManager(fileManager.clonePtr());
15760 }
15761
15762 mFileManager = std::move(fileManager);
15763
15764 // Must close connection before dispatching otherwise we might race with the
15765 // connection thread which needs to open the same database.
15766 asph.Unregister();
15767
15768 MOZ_ALWAYS_SUCCEEDS(connection->Close())do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(connection->Close())), 1)))), 1))) { } else { do { do { }
while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(connection->Close())"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15768
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(connection->Close())"
")"); do { MOZ_CrashSequence(__null, 15768); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
15769
15770 SleepIfEnabled(
15771 StaticPrefs::dom_indexedDB_databaseInitialization_pauseOnIOThreadMs());
15772
15773 // Must set mState before dispatching otherwise we will race with the owning
15774 // thread.
15775 mState = (mMetadata->mCommonMetadata.version() == mRequestedVersion)
15776 ? State::SendingResults
15777 : State::BeginVersionChange;
15778
15779 QM_TRY(MOZ_TO_RESULT({auto tryResult1273 = (ToResult(DispatchThisAfterProcessingCurrentEvent
(mOwningEventTarget))); static_assert(std::is_empty_v<typename
decltype(tryResult1273)::ok_type>); if ((__builtin_expect
(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))"
, tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15780, mozilla::dom::quota::Severity::Error); return tryResult1273
.propagateErr(); }}
15780 DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))){auto tryResult1273 = (ToResult(DispatchThisAfterProcessingCurrentEvent
(mOwningEventTarget))); static_assert(std::is_empty_v<typename
decltype(tryResult1273)::ok_type>); if ((__builtin_expect
(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))"
, tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15780, mozilla::dom::quota::Severity::Error); return tryResult1273
.propagateErr(); }}
;
15781
15782 return NS_OK;
15783}
15784
15785nsresult OpenDatabaseOp::LoadDatabaseInformation(
15786 mozIStorageConnection& aConnection) {
15787 AssertIsOnIOThread();
15788 MOZ_ASSERT(mMetadata)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMetadata)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mMetadata))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata"
")"); do { MOZ_CrashSequence(__null, 15788); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15789
15790 {
15791 // Load version information.
15792 QM_TRY_INSPECT(auto tryResult1274 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection, "SELECT name, origin, version FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"SELECT name, origin, version FROM database\"_ns)"
, tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15796, mozilla::dom::quota::Severity::Error); return tryResult1274
.propagateErr(); } const auto& stmt = tryResult1274.inspect
();
15793 const auto& stmt,auto tryResult1274 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection, "SELECT name, origin, version FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"SELECT name, origin, version FROM database\"_ns)"
, tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15796, mozilla::dom::quota::Severity::Error); return tryResult1274
.propagateErr(); } const auto& stmt = tryResult1274.inspect
();
15794 CreateAndExecuteSingleStepStatement<auto tryResult1274 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection, "SELECT name, origin, version FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"SELECT name, origin, version FROM database\"_ns)"
, tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15796, mozilla::dom::quota::Severity::Error); return tryResult1274
.propagateErr(); } const auto& stmt = tryResult1274.inspect
();
15795 SingleStepResult::ReturnNullIfNoResult>(auto tryResult1274 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection, "SELECT name, origin, version FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"SELECT name, origin, version FROM database\"_ns)"
, tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15796, mozilla::dom::quota::Severity::Error); return tryResult1274
.propagateErr(); } const auto& stmt = tryResult1274.inspect
();
15796 aConnection, "SELECT name, origin, version FROM database"_ns))auto tryResult1274 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection, "SELECT name, origin, version FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"SELECT name, origin, version FROM database\"_ns)"
, tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15796, mozilla::dom::quota::Severity::Error); return tryResult1274
.propagateErr(); } const auto& stmt = tryResult1274.inspect
();
;
15797
15798 QM_TRY(OkIf(stmt), NS_ERROR_FILE_CORRUPTED){auto tryResult1275 = (OkIf(stmt)); static_assert(std::is_empty_v
<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect
(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(stmt)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15798, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(stmt)", tryTempError
, NS_ERROR_FILE_CORRUPTED); }}
;
15799
15800 QM_TRY_INSPECT(const auto& databaseName, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1276 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(stmt)>::GetString), (stmt), 0)); if ((__builtin_expect(!!
(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(stmt)>::GetString), (stmt), 0)"
, tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15801, mozilla::dom::quota::Severity::Error); return tryResult1276
.propagateErr(); } const auto& databaseName = tryResult1276
.inspect();
15801 nsString, stmt, GetString, 0))auto tryResult1276 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(stmt)>::GetString), (stmt), 0)); if ((__builtin_expect(!!
(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(stmt)>::GetString), (stmt), 0)"
, tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15801, mozilla::dom::quota::Severity::Error); return tryResult1276
.propagateErr(); } const auto& databaseName = tryResult1276
.inspect();
;
15802
15803 QM_TRY(OkIf(mCommonParams.metadata().name() == databaseName),{auto tryResult1277 = (OkIf(mCommonParams.metadata().name() ==
databaseName)); static_assert(std::is_empty_v<typename decltype
(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(mCommonParams.metadata().name() == databaseName)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mCommonParams.metadata().name() == databaseName)"
, tryTempError, NS_ERROR_FILE_CORRUPTED); }}
15804 NS_ERROR_FILE_CORRUPTED){auto tryResult1277 = (OkIf(mCommonParams.metadata().name() ==
databaseName)); static_assert(std::is_empty_v<typename decltype
(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(mCommonParams.metadata().name() == databaseName)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mCommonParams.metadata().name() == databaseName)"
, tryTempError, NS_ERROR_FILE_CORRUPTED); }}
;
15805
15806 QM_TRY_INSPECT(const auto& origin, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1278 = (::mozilla::ToResultInvoke< nsCString
>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(stmt)>::GetUTF8String), (stmt), 1)); if ((__builtin_expect
(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(stmt)>::GetUTF8String), (stmt), 1)"
, tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15807, mozilla::dom::quota::Severity::Error); return tryResult1278
.propagateErr(); } const auto& origin = tryResult1278.inspect
();
15807 nsCString, stmt, GetUTF8String, 1))auto tryResult1278 = (::mozilla::ToResultInvoke< nsCString
>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(stmt)>::GetUTF8String), (stmt), 1)); if ((__builtin_expect
(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(stmt)>::GetUTF8String), (stmt), 1)"
, tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15807, mozilla::dom::quota::Severity::Error); return tryResult1278
.propagateErr(); } const auto& origin = tryResult1278.inspect
();
;
15808
15809 // We can't just compare these strings directly. See bug 1339081 comment 69.
15810 QM_TRY(OkIf(QuotaManager::AreOriginsEqualOnDisk(mOriginMetadata.mOrigin,{auto tryResult1279 = (OkIf(QuotaManager::AreOriginsEqualOnDisk
(mOriginMetadata.mOrigin, origin))); static_assert(std::is_empty_v
<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect
(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(QuotaManager::AreOriginsEqualOnDisk(mOriginMetadata.mOrigin, origin))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15812, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(QuotaManager::AreOriginsEqualOnDisk(mOriginMetadata.mOrigin, origin))"
, tryTempError, NS_ERROR_FILE_CORRUPTED); }}
15811 origin)),{auto tryResult1279 = (OkIf(QuotaManager::AreOriginsEqualOnDisk
(mOriginMetadata.mOrigin, origin))); static_assert(std::is_empty_v
<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect
(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(QuotaManager::AreOriginsEqualOnDisk(mOriginMetadata.mOrigin, origin))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15812, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(QuotaManager::AreOriginsEqualOnDisk(mOriginMetadata.mOrigin, origin))"
, tryTempError, NS_ERROR_FILE_CORRUPTED); }}
15812 NS_ERROR_FILE_CORRUPTED){auto tryResult1279 = (OkIf(QuotaManager::AreOriginsEqualOnDisk
(mOriginMetadata.mOrigin, origin))); static_assert(std::is_empty_v
<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect
(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(QuotaManager::AreOriginsEqualOnDisk(mOriginMetadata.mOrigin, origin))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15812, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(QuotaManager::AreOriginsEqualOnDisk(mOriginMetadata.mOrigin, origin))"
, tryTempError, NS_ERROR_FILE_CORRUPTED); }}
;
15813
15814 QM_TRY_INSPECT(const int64_t& version,auto tryResult1280 = (::mozilla::ToResultInvokeMember( (stmt)
, &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 2)); if ((__builtin_expect(!!(tryResult1280.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 2)"
, tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15815, mozilla::dom::quota::Severity::Error); return tryResult1280
.propagateErr(); } const int64_t& version = tryResult1280
.inspect();
15815 MOZ_TO_RESULT_INVOKE_MEMBER(stmt, GetInt64, 2))auto tryResult1280 = (::mozilla::ToResultInvokeMember( (stmt)
, &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 2)); if ((__builtin_expect(!!(tryResult1280.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 2)"
, tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15815, mozilla::dom::quota::Severity::Error); return tryResult1280
.propagateErr(); } const int64_t& version = tryResult1280
.inspect();
;
15816
15817 mMetadata->mCommonMetadata.version() = uint64_t(version);
15818 }
15819
15820 ObjectStoreTable& objectStores = mMetadata->mObjectStores;
15821
15822 QM_TRY_INSPECT(auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15823 const auto& lastObjectStoreId,auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15824 ([&aConnection,auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15825 &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> {auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15826 // Load object store names and ids.auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15827 QM_TRY_INSPECT(auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15828 const auto& stmt,auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15829 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15830 nsCOMPtr<mozIStorageStatement>, aConnection, CreateStatement,auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15831 "SELECT id, auto_increment, name, key_path "auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15832 "FROM object_store"_ns));auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15833
15834 IndexOrObjectStoreId lastObjectStoreId = 0;auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15835
15836 QM_TRY(CollectWhileHasResult(auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15837 *stmt,auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15838 [&lastObjectStoreId, &objectStores,auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15839 usedIds = Maybe<nsTHashSet<uint64_t>>{},auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15840 usedNames = Maybe<nsTHashSet<nsString>>{}](auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15841 auto& stmt) mutable -> mozilla::Result<Ok, nsresult> {auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15842 QM_TRY_INSPECT(const IndexOrObjectStoreId& objectStoreId,auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15843 MOZ_TO_RESULT_INVOKE_MEMBER(stmt, GetInt64, 0));auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15844
15845 if (!usedIds) {auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15846 usedIds.emplace();auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15847 }auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15848
15849 QM_TRY(OkIf(objectStoreId > 0), Err(NS_ERROR_FILE_CORRUPTED));auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15850 QM_TRY(OkIf(!usedIds.ref().Contains(objectStoreId)),auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15851 Err(NS_ERROR_FILE_CORRUPTED));auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15852
15853 QM_TRY(OkIf(usedIds.ref().Insert(objectStoreId, fallible)),auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15854 Err(NS_ERROR_OUT_OF_MEMORY));auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15855
15856 nsString name;auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15857 QM_TRY(MOZ_TO_RESULT(stmt.GetString(2, name)));auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15858
15859 if (!usedNames) {auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15860 usedNames.emplace();auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15861 }auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15862
15863 QM_TRY(OkIf(!usedNames.ref().Contains(name)),auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15864 Err(NS_ERROR_FILE_CORRUPTED));auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15865
15866 QM_TRY(OkIf(usedNames.ref().Insert(name, fallible)),auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15867 Err(NS_ERROR_OUT_OF_MEMORY));auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15868
15869 ObjectStoreMetadata commonMetadata;auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15870 commonMetadata.id() = objectStoreId;auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15871 commonMetadata.name() = std::move(name);auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15872
15873 QM_TRY_INSPECT(auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15874 const int32_t& columnType,auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15875 MOZ_TO_RESULT_INVOKE_MEMBER(stmt, GetTypeOfIndex, 3));auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15876
15877 if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) {auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15878 commonMetadata.keyPath() = KeyPath(0);auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15879 } else {auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15880 MOZ_ASSERT(columnType == mozIStorageStatement::VALUE_TYPE_TEXT);auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15881
15882 nsString keyPathSerialization;auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15883 QM_TRY(MOZ_TO_RESULT(stmt.GetString(3, keyPathSerialization)));auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15884
15885 commonMetadata.keyPath() =auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15886 KeyPath::DeserializeFromString(keyPathSerialization);auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15887 QM_TRY(OkIf(commonMetadata.keyPath().IsValid()),auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15888 Err(NS_ERROR_FILE_CORRUPTED));auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15889 }auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15890
15891 QM_TRY_INSPECT(const int64_t& nextAutoIncrementId,auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15892 MOZ_TO_RESULT_INVOKE_MEMBER(stmt, GetInt64, 1));auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15893
15894 commonMetadata.autoIncrement() = !!nextAutoIncrementId;auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15895
15896 QM_TRY(OkIf(objectStores.InsertOrUpdate(auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15897 objectStoreId,auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15898 MakeSafeRefPtr<FullObjectStoreMetadata>(auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15899 std::move(commonMetadata),auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15900 FullObjectStoreMetadata::AutoIncrementIds{auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15901 nextAutoIncrementId, nextAutoIncrementId}),auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15902 fallible)),auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15903 Err(NS_ERROR_OUT_OF_MEMORY));auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15904
15905 lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId);auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15906
15907 return Ok{};auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15908 }));auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15909
15910 return lastObjectStoreId;auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
15911 }()))auto tryResult1295 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1281
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15832, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); } const auto& stmt = tryResult1281.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15843, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1283)::ok_type
>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1284)::ok_type
>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1285)::ok_type
>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1286)::ok_type
>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1286.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15857, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1288)::ok_type
>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const int32_t& columnType = tryResult1289
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15880); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect
(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1290
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1291)::ok_type>); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if
((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15892, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect
(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1294
)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1281 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15832, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); } const auto& stmt = tryResult1281.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1294 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1282.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1290.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1292.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1294)::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1282 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1282.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15843, mozilla::dom::quota::Severity::Error); return tryResult1282.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1282.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1283 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1283.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15849, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1284 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15851, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1285 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1285.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15854, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1286 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1287 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1287.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15864, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1288 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1288.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15867, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1289 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); } const int32_t& columnType = tryResult1289.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15880); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1290 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1290.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1290.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1291 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1291.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15888, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1292 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1292.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15892, mozilla::dom::quota::Severity::Error); return tryResult1292.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1292.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1293 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1293)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1293.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15903, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1294.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15908, mozilla::dom::quota::Severity::Error); return tryResult1294.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15911, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); } const auto& lastObjectStoreId = tryResult1295
.inspect();
;
15912
15913 QM_TRY_INSPECT(auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15914 const auto& lastIndexId,auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15915 ([this, &aConnection,auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15916 &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> {auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15917 // Load index informationauto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15918 QM_TRY_INSPECT(auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15919 const auto& stmt,auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15920 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15921 nsCOMPtr<mozIStorageStatement>, aConnection, CreateStatement,auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15922 "SELECT "auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15923 "id, object_store_id, name, key_path, "auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15924 "unique_index, multientry, "auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15925 "locale, is_auto_locale "auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15926 "FROM object_store_index"_ns));auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15927
15928 IndexOrObjectStoreId lastIndexId = 0;auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15929
15930 QM_TRY(CollectWhileHasResult(auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15931 *stmt,auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15932 [this, &lastIndexId, &objectStores, &aConnection,auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15933 usedIds = Maybe<nsTHashSet<uint64_t>>{},auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15934 usedNames = Maybe<nsTHashSet<nsString>>{}](auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15935 auto& stmt) mutable -> mozilla::Result<Ok, nsresult> {auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15936 QM_TRY_INSPECT(const IndexOrObjectStoreId& objectStoreId,auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15937 MOZ_TO_RESULT_INVOKE_MEMBER(stmt, GetInt64, 1));auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15938
15939 auto objectStoreMetadata = objectStores.Lookup(objectStoreId);auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15940 QM_TRY(OkIf(static_cast<bool>(objectStoreMetadata)),auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15941 Err(NS_ERROR_FILE_CORRUPTED));auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15942
15943 MOZ_ASSERT((*objectStoreMetadata)->mCommonMetadata.id() ==auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15944 objectStoreId);auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15945
15946 IndexOrObjectStoreId indexId;auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15947 QM_TRY(MOZ_TO_RESULT(stmt.GetInt64(0, &indexId)));auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15948
15949 if (!usedIds) {auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15950 usedIds.emplace();auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15951 }auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15952
15953 QM_TRY(OkIf(indexId > 0), Err(NS_ERROR_FILE_CORRUPTED));auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15954 QM_TRY(OkIf(!usedIds.ref().Contains(indexId)),auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15955 Err(NS_ERROR_FILE_CORRUPTED));auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15956
15957 QM_TRY(OkIf(usedIds.ref().Insert(indexId, fallible)),auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15958 Err(NS_ERROR_OUT_OF_MEMORY));auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15959
15960 nsString name;auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15961 QM_TRY(MOZ_TO_RESULT(stmt.GetString(2, name)));auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15962
15963 const nsAutoString hashName =auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15964 IntToString(indexId) + u":"_ns + name;auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15965
15966 if (!usedNames) {auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15967 usedNames.emplace();auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15968 }auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15969
15970 QM_TRY(OkIf(!usedNames.ref().Contains(hashName)),auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15971 Err(NS_ERROR_FILE_CORRUPTED));auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15972
15973 QM_TRY(OkIf(usedNames.ref().Insert(hashName, fallible)),auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15974 Err(NS_ERROR_OUT_OF_MEMORY));auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15975
15976 auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>();auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15977 indexMetadata->mCommonMetadata.id() = indexId;auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15978 indexMetadata->mCommonMetadata.name() = name;auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15979
15980#ifdef DEBUGauto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15981 {auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15982 int32_t columnType;auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15983 nsresult rv = stmt.GetTypeOfIndex(3, &columnType);auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15984 MOZ_ASSERT(NS_SUCCEEDED(rv));auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15985 MOZ_ASSERT(columnType != mozIStorageStatement::VALUE_TYPE_NULL);auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15986 }auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15987#endifauto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15988
15989 nsString keyPathSerialization;auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15990 QM_TRY(MOZ_TO_RESULT(stmt.GetString(3, keyPathSerialization)));auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15991
15992 indexMetadata->mCommonMetadata.keyPath() =auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15993 KeyPath::DeserializeFromString(keyPathSerialization);auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15994 QM_TRY(OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid()),auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15995 Err(NS_ERROR_FILE_CORRUPTED));auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15996
15997 int32_t scratch;auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15998 QM_TRY(MOZ_TO_RESULT(stmt.GetInt32(4, &scratch)));auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
15999
16000 indexMetadata->mCommonMetadata.unique() = !!scratch;auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
16001
16002 QM_TRY(MOZ_TO_RESULT(stmt.GetInt32(5, &scratch)));auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
16003
16004 indexMetadata->mCommonMetadata.multiEntry() = !!scratch;auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
16005
16006 const bool localeAware = !stmt.IsNull(6);auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
16007 if (localeAware) {auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
16008 QM_TRY(MOZ_TO_RESULT(stmt.GetUTF8String(auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
16009 6, indexMetadata->mCommonMetadata.locale())));auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
16010
16011 QM_TRY(MOZ_TO_RESULT(stmt.GetInt32(7, &scratch)));auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
16012
16013 indexMetadata->mCommonMetadata.autoLocale() = !!scratch;auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
16014
16015 // Update locale-aware indexes if necessaryauto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
16016 const nsCString& indexedLocale =auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
16017 indexMetadata->mCommonMetadata.locale();auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
16018 const bool& isAutoLocale =auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
16019 indexMetadata->mCommonMetadata.autoLocale();auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
16020 const nsCString& systemLocale = mFactory->GetSystemLocale();auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
16021 if (!systemLocale.IsEmpty() && isAutoLocale &&auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
16022 !indexedLocale.Equals(systemLocale)) {auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
16023 QM_TRY(MOZ_TO_RESULT(UpdateLocaleAwareIndex(auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
16024 aConnection, indexMetadata->mCommonMetadata,auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
16025 systemLocale)));auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
16026 }auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
16027 }auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
16028
16029 QM_TRY(OkIf((*objectStoreMetadata)auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
16030 ->mIndexes.InsertOrUpdate(auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
16031 indexId, std::move(indexMetadata), fallible)),auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
16032 Err(NS_ERROR_OUT_OF_MEMORY));auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
16033
16034 lastIndexId = std::max(lastIndexId, indexId);auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
16035
16036 return Ok{};auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
16037 }));auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
16038
16039 return lastIndexId;auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
16040 }()))auto tryResult1315 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15926, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); } const auto& stmt = tryResult1296.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15937, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1297.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect
(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15941
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15944
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15944); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15947, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError
, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf
(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1303)::ok_type
>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15961, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1304
)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1305)::ok_type
>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15985
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15985); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1306 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1306)::ok_type>
); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15990, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1308
)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15998, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1309)::ok_type>); if ((__builtin_expect
(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1309.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16002
, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1310)::ok_type
>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16009, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1311)::ok_type>); if ((__builtin_expect
(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1311.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16011
, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1312
)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16025, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1314)::ok_type
>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16037, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1296 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1296.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15926, mozilla::dom::quota::Severity::Error); return tryResult1296.propagateErr(); } const auto& stmt = tryResult1296.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1314 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15944); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15984); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15985); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1306.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1308.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1309.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1310.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1311.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1312.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect(!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1297 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1297.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15937, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1297.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1298 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1298.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15941, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15944); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15944); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1299 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1299.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15947, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1300 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1300.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15953, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1301 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1301)::ok_type>); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1301.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15955, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1302 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1302.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15958, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1303 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1303.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1304 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1304.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15971, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1305 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1305.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15974, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15984); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15984); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15985); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15985); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1306 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1306.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15990, mozilla::dom::quota::Severity::Error); return tryResult1306.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1307 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1307)::ok_type>); if ((__builtin_expect(!!(tryResult1307.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1307.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15995, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1308 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1308.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15998, mozilla::dom::quota::Severity::Error); return tryResult1308.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1309 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1309.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1309.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1310 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1310.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); return tryResult1310.propagateErr(); }}; {auto tryResult1311 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1311)::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1311.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16011, mozilla::dom::quota::Severity::Error); return tryResult1311.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1312 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1312.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16025, mozilla::dom::quota::Severity::Error); return tryResult1312.propagateErr(); }}; } } {auto tryResult1313 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16032, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1314.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16037, mozilla::dom::quota::Severity::Error); return tryResult1314.propagateErr(); }}; return lastIndexId; }())"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16040, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); } const auto& lastIndexId = tryResult1315
.inspect();
;
16041
16042 QM_TRY(OkIf(lastObjectStoreId != INT64_MAX),{auto tryResult1316 = (OkIf(lastObjectStoreId != (9223372036854775807L
))); static_assert(std::is_empty_v<typename decltype(tryResult1316
)::ok_type>); if ((__builtin_expect(!!(tryResult1316.isErr
()), 0))) { auto tryTempError = tryResult1316.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(lastObjectStoreId != (9223372036854775807L))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16043, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16043, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(lastObjectStoreId != (9223372036854775807L))"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
16043 NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR, IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult1316 = (OkIf(lastObjectStoreId != (9223372036854775807L
))); static_assert(std::is_empty_v<typename decltype(tryResult1316
)::ok_type>); if ((__builtin_expect(!!(tryResult1316.isErr
()), 0))) { auto tryTempError = tryResult1316.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(lastObjectStoreId != (9223372036854775807L))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16043, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16043, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(lastObjectStoreId != (9223372036854775807L))"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
;
16044 QM_TRY(OkIf(lastIndexId != INT64_MAX), NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR,{auto tryResult1317 = (OkIf(lastIndexId != (9223372036854775807L
))); static_assert(std::is_empty_v<typename decltype(tryResult1317
)::ok_type>); if ((__builtin_expect(!!(tryResult1317.isErr
()), 0))) { auto tryTempError = tryResult1317.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(lastIndexId != (9223372036854775807L))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16045, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16045, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(lastIndexId != (9223372036854775807L))"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
16045 IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult1317 = (OkIf(lastIndexId != (9223372036854775807L
))); static_assert(std::is_empty_v<typename decltype(tryResult1317
)::ok_type>); if ((__builtin_expect(!!(tryResult1317.isErr
()), 0))) { auto tryTempError = tryResult1317.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(lastIndexId != (9223372036854775807L))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16045, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16045, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(lastIndexId != (9223372036854775807L))"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
;
16046
16047 mMetadata->mNextObjectStoreId = lastObjectStoreId + 1;
16048 mMetadata->mNextIndexId = lastIndexId + 1;
16049
16050 return NS_OK;
16051}
16052
16053/* static */
16054nsresult OpenDatabaseOp::UpdateLocaleAwareIndex(
16055 mozIStorageConnection& aConnection, const IndexMetadata& aIndexMetadata,
16056 const nsCString& aLocale) {
16057 const auto indexTable =
16058 aIndexMetadata.unique() ? "unique_index_data"_ns : "index_data"_ns;
16059
16060 // The parameter names are not used, parameters are bound by index only
16061 // locally in the same function.
16062 const nsCString readQuery = "SELECT value, object_data_key FROM "_ns +
16063 indexTable + " WHERE index_id = :index_id"_ns;
16064
16065 QM_TRY_INSPECT(const auto& readStmt,auto tryResult1318 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), readQuery)); if ((__builtin_expect(!!(tryResult1318
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), readQuery)"
, tryResult1318.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16068, mozilla::dom::quota::Severity::Error); return tryResult1318
.propagateErr(); } const auto& readStmt = tryResult1318.inspect
();
16066 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1318 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), readQuery)); if ((__builtin_expect(!!(tryResult1318
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), readQuery)"
, tryResult1318.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16068, mozilla::dom::quota::Severity::Error); return tryResult1318
.propagateErr(); } const auto& readStmt = tryResult1318.inspect
();
16067 nsCOMPtr<mozIStorageStatement>, aConnection,auto tryResult1318 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), readQuery)); if ((__builtin_expect(!!(tryResult1318
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), readQuery)"
, tryResult1318.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16068, mozilla::dom::quota::Severity::Error); return tryResult1318
.propagateErr(); } const auto& readStmt = tryResult1318.inspect
();
16068 CreateStatement, readQuery))auto tryResult1318 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), readQuery)); if ((__builtin_expect(!!(tryResult1318
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), readQuery)"
, tryResult1318.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16068, mozilla::dom::quota::Severity::Error); return tryResult1318
.propagateErr(); } const auto& readStmt = tryResult1318.inspect
();
;
16069
16070 QM_TRY(MOZ_TO_RESULT(readStmt->BindInt64ByIndex(0, aIndexMetadata.id()))){auto tryResult1319 = (ToResult(readStmt->BindInt64ByIndex
(0, aIndexMetadata.id()))); static_assert(std::is_empty_v<
typename decltype(tryResult1319)::ok_type>); if ((__builtin_expect
(!!(tryResult1319.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(readStmt->BindInt64ByIndex(0, aIndexMetadata.id()))"
, tryResult1319.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16070, mozilla::dom::quota::Severity::Error); return tryResult1319
.propagateErr(); }}
;
16071
16072 QM_TRY(CollectWhileHasResult({auto tryResult1329 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1320.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16086, mozilla::dom::quota::Severity::Error); return tryResult1320
.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1321
)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1321.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16091, mozilla::dom::quota::Severity::Error); return tryResult1321
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1322)::ok_type
>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1322.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16094, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1323.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16096, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1324.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16099, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); } const auto& newSortKey = tryResult1324
.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1325)::ok_type>);
if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1325.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16102, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16104, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1327)::ok_type
>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1327.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16106, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1328.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16108, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect
(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1320.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16086, mozilla::dom::quota::Severity::Error); return tryResult1320.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1321)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1321.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16091, mozilla::dom::quota::Severity::Error); return tryResult1321.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16094, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1323.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16096, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1324.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16099, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); } const auto& newSortKey = tryResult1324.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16102, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16104, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1327.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16106, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1328.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16108, mozilla::dom::quota::Severity::Error); return tryResult1328.propagateErr(); }}; return Ok{}; })"
, tryResult1329.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16111, mozilla::dom::quota::Severity::Error); return tryResult1329
.propagateErr(); }}
16073 *readStmt,{auto tryResult1329 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1320.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16086, mozilla::dom::quota::Severity::Error); return tryResult1320
.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1321
)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1321.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16091, mozilla::dom::quota::Severity::Error); return tryResult1321
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1322)::ok_type
>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1322.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16094, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1323.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16096, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1324.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16099, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); } const auto& newSortKey = tryResult1324
.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1325)::ok_type>);
if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1325.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16102, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16104, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1327)::ok_type
>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1327.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16106, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1328.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16108, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect
(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1320.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16086, mozilla::dom::quota::Severity::Error); return tryResult1320.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1321)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1321.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16091, mozilla::dom::quota::Severity::Error); return tryResult1321.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16094, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1323.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16096, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1324.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16099, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); } const auto& newSortKey = tryResult1324.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16102, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16104, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1327.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16106, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1328.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16108, mozilla::dom::quota::Severity::Error); return tryResult1328.propagateErr(); }}; return Ok{}; })"
, tryResult1329.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16111, mozilla::dom::quota::Severity::Error); return tryResult1329
.propagateErr(); }}
16074 [&aConnection, &indexTable, &aIndexMetadata, &aLocale,{auto tryResult1329 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1320.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16086, mozilla::dom::quota::Severity::Error); return tryResult1320
.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1321
)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1321.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16091, mozilla::dom::quota::Severity::Error); return tryResult1321
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1322)::ok_type
>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1322.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16094, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1323.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16096, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1324.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16099, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); } const auto& newSortKey = tryResult1324
.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1325)::ok_type>);
if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1325.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16102, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16104, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1327)::ok_type
>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1327.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16106, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1328.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16108, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect
(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1320.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16086, mozilla::dom::quota::Severity::Error); return tryResult1320.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1321)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1321.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16091, mozilla::dom::quota::Severity::Error); return tryResult1321.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16094, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1323.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16096, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1324.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16099, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); } const auto& newSortKey = tryResult1324.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16102, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16104, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1327.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16106, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1328.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16108, mozilla::dom::quota::Severity::Error); return tryResult1328.propagateErr(); }}; return Ok{}; })"
, tryResult1329.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16111, mozilla::dom::quota::Severity::Error); return tryResult1329
.propagateErr(); }}
16075 writeStmt = nsCOMPtr<mozIStorageStatement>{}]({auto tryResult1329 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1320.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16086, mozilla::dom::quota::Severity::Error); return tryResult1320
.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1321
)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1321.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16091, mozilla::dom::quota::Severity::Error); return tryResult1321
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1322)::ok_type
>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1322.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16094, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1323.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16096, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1324.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16099, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); } const auto& newSortKey = tryResult1324
.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1325)::ok_type>);
if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1325.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16102, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16104, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1327)::ok_type
>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1327.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16106, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1328.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16108, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect
(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1320.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16086, mozilla::dom::quota::Severity::Error); return tryResult1320.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1321)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1321.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16091, mozilla::dom::quota::Severity::Error); return tryResult1321.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16094, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1323.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16096, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1324.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16099, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); } const auto& newSortKey = tryResult1324.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16102, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16104, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1327.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16106, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1328.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16108, mozilla::dom::quota::Severity::Error); return tryResult1328.propagateErr(); }}; return Ok{}; })"
, tryResult1329.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16111, mozilla::dom::quota::Severity::Error); return tryResult1329
.propagateErr(); }}
16076 auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> {{auto tryResult1329 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1320.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16086, mozilla::dom::quota::Severity::Error); return tryResult1320
.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1321
)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1321.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16091, mozilla::dom::quota::Severity::Error); return tryResult1321
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1322)::ok_type
>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1322.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16094, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1323.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16096, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1324.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16099, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); } const auto& newSortKey = tryResult1324
.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1325)::ok_type>);
if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1325.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16102, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16104, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1327)::ok_type
>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1327.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16106, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1328.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16108, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect
(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1320.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16086, mozilla::dom::quota::Severity::Error); return tryResult1320.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1321)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1321.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16091, mozilla::dom::quota::Severity::Error); return tryResult1321.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16094, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1323.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16096, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1324.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16099, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); } const auto& newSortKey = tryResult1324.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16102, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16104, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1327.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16106, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1328.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16108, mozilla::dom::quota::Severity::Error); return tryResult1328.propagateErr(); }}; return Ok{}; })"
, tryResult1329.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16111, mozilla::dom::quota::Severity::Error); return tryResult1329
.propagateErr(); }}
16077 if (!writeStmt) {{auto tryResult1329 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1320.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16086, mozilla::dom::quota::Severity::Error); return tryResult1320
.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1321
)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1321.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16091, mozilla::dom::quota::Severity::Error); return tryResult1321
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1322)::ok_type
>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1322.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16094, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1323.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16096, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1324.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16099, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); } const auto& newSortKey = tryResult1324
.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1325)::ok_type>);
if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1325.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16102, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16104, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1327)::ok_type
>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1327.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16106, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1328.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16108, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect
(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1320.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16086, mozilla::dom::quota::Severity::Error); return tryResult1320.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1321)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1321.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16091, mozilla::dom::quota::Severity::Error); return tryResult1321.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16094, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1323.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16096, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1324.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16099, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); } const auto& newSortKey = tryResult1324.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16102, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16104, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1327.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16106, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1328.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16108, mozilla::dom::quota::Severity::Error); return tryResult1328.propagateErr(); }}; return Ok{}; })"
, tryResult1329.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16111, mozilla::dom::quota::Severity::Error); return tryResult1329
.propagateErr(); }}
16078 QM_TRY_UNWRAP({auto tryResult1329 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1320.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16086, mozilla::dom::quota::Severity::Error); return tryResult1320
.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1321
)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1321.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16091, mozilla::dom::quota::Severity::Error); return tryResult1321
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1322)::ok_type
>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1322.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16094, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1323.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16096, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1324.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16099, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); } const auto& newSortKey = tryResult1324
.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1325)::ok_type>);
if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1325.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16102, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16104, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1327)::ok_type
>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1327.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16106, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1328.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16108, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect
(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1320.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16086, mozilla::dom::quota::Severity::Error); return tryResult1320.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1321)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1321.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16091, mozilla::dom::quota::Severity::Error); return tryResult1321.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16094, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1323.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16096, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1324.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16099, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); } const auto& newSortKey = tryResult1324.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16102, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16104, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1327.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16106, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1328.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16108, mozilla::dom::quota::Severity::Error); return tryResult1328.propagateErr(); }}; return Ok{}; })"
, tryResult1329.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16111, mozilla::dom::quota::Severity::Error); return tryResult1329
.propagateErr(); }}
16079 writeStmt,{auto tryResult1329 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1320.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16086, mozilla::dom::quota::Severity::Error); return tryResult1320
.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1321
)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1321.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16091, mozilla::dom::quota::Severity::Error); return tryResult1321
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1322)::ok_type
>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1322.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16094, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1323.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16096, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1324.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16099, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); } const auto& newSortKey = tryResult1324
.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1325)::ok_type>);
if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1325.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16102, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16104, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1327)::ok_type
>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1327.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16106, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1328.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16108, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect
(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1320.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16086, mozilla::dom::quota::Severity::Error); return tryResult1320.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1321)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1321.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16091, mozilla::dom::quota::Severity::Error); return tryResult1321.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16094, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1323.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16096, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1324.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16099, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); } const auto& newSortKey = tryResult1324.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16102, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16104, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1327.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16106, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1328.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16108, mozilla::dom::quota::Severity::Error); return tryResult1328.propagateErr(); }}; return Ok{}; })"
, tryResult1329.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16111, mozilla::dom::quota::Severity::Error); return tryResult1329
.propagateErr(); }}
16080 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED({auto tryResult1329 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1320.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16086, mozilla::dom::quota::Severity::Error); return tryResult1320
.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1321
)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1321.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16091, mozilla::dom::quota::Severity::Error); return tryResult1321
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1322)::ok_type
>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1322.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16094, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1323.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16096, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1324.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16099, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); } const auto& newSortKey = tryResult1324
.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1325)::ok_type>);
if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1325.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16102, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16104, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1327)::ok_type
>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1327.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16106, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1328.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16108, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect
(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1320.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16086, mozilla::dom::quota::Severity::Error); return tryResult1320.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1321)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1321.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16091, mozilla::dom::quota::Severity::Error); return tryResult1321.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16094, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1323.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16096, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1324.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16099, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); } const auto& newSortKey = tryResult1324.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16102, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16104, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1327.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16106, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1328.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16108, mozilla::dom::quota::Severity::Error); return tryResult1328.propagateErr(); }}; return Ok{}; })"
, tryResult1329.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16111, mozilla::dom::quota::Severity::Error); return tryResult1329
.propagateErr(); }}
16081 nsCOMPtr<mozIStorageStatement>, aConnection, CreateStatement,{auto tryResult1329 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1320.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16086, mozilla::dom::quota::Severity::Error); return tryResult1320
.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1321
)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1321.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16091, mozilla::dom::quota::Severity::Error); return tryResult1321
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1322)::ok_type
>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1322.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16094, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1323.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16096, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1324.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16099, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); } const auto& newSortKey = tryResult1324
.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1325)::ok_type>);
if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1325.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16102, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16104, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1327)::ok_type
>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1327.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16106, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1328.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16108, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect
(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1320.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16086, mozilla::dom::quota::Severity::Error); return tryResult1320.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1321)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1321.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16091, mozilla::dom::quota::Severity::Error); return tryResult1321.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16094, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1323.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16096, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1324.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16099, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); } const auto& newSortKey = tryResult1324.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16102, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16104, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1327.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16106, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1328.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16108, mozilla::dom::quota::Severity::Error); return tryResult1328.propagateErr(); }}; return Ok{}; })"
, tryResult1329.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16111, mozilla::dom::quota::Severity::Error); return tryResult1329
.propagateErr(); }}
16082 "UPDATE "_ns + indexTable + "SET value_locale = :"_ns +{auto tryResult1329 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1320.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16086, mozilla::dom::quota::Severity::Error); return tryResult1320
.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1321
)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1321.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16091, mozilla::dom::quota::Severity::Error); return tryResult1321
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1322)::ok_type
>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1322.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16094, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1323.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16096, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1324.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16099, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); } const auto& newSortKey = tryResult1324
.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1325)::ok_type>);
if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1325.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16102, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16104, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1327)::ok_type
>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1327.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16106, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1328.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16108, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect
(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1320.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16086, mozilla::dom::quota::Severity::Error); return tryResult1320.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1321)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1321.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16091, mozilla::dom::quota::Severity::Error); return tryResult1321.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16094, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1323.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16096, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1324.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16099, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); } const auto& newSortKey = tryResult1324.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16102, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16104, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1327.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16106, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1328.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16108, mozilla::dom::quota::Severity::Error); return tryResult1328.propagateErr(); }}; return Ok{}; })"
, tryResult1329.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16111, mozilla::dom::quota::Severity::Error); return tryResult1329
.propagateErr(); }}
16083 kStmtParamNameValueLocale + " WHERE index_id = :"_ns +{auto tryResult1329 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1320.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16086, mozilla::dom::quota::Severity::Error); return tryResult1320
.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1321
)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1321.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16091, mozilla::dom::quota::Severity::Error); return tryResult1321
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1322)::ok_type
>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1322.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16094, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1323.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16096, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1324.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16099, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); } const auto& newSortKey = tryResult1324
.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1325)::ok_type>);
if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1325.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16102, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16104, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1327)::ok_type
>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1327.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16106, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1328.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16108, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect
(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1320.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16086, mozilla::dom::quota::Severity::Error); return tryResult1320.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1321)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1321.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16091, mozilla::dom::quota::Severity::Error); return tryResult1321.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16094, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1323.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16096, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1324.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16099, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); } const auto& newSortKey = tryResult1324.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16102, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16104, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1327.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16106, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1328.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16108, mozilla::dom::quota::Severity::Error); return tryResult1328.propagateErr(); }}; return Ok{}; })"
, tryResult1329.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16111, mozilla::dom::quota::Severity::Error); return tryResult1329
.propagateErr(); }}
16084 kStmtParamNameIndexId + " AND value = :"_ns +{auto tryResult1329 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1320.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16086, mozilla::dom::quota::Severity::Error); return tryResult1320
.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1321
)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1321.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16091, mozilla::dom::quota::Severity::Error); return tryResult1321
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1322)::ok_type
>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1322.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16094, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1323.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16096, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1324.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16099, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); } const auto& newSortKey = tryResult1324
.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1325)::ok_type>);
if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1325.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16102, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16104, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1327)::ok_type
>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1327.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16106, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1328.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16108, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect
(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1320.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16086, mozilla::dom::quota::Severity::Error); return tryResult1320.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1321)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1321.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16091, mozilla::dom::quota::Severity::Error); return tryResult1321.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16094, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1323.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16096, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1324.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16099, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); } const auto& newSortKey = tryResult1324.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16102, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16104, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1327.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16106, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1328.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16108, mozilla::dom::quota::Severity::Error); return tryResult1328.propagateErr(); }}; return Ok{}; })"
, tryResult1329.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16111, mozilla::dom::quota::Severity::Error); return tryResult1329
.propagateErr(); }}
16085 kStmtParamNameValue + " AND object_data_key = :"_ns +{auto tryResult1329 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1320.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16086, mozilla::dom::quota::Severity::Error); return tryResult1320
.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1321
)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1321.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16091, mozilla::dom::quota::Severity::Error); return tryResult1321
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1322)::ok_type
>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1322.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16094, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1323.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16096, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1324.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16099, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); } const auto& newSortKey = tryResult1324
.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1325)::ok_type>);
if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1325.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16102, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16104, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1327)::ok_type
>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1327.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16106, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1328.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16108, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect
(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1320.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16086, mozilla::dom::quota::Severity::Error); return tryResult1320.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1321)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1321.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16091, mozilla::dom::quota::Severity::Error); return tryResult1321.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16094, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1323.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16096, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1324.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16099, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); } const auto& newSortKey = tryResult1324.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16102, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16104, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1327.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16106, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1328.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16108, mozilla::dom::quota::Severity::Error); return tryResult1328.propagateErr(); }}; return Ok{}; })"
, tryResult1329.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16111, mozilla::dom::quota::Severity::Error); return tryResult1329
.propagateErr(); }}
16086 kStmtParamNameObjectDataKey));{auto tryResult1329 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1320.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16086, mozilla::dom::quota::Severity::Error); return tryResult1320
.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1321
)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1321.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16091, mozilla::dom::quota::Severity::Error); return tryResult1321
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1322)::ok_type
>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1322.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16094, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1323.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16096, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1324.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16099, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); } const auto& newSortKey = tryResult1324
.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1325)::ok_type>);
if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1325.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16102, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16104, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1327)::ok_type
>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1327.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16106, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1328.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16108, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect
(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1320.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16086, mozilla::dom::quota::Severity::Error); return tryResult1320.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1321)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1321.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16091, mozilla::dom::quota::Severity::Error); return tryResult1321.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16094, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1323.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16096, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1324.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16099, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); } const auto& newSortKey = tryResult1324.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16102, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16104, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1327.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16106, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1328.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16108, mozilla::dom::quota::Severity::Error); return tryResult1328.propagateErr(); }}; return Ok{}; })"
, tryResult1329.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16111, mozilla::dom::quota::Severity::Error); return tryResult1329
.propagateErr(); }}
16087 }{auto tryResult1329 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1320.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16086, mozilla::dom::quota::Severity::Error); return tryResult1320
.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1321
)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1321.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16091, mozilla::dom::quota::Severity::Error); return tryResult1321
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1322)::ok_type
>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1322.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16094, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1323.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16096, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1324.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16099, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); } const auto& newSortKey = tryResult1324
.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1325)::ok_type>);
if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1325.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16102, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16104, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1327)::ok_type
>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1327.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16106, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1328.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16108, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect
(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1320.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16086, mozilla::dom::quota::Severity::Error); return tryResult1320.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1321)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1321.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16091, mozilla::dom::quota::Severity::Error); return tryResult1321.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16094, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1323.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16096, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1324.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16099, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); } const auto& newSortKey = tryResult1324.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16102, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16104, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1327.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16106, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1328.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16108, mozilla::dom::quota::Severity::Error); return tryResult1328.propagateErr(); }}; return Ok{}; })"
, tryResult1329.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16111, mozilla::dom::quota::Severity::Error); return tryResult1329
.propagateErr(); }}
16088
16089 mozStorageStatementScoper scoper(writeStmt);{auto tryResult1329 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1320.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16086, mozilla::dom::quota::Severity::Error); return tryResult1320
.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1321
)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1321.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16091, mozilla::dom::quota::Severity::Error); return tryResult1321
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1322)::ok_type
>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1322.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16094, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1323.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16096, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1324.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16099, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); } const auto& newSortKey = tryResult1324
.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1325)::ok_type>);
if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1325.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16102, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16104, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1327)::ok_type
>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1327.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16106, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1328.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16108, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect
(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1320.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16086, mozilla::dom::quota::Severity::Error); return tryResult1320.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1321)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1321.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16091, mozilla::dom::quota::Severity::Error); return tryResult1321.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16094, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1323.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16096, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1324.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16099, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); } const auto& newSortKey = tryResult1324.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16102, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16104, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1327.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16106, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1328.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16108, mozilla::dom::quota::Severity::Error); return tryResult1328.propagateErr(); }}; return Ok{}; })"
, tryResult1329.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16111, mozilla::dom::quota::Severity::Error); return tryResult1329
.propagateErr(); }}
16090 QM_TRY(MOZ_TO_RESULT(writeStmt->BindInt64ByName(kStmtParamNameIndexId,{auto tryResult1329 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1320.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16086, mozilla::dom::quota::Severity::Error); return tryResult1320
.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1321
)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1321.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16091, mozilla::dom::quota::Severity::Error); return tryResult1321
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1322)::ok_type
>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1322.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16094, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1323.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16096, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1324.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16099, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); } const auto& newSortKey = tryResult1324
.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1325)::ok_type>);
if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1325.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16102, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16104, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1327)::ok_type
>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1327.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16106, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1328.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16108, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect
(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1320.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16086, mozilla::dom::quota::Severity::Error); return tryResult1320.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1321)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1321.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16091, mozilla::dom::quota::Severity::Error); return tryResult1321.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16094, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1323.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16096, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1324.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16099, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); } const auto& newSortKey = tryResult1324.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16102, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16104, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1327.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16106, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1328.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16108, mozilla::dom::quota::Severity::Error); return tryResult1328.propagateErr(); }}; return Ok{}; })"
, tryResult1329.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16111, mozilla::dom::quota::Severity::Error); return tryResult1329
.propagateErr(); }}
16091 aIndexMetadata.id())));{auto tryResult1329 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1320.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16086, mozilla::dom::quota::Severity::Error); return tryResult1320
.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1321
)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1321.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16091, mozilla::dom::quota::Severity::Error); return tryResult1321
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1322)::ok_type
>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1322.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16094, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1323.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16096, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1324.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16099, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); } const auto& newSortKey = tryResult1324
.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1325)::ok_type>);
if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1325.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16102, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16104, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1327)::ok_type
>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1327.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16106, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1328.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16108, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect
(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1320.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16086, mozilla::dom::quota::Severity::Error); return tryResult1320.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1321)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1321.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16091, mozilla::dom::quota::Severity::Error); return tryResult1321.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16094, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1323.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16096, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1324.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16099, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); } const auto& newSortKey = tryResult1324.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16102, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16104, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1327.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16106, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1328.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16108, mozilla::dom::quota::Severity::Error); return tryResult1328.propagateErr(); }}; return Ok{}; })"
, tryResult1329.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16111, mozilla::dom::quota::Severity::Error); return tryResult1329
.propagateErr(); }}
16092
16093 Key oldKey, objectStorePosition;{auto tryResult1329 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1320.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16086, mozilla::dom::quota::Severity::Error); return tryResult1320
.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1321
)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1321.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16091, mozilla::dom::quota::Severity::Error); return tryResult1321
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1322)::ok_type
>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1322.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16094, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1323.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16096, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1324.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16099, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); } const auto& newSortKey = tryResult1324
.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1325)::ok_type>);
if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1325.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16102, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16104, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1327)::ok_type
>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1327.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16106, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1328.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16108, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect
(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1320.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16086, mozilla::dom::quota::Severity::Error); return tryResult1320.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1321)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1321.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16091, mozilla::dom::quota::Severity::Error); return tryResult1321.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16094, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1323.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16096, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1324.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16099, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); } const auto& newSortKey = tryResult1324.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16102, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16104, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1327.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16106, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1328.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16108, mozilla::dom::quota::Severity::Error); return tryResult1328.propagateErr(); }}; return Ok{}; })"
, tryResult1329.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16111, mozilla::dom::quota::Severity::Error); return tryResult1329
.propagateErr(); }}
16094 QM_TRY(MOZ_TO_RESULT(oldKey.SetFromStatement(&readStmt, 0)));{auto tryResult1329 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1320.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16086, mozilla::dom::quota::Severity::Error); return tryResult1320
.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1321
)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1321.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16091, mozilla::dom::quota::Severity::Error); return tryResult1321
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1322)::ok_type
>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1322.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16094, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1323.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16096, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1324.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16099, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); } const auto& newSortKey = tryResult1324
.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1325)::ok_type>);
if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1325.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16102, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16104, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1327)::ok_type
>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1327.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16106, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1328.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16108, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect
(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1320.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16086, mozilla::dom::quota::Severity::Error); return tryResult1320.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1321)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1321.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16091, mozilla::dom::quota::Severity::Error); return tryResult1321.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16094, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1323.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16096, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1324.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16099, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); } const auto& newSortKey = tryResult1324.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16102, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16104, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1327.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16106, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1328.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16108, mozilla::dom::quota::Severity::Error); return tryResult1328.propagateErr(); }}; return Ok{}; })"
, tryResult1329.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16111, mozilla::dom::quota::Severity::Error); return tryResult1329
.propagateErr(); }}
16095 QM_TRY(MOZ_TO_RESULT({auto tryResult1329 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1320.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16086, mozilla::dom::quota::Severity::Error); return tryResult1320
.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1321
)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1321.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16091, mozilla::dom::quota::Severity::Error); return tryResult1321
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1322)::ok_type
>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1322.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16094, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1323.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16096, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1324.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16099, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); } const auto& newSortKey = tryResult1324
.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1325)::ok_type>);
if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1325.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16102, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16104, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1327)::ok_type
>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1327.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16106, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1328.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16108, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect
(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1320.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16086, mozilla::dom::quota::Severity::Error); return tryResult1320.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1321)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1321.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16091, mozilla::dom::quota::Severity::Error); return tryResult1321.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16094, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1323.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16096, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1324.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16099, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); } const auto& newSortKey = tryResult1324.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16102, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16104, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1327.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16106, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1328.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16108, mozilla::dom::quota::Severity::Error); return tryResult1328.propagateErr(); }}; return Ok{}; })"
, tryResult1329.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16111, mozilla::dom::quota::Severity::Error); return tryResult1329
.propagateErr(); }}
16096 oldKey.BindToStatement(writeStmt, kStmtParamNameValue)));{auto tryResult1329 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1320.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16086, mozilla::dom::quota::Severity::Error); return tryResult1320
.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1321
)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1321.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16091, mozilla::dom::quota::Severity::Error); return tryResult1321
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1322)::ok_type
>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1322.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16094, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1323.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16096, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1324.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16099, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); } const auto& newSortKey = tryResult1324
.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1325)::ok_type>);
if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1325.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16102, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16104, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1327)::ok_type
>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1327.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16106, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1328.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16108, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect
(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1320.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16086, mozilla::dom::quota::Severity::Error); return tryResult1320.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1321)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1321.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16091, mozilla::dom::quota::Severity::Error); return tryResult1321.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16094, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1323.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16096, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1324.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16099, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); } const auto& newSortKey = tryResult1324.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16102, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16104, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1327.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16106, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1328.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16108, mozilla::dom::quota::Severity::Error); return tryResult1328.propagateErr(); }}; return Ok{}; })"
, tryResult1329.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16111, mozilla::dom::quota::Severity::Error); return tryResult1329
.propagateErr(); }}
16097
16098 QM_TRY_INSPECT(const auto& newSortKey,{auto tryResult1329 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1320.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16086, mozilla::dom::quota::Severity::Error); return tryResult1320
.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1321
)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1321.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16091, mozilla::dom::quota::Severity::Error); return tryResult1321
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1322)::ok_type
>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1322.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16094, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1323.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16096, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1324.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16099, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); } const auto& newSortKey = tryResult1324
.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1325)::ok_type>);
if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1325.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16102, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16104, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1327)::ok_type
>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1327.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16106, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1328.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16108, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect
(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1320.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16086, mozilla::dom::quota::Severity::Error); return tryResult1320.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1321)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1321.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16091, mozilla::dom::quota::Severity::Error); return tryResult1321.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16094, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1323.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16096, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1324.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16099, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); } const auto& newSortKey = tryResult1324.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16102, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16104, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1327.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16106, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1328.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16108, mozilla::dom::quota::Severity::Error); return tryResult1328.propagateErr(); }}; return Ok{}; })"
, tryResult1329.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16111, mozilla::dom::quota::Severity::Error); return tryResult1329
.propagateErr(); }}
16099 oldKey.ToLocaleAwareKey(aLocale));{auto tryResult1329 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1320.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16086, mozilla::dom::quota::Severity::Error); return tryResult1320
.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1321
)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1321.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16091, mozilla::dom::quota::Severity::Error); return tryResult1321
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1322)::ok_type
>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1322.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16094, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1323.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16096, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1324.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16099, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); } const auto& newSortKey = tryResult1324
.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1325)::ok_type>);
if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1325.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16102, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16104, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1327)::ok_type
>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1327.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16106, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1328.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16108, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect
(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1320.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16086, mozilla::dom::quota::Severity::Error); return tryResult1320.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1321)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1321.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16091, mozilla::dom::quota::Severity::Error); return tryResult1321.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16094, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1323.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16096, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1324.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16099, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); } const auto& newSortKey = tryResult1324.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16102, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16104, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1327.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16106, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1328.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16108, mozilla::dom::quota::Severity::Error); return tryResult1328.propagateErr(); }}; return Ok{}; })"
, tryResult1329.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16111, mozilla::dom::quota::Severity::Error); return tryResult1329
.propagateErr(); }}
16100
16101 QM_TRY(MOZ_TO_RESULT({auto tryResult1329 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1320.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16086, mozilla::dom::quota::Severity::Error); return tryResult1320
.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1321
)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1321.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16091, mozilla::dom::quota::Severity::Error); return tryResult1321
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1322)::ok_type
>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1322.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16094, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1323.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16096, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1324.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16099, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); } const auto& newSortKey = tryResult1324
.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1325)::ok_type>);
if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1325.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16102, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16104, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1327)::ok_type
>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1327.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16106, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1328.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16108, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect
(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1320.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16086, mozilla::dom::quota::Severity::Error); return tryResult1320.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1321)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1321.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16091, mozilla::dom::quota::Severity::Error); return tryResult1321.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16094, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1323.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16096, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1324.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16099, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); } const auto& newSortKey = tryResult1324.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16102, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16104, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1327.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16106, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1328.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16108, mozilla::dom::quota::Severity::Error); return tryResult1328.propagateErr(); }}; return Ok{}; })"
, tryResult1329.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16111, mozilla::dom::quota::Severity::Error); return tryResult1329
.propagateErr(); }}
16102 newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale)));{auto tryResult1329 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1320.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16086, mozilla::dom::quota::Severity::Error); return tryResult1320
.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1321
)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1321.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16091, mozilla::dom::quota::Severity::Error); return tryResult1321
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1322)::ok_type
>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1322.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16094, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1323.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16096, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1324.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16099, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); } const auto& newSortKey = tryResult1324
.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1325)::ok_type>);
if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1325.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16102, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16104, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1327)::ok_type
>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1327.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16106, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1328.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16108, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect
(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1320.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16086, mozilla::dom::quota::Severity::Error); return tryResult1320.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1321)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1321.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16091, mozilla::dom::quota::Severity::Error); return tryResult1321.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16094, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1323.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16096, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1324.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16099, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); } const auto& newSortKey = tryResult1324.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16102, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16104, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1327.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16106, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1328.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16108, mozilla::dom::quota::Severity::Error); return tryResult1328.propagateErr(); }}; return Ok{}; })"
, tryResult1329.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16111, mozilla::dom::quota::Severity::Error); return tryResult1329
.propagateErr(); }}
16103 QM_TRY({auto tryResult1329 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1320.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16086, mozilla::dom::quota::Severity::Error); return tryResult1320
.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1321
)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1321.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16091, mozilla::dom::quota::Severity::Error); return tryResult1321
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1322)::ok_type
>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1322.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16094, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1323.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16096, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1324.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16099, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); } const auto& newSortKey = tryResult1324
.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1325)::ok_type>);
if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1325.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16102, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16104, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1327)::ok_type
>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1327.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16106, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1328.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16108, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect
(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1320.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16086, mozilla::dom::quota::Severity::Error); return tryResult1320.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1321)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1321.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16091, mozilla::dom::quota::Severity::Error); return tryResult1321.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16094, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1323.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16096, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1324.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16099, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); } const auto& newSortKey = tryResult1324.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16102, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16104, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1327.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16106, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1328.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16108, mozilla::dom::quota::Severity::Error); return tryResult1328.propagateErr(); }}; return Ok{}; })"
, tryResult1329.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16111, mozilla::dom::quota::Severity::Error); return tryResult1329
.propagateErr(); }}
16104 MOZ_TO_RESULT(objectStorePosition.SetFromStatement(&readStmt, 1)));{auto tryResult1329 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1320.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16086, mozilla::dom::quota::Severity::Error); return tryResult1320
.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1321
)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1321.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16091, mozilla::dom::quota::Severity::Error); return tryResult1321
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1322)::ok_type
>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1322.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16094, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1323.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16096, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1324.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16099, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); } const auto& newSortKey = tryResult1324
.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1325)::ok_type>);
if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1325.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16102, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16104, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1327)::ok_type
>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1327.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16106, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1328.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16108, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect
(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1320.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16086, mozilla::dom::quota::Severity::Error); return tryResult1320.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1321)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1321.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16091, mozilla::dom::quota::Severity::Error); return tryResult1321.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16094, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1323.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16096, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1324.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16099, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); } const auto& newSortKey = tryResult1324.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16102, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16104, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1327.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16106, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1328.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16108, mozilla::dom::quota::Severity::Error); return tryResult1328.propagateErr(); }}; return Ok{}; })"
, tryResult1329.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16111, mozilla::dom::quota::Severity::Error); return tryResult1329
.propagateErr(); }}
16105 QM_TRY(MOZ_TO_RESULT(objectStorePosition.BindToStatement({auto tryResult1329 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1320.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16086, mozilla::dom::quota::Severity::Error); return tryResult1320
.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1321
)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1321.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16091, mozilla::dom::quota::Severity::Error); return tryResult1321
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1322)::ok_type
>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1322.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16094, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1323.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16096, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1324.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16099, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); } const auto& newSortKey = tryResult1324
.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1325)::ok_type>);
if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1325.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16102, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16104, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1327)::ok_type
>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1327.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16106, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1328.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16108, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect
(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1320.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16086, mozilla::dom::quota::Severity::Error); return tryResult1320.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1321)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1321.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16091, mozilla::dom::quota::Severity::Error); return tryResult1321.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16094, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1323.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16096, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1324.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16099, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); } const auto& newSortKey = tryResult1324.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16102, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16104, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1327.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16106, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1328.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16108, mozilla::dom::quota::Severity::Error); return tryResult1328.propagateErr(); }}; return Ok{}; })"
, tryResult1329.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16111, mozilla::dom::quota::Severity::Error); return tryResult1329
.propagateErr(); }}
16106 writeStmt, kStmtParamNameObjectDataKey)));{auto tryResult1329 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1320.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16086, mozilla::dom::quota::Severity::Error); return tryResult1320
.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1321
)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1321.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16091, mozilla::dom::quota::Severity::Error); return tryResult1321
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1322)::ok_type
>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1322.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16094, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1323.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16096, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1324.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16099, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); } const auto& newSortKey = tryResult1324
.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1325)::ok_type>);
if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1325.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16102, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16104, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1327)::ok_type
>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1327.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16106, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1328.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16108, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect
(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1320.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16086, mozilla::dom::quota::Severity::Error); return tryResult1320.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1321)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1321.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16091, mozilla::dom::quota::Severity::Error); return tryResult1321.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16094, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1323.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16096, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1324.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16099, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); } const auto& newSortKey = tryResult1324.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16102, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16104, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1327.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16106, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1328.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16108, mozilla::dom::quota::Severity::Error); return tryResult1328.propagateErr(); }}; return Ok{}; })"
, tryResult1329.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16111, mozilla::dom::quota::Severity::Error); return tryResult1329
.propagateErr(); }}
16107
16108 QM_TRY(MOZ_TO_RESULT(writeStmt->Execute()));{auto tryResult1329 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1320.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16086, mozilla::dom::quota::Severity::Error); return tryResult1320
.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1321
)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1321.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16091, mozilla::dom::quota::Severity::Error); return tryResult1321
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1322)::ok_type
>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1322.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16094, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1323.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16096, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1324.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16099, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); } const auto& newSortKey = tryResult1324
.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1325)::ok_type>);
if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1325.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16102, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16104, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1327)::ok_type
>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1327.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16106, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1328.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16108, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect
(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1320.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16086, mozilla::dom::quota::Severity::Error); return tryResult1320.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1321)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1321.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16091, mozilla::dom::quota::Severity::Error); return tryResult1321.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16094, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1323.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16096, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1324.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16099, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); } const auto& newSortKey = tryResult1324.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16102, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16104, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1327.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16106, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1328.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16108, mozilla::dom::quota::Severity::Error); return tryResult1328.propagateErr(); }}; return Ok{}; })"
, tryResult1329.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16111, mozilla::dom::quota::Severity::Error); return tryResult1329
.propagateErr(); }}
16109
16110 return Ok{};{auto tryResult1329 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1320.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16086, mozilla::dom::quota::Severity::Error); return tryResult1320
.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1321
)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1321.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16091, mozilla::dom::quota::Severity::Error); return tryResult1321
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1322)::ok_type
>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1322.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16094, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1323.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16096, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1324.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16099, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); } const auto& newSortKey = tryResult1324
.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1325)::ok_type>);
if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1325.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16102, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16104, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1327)::ok_type
>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1327.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16106, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1328.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16108, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect
(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1320.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16086, mozilla::dom::quota::Severity::Error); return tryResult1320.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1321)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1321.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16091, mozilla::dom::quota::Severity::Error); return tryResult1321.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16094, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1323.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16096, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1324.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16099, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); } const auto& newSortKey = tryResult1324.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16102, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16104, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1327.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16106, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1328.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16108, mozilla::dom::quota::Severity::Error); return tryResult1328.propagateErr(); }}; return Ok{}; })"
, tryResult1329.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16111, mozilla::dom::quota::Severity::Error); return tryResult1329
.propagateErr(); }}
16111 })){auto tryResult1329 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1320.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16086, mozilla::dom::quota::Severity::Error); return tryResult1320
.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1321
)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1321.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16091, mozilla::dom::quota::Severity::Error); return tryResult1321
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1322)::ok_type
>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1322.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16094, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1323.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16096, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1324.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16099, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); } const auto& newSortKey = tryResult1324
.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1325)::ok_type>);
if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1325.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16102, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16104, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1327)::ok_type
>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1327.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16106, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1328.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16108, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect
(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1320 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1320.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16086, mozilla::dom::quota::Severity::Error); return tryResult1320.propagateErr(); } writeStmt = tryResult1320.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1321 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1321)::ok_type>); if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1321.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16091, mozilla::dom::quota::Severity::Error); return tryResult1321.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1322 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16094, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; {auto tryResult1323 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1323.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16096, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; auto tryResult1324 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1324.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16099, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); } const auto& newSortKey = tryResult1324.inspect();; {auto tryResult1325 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16102, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; {auto tryResult1326 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16104, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; {auto tryResult1327 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1327.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16106, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; {auto tryResult1328 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1328.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16108, mozilla::dom::quota::Severity::Error); return tryResult1328.propagateErr(); }}; return Ok{}; })"
, tryResult1329.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16111, mozilla::dom::quota::Severity::Error); return tryResult1329
.propagateErr(); }}
;
16112
16113 // The parameter names are not used, parameters are bound by index only
16114 // locally in the same function.
16115 static constexpr auto metaQuery =
16116 "UPDATE object_store_index SET "
16117 "locale = :locale WHERE id = :id"_ns;
16118
16119 QM_TRY_INSPECT(const auto& metaStmt,auto tryResult1330 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), metaQuery)); if ((__builtin_expect(!!(tryResult1330
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), metaQuery)"
, tryResult1330.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16122, mozilla::dom::quota::Severity::Error); return tryResult1330
.propagateErr(); } const auto& metaStmt = tryResult1330.inspect
();
16120 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1330 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), metaQuery)); if ((__builtin_expect(!!(tryResult1330
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), metaQuery)"
, tryResult1330.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16122, mozilla::dom::quota::Severity::Error); return tryResult1330
.propagateErr(); } const auto& metaStmt = tryResult1330.inspect
();
16121 nsCOMPtr<mozIStorageStatement>, aConnection,auto tryResult1330 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), metaQuery)); if ((__builtin_expect(!!(tryResult1330
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), metaQuery)"
, tryResult1330.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16122, mozilla::dom::quota::Severity::Error); return tryResult1330
.propagateErr(); } const auto& metaStmt = tryResult1330.inspect
();
16122 CreateStatement, metaQuery))auto tryResult1330 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), metaQuery)); if ((__builtin_expect(!!(tryResult1330
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), metaQuery)"
, tryResult1330.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16122, mozilla::dom::quota::Severity::Error); return tryResult1330
.propagateErr(); } const auto& metaStmt = tryResult1330.inspect
();
;
16123
16124 QM_TRY(MOZ_TO_RESULT({auto tryResult1331 = (ToResult(metaStmt->BindStringByIndex
(0, NS_ConvertASCIItoUTF16(aLocale)))); static_assert(std::is_empty_v
<typename decltype(tryResult1331)::ok_type>); if ((__builtin_expect
(!!(tryResult1331.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metaStmt->BindStringByIndex(0, NS_ConvertASCIItoUTF16(aLocale)))"
, tryResult1331.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16125, mozilla::dom::quota::Severity::Error); return tryResult1331
.propagateErr(); }}
16125 metaStmt->BindStringByIndex(0, NS_ConvertASCIItoUTF16(aLocale)))){auto tryResult1331 = (ToResult(metaStmt->BindStringByIndex
(0, NS_ConvertASCIItoUTF16(aLocale)))); static_assert(std::is_empty_v
<typename decltype(tryResult1331)::ok_type>); if ((__builtin_expect
(!!(tryResult1331.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metaStmt->BindStringByIndex(0, NS_ConvertASCIItoUTF16(aLocale)))"
, tryResult1331.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16125, mozilla::dom::quota::Severity::Error); return tryResult1331
.propagateErr(); }}
;
16126
16127 QM_TRY(MOZ_TO_RESULT(metaStmt->BindInt64ByIndex(1, aIndexMetadata.id()))){auto tryResult1332 = (ToResult(metaStmt->BindInt64ByIndex
(1, aIndexMetadata.id()))); static_assert(std::is_empty_v<
typename decltype(tryResult1332)::ok_type>); if ((__builtin_expect
(!!(tryResult1332.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metaStmt->BindInt64ByIndex(1, aIndexMetadata.id()))"
, tryResult1332.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16127, mozilla::dom::quota::Severity::Error); return tryResult1332
.propagateErr(); }}
;
16128
16129 QM_TRY(MOZ_TO_RESULT(metaStmt->Execute())){auto tryResult1333 = (ToResult(metaStmt->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult1333)::ok_type
>); if ((__builtin_expect(!!(tryResult1333.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(metaStmt->Execute())"
, tryResult1333.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16129, mozilla::dom::quota::Severity::Error); return tryResult1333
.propagateErr(); }}
;
16130
16131 return NS_OK;
16132}
16133
16134nsresult OpenDatabaseOp::BeginVersionChange() {
16135 AssertIsOnOwningThread();
16136 MOZ_ASSERT(mState == State::BeginVersionChange)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::BeginVersionChange)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::BeginVersionChange
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State::BeginVersionChange", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16136); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginVersionChange"
")"); do { MOZ_CrashSequence(__null, 16136); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16137 MOZ_ASSERT(mMaybeBlockedDatabases.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMaybeBlockedDatabases.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mMaybeBlockedDatabases.IsEmpty
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mMaybeBlockedDatabases.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16137); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 16137); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16138 MOZ_ASSERT(mMetadata->mCommonMetadata.version() <= mRequestedVersion)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMetadata->mCommonMetadata.version() <= mRequestedVersion
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mMetadata->mCommonMetadata.version() <= mRequestedVersion
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mMetadata->mCommonMetadata.version() <= mRequestedVersion"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16138
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata->mCommonMetadata.version() <= mRequestedVersion"
")"); do { MOZ_CrashSequence(__null, 16138); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16139 MOZ_ASSERT(!mDatabase)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDatabase)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDatabase))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("!mDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16139); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabase"
")"); do { MOZ_CrashSequence(__null, 16139); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16140 MOZ_ASSERT(!mVersionChangeTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mVersionChangeTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mVersionChangeTransaction))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mVersionChangeTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16140
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mVersionChangeTransaction"
")"); do { MOZ_CrashSequence(__null, 16140); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16141
16142 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread
(), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16142)
||
16143 IsActorDestroyed()) {
16144 IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16144, idbInternalErrMsg.get()); } while (0)
;
16145 QM_TRY(MOZ_TO_RESULT(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)){auto tryResult1334 = (ToResult(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
)); static_assert(std::is_empty_v<typename decltype(tryResult1334
)::ok_type>); if ((__builtin_expect(!!(tryResult1334.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)"
, tryResult1334.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16145, mozilla::dom::quota::Severity::Error); return tryResult1334
.propagateErr(); }}
;
16146 }
16147
16148 EnsureDatabaseActor();
16149
16150 if (mDatabase->IsInvalidated()) {
16151 IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16151, idbInternalErrMsg.get()); } while (0)
;
16152 QM_TRY(MOZ_TO_RESULT(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)){auto tryResult1335 = (ToResult(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
)); static_assert(std::is_empty_v<typename decltype(tryResult1335
)::ok_type>); if ((__builtin_expect(!!(tryResult1335.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)"
, tryResult1335.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16152, mozilla::dom::quota::Severity::Error); return tryResult1335
.propagateErr(); }}
;
16153 }
16154
16155 MOZ_ASSERT(!mDatabase->IsClosed())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDatabase->IsClosed())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDatabase->IsClosed())))
, 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mDatabase->IsClosed()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16155
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabase->IsClosed()"
")"); do { MOZ_CrashSequence(__null, 16155); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16156
16157 DatabaseActorInfo* info;
16158 MOZ_ALWAYS_TRUE(gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info))do { if ((__builtin_expect(!!(gLiveDatabaseHashtable->Get(
mDatabaseId.ref(), &info)), 1))) { } else { do { do { } while
(false); MOZ_ReportCrash("" "gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16158
); AnnotateMozCrashReason("MOZ_CRASH(" "gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info)"
")"); do { MOZ_CrashSequence(__null, 16158); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
16159
16160 MOZ_ASSERT(info->mLiveDatabases.contains(mDatabase.unsafeGetRawPtr()))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(info->mLiveDatabases.contains(mDatabase.unsafeGetRawPtr
()))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(info->mLiveDatabases.contains(mDatabase.unsafeGetRawPtr
())))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("info->mLiveDatabases.contains(mDatabase.unsafeGetRawPtr())"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16160
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "info->mLiveDatabases.contains(mDatabase.unsafeGetRawPtr())"
")"); do { MOZ_CrashSequence(__null, 16160); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16161 MOZ_ASSERT(!info->mWaitingFactoryOp)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!info->mWaitingFactoryOp)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!info->mWaitingFactoryOp)
)), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!info->mWaitingFactoryOp"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16161
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp"
")"); do { MOZ_CrashSequence(__null, 16161); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16162 MOZ_ASSERT(info->mMetadata == mMetadata)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(info->mMetadata == mMetadata)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(info->mMetadata == mMetadata
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"info->mMetadata == mMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16162); AnnotateMozCrashReason("MOZ_ASSERT" "(" "info->mMetadata == mMetadata"
")"); do { MOZ_CrashSequence(__null, 16162); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16163
16164 const Maybe<uint64_t> newVersion = Some(mRequestedVersion);
16165
16166 QM_TRY(MOZ_TO_RESULT(SendVersionChangeMessages({auto tryResult1336 = (ToResult(SendVersionChangeMessages( info
, mDatabase.maybeDeref(), mMetadata->mCommonMetadata.version
(), newVersion))); static_assert(std::is_empty_v<typename decltype
(tryResult1336)::ok_type>); if ((__builtin_expect(!!(tryResult1336
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(SendVersionChangeMessages( info, mDatabase.maybeDeref(), mMetadata->mCommonMetadata.version(), newVersion))"
, tryResult1336.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16168, mozilla::dom::quota::Severity::Error); return tryResult1336
.propagateErr(); }}
16167 info, mDatabase.maybeDeref(), mMetadata->mCommonMetadata.version(),{auto tryResult1336 = (ToResult(SendVersionChangeMessages( info
, mDatabase.maybeDeref(), mMetadata->mCommonMetadata.version
(), newVersion))); static_assert(std::is_empty_v<typename decltype
(tryResult1336)::ok_type>); if ((__builtin_expect(!!(tryResult1336
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(SendVersionChangeMessages( info, mDatabase.maybeDeref(), mMetadata->mCommonMetadata.version(), newVersion))"
, tryResult1336.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16168, mozilla::dom::quota::Severity::Error); return tryResult1336
.propagateErr(); }}
16168 newVersion))){auto tryResult1336 = (ToResult(SendVersionChangeMessages( info
, mDatabase.maybeDeref(), mMetadata->mCommonMetadata.version
(), newVersion))); static_assert(std::is_empty_v<typename decltype
(tryResult1336)::ok_type>); if ((__builtin_expect(!!(tryResult1336
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(SendVersionChangeMessages( info, mDatabase.maybeDeref(), mMetadata->mCommonMetadata.version(), newVersion))"
, tryResult1336.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16168, mozilla::dom::quota::Severity::Error); return tryResult1336
.propagateErr(); }}
;
16169
16170 if (mMaybeBlockedDatabases.IsEmpty()) {
16171 // We don't need to wait on any databases, just jump to the transaction
16172 // pool.
16173 WaitForTransactions();
16174 return NS_OK;
16175 }
16176
16177 // If the actor gets destroyed, mWaitingFactoryOp will hold the last strong
16178 // reference to us.
16179 info->mWaitingFactoryOp = this;
16180
16181 mState = State::WaitingForOtherDatabasesToClose;
16182 return NS_OK;
16183}
16184
16185bool OpenDatabaseOp::AreActorsAlive() {
16186 AssertIsOnOwningThread();
16187 MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDatabase)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16187); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase"
")"); do { MOZ_CrashSequence(__null, 16187); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16188
16189 return !(IsActorDestroyed() || mDatabase->IsActorDestroyed());
16190}
16191
16192void OpenDatabaseOp::SendBlockedNotification() {
16193 AssertIsOnOwningThread();
16194 MOZ_ASSERT(mState == State::WaitingForOtherDatabasesToClose)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::WaitingForOtherDatabasesToClose)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mState == State::WaitingForOtherDatabasesToClose))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::WaitingForOtherDatabasesToClose"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16194
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::WaitingForOtherDatabasesToClose"
")"); do { MOZ_CrashSequence(__null, 16194); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16195
16196 if (!IsActorDestroyed()) {
16197 (void)SendBlocked(mMetadata->mCommonMetadata.version());
16198 }
16199}
16200
16201nsresult OpenDatabaseOp::DispatchToWorkThread() {
16202 AssertIsOnOwningThread();
16203 MOZ_ASSERT(mState == State::WaitingForTransactionsToComplete)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::WaitingForTransactionsToComplete)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mState == State::WaitingForTransactionsToComplete)))
, 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::WaitingForTransactionsToComplete"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16203
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::WaitingForTransactionsToComplete"
")"); do { MOZ_CrashSequence(__null, 16203); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16204 MOZ_ASSERT(mMaybeBlockedDatabases.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMaybeBlockedDatabases.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mMaybeBlockedDatabases.IsEmpty
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mMaybeBlockedDatabases.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16204); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 16204); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16205 // There's no other place which creates a version change transaction
16206 // and sets mVersionChangeTransaction.
16207 MOZ_ASSERT(!mVersionChangeTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mVersionChangeTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mVersionChangeTransaction))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mVersionChangeTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16207
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mVersionChangeTransaction"
")"); do { MOZ_CrashSequence(__null, 16207); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16208
16209 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread
(), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16209)
||
16210 IsActorDestroyed() || mDatabase->IsInvalidated()) {
16211 IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16211, idbInternalErrMsg.get()); } while (0)
;
16212 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
16213 }
16214
16215 DatabaseActorInfo* info;
16216 MOZ_ALWAYS_TRUE(gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info))do { if ((__builtin_expect(!!(gLiveDatabaseHashtable->Get(
mDatabaseId.ref(), &info)), 1))) { } else { do { do { } while
(false); MOZ_ReportCrash("" "gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16216
); AnnotateMozCrashReason("MOZ_CRASH(" "gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info)"
")"); do { MOZ_CrashSequence(__null, 16216); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
16217
16218 MOZ_ASSERT(info->mLiveDatabases.contains(mDatabase.unsafeGetRawPtr()))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(info->mLiveDatabases.contains(mDatabase.unsafeGetRawPtr
()))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(info->mLiveDatabases.contains(mDatabase.unsafeGetRawPtr
())))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("info->mLiveDatabases.contains(mDatabase.unsafeGetRawPtr())"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16218
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "info->mLiveDatabases.contains(mDatabase.unsafeGetRawPtr())"
")"); do { MOZ_CrashSequence(__null, 16218); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16219 MOZ_ASSERT(!info->mWaitingFactoryOp)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!info->mWaitingFactoryOp)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!info->mWaitingFactoryOp)
)), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!info->mWaitingFactoryOp"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16219
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp"
")"); do { MOZ_CrashSequence(__null, 16219); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16220 MOZ_ASSERT(info->mMetadata == mMetadata)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(info->mMetadata == mMetadata)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(info->mMetadata == mMetadata
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"info->mMetadata == mMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16220); AnnotateMozCrashReason("MOZ_ASSERT" "(" "info->mMetadata == mMetadata"
")"); do { MOZ_CrashSequence(__null, 16220); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16221
16222 auto transaction = MakeSafeRefPtr<VersionChangeTransaction>(this);
16223
16224 if (NS_WARN_IF(!transaction->CopyDatabaseMetadata())NS_warn_if_impl(!transaction->CopyDatabaseMetadata(), "!transaction->CopyDatabaseMetadata()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16224
)
) {
16225 return NS_ERROR_OUT_OF_MEMORY;
16226 }
16227
16228 MOZ_ASSERT(info->mMetadata != mMetadata)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(info->mMetadata != mMetadata)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(info->mMetadata != mMetadata
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"info->mMetadata != mMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16228); AnnotateMozCrashReason("MOZ_ASSERT" "(" "info->mMetadata != mMetadata"
")"); do { MOZ_CrashSequence(__null, 16228); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16229 mMetadata = info->mMetadata.clonePtr();
16230
16231 mVersionChangeTransaction = std::move(transaction);
16232
16233 MOZ_ASSERT(mVersionChangeTransaction->GetMode() ==do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mVersionChangeTransaction->GetMode() == IDBTransaction
::Mode::VersionChange)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mVersionChangeTransaction->
GetMode() == IDBTransaction::Mode::VersionChange))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mVersionChangeTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16234
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mVersionChangeTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 16234); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16234 IDBTransaction::Mode::VersionChange)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mVersionChangeTransaction->GetMode() == IDBTransaction
::Mode::VersionChange)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mVersionChangeTransaction->
GetMode() == IDBTransaction::Mode::VersionChange))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mVersionChangeTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16234
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mVersionChangeTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 16234); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16235
16236 mState = State::DatabaseWorkVersionChange;
16237
16238 // Intentionally empty.
16239 nsTArray<nsString> objectStoreNames;
16240
16241 const int64_t loggingSerialNumber =
16242 mVersionChangeTransaction->LoggingSerialNumber();
16243 const nsID& backgroundChildLoggingId =
16244 mVersionChangeTransaction->GetLoggingInfo()->Id();
16245
16246 if (NS_WARN_IF(!mDatabase->RegisterTransaction(*mVersionChangeTransaction))NS_warn_if_impl(!mDatabase->RegisterTransaction(*mVersionChangeTransaction
), "!mDatabase->RegisterTransaction(*mVersionChangeTransaction)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16246
)
) {
16247 return NS_ERROR_OUT_OF_MEMORY;
16248 }
16249
16250 if (!gConnectionPool) {
16251 gConnectionPool = new ConnectionPool();
16252 }
16253
16254 RefPtr<VersionChangeOp> versionChangeOp = new VersionChangeOp(this);
16255
16256 uint64_t transactionId = versionChangeOp->StartOnConnectionPool(
16257 backgroundChildLoggingId, mVersionChangeTransaction->DatabaseId(),
16258 loggingSerialNumber, objectStoreNames,
16259 /* aIsWriteTransaction */ true);
16260
16261 mVersionChangeOp = versionChangeOp;
16262
16263 versionChangeOp->NoteTransactionActiveRequest();
16264 mVersionChangeTransaction->Init(transactionId);
16265
16266 return NS_OK;
16267}
16268
16269nsresult OpenDatabaseOp::SendUpgradeNeeded() {
16270 AssertIsOnOwningThread();
16271 MOZ_ASSERT(mState == State::DatabaseWorkVersionChange)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::DatabaseWorkVersionChange)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mState == State::DatabaseWorkVersionChange))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mState == State::DatabaseWorkVersionChange"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16271
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkVersionChange"
")"); do { MOZ_CrashSequence(__null, 16271); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16272 MOZ_ASSERT(mVersionChangeTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mVersionChangeTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mVersionChangeTransaction)))
, 0))) { do { } while (false); MOZ_ReportAssertionFailure("mVersionChangeTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16272
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mVersionChangeTransaction"
")"); do { MOZ_CrashSequence(__null, 16272); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16273 MOZ_ASSERT(mMaybeBlockedDatabases.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMaybeBlockedDatabases.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mMaybeBlockedDatabases.IsEmpty
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mMaybeBlockedDatabases.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16273); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 16273); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16274 MOZ_ASSERT(!HasFailed())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!HasFailed())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!HasFailed()))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("!HasFailed()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16274); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!HasFailed()"
")"); do { MOZ_CrashSequence(__null, 16274); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16275 MOZ_ASSERT_IF(!IsActorDestroyed(), mDatabase)do { if (!IsActorDestroyed()) { do { static_assert( mozilla::
detail::AssertionConditionType<decltype(mDatabase)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mDatabase))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16275); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase"
")"); do { MOZ_CrashSequence(__null, 16275); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
16276
16277 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread
(), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16277)
||
16278 IsActorDestroyed()) {
16279 IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16279, idbInternalErrMsg.get()); } while (0)
;
16280 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
16281 }
16282
16283 const SafeRefPtr<VersionChangeTransaction> transaction =
16284 std::move(mVersionChangeTransaction);
16285
16286 nsresult rv = EnsureDatabaseActorIsAlive();
16287 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16287)
) {
16288 return rv;
16289 }
16290
16291 // Transfer ownership to IPDL.
16292 transaction->SetActorAlive();
16293
16294 if (!mDatabase->SendPBackgroundIDBVersionChangeTransactionConstructor(
16295 transaction.unsafeGetRawPtr(), mMetadata->mCommonMetadata.version(),
16296 mRequestedVersion, mMetadata->mNextObjectStoreId,
16297 mMetadata->mNextIndexId)) {
16298 IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16298, idbInternalErrMsg.get()); } while (0)
;
16299 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
16300 }
16301
16302 return NS_OK;
16303}
16304
16305nsresult OpenDatabaseOp::DoVersionUpdate() {
16306 AssertIsOnIOThread();
16307 MOZ_ASSERT(mState == State::DatabaseWorkVersionUpdate)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::DatabaseWorkVersionUpdate)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mState == State::DatabaseWorkVersionUpdate))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mState == State::DatabaseWorkVersionUpdate"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16307
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkVersionUpdate"
")"); do { MOZ_CrashSequence(__null, 16307); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16308 MOZ_ASSERT(!HasFailed())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!HasFailed())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!HasFailed()))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("!HasFailed()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16308); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!HasFailed()"
")"); do { MOZ_CrashSequence(__null, 16308); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16309
16310 AUTO_PROFILER_LABEL("OpenDatabaseOp::DoVersionUpdate", DOM)mozilla::AutoProfilerLabel raiiObject16310( "OpenDatabaseOp::DoVersionUpdate"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
16311
16312 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16312)
||
16313 !OperationMayProceed()) {
16314 IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16314, idbInternalErrMsg.get()); } while (0)
;
16315 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
16316 }
16317
16318 mFileManager->UpdateDatabaseVersion(mRequestedVersion);
16319
16320 mState = State::SendingResults;
16321
16322 QM_TRY(MOZ_TO_RESULT({auto tryResult1337 = (ToResult(DispatchThisAfterProcessingCurrentEvent
(mOwningEventTarget))); static_assert(std::is_empty_v<typename
decltype(tryResult1337)::ok_type>); if ((__builtin_expect
(!!(tryResult1337.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))"
, tryResult1337.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16323, mozilla::dom::quota::Severity::Error); return tryResult1337
.propagateErr(); }}
16323 DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))){auto tryResult1337 = (ToResult(DispatchThisAfterProcessingCurrentEvent
(mOwningEventTarget))); static_assert(std::is_empty_v<typename
decltype(tryResult1337)::ok_type>); if ((__builtin_expect
(!!(tryResult1337.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))"
, tryResult1337.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16323, mozilla::dom::quota::Severity::Error); return tryResult1337
.propagateErr(); }}
;
16324
16325 return NS_OK;
16326}
16327
16328void OpenDatabaseOp::SendResults() {
16329 AssertIsOnOwningThread();
16330 MOZ_ASSERT(mState == State::SendingResults)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::SendingResults)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::SendingResults
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State::SendingResults", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16330); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::SendingResults"
")"); do { MOZ_CrashSequence(__null, 16330); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16331 MOZ_ASSERT(mMaybeBlockedDatabases.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMaybeBlockedDatabases.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mMaybeBlockedDatabases.IsEmpty
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mMaybeBlockedDatabases.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16331); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 16331); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16332 MOZ_ASSERT_IF(!HasFailed(), !mVersionChangeTransaction)do { if (!HasFailed()) { do { static_assert( mozilla::detail::
AssertionConditionType<decltype(!mVersionChangeTransaction
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!mVersionChangeTransaction))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("!mVersionChangeTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16332
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mVersionChangeTransaction"
")"); do { MOZ_CrashSequence(__null, 16332); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
16333
16334 if (mCompleteCallback) {
16335 auto completeCallback = std::move(mCompleteCallback);
16336 completeCallback();
16337 }
16338
16339 DebugOnly<DatabaseActorInfo*> info = nullptr;
16340 MOZ_ASSERT_IF(mDatabaseId.isSome() && gLiveDatabaseHashtable &&do { if (mDatabaseId.isSome() && gLiveDatabaseHashtable
&& gLiveDatabaseHashtable->Get(mDatabaseId.ref(),
&info)) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(!info->mWaitingFactoryOp)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!info->mWaitingFactoryOp)
)), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!info->mWaitingFactoryOp"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16342
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp"
")"); do { MOZ_CrashSequence(__null, 16342); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
16341 gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info),do { if (mDatabaseId.isSome() && gLiveDatabaseHashtable
&& gLiveDatabaseHashtable->Get(mDatabaseId.ref(),
&info)) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(!info->mWaitingFactoryOp)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!info->mWaitingFactoryOp)
)), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!info->mWaitingFactoryOp"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16342
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp"
")"); do { MOZ_CrashSequence(__null, 16342); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
16342 !info->mWaitingFactoryOp)do { if (mDatabaseId.isSome() && gLiveDatabaseHashtable
&& gLiveDatabaseHashtable->Get(mDatabaseId.ref(),
&info)) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(!info->mWaitingFactoryOp)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!info->mWaitingFactoryOp)
)), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!info->mWaitingFactoryOp"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16342
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp"
")"); do { MOZ_CrashSequence(__null, 16342); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
16343
16344 if (mVersionChangeTransaction) {
16345 MOZ_ASSERT(HasFailed())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(HasFailed())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(HasFailed()))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("HasFailed()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16345); AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasFailed()"
")"); do { MOZ_CrashSequence(__null, 16345); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16346
16347 mVersionChangeTransaction->Abort(ResultCode(), /* aForce */ true);
16348 mVersionChangeTransaction = nullptr;
16349 }
16350
16351 if (IsActorDestroyed()) {
16352 SetFailureCodeIfUnset(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR);
16353 } else {
16354 FactoryRequestResponse response;
16355
16356 if (!HasFailed()) {
16357 // If we just successfully completed a versionchange operation then we
16358 // need to update the version in our metadata.
16359 mMetadata->mCommonMetadata.version() = mRequestedVersion;
16360
16361 nsresult rv = EnsureDatabaseActorIsAlive();
16362 if (NS_SUCCEEDED(rv)((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) {
16363 // We successfully opened a database so use its actor as the success
16364 // result for this request.
16365
16366 // XXX OpenDatabaseRequestResponse stores a raw pointer, can this be
16367 // avoided?
16368 response = OpenDatabaseRequestResponse{
16369 WrapNotNull(mDatabase.unsafeGetRawPtr())};
16370 } else {
16371 response = ClampResultCode(rv);
16372#ifdef DEBUG1
16373 SetFailureCode(response.get_nsresult());
16374#endif
16375 }
16376 } else {
16377#ifdef DEBUG1
16378 // If something failed then our metadata pointer is now bad. No one should
16379 // ever touch it again though so just null it out in DEBUG builds to make
16380 // sure we find such cases.
16381 mMetadata = nullptr;
16382#endif
16383 response = ClampResultCode(ResultCode());
16384 }
16385
16386 (void)PBackgroundIDBFactoryRequestParent::Send__delete__(this, response);
16387 }
16388
16389 if (mDatabase) {
16390 MOZ_ASSERT(!mDirectoryLockHandle)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDirectoryLockHandle)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDirectoryLockHandle))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("!mDirectoryLockHandle"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16390
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLockHandle"
")"); do { MOZ_CrashSequence(__null, 16390); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16391
16392 if (HasFailed()) {
16393 mDatabase->Invalidate();
16394 }
16395
16396 // Make sure to release the database on this thread.
16397 mDatabase = nullptr;
16398
16399 CleanupMetadata();
16400 } else if (mDirectoryLockHandle) {
16401 // ConnectionClosedCallback will call CleanupMetadata().
16402 nsCOMPtr<nsIRunnable> callback = NewRunnableMethod(
16403 "dom::indexedDB::OpenDatabaseOp::ConnectionClosedCallback", this,
16404 &OpenDatabaseOp::ConnectionClosedCallback);
16405
16406 RefPtr<WaitForTransactionsHelper> helper =
16407 new WaitForTransactionsHelper(mDatabaseId.ref(), callback);
16408 helper->WaitForTransactions();
16409 } else {
16410 CleanupMetadata();
16411 }
16412
16413 FinishSendResults();
16414}
16415
16416void OpenDatabaseOp::ConnectionClosedCallback() {
16417 AssertIsOnOwningThread();
16418 MOZ_ASSERT(HasFailed())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(HasFailed())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(HasFailed()))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("HasFailed()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16418); AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasFailed()"
")"); do { MOZ_CrashSequence(__null, 16418); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16419 MOZ_ASSERT(mDirectoryLockHandle)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDirectoryLockHandle)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDirectoryLockHandle))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("mDirectoryLockHandle"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16419
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLockHandle"
")"); do { MOZ_CrashSequence(__null, 16419); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16420
16421 {
16422 auto destroyingDirectoryLockHandle = std::move(mDirectoryLockHandle);
16423 }
16424
16425 CleanupMetadata();
16426}
16427
16428void OpenDatabaseOp::EnsureDatabaseActor() {
16429 AssertIsOnOwningThread();
16430 MOZ_ASSERT(mState == State::BeginVersionChange ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::BeginVersionChange || mState == State
::DatabaseWorkVersionChange || mState == State::SendingResults
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mState == State::BeginVersionChange || mState == State
::DatabaseWorkVersionChange || mState == State::SendingResults
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State::BeginVersionChange || mState == State::DatabaseWorkVersionChange || mState == State::SendingResults"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16432
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginVersionChange || mState == State::DatabaseWorkVersionChange || mState == State::SendingResults"
")"); do { MOZ_CrashSequence(__null, 16432); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16431 mState == State::DatabaseWorkVersionChange ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::BeginVersionChange || mState == State
::DatabaseWorkVersionChange || mState == State::SendingResults
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mState == State::BeginVersionChange || mState == State
::DatabaseWorkVersionChange || mState == State::SendingResults
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State::BeginVersionChange || mState == State::DatabaseWorkVersionChange || mState == State::SendingResults"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16432
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginVersionChange || mState == State::DatabaseWorkVersionChange || mState == State::SendingResults"
")"); do { MOZ_CrashSequence(__null, 16432); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16432 mState == State::SendingResults)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::BeginVersionChange || mState == State
::DatabaseWorkVersionChange || mState == State::SendingResults
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mState == State::BeginVersionChange || mState == State
::DatabaseWorkVersionChange || mState == State::SendingResults
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State::BeginVersionChange || mState == State::DatabaseWorkVersionChange || mState == State::SendingResults"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16432
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginVersionChange || mState == State::DatabaseWorkVersionChange || mState == State::SendingResults"
")"); do { MOZ_CrashSequence(__null, 16432); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16433 MOZ_ASSERT(!HasFailed())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!HasFailed())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!HasFailed()))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("!HasFailed()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16433); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!HasFailed()"
")"); do { MOZ_CrashSequence(__null, 16433); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16434 MOZ_ASSERT(mDatabaseFilePath.isSome())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDatabaseFilePath.isSome())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDatabaseFilePath.isSome()))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDatabaseFilePath.isSome()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16434
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabaseFilePath.isSome()"
")"); do { MOZ_CrashSequence(__null, 16434); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16435 MOZ_ASSERT(!IsActorDestroyed())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsActorDestroyed())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsActorDestroyed()))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("!IsActorDestroyed()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16435
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()"
")"); do { MOZ_CrashSequence(__null, 16435); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16436
16437 if (mDatabase) {
16438 return;
16439 }
16440
16441 MOZ_ASSERT(mMetadata->mDatabaseId.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMetadata->mDatabaseId.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mMetadata->mDatabaseId.IsEmpty
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mMetadata->mDatabaseId.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata->mDatabaseId.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 16441); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16442 mMetadata->mDatabaseId = mDatabaseId.ref();
16443
16444 MOZ_ASSERT(mMetadata->mFilePath.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMetadata->mFilePath.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mMetadata->mFilePath.IsEmpty
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mMetadata->mFilePath.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16444); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata->mFilePath.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 16444); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16445 mMetadata->mFilePath = mDatabaseFilePath.ref();
16446
16447 DatabaseActorInfo* info;
16448 if (gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info)) {
16449 AssertMetadataConsistency(*info->mMetadata);
16450 mMetadata = info->mMetadata.clonePtr();
16451 }
16452
16453 Maybe<CipherKey> maybeKey;
16454 if (mFileManager->UsesEncryption()) {
16455 QM_TRY_UNWRAP(auto key,auto tryResult1338 = (mFileManager->MutableCipherKeyManagerRef
().Ensure( mFileManager->CipherKeyIdForDatabase())); if ((
__builtin_expect(!!(tryResult1338.isErr()), 0))) { [[maybe_unused
]] auto tryTempError = tryResult1338.unwrapErr(); mozilla::dom
::quota::HandleError("mFileManager->MutableCipherKeyManagerRef().Ensure( mFileManager->CipherKeyIdForDatabase())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16458, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return ; } auto
key = tryResult1338.unwrap();
16456 mFileManager->MutableCipherKeyManagerRef().Ensure(auto tryResult1338 = (mFileManager->MutableCipherKeyManagerRef
().Ensure( mFileManager->CipherKeyIdForDatabase())); if ((
__builtin_expect(!!(tryResult1338.isErr()), 0))) { [[maybe_unused
]] auto tryTempError = tryResult1338.unwrapErr(); mozilla::dom
::quota::HandleError("mFileManager->MutableCipherKeyManagerRef().Ensure( mFileManager->CipherKeyIdForDatabase())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16458, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return ; } auto
key = tryResult1338.unwrap();
16457 mFileManager->CipherKeyIdForDatabase()),auto tryResult1338 = (mFileManager->MutableCipherKeyManagerRef
().Ensure( mFileManager->CipherKeyIdForDatabase())); if ((
__builtin_expect(!!(tryResult1338.isErr()), 0))) { [[maybe_unused
]] auto tryTempError = tryResult1338.unwrapErr(); mozilla::dom
::quota::HandleError("mFileManager->MutableCipherKeyManagerRef().Ensure( mFileManager->CipherKeyIdForDatabase())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16458, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return ; } auto
key = tryResult1338.unwrap();
16458 QM_VOID)auto tryResult1338 = (mFileManager->MutableCipherKeyManagerRef
().Ensure( mFileManager->CipherKeyIdForDatabase())); if ((
__builtin_expect(!!(tryResult1338.isErr()), 0))) { [[maybe_unused
]] auto tryTempError = tryResult1338.unwrapErr(); mozilla::dom
::quota::HandleError("mFileManager->MutableCipherKeyManagerRef().Ensure( mFileManager->CipherKeyIdForDatabase())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16458, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return ; } auto
key = tryResult1338.unwrap();
;
16459 maybeKey = Some(key);
16460 }
16461
16462 const bool directoryLockInvalidated = mDirectoryLockHandle->Invalidated();
16463
16464 // XXX Shouldn't Manager() return already_AddRefed when
16465 // PBackgroundIDBFactoryParent is declared refcounted?
16466 mDatabase = MakeSafeRefPtr<Database>(
16467 SafeRefPtr{static_cast<Factory*>(Manager()),
16468 AcquireStrongRefFromRawPtr{}},
16469 mCommonParams.principalInfo(), mContentParentId, mOriginMetadata,
16470 mTelemetryId, mMetadata.clonePtr(), mFileManager.clonePtr(),
16471 std::move(mDirectoryLockHandle), mInPrivateBrowsing, maybeKey);
16472
16473 if (info) {
16474 info->mLiveDatabases.insertBack(mDatabase.unsafeGetRawPtr());
16475 } else {
16476 // XXX Maybe use LookupOrInsertWith above, to avoid a second lookup here?
16477 info = gLiveDatabaseHashtable
16478 ->InsertOrUpdate(
16479 mDatabaseId.ref(),
16480 MakeUnique<DatabaseActorInfo>(
16481 mMetadata.clonePtr(),
16482 WrapNotNullUnchecked(mDatabase.unsafeGetRawPtr())))
16483 .get();
16484 }
16485
16486 if (directoryLockInvalidated) {
16487 mDatabase->Invalidate();
16488 }
16489
16490 // Balanced in Database::CleanupMetadata().
16491 IncreaseBusyCount();
16492}
16493
16494nsresult OpenDatabaseOp::EnsureDatabaseActorIsAlive() {
16495 AssertIsOnOwningThread();
16496 MOZ_ASSERT(mState == State::DatabaseWorkVersionChange ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::DatabaseWorkVersionChange || mState
== State::SendingResults)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::DatabaseWorkVersionChange
|| mState == State::SendingResults))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("mState == State::DatabaseWorkVersionChange || mState == State::SendingResults"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16497
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkVersionChange || mState == State::SendingResults"
")"); do { MOZ_CrashSequence(__null, 16497); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16497 mState == State::SendingResults)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::DatabaseWorkVersionChange || mState
== State::SendingResults)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::DatabaseWorkVersionChange
|| mState == State::SendingResults))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("mState == State::DatabaseWorkVersionChange || mState == State::SendingResults"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16497
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkVersionChange || mState == State::SendingResults"
")"); do { MOZ_CrashSequence(__null, 16497); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16498 MOZ_ASSERT(!HasFailed())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!HasFailed())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!HasFailed()))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("!HasFailed()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16498); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!HasFailed()"
")"); do { MOZ_CrashSequence(__null, 16498); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16499 MOZ_ASSERT(!IsActorDestroyed())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsActorDestroyed())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsActorDestroyed()))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("!IsActorDestroyed()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16499
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()"
")"); do { MOZ_CrashSequence(__null, 16499); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16500
16501 EnsureDatabaseActor();
16502
16503 if (mDatabase->IsActorAlive()) {
16504 return NS_OK;
16505 }
16506
16507 auto* const factory = static_cast<Factory*>(Manager());
16508
16509 QM_TRY_INSPECT(const auto& spec, MetadataToSpec())auto tryResult1339 = (MetadataToSpec()); if ((__builtin_expect
(!!(tryResult1339.isErr()), 0))) { mozilla::dom::quota::HandleError
("MetadataToSpec()", tryResult1339.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16509, mozilla::dom::quota::Severity::Error); return tryResult1339
.propagateErr(); } const auto& spec = tryResult1339.inspect
();
;
16510
16511 mDatabase->SetActorAlive();
16512
16513 if (!factory->SendPBackgroundIDBDatabaseConstructor(
16514 mDatabase.unsafeGetRawPtr(), spec, WrapNotNull(this))) {
16515 IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16515, idbInternalErrMsg.get()); } while (0)
;
16516 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
16517 }
16518
16519 if (mDatabase->IsInvalidated()) {
16520 (void)mDatabase->SendInvalidate();
16521 }
16522
16523 return NS_OK;
16524}
16525
16526Result<DatabaseSpec, nsresult> OpenDatabaseOp::MetadataToSpec() const {
16527 AssertIsOnOwningThread();
16528 MOZ_ASSERT(mMetadata)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMetadata)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mMetadata))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata"
")"); do { MOZ_CrashSequence(__null, 16528); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16529
16530 DatabaseSpec spec;
16531 spec.metadata() = mMetadata->mCommonMetadata;
16532
16533 QM_TRY_UNWRAP(spec.objectStores(),auto tryResult1341 = (TransformIntoNewArrayAbortOnErr( mMetadata
->mObjectStores, [](const auto& objectStoreEntry) ->
mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata
* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(objectStoreEntry
.GetKey())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16540
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16540); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(metadata)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16541); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 16541); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1340 = (TransformIntoNewArray( metadata->mIndexes
, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata
= indexEntry.GetWeak(); do { static_assert( mozilla::detail::
AssertionConditionType<decltype(indexEntry.GetKey())>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false);
MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16552); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16552); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(indexMetadata)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16553); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { MOZ_CrashSequence(__null, 16553); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16552); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16553); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1340.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16557, mozilla::dom::quota::Severity::Error); return tryResult1340
.propagateErr(); } auto indexes = tryResult1340.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1341.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16540); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16540); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16541); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16541); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1340 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16552); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16553); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16552); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16553); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1340.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16557, mozilla::dom::quota::Severity::Error); return tryResult1340.propagateErr(); } auto indexes = tryResult1340.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1341.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16563, mozilla::dom::quota::Severity::Error); return tryResult1341
.propagateErr(); } spec.objectStores() = tryResult1341.unwrap
();
16534 TransformIntoNewArrayAbortOnErr(auto tryResult1341 = (TransformIntoNewArrayAbortOnErr( mMetadata
->mObjectStores, [](const auto& objectStoreEntry) ->
mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata
* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(objectStoreEntry
.GetKey())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16540
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16540); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(metadata)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16541); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 16541); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1340 = (TransformIntoNewArray( metadata->mIndexes
, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata
= indexEntry.GetWeak(); do { static_assert( mozilla::detail::
AssertionConditionType<decltype(indexEntry.GetKey())>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false);
MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16552); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16552); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(indexMetadata)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16553); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { MOZ_CrashSequence(__null, 16553); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16552); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16553); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1340.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16557, mozilla::dom::quota::Severity::Error); return tryResult1340
.propagateErr(); } auto indexes = tryResult1340.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1341.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16540); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16540); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16541); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16541); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1340 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16552); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16553); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16552); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16553); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1340.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16557, mozilla::dom::quota::Severity::Error); return tryResult1340.propagateErr(); } auto indexes = tryResult1340.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1341.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16563, mozilla::dom::quota::Severity::Error); return tryResult1341
.propagateErr(); } spec.objectStores() = tryResult1341.unwrap
();
16535 mMetadata->mObjectStores,auto tryResult1341 = (TransformIntoNewArrayAbortOnErr( mMetadata
->mObjectStores, [](const auto& objectStoreEntry) ->
mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata
* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(objectStoreEntry
.GetKey())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16540
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16540); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(metadata)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16541); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 16541); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1340 = (TransformIntoNewArray( metadata->mIndexes
, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata
= indexEntry.GetWeak(); do { static_assert( mozilla::detail::
AssertionConditionType<decltype(indexEntry.GetKey())>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false);
MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16552); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16552); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(indexMetadata)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16553); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { MOZ_CrashSequence(__null, 16553); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16552); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16553); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1340.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16557, mozilla::dom::quota::Severity::Error); return tryResult1340
.propagateErr(); } auto indexes = tryResult1340.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1341.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16540); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16540); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16541); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16541); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1340 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16552); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16553); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16552); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16553); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1340.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16557, mozilla::dom::quota::Severity::Error); return tryResult1340.propagateErr(); } auto indexes = tryResult1340.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1341.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16563, mozilla::dom::quota::Severity::Error); return tryResult1341
.propagateErr(); } spec.objectStores() = tryResult1341.unwrap
();
16536 [](const auto& objectStoreEntry)auto tryResult1341 = (TransformIntoNewArrayAbortOnErr( mMetadata
->mObjectStores, [](const auto& objectStoreEntry) ->
mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata
* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(objectStoreEntry
.GetKey())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16540
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16540); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(metadata)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16541); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 16541); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1340 = (TransformIntoNewArray( metadata->mIndexes
, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata
= indexEntry.GetWeak(); do { static_assert( mozilla::detail::
AssertionConditionType<decltype(indexEntry.GetKey())>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false);
MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16552); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16552); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(indexMetadata)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16553); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { MOZ_CrashSequence(__null, 16553); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16552); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16553); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1340.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16557, mozilla::dom::quota::Severity::Error); return tryResult1340
.propagateErr(); } auto indexes = tryResult1340.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1341.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16540); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16540); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16541); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16541); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1340 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16552); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16553); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16552); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16553); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1340.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16557, mozilla::dom::quota::Severity::Error); return tryResult1340.propagateErr(); } auto indexes = tryResult1340.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1341.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16563, mozilla::dom::quota::Severity::Error); return tryResult1341
.propagateErr(); } spec.objectStores() = tryResult1341.unwrap
();
16537 -> mozilla::Result<ObjectStoreSpec, nsresult> {auto tryResult1341 = (TransformIntoNewArrayAbortOnErr( mMetadata
->mObjectStores, [](const auto& objectStoreEntry) ->
mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata
* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(objectStoreEntry
.GetKey())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16540
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16540); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(metadata)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16541); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 16541); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1340 = (TransformIntoNewArray( metadata->mIndexes
, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata
= indexEntry.GetWeak(); do { static_assert( mozilla::detail::
AssertionConditionType<decltype(indexEntry.GetKey())>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false);
MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16552); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16552); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(indexMetadata)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16553); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { MOZ_CrashSequence(__null, 16553); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16552); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16553); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1340.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16557, mozilla::dom::quota::Severity::Error); return tryResult1340
.propagateErr(); } auto indexes = tryResult1340.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1341.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16540); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16540); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16541); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16541); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1340 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16552); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16553); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16552); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16553); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1340.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16557, mozilla::dom::quota::Severity::Error); return tryResult1340.propagateErr(); } auto indexes = tryResult1340.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1341.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16563, mozilla::dom::quota::Severity::Error); return tryResult1341
.propagateErr(); } spec.objectStores() = tryResult1341.unwrap
();
16538 FullObjectStoreMetadata* metadata =auto tryResult1341 = (TransformIntoNewArrayAbortOnErr( mMetadata
->mObjectStores, [](const auto& objectStoreEntry) ->
mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata
* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(objectStoreEntry
.GetKey())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16540
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16540); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(metadata)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16541); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 16541); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1340 = (TransformIntoNewArray( metadata->mIndexes
, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata
= indexEntry.GetWeak(); do { static_assert( mozilla::detail::
AssertionConditionType<decltype(indexEntry.GetKey())>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false);
MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16552); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16552); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(indexMetadata)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16553); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { MOZ_CrashSequence(__null, 16553); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16552); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16553); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1340.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16557, mozilla::dom::quota::Severity::Error); return tryResult1340
.propagateErr(); } auto indexes = tryResult1340.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1341.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16540); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16540); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16541); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16541); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1340 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16552); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16553); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16552); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16553); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1340.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16557, mozilla::dom::quota::Severity::Error); return tryResult1340.propagateErr(); } auto indexes = tryResult1340.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1341.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16563, mozilla::dom::quota::Severity::Error); return tryResult1341
.propagateErr(); } spec.objectStores() = tryResult1341.unwrap
();
16539 objectStoreEntry.GetWeak();auto tryResult1341 = (TransformIntoNewArrayAbortOnErr( mMetadata
->mObjectStores, [](const auto& objectStoreEntry) ->
mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata
* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(objectStoreEntry
.GetKey())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16540
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16540); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(metadata)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16541); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 16541); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1340 = (TransformIntoNewArray( metadata->mIndexes
, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata
= indexEntry.GetWeak(); do { static_assert( mozilla::detail::
AssertionConditionType<decltype(indexEntry.GetKey())>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false);
MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16552); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16552); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(indexMetadata)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16553); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { MOZ_CrashSequence(__null, 16553); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16552); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16553); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1340.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16557, mozilla::dom::quota::Severity::Error); return tryResult1340
.propagateErr(); } auto indexes = tryResult1340.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1341.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16540); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16540); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16541); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16541); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1340 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16552); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16553); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16552); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16553); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1340.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16557, mozilla::dom::quota::Severity::Error); return tryResult1340.propagateErr(); } auto indexes = tryResult1340.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1341.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16563, mozilla::dom::quota::Severity::Error); return tryResult1341
.propagateErr(); } spec.objectStores() = tryResult1341.unwrap
();
16540 MOZ_ASSERT(objectStoreEntry.GetKey());auto tryResult1341 = (TransformIntoNewArrayAbortOnErr( mMetadata
->mObjectStores, [](const auto& objectStoreEntry) ->
mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata
* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(objectStoreEntry
.GetKey())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16540
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16540); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(metadata)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16541); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 16541); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1340 = (TransformIntoNewArray( metadata->mIndexes
, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata
= indexEntry.GetWeak(); do { static_assert( mozilla::detail::
AssertionConditionType<decltype(indexEntry.GetKey())>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false);
MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16552); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16552); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(indexMetadata)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16553); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { MOZ_CrashSequence(__null, 16553); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16552); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16553); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1340.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16557, mozilla::dom::quota::Severity::Error); return tryResult1340
.propagateErr(); } auto indexes = tryResult1340.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1341.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16540); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16540); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16541); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16541); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1340 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16552); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16553); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16552); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16553); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1340.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16557, mozilla::dom::quota::Severity::Error); return tryResult1340.propagateErr(); } auto indexes = tryResult1340.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1341.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16563, mozilla::dom::quota::Severity::Error); return tryResult1341
.propagateErr(); } spec.objectStores() = tryResult1341.unwrap
();
16541 MOZ_ASSERT(metadata);auto tryResult1341 = (TransformIntoNewArrayAbortOnErr( mMetadata
->mObjectStores, [](const auto& objectStoreEntry) ->
mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata
* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(objectStoreEntry
.GetKey())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16540
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16540); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(metadata)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16541); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 16541); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1340 = (TransformIntoNewArray( metadata->mIndexes
, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata
= indexEntry.GetWeak(); do { static_assert( mozilla::detail::
AssertionConditionType<decltype(indexEntry.GetKey())>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false);
MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16552); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16552); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(indexMetadata)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16553); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { MOZ_CrashSequence(__null, 16553); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16552); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16553); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1340.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16557, mozilla::dom::quota::Severity::Error); return tryResult1340
.propagateErr(); } auto indexes = tryResult1340.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1341.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16540); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16540); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16541); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16541); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1340 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16552); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16553); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16552); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16553); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1340.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16557, mozilla::dom::quota::Severity::Error); return tryResult1340.propagateErr(); } auto indexes = tryResult1340.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1341.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16563, mozilla::dom::quota::Severity::Error); return tryResult1341
.propagateErr(); } spec.objectStores() = tryResult1341.unwrap
();
16542
16543 ObjectStoreSpec objectStoreSpec;auto tryResult1341 = (TransformIntoNewArrayAbortOnErr( mMetadata
->mObjectStores, [](const auto& objectStoreEntry) ->
mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata
* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(objectStoreEntry
.GetKey())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16540
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16540); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(metadata)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16541); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 16541); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1340 = (TransformIntoNewArray( metadata->mIndexes
, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata
= indexEntry.GetWeak(); do { static_assert( mozilla::detail::
AssertionConditionType<decltype(indexEntry.GetKey())>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false);
MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16552); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16552); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(indexMetadata)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16553); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { MOZ_CrashSequence(__null, 16553); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16552); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16553); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1340.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16557, mozilla::dom::quota::Severity::Error); return tryResult1340
.propagateErr(); } auto indexes = tryResult1340.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1341.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16540); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16540); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16541); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16541); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1340 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16552); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16553); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16552); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16553); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1340.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16557, mozilla::dom::quota::Severity::Error); return tryResult1340.propagateErr(); } auto indexes = tryResult1340.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1341.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16563, mozilla::dom::quota::Severity::Error); return tryResult1341
.propagateErr(); } spec.objectStores() = tryResult1341.unwrap
();
16544 objectStoreSpec.metadata() = metadata->mCommonMetadata;auto tryResult1341 = (TransformIntoNewArrayAbortOnErr( mMetadata
->mObjectStores, [](const auto& objectStoreEntry) ->
mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata
* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(objectStoreEntry
.GetKey())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16540
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16540); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(metadata)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16541); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 16541); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1340 = (TransformIntoNewArray( metadata->mIndexes
, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata
= indexEntry.GetWeak(); do { static_assert( mozilla::detail::
AssertionConditionType<decltype(indexEntry.GetKey())>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false);
MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16552); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16552); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(indexMetadata)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16553); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { MOZ_CrashSequence(__null, 16553); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16552); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16553); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1340.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16557, mozilla::dom::quota::Severity::Error); return tryResult1340
.propagateErr(); } auto indexes = tryResult1340.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1341.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16540); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16540); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16541); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16541); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1340 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16552); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16553); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16552); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16553); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1340.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16557, mozilla::dom::quota::Severity::Error); return tryResult1340.propagateErr(); } auto indexes = tryResult1340.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1341.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16563, mozilla::dom::quota::Severity::Error); return tryResult1341
.propagateErr(); } spec.objectStores() = tryResult1341.unwrap
();
16545
16546 QM_TRY_UNWRAP(auto indexes,auto tryResult1341 = (TransformIntoNewArrayAbortOnErr( mMetadata
->mObjectStores, [](const auto& objectStoreEntry) ->
mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata
* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(objectStoreEntry
.GetKey())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16540
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16540); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(metadata)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16541); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 16541); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1340 = (TransformIntoNewArray( metadata->mIndexes
, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata
= indexEntry.GetWeak(); do { static_assert( mozilla::detail::
AssertionConditionType<decltype(indexEntry.GetKey())>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false);
MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16552); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16552); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(indexMetadata)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16553); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { MOZ_CrashSequence(__null, 16553); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16552); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16553); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1340.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16557, mozilla::dom::quota::Severity::Error); return tryResult1340
.propagateErr(); } auto indexes = tryResult1340.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1341.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16540); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16540); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16541); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16541); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1340 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16552); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16553); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16552); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16553); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1340.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16557, mozilla::dom::quota::Severity::Error); return tryResult1340.propagateErr(); } auto indexes = tryResult1340.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1341.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16563, mozilla::dom::quota::Severity::Error); return tryResult1341
.propagateErr(); } spec.objectStores() = tryResult1341.unwrap
();
16547 TransformIntoNewArray(auto tryResult1341 = (TransformIntoNewArrayAbortOnErr( mMetadata
->mObjectStores, [](const auto& objectStoreEntry) ->
mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata
* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(objectStoreEntry
.GetKey())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16540
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16540); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(metadata)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16541); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 16541); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1340 = (TransformIntoNewArray( metadata->mIndexes
, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata
= indexEntry.GetWeak(); do { static_assert( mozilla::detail::
AssertionConditionType<decltype(indexEntry.GetKey())>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false);
MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16552); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16552); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(indexMetadata)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16553); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { MOZ_CrashSequence(__null, 16553); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16552); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16553); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1340.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16557, mozilla::dom::quota::Severity::Error); return tryResult1340
.propagateErr(); } auto indexes = tryResult1340.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1341.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16540); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16540); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16541); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16541); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1340 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16552); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16553); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16552); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16553); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1340.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16557, mozilla::dom::quota::Severity::Error); return tryResult1340.propagateErr(); } auto indexes = tryResult1340.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1341.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16563, mozilla::dom::quota::Severity::Error); return tryResult1341
.propagateErr(); } spec.objectStores() = tryResult1341.unwrap
();
16548 metadata->mIndexes,auto tryResult1341 = (TransformIntoNewArrayAbortOnErr( mMetadata
->mObjectStores, [](const auto& objectStoreEntry) ->
mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata
* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(objectStoreEntry
.GetKey())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16540
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16540); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(metadata)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16541); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 16541); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1340 = (TransformIntoNewArray( metadata->mIndexes
, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata
= indexEntry.GetWeak(); do { static_assert( mozilla::detail::
AssertionConditionType<decltype(indexEntry.GetKey())>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false);
MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16552); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16552); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(indexMetadata)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16553); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { MOZ_CrashSequence(__null, 16553); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16552); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16553); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1340.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16557, mozilla::dom::quota::Severity::Error); return tryResult1340
.propagateErr(); } auto indexes = tryResult1340.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1341.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16540); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16540); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16541); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16541); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1340 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16552); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16553); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16552); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16553); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1340.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16557, mozilla::dom::quota::Severity::Error); return tryResult1340.propagateErr(); } auto indexes = tryResult1340.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1341.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16563, mozilla::dom::quota::Severity::Error); return tryResult1341
.propagateErr(); } spec.objectStores() = tryResult1341.unwrap
();
16549 [](const auto& indexEntry) {auto tryResult1341 = (TransformIntoNewArrayAbortOnErr( mMetadata
->mObjectStores, [](const auto& objectStoreEntry) ->
mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata
* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(objectStoreEntry
.GetKey())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16540
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16540); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(metadata)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16541); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 16541); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1340 = (TransformIntoNewArray( metadata->mIndexes
, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata
= indexEntry.GetWeak(); do { static_assert( mozilla::detail::
AssertionConditionType<decltype(indexEntry.GetKey())>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false);
MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16552); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16552); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(indexMetadata)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16553); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { MOZ_CrashSequence(__null, 16553); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16552); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16553); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1340.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16557, mozilla::dom::quota::Severity::Error); return tryResult1340
.propagateErr(); } auto indexes = tryResult1340.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1341.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16540); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16540); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16541); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16541); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1340 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16552); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16553); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16552); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16553); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1340.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16557, mozilla::dom::quota::Severity::Error); return tryResult1340.propagateErr(); } auto indexes = tryResult1340.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1341.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16563, mozilla::dom::quota::Severity::Error); return tryResult1341
.propagateErr(); } spec.objectStores() = tryResult1341.unwrap
();
16550 FullIndexMetadata* indexMetadata =auto tryResult1341 = (TransformIntoNewArrayAbortOnErr( mMetadata
->mObjectStores, [](const auto& objectStoreEntry) ->
mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata
* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(objectStoreEntry
.GetKey())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16540
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16540); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(metadata)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16541); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 16541); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1340 = (TransformIntoNewArray( metadata->mIndexes
, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata
= indexEntry.GetWeak(); do { static_assert( mozilla::detail::
AssertionConditionType<decltype(indexEntry.GetKey())>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false);
MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16552); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16552); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(indexMetadata)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16553); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { MOZ_CrashSequence(__null, 16553); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16552); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16553); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1340.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16557, mozilla::dom::quota::Severity::Error); return tryResult1340
.propagateErr(); } auto indexes = tryResult1340.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1341.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16540); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16540); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16541); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16541); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1340 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16552); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16553); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16552); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16553); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1340.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16557, mozilla::dom::quota::Severity::Error); return tryResult1340.propagateErr(); } auto indexes = tryResult1340.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1341.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16563, mozilla::dom::quota::Severity::Error); return tryResult1341
.propagateErr(); } spec.objectStores() = tryResult1341.unwrap
();
16551 indexEntry.GetWeak();auto tryResult1341 = (TransformIntoNewArrayAbortOnErr( mMetadata
->mObjectStores, [](const auto& objectStoreEntry) ->
mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata
* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(objectStoreEntry
.GetKey())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16540
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16540); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(metadata)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16541); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 16541); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1340 = (TransformIntoNewArray( metadata->mIndexes
, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata
= indexEntry.GetWeak(); do { static_assert( mozilla::detail::
AssertionConditionType<decltype(indexEntry.GetKey())>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false);
MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16552); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16552); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(indexMetadata)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16553); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { MOZ_CrashSequence(__null, 16553); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16552); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16553); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1340.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16557, mozilla::dom::quota::Severity::Error); return tryResult1340
.propagateErr(); } auto indexes = tryResult1340.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1341.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16540); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16540); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16541); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16541); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1340 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16552); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16553); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16552); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16553); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1340.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16557, mozilla::dom::quota::Severity::Error); return tryResult1340.propagateErr(); } auto indexes = tryResult1340.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1341.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16563, mozilla::dom::quota::Severity::Error); return tryResult1341
.propagateErr(); } spec.objectStores() = tryResult1341.unwrap
();
16552 MOZ_ASSERT(indexEntry.GetKey());auto tryResult1341 = (TransformIntoNewArrayAbortOnErr( mMetadata
->mObjectStores, [](const auto& objectStoreEntry) ->
mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata
* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(objectStoreEntry
.GetKey())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16540
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16540); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(metadata)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16541); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 16541); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1340 = (TransformIntoNewArray( metadata->mIndexes
, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata
= indexEntry.GetWeak(); do { static_assert( mozilla::detail::
AssertionConditionType<decltype(indexEntry.GetKey())>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false);
MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16552); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16552); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(indexMetadata)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16553); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { MOZ_CrashSequence(__null, 16553); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16552); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16553); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1340.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16557, mozilla::dom::quota::Severity::Error); return tryResult1340
.propagateErr(); } auto indexes = tryResult1340.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1341.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16540); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16540); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16541); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16541); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1340 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16552); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16553); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16552); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16553); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1340.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16557, mozilla::dom::quota::Severity::Error); return tryResult1340.propagateErr(); } auto indexes = tryResult1340.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1341.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16563, mozilla::dom::quota::Severity::Error); return tryResult1341
.propagateErr(); } spec.objectStores() = tryResult1341.unwrap
();
16553 MOZ_ASSERT(indexMetadata);auto tryResult1341 = (TransformIntoNewArrayAbortOnErr( mMetadata
->mObjectStores, [](const auto& objectStoreEntry) ->
mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata
* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(objectStoreEntry
.GetKey())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16540
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16540); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(metadata)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16541); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 16541); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1340 = (TransformIntoNewArray( metadata->mIndexes
, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata
= indexEntry.GetWeak(); do { static_assert( mozilla::detail::
AssertionConditionType<decltype(indexEntry.GetKey())>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false);
MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16552); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16552); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(indexMetadata)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16553); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { MOZ_CrashSequence(__null, 16553); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16552); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16553); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1340.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16557, mozilla::dom::quota::Severity::Error); return tryResult1340
.propagateErr(); } auto indexes = tryResult1340.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1341.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16540); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16540); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16541); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16541); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1340 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16552); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16553); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16552); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16553); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1340.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16557, mozilla::dom::quota::Severity::Error); return tryResult1340.propagateErr(); } auto indexes = tryResult1340.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1341.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16563, mozilla::dom::quota::Severity::Error); return tryResult1341
.propagateErr(); } spec.objectStores() = tryResult1341.unwrap
();
16554
16555 return indexMetadata->mCommonMetadata;auto tryResult1341 = (TransformIntoNewArrayAbortOnErr( mMetadata
->mObjectStores, [](const auto& objectStoreEntry) ->
mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata
* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(objectStoreEntry
.GetKey())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16540
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16540); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(metadata)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16541); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 16541); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1340 = (TransformIntoNewArray( metadata->mIndexes
, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata
= indexEntry.GetWeak(); do { static_assert( mozilla::detail::
AssertionConditionType<decltype(indexEntry.GetKey())>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false);
MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16552); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16552); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(indexMetadata)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16553); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { MOZ_CrashSequence(__null, 16553); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16552); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16553); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1340.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16557, mozilla::dom::quota::Severity::Error); return tryResult1340
.propagateErr(); } auto indexes = tryResult1340.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1341.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16540); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16540); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16541); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16541); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1340 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16552); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16553); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16552); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16553); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1340.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16557, mozilla::dom::quota::Severity::Error); return tryResult1340.propagateErr(); } auto indexes = tryResult1340.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1341.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16563, mozilla::dom::quota::Severity::Error); return tryResult1341
.propagateErr(); } spec.objectStores() = tryResult1341.unwrap
();
16556 },auto tryResult1341 = (TransformIntoNewArrayAbortOnErr( mMetadata
->mObjectStores, [](const auto& objectStoreEntry) ->
mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata
* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(objectStoreEntry
.GetKey())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16540
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16540); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(metadata)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16541); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 16541); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1340 = (TransformIntoNewArray( metadata->mIndexes
, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata
= indexEntry.GetWeak(); do { static_assert( mozilla::detail::
AssertionConditionType<decltype(indexEntry.GetKey())>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false);
MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16552); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16552); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(indexMetadata)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16553); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { MOZ_CrashSequence(__null, 16553); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16552); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16553); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1340.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16557, mozilla::dom::quota::Severity::Error); return tryResult1340
.propagateErr(); } auto indexes = tryResult1340.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1341.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16540); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16540); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16541); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16541); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1340 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16552); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16553); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16552); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16553); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1340.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16557, mozilla::dom::quota::Severity::Error); return tryResult1340.propagateErr(); } auto indexes = tryResult1340.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1341.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16563, mozilla::dom::quota::Severity::Error); return tryResult1341
.propagateErr(); } spec.objectStores() = tryResult1341.unwrap
();
16557 fallible));auto tryResult1341 = (TransformIntoNewArrayAbortOnErr( mMetadata
->mObjectStores, [](const auto& objectStoreEntry) ->
mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata
* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(objectStoreEntry
.GetKey())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16540
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16540); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(metadata)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16541); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 16541); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1340 = (TransformIntoNewArray( metadata->mIndexes
, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata
= indexEntry.GetWeak(); do { static_assert( mozilla::detail::
AssertionConditionType<decltype(indexEntry.GetKey())>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false);
MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16552); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16552); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(indexMetadata)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16553); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { MOZ_CrashSequence(__null, 16553); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16552); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16553); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1340.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16557, mozilla::dom::quota::Severity::Error); return tryResult1340
.propagateErr(); } auto indexes = tryResult1340.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1341.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16540); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16540); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16541); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16541); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1340 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16552); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16553); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16552); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16553); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1340.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16557, mozilla::dom::quota::Severity::Error); return tryResult1340.propagateErr(); } auto indexes = tryResult1340.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1341.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16563, mozilla::dom::quota::Severity::Error); return tryResult1341
.propagateErr(); } spec.objectStores() = tryResult1341.unwrap
();
16558
16559 objectStoreSpec.indexes() = std::move(indexes);auto tryResult1341 = (TransformIntoNewArrayAbortOnErr( mMetadata
->mObjectStores, [](const auto& objectStoreEntry) ->
mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata
* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(objectStoreEntry
.GetKey())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16540
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16540); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(metadata)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16541); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 16541); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1340 = (TransformIntoNewArray( metadata->mIndexes
, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata
= indexEntry.GetWeak(); do { static_assert( mozilla::detail::
AssertionConditionType<decltype(indexEntry.GetKey())>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false);
MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16552); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16552); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(indexMetadata)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16553); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { MOZ_CrashSequence(__null, 16553); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16552); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16553); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1340.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16557, mozilla::dom::quota::Severity::Error); return tryResult1340
.propagateErr(); } auto indexes = tryResult1340.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1341.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16540); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16540); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16541); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16541); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1340 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16552); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16553); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16552); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16553); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1340.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16557, mozilla::dom::quota::Severity::Error); return tryResult1340.propagateErr(); } auto indexes = tryResult1340.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1341.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16563, mozilla::dom::quota::Severity::Error); return tryResult1341
.propagateErr(); } spec.objectStores() = tryResult1341.unwrap
();
16560
16561 return objectStoreSpec;auto tryResult1341 = (TransformIntoNewArrayAbortOnErr( mMetadata
->mObjectStores, [](const auto& objectStoreEntry) ->
mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata
* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(objectStoreEntry
.GetKey())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16540
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16540); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(metadata)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16541); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 16541); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1340 = (TransformIntoNewArray( metadata->mIndexes
, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata
= indexEntry.GetWeak(); do { static_assert( mozilla::detail::
AssertionConditionType<decltype(indexEntry.GetKey())>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false);
MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16552); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16552); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(indexMetadata)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16553); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { MOZ_CrashSequence(__null, 16553); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16552); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16553); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1340.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16557, mozilla::dom::quota::Severity::Error); return tryResult1340
.propagateErr(); } auto indexes = tryResult1340.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1341.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16540); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16540); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16541); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16541); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1340 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16552); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16553); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16552); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16553); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1340.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16557, mozilla::dom::quota::Severity::Error); return tryResult1340.propagateErr(); } auto indexes = tryResult1340.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1341.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16563, mozilla::dom::quota::Severity::Error); return tryResult1341
.propagateErr(); } spec.objectStores() = tryResult1341.unwrap
();
16562 },auto tryResult1341 = (TransformIntoNewArrayAbortOnErr( mMetadata
->mObjectStores, [](const auto& objectStoreEntry) ->
mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata
* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(objectStoreEntry
.GetKey())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16540
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16540); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(metadata)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16541); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 16541); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1340 = (TransformIntoNewArray( metadata->mIndexes
, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata
= indexEntry.GetWeak(); do { static_assert( mozilla::detail::
AssertionConditionType<decltype(indexEntry.GetKey())>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false);
MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16552); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16552); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(indexMetadata)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16553); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { MOZ_CrashSequence(__null, 16553); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16552); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16553); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1340.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16557, mozilla::dom::quota::Severity::Error); return tryResult1340
.propagateErr(); } auto indexes = tryResult1340.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1341.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16540); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16540); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16541); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16541); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1340 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16552); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16553); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16552); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16553); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1340.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16557, mozilla::dom::quota::Severity::Error); return tryResult1340.propagateErr(); } auto indexes = tryResult1340.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1341.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16563, mozilla::dom::quota::Severity::Error); return tryResult1341
.propagateErr(); } spec.objectStores() = tryResult1341.unwrap
();
16563 fallible))auto tryResult1341 = (TransformIntoNewArrayAbortOnErr( mMetadata
->mObjectStores, [](const auto& objectStoreEntry) ->
mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata
* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(objectStoreEntry
.GetKey())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16540
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16540); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(metadata)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16541); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 16541); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1340 = (TransformIntoNewArray( metadata->mIndexes
, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata
= indexEntry.GetWeak(); do { static_assert( mozilla::detail::
AssertionConditionType<decltype(indexEntry.GetKey())>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false);
MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16552); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16552); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(indexMetadata)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16553); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { MOZ_CrashSequence(__null, 16553); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16552); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16553); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1340.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16557, mozilla::dom::quota::Severity::Error); return tryResult1340
.propagateErr(); } auto indexes = tryResult1340.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1341.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16540); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16540); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16541); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16541); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1340 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16552); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16553); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16552); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16552); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16553); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16553); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1340.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16557, mozilla::dom::quota::Severity::Error); return tryResult1340.propagateErr(); } auto indexes = tryResult1340.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1341.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16563, mozilla::dom::quota::Severity::Error); return tryResult1341
.propagateErr(); } spec.objectStores() = tryResult1341.unwrap
();
;
16564
16565 return spec;
16566}
16567
16568#ifdef DEBUG1
16569
16570void OpenDatabaseOp::AssertMetadataConsistency(
16571 const FullDatabaseMetadata& aMetadata) {
16572 AssertIsOnBackgroundThread();
16573
16574 const FullDatabaseMetadata& thisDB = *mMetadata;
16575 const FullDatabaseMetadata& otherDB = aMetadata;
16576
16577 MOZ_ASSERT(&thisDB != &otherDB)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(&thisDB != &otherDB)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(&thisDB != &otherDB)
)), 0))) { do { } while (false); MOZ_ReportAssertionFailure("&thisDB != &otherDB"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16577
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "&thisDB != &otherDB"
")"); do { MOZ_CrashSequence(__null, 16577); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16578
16579 MOZ_ASSERT(thisDB.mCommonMetadata.name() == otherDB.mCommonMetadata.name())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisDB.mCommonMetadata.name() == otherDB.mCommonMetadata
.name())>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(thisDB.mCommonMetadata.name() == otherDB.mCommonMetadata
.name()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("thisDB.mCommonMetadata.name() == otherDB.mCommonMetadata.name()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16579
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mCommonMetadata.name() == otherDB.mCommonMetadata.name()"
")"); do { MOZ_CrashSequence(__null, 16579); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16580 MOZ_ASSERT(thisDB.mCommonMetadata.version() ==do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisDB.mCommonMetadata.version() == otherDB.mCommonMetadata
.version())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(thisDB.mCommonMetadata.version() ==
otherDB.mCommonMetadata.version()))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("thisDB.mCommonMetadata.version() == otherDB.mCommonMetadata.version()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16581
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mCommonMetadata.version() == otherDB.mCommonMetadata.version()"
")"); do { MOZ_CrashSequence(__null, 16581); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16581 otherDB.mCommonMetadata.version())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisDB.mCommonMetadata.version() == otherDB.mCommonMetadata
.version())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(thisDB.mCommonMetadata.version() ==
otherDB.mCommonMetadata.version()))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("thisDB.mCommonMetadata.version() == otherDB.mCommonMetadata.version()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16581
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mCommonMetadata.version() == otherDB.mCommonMetadata.version()"
")"); do { MOZ_CrashSequence(__null, 16581); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16582 MOZ_ASSERT(thisDB.mCommonMetadata.persistenceType() ==do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisDB.mCommonMetadata.persistenceType() == otherDB.
mCommonMetadata.persistenceType())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(thisDB.mCommonMetadata.persistenceType
() == otherDB.mCommonMetadata.persistenceType()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("thisDB.mCommonMetadata.persistenceType() == otherDB.mCommonMetadata.persistenceType()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16583
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mCommonMetadata.persistenceType() == otherDB.mCommonMetadata.persistenceType()"
")"); do { MOZ_CrashSequence(__null, 16583); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16583 otherDB.mCommonMetadata.persistenceType())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisDB.mCommonMetadata.persistenceType() == otherDB.
mCommonMetadata.persistenceType())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(thisDB.mCommonMetadata.persistenceType
() == otherDB.mCommonMetadata.persistenceType()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("thisDB.mCommonMetadata.persistenceType() == otherDB.mCommonMetadata.persistenceType()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16583
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mCommonMetadata.persistenceType() == otherDB.mCommonMetadata.persistenceType()"
")"); do { MOZ_CrashSequence(__null, 16583); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16584 MOZ_ASSERT(thisDB.mDatabaseId == otherDB.mDatabaseId)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisDB.mDatabaseId == otherDB.mDatabaseId)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(thisDB.mDatabaseId == otherDB.mDatabaseId))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("thisDB.mDatabaseId == otherDB.mDatabaseId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16584
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mDatabaseId == otherDB.mDatabaseId"
")"); do { MOZ_CrashSequence(__null, 16584); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16585 MOZ_ASSERT(thisDB.mFilePath == otherDB.mFilePath)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisDB.mFilePath == otherDB.mFilePath)>::isValid,
"invalid assertion condition"); if ((__builtin_expect(!!(!(!
!(thisDB.mFilePath == otherDB.mFilePath))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("thisDB.mFilePath == otherDB.mFilePath"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16585
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mFilePath == otherDB.mFilePath"
")"); do { MOZ_CrashSequence(__null, 16585); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16586
16587 // |thisDB| reflects the latest objectStore and index ids that have committed
16588 // to disk. The in-memory metadata |otherDB| keeps track of objectStores and
16589 // indexes that were created and then removed as well, so the next ids for
16590 // |otherDB| may be higher than for |thisDB|.
16591 MOZ_ASSERT(thisDB.mNextObjectStoreId <= otherDB.mNextObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisDB.mNextObjectStoreId <= otherDB.mNextObjectStoreId
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(thisDB.mNextObjectStoreId <= otherDB.mNextObjectStoreId
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"thisDB.mNextObjectStoreId <= otherDB.mNextObjectStoreId",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16591)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mNextObjectStoreId <= otherDB.mNextObjectStoreId"
")"); do { MOZ_CrashSequence(__null, 16591); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16592 MOZ_ASSERT(thisDB.mNextIndexId <= otherDB.mNextIndexId)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisDB.mNextIndexId <= otherDB.mNextIndexId)>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(thisDB.mNextIndexId <= otherDB.mNextIndexId))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("thisDB.mNextIndexId <= otherDB.mNextIndexId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16592
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mNextIndexId <= otherDB.mNextIndexId"
")"); do { MOZ_CrashSequence(__null, 16592); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16593
16594 MOZ_ASSERT(thisDB.mObjectStores.Count() == otherDB.mObjectStores.Count())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisDB.mObjectStores.Count() == otherDB.mObjectStores
.Count())>::isValid, "invalid assertion condition"); if ((
__builtin_expect(!!(!(!!(thisDB.mObjectStores.Count() == otherDB
.mObjectStores.Count()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("thisDB.mObjectStores.Count() == otherDB.mObjectStores.Count()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16594
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mObjectStores.Count() == otherDB.mObjectStores.Count()"
")"); do { MOZ_CrashSequence(__null, 16594); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16595
16596 for (const auto& thisObjectStore : thisDB.mObjectStores.Values()) {
16597 MOZ_ASSERT(thisObjectStore)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisObjectStore)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(thisObjectStore))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("thisObjectStore"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16597
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore" ")"
); do { MOZ_CrashSequence(__null, 16597); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
16598 MOZ_ASSERT(!thisObjectStore->mDeleted)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!thisObjectStore->mDeleted)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!thisObjectStore->mDeleted
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"!thisObjectStore->mDeleted", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16598); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!thisObjectStore->mDeleted"
")"); do { MOZ_CrashSequence(__null, 16598); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16599
16600 auto otherObjectStore = MatchMetadataNameOrId(
16601 otherDB.mObjectStores, thisObjectStore->mCommonMetadata.id());
16602 MOZ_ASSERT(otherObjectStore)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(otherObjectStore)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(otherObjectStore))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("otherObjectStore"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16602
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "otherObjectStore"
")"); do { MOZ_CrashSequence(__null, 16602); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16603
16604 MOZ_ASSERT(thisObjectStore != &otherObjectStore.ref())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisObjectStore != &otherObjectStore.ref())>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(thisObjectStore != &otherObjectStore.ref()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("thisObjectStore != &otherObjectStore.ref()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16604
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore != &otherObjectStore.ref()"
")"); do { MOZ_CrashSequence(__null, 16604); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16605
16606 MOZ_ASSERT(thisObjectStore->mCommonMetadata.id() ==do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisObjectStore->mCommonMetadata.id() == otherObjectStore
->mCommonMetadata.id())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(thisObjectStore->mCommonMetadata
.id() == otherObjectStore->mCommonMetadata.id()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("thisObjectStore->mCommonMetadata.id() == otherObjectStore->mCommonMetadata.id()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16607
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mCommonMetadata.id() == otherObjectStore->mCommonMetadata.id()"
")"); do { MOZ_CrashSequence(__null, 16607); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16607 otherObjectStore->mCommonMetadata.id())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisObjectStore->mCommonMetadata.id() == otherObjectStore
->mCommonMetadata.id())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(thisObjectStore->mCommonMetadata
.id() == otherObjectStore->mCommonMetadata.id()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("thisObjectStore->mCommonMetadata.id() == otherObjectStore->mCommonMetadata.id()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16607
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mCommonMetadata.id() == otherObjectStore->mCommonMetadata.id()"
")"); do { MOZ_CrashSequence(__null, 16607); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16608 MOZ_ASSERT(thisObjectStore->mCommonMetadata.name() ==do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisObjectStore->mCommonMetadata.name() == otherObjectStore
->mCommonMetadata.name())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(thisObjectStore->mCommonMetadata
.name() == otherObjectStore->mCommonMetadata.name()))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("thisObjectStore->mCommonMetadata.name() == otherObjectStore->mCommonMetadata.name()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16609
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mCommonMetadata.name() == otherObjectStore->mCommonMetadata.name()"
")"); do { MOZ_CrashSequence(__null, 16609); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16609 otherObjectStore->mCommonMetadata.name())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisObjectStore->mCommonMetadata.name() == otherObjectStore
->mCommonMetadata.name())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(thisObjectStore->mCommonMetadata
.name() == otherObjectStore->mCommonMetadata.name()))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("thisObjectStore->mCommonMetadata.name() == otherObjectStore->mCommonMetadata.name()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16609
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mCommonMetadata.name() == otherObjectStore->mCommonMetadata.name()"
")"); do { MOZ_CrashSequence(__null, 16609); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16610 MOZ_ASSERT(thisObjectStore->mCommonMetadata.autoIncrement() ==do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisObjectStore->mCommonMetadata.autoIncrement() ==
otherObjectStore->mCommonMetadata.autoIncrement())>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(thisObjectStore->mCommonMetadata.autoIncrement() == otherObjectStore
->mCommonMetadata.autoIncrement()))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("thisObjectStore->mCommonMetadata.autoIncrement() == otherObjectStore->mCommonMetadata.autoIncrement()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16611
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mCommonMetadata.autoIncrement() == otherObjectStore->mCommonMetadata.autoIncrement()"
")"); do { MOZ_CrashSequence(__null, 16611); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16611 otherObjectStore->mCommonMetadata.autoIncrement())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisObjectStore->mCommonMetadata.autoIncrement() ==
otherObjectStore->mCommonMetadata.autoIncrement())>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(thisObjectStore->mCommonMetadata.autoIncrement() == otherObjectStore
->mCommonMetadata.autoIncrement()))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("thisObjectStore->mCommonMetadata.autoIncrement() == otherObjectStore->mCommonMetadata.autoIncrement()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16611
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mCommonMetadata.autoIncrement() == otherObjectStore->mCommonMetadata.autoIncrement()"
")"); do { MOZ_CrashSequence(__null, 16611); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16612 MOZ_ASSERT(thisObjectStore->mCommonMetadata.keyPath() ==do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisObjectStore->mCommonMetadata.keyPath() == otherObjectStore
->mCommonMetadata.keyPath())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(thisObjectStore->mCommonMetadata
.keyPath() == otherObjectStore->mCommonMetadata.keyPath())
)), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thisObjectStore->mCommonMetadata.keyPath() == otherObjectStore->mCommonMetadata.keyPath()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16613
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mCommonMetadata.keyPath() == otherObjectStore->mCommonMetadata.keyPath()"
")"); do { MOZ_CrashSequence(__null, 16613); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16613 otherObjectStore->mCommonMetadata.keyPath())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisObjectStore->mCommonMetadata.keyPath() == otherObjectStore
->mCommonMetadata.keyPath())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(thisObjectStore->mCommonMetadata
.keyPath() == otherObjectStore->mCommonMetadata.keyPath())
)), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thisObjectStore->mCommonMetadata.keyPath() == otherObjectStore->mCommonMetadata.keyPath()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16613
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mCommonMetadata.keyPath() == otherObjectStore->mCommonMetadata.keyPath()"
")"); do { MOZ_CrashSequence(__null, 16613); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16614 // mNextAutoIncrementId and mCommittedAutoIncrementId may be modified
16615 // concurrently with this OpenOp, so it is not possible to assert equality
16616 // here. It's also possible that we've written the new ids to disk but not
16617 // yet updated the in-memory count.
16618 // TODO The first part of the comment should probably be rephrased. I think
16619 // it still applies but it sounds as if this were thread-unsafe like it was
16620 // before, which isn't true anymore.
16621 {
16622 const auto&& thisAutoIncrementIds =
16623 thisObjectStore->mAutoIncrementIds.Lock();
16624 const auto&& otherAutoIncrementIds =
16625 otherObjectStore->mAutoIncrementIds.Lock();
16626
16627 MOZ_ASSERT(thisAutoIncrementIds->next <= otherAutoIncrementIds->next)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisAutoIncrementIds->next <= otherAutoIncrementIds
->next)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(thisAutoIncrementIds->next <=
otherAutoIncrementIds->next))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("thisAutoIncrementIds->next <= otherAutoIncrementIds->next"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16627
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisAutoIncrementIds->next <= otherAutoIncrementIds->next"
")"); do { MOZ_CrashSequence(__null, 16627); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16628 MOZ_ASSERT(do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisAutoIncrementIds->committed <= otherAutoIncrementIds
->committed || thisAutoIncrementIds->committed == otherAutoIncrementIds
->next)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(thisAutoIncrementIds->committed <=
otherAutoIncrementIds->committed || thisAutoIncrementIds->
committed == otherAutoIncrementIds->next))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("thisAutoIncrementIds->committed <= otherAutoIncrementIds->committed || thisAutoIncrementIds->committed == otherAutoIncrementIds->next"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16630
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisAutoIncrementIds->committed <= otherAutoIncrementIds->committed || thisAutoIncrementIds->committed == otherAutoIncrementIds->next"
")"); do { MOZ_CrashSequence(__null, 16630); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16629 thisAutoIncrementIds->committed <= otherAutoIncrementIds->committed ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisAutoIncrementIds->committed <= otherAutoIncrementIds
->committed || thisAutoIncrementIds->committed == otherAutoIncrementIds
->next)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(thisAutoIncrementIds->committed <=
otherAutoIncrementIds->committed || thisAutoIncrementIds->
committed == otherAutoIncrementIds->next))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("thisAutoIncrementIds->committed <= otherAutoIncrementIds->committed || thisAutoIncrementIds->committed == otherAutoIncrementIds->next"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16630
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisAutoIncrementIds->committed <= otherAutoIncrementIds->committed || thisAutoIncrementIds->committed == otherAutoIncrementIds->next"
")"); do { MOZ_CrashSequence(__null, 16630); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16630 thisAutoIncrementIds->committed == otherAutoIncrementIds->next)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisAutoIncrementIds->committed <= otherAutoIncrementIds
->committed || thisAutoIncrementIds->committed == otherAutoIncrementIds
->next)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(thisAutoIncrementIds->committed <=
otherAutoIncrementIds->committed || thisAutoIncrementIds->
committed == otherAutoIncrementIds->next))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("thisAutoIncrementIds->committed <= otherAutoIncrementIds->committed || thisAutoIncrementIds->committed == otherAutoIncrementIds->next"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16630
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisAutoIncrementIds->committed <= otherAutoIncrementIds->committed || thisAutoIncrementIds->committed == otherAutoIncrementIds->next"
")"); do { MOZ_CrashSequence(__null, 16630); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16631 }
16632 MOZ_ASSERT(!otherObjectStore->mDeleted)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!otherObjectStore->mDeleted)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!otherObjectStore->mDeleted
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"!otherObjectStore->mDeleted", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16632); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!otherObjectStore->mDeleted"
")"); do { MOZ_CrashSequence(__null, 16632); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16633
16634 MOZ_ASSERT(thisObjectStore->mIndexes.Count() ==do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisObjectStore->mIndexes.Count() == otherObjectStore
->mIndexes.Count())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(thisObjectStore->mIndexes
.Count() == otherObjectStore->mIndexes.Count()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("thisObjectStore->mIndexes.Count() == otherObjectStore->mIndexes.Count()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16635
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mIndexes.Count() == otherObjectStore->mIndexes.Count()"
")"); do { MOZ_CrashSequence(__null, 16635); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16635 otherObjectStore->mIndexes.Count())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisObjectStore->mIndexes.Count() == otherObjectStore
->mIndexes.Count())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(thisObjectStore->mIndexes
.Count() == otherObjectStore->mIndexes.Count()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("thisObjectStore->mIndexes.Count() == otherObjectStore->mIndexes.Count()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16635
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mIndexes.Count() == otherObjectStore->mIndexes.Count()"
")"); do { MOZ_CrashSequence(__null, 16635); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16636
16637 for (const auto& thisIndex : thisObjectStore->mIndexes.Values()) {
16638 MOZ_ASSERT(thisIndex)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisIndex)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(thisIndex))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("thisIndex", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16638); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex"
")"); do { MOZ_CrashSequence(__null, 16638); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16639 MOZ_ASSERT(!thisIndex->mDeleted)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!thisIndex->mDeleted)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!thisIndex->mDeleted))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!thisIndex->mDeleted"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16639
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!thisIndex->mDeleted"
")"); do { MOZ_CrashSequence(__null, 16639); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16640
16641 auto otherIndex = MatchMetadataNameOrId(otherObjectStore->mIndexes,
16642 thisIndex->mCommonMetadata.id());
16643 MOZ_ASSERT(otherIndex)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(otherIndex)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(otherIndex))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("otherIndex", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16643); AnnotateMozCrashReason("MOZ_ASSERT" "(" "otherIndex"
")"); do { MOZ_CrashSequence(__null, 16643); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16644
16645 MOZ_ASSERT(thisIndex != &otherIndex.ref())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisIndex != &otherIndex.ref())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(thisIndex != &otherIndex
.ref()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("thisIndex != &otherIndex.ref()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex != &otherIndex.ref()"
")"); do { MOZ_CrashSequence(__null, 16645); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16646
16647 MOZ_ASSERT(thisIndex->mCommonMetadata.id() ==do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisIndex->mCommonMetadata.id() == otherIndex->
mCommonMetadata.id())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(thisIndex->mCommonMetadata
.id() == otherIndex->mCommonMetadata.id()))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("thisIndex->mCommonMetadata.id() == otherIndex->mCommonMetadata.id()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16648
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.id() == otherIndex->mCommonMetadata.id()"
")"); do { MOZ_CrashSequence(__null, 16648); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16648 otherIndex->mCommonMetadata.id())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisIndex->mCommonMetadata.id() == otherIndex->
mCommonMetadata.id())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(thisIndex->mCommonMetadata
.id() == otherIndex->mCommonMetadata.id()))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("thisIndex->mCommonMetadata.id() == otherIndex->mCommonMetadata.id()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16648
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.id() == otherIndex->mCommonMetadata.id()"
")"); do { MOZ_CrashSequence(__null, 16648); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16649 MOZ_ASSERT(thisIndex->mCommonMetadata.name() ==do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisIndex->mCommonMetadata.name() == otherIndex->
mCommonMetadata.name())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(thisIndex->mCommonMetadata
.name() == otherIndex->mCommonMetadata.name()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("thisIndex->mCommonMetadata.name() == otherIndex->mCommonMetadata.name()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16650
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.name() == otherIndex->mCommonMetadata.name()"
")"); do { MOZ_CrashSequence(__null, 16650); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16650 otherIndex->mCommonMetadata.name())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisIndex->mCommonMetadata.name() == otherIndex->
mCommonMetadata.name())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(thisIndex->mCommonMetadata
.name() == otherIndex->mCommonMetadata.name()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("thisIndex->mCommonMetadata.name() == otherIndex->mCommonMetadata.name()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16650
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.name() == otherIndex->mCommonMetadata.name()"
")"); do { MOZ_CrashSequence(__null, 16650); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16651 MOZ_ASSERT(thisIndex->mCommonMetadata.keyPath() ==do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisIndex->mCommonMetadata.keyPath() == otherIndex
->mCommonMetadata.keyPath())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(thisIndex->mCommonMetadata
.keyPath() == otherIndex->mCommonMetadata.keyPath()))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("thisIndex->mCommonMetadata.keyPath() == otherIndex->mCommonMetadata.keyPath()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16652
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.keyPath() == otherIndex->mCommonMetadata.keyPath()"
")"); do { MOZ_CrashSequence(__null, 16652); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16652 otherIndex->mCommonMetadata.keyPath())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisIndex->mCommonMetadata.keyPath() == otherIndex
->mCommonMetadata.keyPath())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(thisIndex->mCommonMetadata
.keyPath() == otherIndex->mCommonMetadata.keyPath()))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("thisIndex->mCommonMetadata.keyPath() == otherIndex->mCommonMetadata.keyPath()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16652
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.keyPath() == otherIndex->mCommonMetadata.keyPath()"
")"); do { MOZ_CrashSequence(__null, 16652); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16653 MOZ_ASSERT(thisIndex->mCommonMetadata.unique() ==do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisIndex->mCommonMetadata.unique() == otherIndex
->mCommonMetadata.unique())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(thisIndex->mCommonMetadata
.unique() == otherIndex->mCommonMetadata.unique()))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("thisIndex->mCommonMetadata.unique() == otherIndex->mCommonMetadata.unique()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16654
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.unique() == otherIndex->mCommonMetadata.unique()"
")"); do { MOZ_CrashSequence(__null, 16654); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16654 otherIndex->mCommonMetadata.unique())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisIndex->mCommonMetadata.unique() == otherIndex
->mCommonMetadata.unique())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(thisIndex->mCommonMetadata
.unique() == otherIndex->mCommonMetadata.unique()))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("thisIndex->mCommonMetadata.unique() == otherIndex->mCommonMetadata.unique()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16654
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.unique() == otherIndex->mCommonMetadata.unique()"
")"); do { MOZ_CrashSequence(__null, 16654); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16655 MOZ_ASSERT(thisIndex->mCommonMetadata.multiEntry() ==do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisIndex->mCommonMetadata.multiEntry() == otherIndex
->mCommonMetadata.multiEntry())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(thisIndex->mCommonMetadata
.multiEntry() == otherIndex->mCommonMetadata.multiEntry())
)), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thisIndex->mCommonMetadata.multiEntry() == otherIndex->mCommonMetadata.multiEntry()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16656
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.multiEntry() == otherIndex->mCommonMetadata.multiEntry()"
")"); do { MOZ_CrashSequence(__null, 16656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16656 otherIndex->mCommonMetadata.multiEntry())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisIndex->mCommonMetadata.multiEntry() == otherIndex
->mCommonMetadata.multiEntry())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(thisIndex->mCommonMetadata
.multiEntry() == otherIndex->mCommonMetadata.multiEntry())
)), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thisIndex->mCommonMetadata.multiEntry() == otherIndex->mCommonMetadata.multiEntry()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16656
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.multiEntry() == otherIndex->mCommonMetadata.multiEntry()"
")"); do { MOZ_CrashSequence(__null, 16656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16657 MOZ_ASSERT(!otherIndex->mDeleted)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!otherIndex->mDeleted)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!otherIndex->mDeleted))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("!otherIndex->mDeleted"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16657
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!otherIndex->mDeleted"
")"); do { MOZ_CrashSequence(__null, 16657); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16658 }
16659 }
16660}
16661
16662#endif // DEBUG
16663
16664nsresult OpenDatabaseOp::VersionChangeOp::DoDatabaseWork(
16665 DatabaseConnection* aConnection) {
16666 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16666); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 16666); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16667 aConnection->AssertIsOnConnectionThread();
16668 MOZ_ASSERT(mOpenDatabaseOp)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mOpenDatabaseOp)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOpenDatabaseOp))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mOpenDatabaseOp"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16668
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp" ")"
); do { MOZ_CrashSequence(__null, 16668); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
16669 MOZ_ASSERT(mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16669
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange"
")"); do { MOZ_CrashSequence(__null, 16669); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16670
16671 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16671)
||
16672 !OperationMayProceed()) {
16673 IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16673, idbInternalErrMsg.get()); } while (0)
;
16674 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
16675 }
16676
16677 AUTO_PROFILER_LABEL("OpenDatabaseOp::VersionChangeOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject16677( "OpenDatabaseOp::VersionChangeOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
16678
16679 IDB_LOG_MARK_PARENT_TRANSACTION("Beginning database work", "DB Start",mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" ": " "Beginning database work"
, "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" ": " "DB Start",
mozilla::dom::indexedDB::LoggingIdString<true>(mBackgroundChildLoggingId
).get(), mTransactionLoggingSerialNumber)
16680 IDB_LOG_ID_STRING(mBackgroundChildLoggingId),mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" ": " "Beginning database work"
, "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" ": " "DB Start",
mozilla::dom::indexedDB::LoggingIdString<true>(mBackgroundChildLoggingId
).get(), mTransactionLoggingSerialNumber)
16681 mTransactionLoggingSerialNumber)mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" ": " "Beginning database work"
, "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" ": " "DB Start",
mozilla::dom::indexedDB::LoggingIdString<true>(mBackgroundChildLoggingId
).get(), mTransactionLoggingSerialNumber)
;
16682
16683 Transaction().SetActiveOnConnectionThread();
16684
16685 QM_TRY(MOZ_TO_RESULT({auto tryResult1342 = (ToResult(aConnection->BeginWriteTransaction
(Transaction().GetDurability()))); static_assert(std::is_empty_v
<typename decltype(tryResult1342)::ok_type>); if ((__builtin_expect
(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->BeginWriteTransaction(Transaction().GetDurability()))"
, tryResult1342.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16686, mozilla::dom::quota::Severity::Error); return tryResult1342
.propagateErr(); }}
16686 aConnection->BeginWriteTransaction(Transaction().GetDurability()))){auto tryResult1342 = (ToResult(aConnection->BeginWriteTransaction
(Transaction().GetDurability()))); static_assert(std::is_empty_v
<typename decltype(tryResult1342)::ok_type>); if ((__builtin_expect
(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->BeginWriteTransaction(Transaction().GetDurability()))"
, tryResult1342.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16686, mozilla::dom::quota::Severity::Error); return tryResult1342
.propagateErr(); }}
;
16687
16688 // The parameter names are not used, parameters are bound by index only
16689 // locally in the same function.
16690 QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1344 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE database SET version = :version;"_ns, ([&self =
*this]( mozIStorageStatement& updateStmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1343 = (ToResult(
updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion
)))); static_assert(std::is_empty_v<typename decltype(tryResult1343
)::ok_type>); if ((__builtin_expect(!!(tryResult1343.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))"
, tryResult1343.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16695, mozilla::dom::quota::Severity::Error); return tryResult1343
.propagateErr(); }}; return Ok{}; })))); static_assert(std::is_empty_v
<typename decltype(tryResult1344)::ok_type>); if ((__builtin_expect
(!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE database SET version = :version;\"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1343 = (ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))); static_assert(std::is_empty_v<typename decltype(tryResult1343)::ok_type>); if ((__builtin_expect(!!(tryResult1343.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))\", tryResult1343.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16695, mozilla::dom::quota::Severity::Error); return tryResult1343.propagateErr(); }}; return Ok{}; })))"
, tryResult1344.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16698, mozilla::dom::quota::Severity::Error); return tryResult1344
.propagateErr(); }}
16691 "UPDATE database SET version = :version;"_ns,{auto tryResult1344 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE database SET version = :version;"_ns, ([&self =
*this]( mozIStorageStatement& updateStmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1343 = (ToResult(
updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion
)))); static_assert(std::is_empty_v<typename decltype(tryResult1343
)::ok_type>); if ((__builtin_expect(!!(tryResult1343.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))"
, tryResult1343.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16695, mozilla::dom::quota::Severity::Error); return tryResult1343
.propagateErr(); }}; return Ok{}; })))); static_assert(std::is_empty_v
<typename decltype(tryResult1344)::ok_type>); if ((__builtin_expect
(!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE database SET version = :version;\"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1343 = (ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))); static_assert(std::is_empty_v<typename decltype(tryResult1343)::ok_type>); if ((__builtin_expect(!!(tryResult1343.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))\", tryResult1343.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16695, mozilla::dom::quota::Severity::Error); return tryResult1343.propagateErr(); }}; return Ok{}; })))"
, tryResult1344.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16698, mozilla::dom::quota::Severity::Error); return tryResult1344
.propagateErr(); }}
16692 ([&self = *this]({auto tryResult1344 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE database SET version = :version;"_ns, ([&self =
*this]( mozIStorageStatement& updateStmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1343 = (ToResult(
updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion
)))); static_assert(std::is_empty_v<typename decltype(tryResult1343
)::ok_type>); if ((__builtin_expect(!!(tryResult1343.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))"
, tryResult1343.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16695, mozilla::dom::quota::Severity::Error); return tryResult1343
.propagateErr(); }}; return Ok{}; })))); static_assert(std::is_empty_v
<typename decltype(tryResult1344)::ok_type>); if ((__builtin_expect
(!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE database SET version = :version;\"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1343 = (ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))); static_assert(std::is_empty_v<typename decltype(tryResult1343)::ok_type>); if ((__builtin_expect(!!(tryResult1343.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))\", tryResult1343.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16695, mozilla::dom::quota::Severity::Error); return tryResult1343.propagateErr(); }}; return Ok{}; })))"
, tryResult1344.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16698, mozilla::dom::quota::Severity::Error); return tryResult1344
.propagateErr(); }}
16693 mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> {{auto tryResult1344 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE database SET version = :version;"_ns, ([&self =
*this]( mozIStorageStatement& updateStmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1343 = (ToResult(
updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion
)))); static_assert(std::is_empty_v<typename decltype(tryResult1343
)::ok_type>); if ((__builtin_expect(!!(tryResult1343.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))"
, tryResult1343.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16695, mozilla::dom::quota::Severity::Error); return tryResult1343
.propagateErr(); }}; return Ok{}; })))); static_assert(std::is_empty_v
<typename decltype(tryResult1344)::ok_type>); if ((__builtin_expect
(!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE database SET version = :version;\"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1343 = (ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))); static_assert(std::is_empty_v<typename decltype(tryResult1343)::ok_type>); if ((__builtin_expect(!!(tryResult1343.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))\", tryResult1343.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16695, mozilla::dom::quota::Severity::Error); return tryResult1343.propagateErr(); }}; return Ok{}; })))"
, tryResult1344.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16698, mozilla::dom::quota::Severity::Error); return tryResult1344
.propagateErr(); }}
16694 QM_TRY(MOZ_TO_RESULT({auto tryResult1344 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE database SET version = :version;"_ns, ([&self =
*this]( mozIStorageStatement& updateStmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1343 = (ToResult(
updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion
)))); static_assert(std::is_empty_v<typename decltype(tryResult1343
)::ok_type>); if ((__builtin_expect(!!(tryResult1343.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))"
, tryResult1343.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16695, mozilla::dom::quota::Severity::Error); return tryResult1343
.propagateErr(); }}; return Ok{}; })))); static_assert(std::is_empty_v
<typename decltype(tryResult1344)::ok_type>); if ((__builtin_expect
(!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE database SET version = :version;\"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1343 = (ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))); static_assert(std::is_empty_v<typename decltype(tryResult1343)::ok_type>); if ((__builtin_expect(!!(tryResult1343.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))\", tryResult1343.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16695, mozilla::dom::quota::Severity::Error); return tryResult1343.propagateErr(); }}; return Ok{}; })))"
, tryResult1344.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16698, mozilla::dom::quota::Severity::Error); return tryResult1344
.propagateErr(); }}
16695 updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion))));{auto tryResult1344 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE database SET version = :version;"_ns, ([&self =
*this]( mozIStorageStatement& updateStmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1343 = (ToResult(
updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion
)))); static_assert(std::is_empty_v<typename decltype(tryResult1343
)::ok_type>); if ((__builtin_expect(!!(tryResult1343.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))"
, tryResult1343.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16695, mozilla::dom::quota::Severity::Error); return tryResult1343
.propagateErr(); }}; return Ok{}; })))); static_assert(std::is_empty_v
<typename decltype(tryResult1344)::ok_type>); if ((__builtin_expect
(!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE database SET version = :version;\"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1343 = (ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))); static_assert(std::is_empty_v<typename decltype(tryResult1343)::ok_type>); if ((__builtin_expect(!!(tryResult1343.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))\", tryResult1343.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16695, mozilla::dom::quota::Severity::Error); return tryResult1343.propagateErr(); }}; return Ok{}; })))"
, tryResult1344.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16698, mozilla::dom::quota::Severity::Error); return tryResult1344
.propagateErr(); }}
16696
16697 return Ok{};{auto tryResult1344 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE database SET version = :version;"_ns, ([&self =
*this]( mozIStorageStatement& updateStmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1343 = (ToResult(
updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion
)))); static_assert(std::is_empty_v<typename decltype(tryResult1343
)::ok_type>); if ((__builtin_expect(!!(tryResult1343.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))"
, tryResult1343.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16695, mozilla::dom::quota::Severity::Error); return tryResult1343
.propagateErr(); }}; return Ok{}; })))); static_assert(std::is_empty_v
<typename decltype(tryResult1344)::ok_type>); if ((__builtin_expect
(!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE database SET version = :version;\"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1343 = (ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))); static_assert(std::is_empty_v<typename decltype(tryResult1343)::ok_type>); if ((__builtin_expect(!!(tryResult1343.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))\", tryResult1343.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16695, mozilla::dom::quota::Severity::Error); return tryResult1343.propagateErr(); }}; return Ok{}; })))"
, tryResult1344.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16698, mozilla::dom::quota::Severity::Error); return tryResult1344
.propagateErr(); }}
16698 })))){auto tryResult1344 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE database SET version = :version;"_ns, ([&self =
*this]( mozIStorageStatement& updateStmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1343 = (ToResult(
updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion
)))); static_assert(std::is_empty_v<typename decltype(tryResult1343
)::ok_type>); if ((__builtin_expect(!!(tryResult1343.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))"
, tryResult1343.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16695, mozilla::dom::quota::Severity::Error); return tryResult1343
.propagateErr(); }}; return Ok{}; })))); static_assert(std::is_empty_v
<typename decltype(tryResult1344)::ok_type>); if ((__builtin_expect
(!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE database SET version = :version;\"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1343 = (ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))); static_assert(std::is_empty_v<typename decltype(tryResult1343)::ok_type>); if ((__builtin_expect(!!(tryResult1343.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))\", tryResult1343.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16695, mozilla::dom::quota::Severity::Error); return tryResult1343.propagateErr(); }}; return Ok{}; })))"
, tryResult1344.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16698, mozilla::dom::quota::Severity::Error); return tryResult1344
.propagateErr(); }}
;
16699
16700 return NS_OK;
16701}
16702
16703TransactionOpResult OpenDatabaseOp::VersionChangeOp::SendSuccessResult() {
16704 AssertIsOnOwningThread();
16705 MOZ_ASSERT(mOpenDatabaseOp)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mOpenDatabaseOp)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOpenDatabaseOp))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mOpenDatabaseOp"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16705
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp" ")"
); do { MOZ_CrashSequence(__null, 16705); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
16706 MOZ_ASSERT(mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16706
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange"
")"); do { MOZ_CrashSequence(__null, 16706); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16707 MOZ_ASSERT(mOpenDatabaseOp->mVersionChangeOp == this)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mOpenDatabaseOp->mVersionChangeOp == this)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mOpenDatabaseOp->mVersionChangeOp == this))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mOpenDatabaseOp->mVersionChangeOp == this"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16707
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->mVersionChangeOp == this"
")"); do { MOZ_CrashSequence(__null, 16707); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16708
16709 nsresult rv = mOpenDatabaseOp->SendUpgradeNeeded();
16710 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16710)
) {
16711 return rv;
16712 }
16713
16714 return NS_OK;
16715}
16716
16717bool OpenDatabaseOp::VersionChangeOp::SendFailureResult(
16718 const TransactionOpResult& aResult) {
16719 AssertIsOnOwningThread();
16720 MOZ_ASSERT(mOpenDatabaseOp)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mOpenDatabaseOp)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOpenDatabaseOp))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mOpenDatabaseOp"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16720
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp" ")"
); do { MOZ_CrashSequence(__null, 16720); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
16721 MOZ_ASSERT(mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16721
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange"
")"); do { MOZ_CrashSequence(__null, 16721); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16722 MOZ_ASSERT(mOpenDatabaseOp->mVersionChangeOp == this)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mOpenDatabaseOp->mVersionChangeOp == this)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mOpenDatabaseOp->mVersionChangeOp == this))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mOpenDatabaseOp->mVersionChangeOp == this"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16722
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->mVersionChangeOp == this"
")"); do { MOZ_CrashSequence(__null, 16722); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16723
16724 mOpenDatabaseOp->SetFailureCode(aResult.mCode);
16725 mOpenDatabaseOp->mState = State::SendingResults;
16726
16727 MOZ_ALWAYS_SUCCEEDS(mOpenDatabaseOp->Run())do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(mOpenDatabaseOp->Run())), 1)))), 1))) { } else { do { do {
} while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(mOpenDatabaseOp->Run())"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16727
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mOpenDatabaseOp->Run())"
")"); do { MOZ_CrashSequence(__null, 16727); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
16728
16729 return false;
16730}
16731
16732void OpenDatabaseOp::VersionChangeOp::Cleanup() {
16733 AssertIsOnOwningThread();
16734 MOZ_ASSERT(mOpenDatabaseOp)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mOpenDatabaseOp)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOpenDatabaseOp))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mOpenDatabaseOp"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16734
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp" ")"
); do { MOZ_CrashSequence(__null, 16734); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
16735 MOZ_ASSERT(mOpenDatabaseOp->mVersionChangeOp == this)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mOpenDatabaseOp->mVersionChangeOp == this)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mOpenDatabaseOp->mVersionChangeOp == this))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mOpenDatabaseOp->mVersionChangeOp == this"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16735
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->mVersionChangeOp == this"
")"); do { MOZ_CrashSequence(__null, 16735); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16736
16737 mOpenDatabaseOp->mVersionChangeOp = nullptr;
16738 mOpenDatabaseOp = nullptr;
16739
16740#ifdef DEBUG1
16741 // A bit hacky but the VersionChangeOp is not generated in response to a
16742 // child request like most other database operations. Do this to make our
16743 // assertions happy.
16744 //
16745 // XXX: Depending on timing, in most cases, NoteActorDestroyed will not have
16746 // been destroyed before, but in some cases it has. This should be reworked in
16747 // a way this hack is not necessary. There are also several similar cases in
16748 // other *Op classes.
16749 if (!IsActorDestroyed()) {
16750 NoteActorDestroyed();
16751 }
16752#endif
16753
16754 TransactionDatabaseOperationBase::Cleanup();
16755}
16756
16757nsresult DeleteDatabaseOp::LoadPreviousVersion(nsIFile& aDatabaseFile) {
16758 AssertIsOnIOThread();
16759 MOZ_ASSERT(mState == State::DatabaseWorkOpen)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::DatabaseWorkOpen)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::DatabaseWorkOpen
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State::DatabaseWorkOpen", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16759); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkOpen"
")"); do { MOZ_CrashSequence(__null, 16759); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16760 MOZ_ASSERT(!mPreviousVersion)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mPreviousVersion)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mPreviousVersion))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("!mPreviousVersion"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16760
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mPreviousVersion"
")"); do { MOZ_CrashSequence(__null, 16760); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16761
16762 AUTO_PROFILER_LABEL("DeleteDatabaseOp::LoadPreviousVersion", DOM)mozilla::AutoProfilerLabel raiiObject16762( "DeleteDatabaseOp::LoadPreviousVersion"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
16763
16764 nsresult rv;
16765
16766 nsCOMPtr<mozIStorageService> ss =
16767 do_GetService(MOZ_STORAGE_SERVICE_CONTRACTID"@mozilla.org/storage/service;1", &rv);
16768 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16768)
) {
16769 return NS_OK;
16770 }
16771
16772 IndexedDatabaseManager* const idm = IndexedDatabaseManager::Get();
16773 MOZ_ASSERT(idm)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(idm)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(idm))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("idm", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16773); AnnotateMozCrashReason("MOZ_ASSERT" "(" "idm" ")");
do { MOZ_CrashSequence(__null, 16773); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
16774
16775 const PersistenceType persistenceType =
16776 mCommonParams.metadata().persistenceType();
16777 const nsAString& databaseName = mCommonParams.metadata().name();
16778
16779 SafeRefPtr<DatabaseFileManager> fileManager = idm->GetFileManager(
16780 persistenceType, mOriginMetadata.mOrigin, databaseName);
16781
16782 if (!fileManager) {
16783 QM_TRY_UNWRAP(auto cipherKeyManager,auto tryResult1345 = (DatabaseFileManager::CreateCipherKeyManager
( mOriginMetadata, mInPrivateBrowsing)); if ((__builtin_expect
(!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError
("DatabaseFileManager::CreateCipherKeyManager( mOriginMetadata, mInPrivateBrowsing)"
, tryResult1345.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16785, mozilla::dom::quota::Severity::Error); return tryResult1345
.propagateErr(); } auto cipherKeyManager = tryResult1345.unwrap
();
16784 DatabaseFileManager::CreateCipherKeyManager(auto tryResult1345 = (DatabaseFileManager::CreateCipherKeyManager
( mOriginMetadata, mInPrivateBrowsing)); if ((__builtin_expect
(!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError
("DatabaseFileManager::CreateCipherKeyManager( mOriginMetadata, mInPrivateBrowsing)"
, tryResult1345.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16785, mozilla::dom::quota::Severity::Error); return tryResult1345
.propagateErr(); } auto cipherKeyManager = tryResult1345.unwrap
();
16785 mOriginMetadata, mInPrivateBrowsing))auto tryResult1345 = (DatabaseFileManager::CreateCipherKeyManager
( mOriginMetadata, mInPrivateBrowsing)); if ((__builtin_expect
(!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError
("DatabaseFileManager::CreateCipherKeyManager( mOriginMetadata, mInPrivateBrowsing)"
, tryResult1345.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16785, mozilla::dom::quota::Severity::Error); return tryResult1345
.propagateErr(); } auto cipherKeyManager = tryResult1345.unwrap
();
;
16786 fileManager = MakeSafeRefPtr<DatabaseFileManager>(
16787 persistenceType, mOriginMetadata, databaseName, mDatabaseId.ref(),
16788 mDatabaseFilePath.ref(), mEnforcingQuota, mInPrivateBrowsing,
16789 std::move(cipherKeyManager));
16790 }
16791
16792 Maybe<CipherKey> maybeKey;
16793 if (fileManager->UsesEncryption()) {
16794 QM_TRY_UNWRAP(auto key, fileManager->MutableCipherKeyManagerRef().Ensure(auto tryResult1346 = (fileManager->MutableCipherKeyManagerRef
().Ensure( fileManager->CipherKeyIdForDatabase())); if ((__builtin_expect
(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError
("fileManager->MutableCipherKeyManagerRef().Ensure( fileManager->CipherKeyIdForDatabase())"
, tryResult1346.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16795, mozilla::dom::quota::Severity::Error); return tryResult1346
.propagateErr(); } auto key = tryResult1346.unwrap();
16795 fileManager->CipherKeyIdForDatabase()))auto tryResult1346 = (fileManager->MutableCipherKeyManagerRef
().Ensure( fileManager->CipherKeyIdForDatabase())); if ((__builtin_expect
(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError
("fileManager->MutableCipherKeyManagerRef().Ensure( fileManager->CipherKeyIdForDatabase())"
, tryResult1346.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16795, mozilla::dom::quota::Severity::Error); return tryResult1346
.propagateErr(); } auto key = tryResult1346.unwrap();
;
16796 maybeKey = Some(key);
16797 }
16798
16799 MOZ_RELEASE_ASSERT(!(mInPrivateBrowsing && maybeKey.isNothing()))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!(mInPrivateBrowsing && maybeKey.isNothing()
))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!(mInPrivateBrowsing && maybeKey.isNothing()
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!(mInPrivateBrowsing && maybeKey.isNothing())", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16799); AnnotateMozCrashReason("MOZ_RELEASE_ASSERT" "(" "!(mInPrivateBrowsing && maybeKey.isNothing())"
")"); do { MOZ_CrashSequence(__null, 16799); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16800
16801 // Pass -1 as the directoryLockId to disable quota checking, since we might
16802 // temporarily exceed quota before deleting the database.
16803 QM_TRY_INSPECT(const auto& dbFileUrl,auto tryResult1347 = (GetDatabaseFileURL(aDatabaseFile, -1, maybeKey
)); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { [
[maybe_unused]] auto tryTempError = tryResult1347.unwrapErr()
; mozilla::dom::quota::HandleError("GetDatabaseFileURL(aDatabaseFile, -1, maybeKey)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16804, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "GetDatabaseFileURL(aDatabaseFile, -1, maybeKey)"
, tryTempError, NS_OK); } const auto& dbFileUrl = tryResult1347
.inspect();
16804 GetDatabaseFileURL(aDatabaseFile, -1, maybeKey), NS_OK)auto tryResult1347 = (GetDatabaseFileURL(aDatabaseFile, -1, maybeKey
)); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { [
[maybe_unused]] auto tryTempError = tryResult1347.unwrapErr()
; mozilla::dom::quota::HandleError("GetDatabaseFileURL(aDatabaseFile, -1, maybeKey)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16804, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "GetDatabaseFileURL(aDatabaseFile, -1, maybeKey)"
, tryTempError, NS_OK); } const auto& dbFileUrl = tryResult1347
.inspect();
;
16805
16806 QM_TRY_UNWRAP(const NotNull<nsCOMPtr<mozIStorageConnection>> connection,auto tryResult1348 = (OpenDatabaseAndHandleBusy(*ss, *dbFileUrl
)); if ((__builtin_expect(!!(tryResult1348.isErr()), 0))) { [
[maybe_unused]] auto tryTempError = tryResult1348.unwrapErr()
; mozilla::dom::quota::HandleError("OpenDatabaseAndHandleBusy(*ss, *dbFileUrl)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16807, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OpenDatabaseAndHandleBusy(*ss, *dbFileUrl)"
, tryTempError, NS_OK); } const NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1348.unwrap();
16807 OpenDatabaseAndHandleBusy(*ss, *dbFileUrl), NS_OK)auto tryResult1348 = (OpenDatabaseAndHandleBusy(*ss, *dbFileUrl
)); if ((__builtin_expect(!!(tryResult1348.isErr()), 0))) { [
[maybe_unused]] auto tryTempError = tryResult1348.unwrapErr()
; mozilla::dom::quota::HandleError("OpenDatabaseAndHandleBusy(*ss, *dbFileUrl)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16807, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OpenDatabaseAndHandleBusy(*ss, *dbFileUrl)"
, tryTempError, NS_OK); } const NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1348.unwrap();
;
16808
16809 // Unreadable metadata must not prevent removal of a damaged database.
16810 QM_TRY_INSPECT(const auto& nameStmt,auto tryResult1349 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1349.isErr()), 0))) { [
[maybe_unused]] auto tryTempError = tryResult1349.unwrapErr()
; mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name FROM database\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16814, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name FROM database\"_ns)"
, tryTempError, NS_OK); } const auto& nameStmt = tryResult1349
.inspect();
16811 CreateAndExecuteSingleStepStatement<auto tryResult1349 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1349.isErr()), 0))) { [
[maybe_unused]] auto tryTempError = tryResult1349.unwrapErr()
; mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name FROM database\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16814, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name FROM database\"_ns)"
, tryTempError, NS_OK); } const auto& nameStmt = tryResult1349
.inspect();
16812 SingleStepResult::ReturnNullIfNoResult>(auto tryResult1349 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1349.isErr()), 0))) { [
[maybe_unused]] auto tryTempError = tryResult1349.unwrapErr()
; mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name FROM database\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16814, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name FROM database\"_ns)"
, tryTempError, NS_OK); } const auto& nameStmt = tryResult1349
.inspect();
16813 *connection, "SELECT name FROM database"_ns),auto tryResult1349 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1349.isErr()), 0))) { [
[maybe_unused]] auto tryTempError = tryResult1349.unwrapErr()
; mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name FROM database\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16814, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name FROM database\"_ns)"
, tryTempError, NS_OK); } const auto& nameStmt = tryResult1349
.inspect();
16814 NS_OK)auto tryResult1349 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1349.isErr()), 0))) { [
[maybe_unused]] auto tryTempError = tryResult1349.unwrapErr()
; mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name FROM database\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16814, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name FROM database\"_ns)"
, tryTempError, NS_OK); } const auto& nameStmt = tryResult1349
.inspect();
;
16815 QM_TRY(OkIf(nameStmt), NS_OK){auto tryResult1350 = (OkIf(nameStmt)); static_assert(std::is_empty_v
<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect
(!!(tryResult1350.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1350.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(nameStmt)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16815, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(nameStmt)", tryTempError
, NS_OK); }}
;
16816 QM_TRY_INSPECT(auto tryResult1351 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(nameStmt)>::GetString), (nameStmt), 0)); if ((__builtin_expect
(!!(tryResult1351.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1351.unwrapErr(); mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(nameStmt)>::GetString), (nameStmt), 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16819, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(nameStmt)>::GetString), (nameStmt), 0)"
, tryTempError, NS_OK); } const auto& storedName = tryResult1351
.inspect();
16817 const auto& storedName,auto tryResult1351 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(nameStmt)>::GetString), (nameStmt), 0)); if ((__builtin_expect
(!!(tryResult1351.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1351.unwrapErr(); mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(nameStmt)>::GetString), (nameStmt), 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16819, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(nameStmt)>::GetString), (nameStmt), 0)"
, tryTempError, NS_OK); } const auto& storedName = tryResult1351
.inspect();
16818 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsString, nameStmt, GetString, 0),auto tryResult1351 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(nameStmt)>::GetString), (nameStmt), 0)); if ((__builtin_expect
(!!(tryResult1351.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1351.unwrapErr(); mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(nameStmt)>::GetString), (nameStmt), 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16819, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(nameStmt)>::GetString), (nameStmt), 0)"
, tryTempError, NS_OK); } const auto& storedName = tryResult1351
.inspect();
16819 NS_OK)auto tryResult1351 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(nameStmt)>::GetString), (nameStmt), 0)); if ((__builtin_expect
(!!(tryResult1351.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1351.unwrapErr(); mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(nameStmt)>::GetString), (nameStmt), 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16819, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(nameStmt)>::GetString), (nameStmt), 0)"
, tryTempError, NS_OK); } const auto& storedName = tryResult1351
.inspect();
;
16820 QM_TRY(OkIf(databaseName == storedName), NS_ERROR_FILE_CORRUPTED){auto tryResult1352 = (OkIf(databaseName == storedName)); static_assert
(std::is_empty_v<typename decltype(tryResult1352)::ok_type
>); if ((__builtin_expect(!!(tryResult1352.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1352.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(databaseName == storedName)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16820, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(databaseName == storedName)"
, tryTempError, NS_ERROR_FILE_CORRUPTED); }}
;
16821
16822 QM_TRY_INSPECT(const auto& stmt,auto tryResult1353 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT version FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1353.isErr()), 0))) { [
[maybe_unused]] auto tryTempError = tryResult1353.unwrapErr()
; mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT version FROM database\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16826, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT version FROM database\"_ns)"
, tryTempError, NS_OK); } const auto& stmt = tryResult1353
.inspect();
16823 CreateAndExecuteSingleStepStatement<auto tryResult1353 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT version FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1353.isErr()), 0))) { [
[maybe_unused]] auto tryTempError = tryResult1353.unwrapErr()
; mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT version FROM database\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16826, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT version FROM database\"_ns)"
, tryTempError, NS_OK); } const auto& stmt = tryResult1353
.inspect();
16824 SingleStepResult::ReturnNullIfNoResult>(auto tryResult1353 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT version FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1353.isErr()), 0))) { [
[maybe_unused]] auto tryTempError = tryResult1353.unwrapErr()
; mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT version FROM database\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16826, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT version FROM database\"_ns)"
, tryTempError, NS_OK); } const auto& stmt = tryResult1353
.inspect();
16825 *connection, "SELECT version FROM database"_ns),auto tryResult1353 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT version FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1353.isErr()), 0))) { [
[maybe_unused]] auto tryTempError = tryResult1353.unwrapErr()
; mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT version FROM database\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16826, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT version FROM database\"_ns)"
, tryTempError, NS_OK); } const auto& stmt = tryResult1353
.inspect();
16826 NS_OK)auto tryResult1353 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT version FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1353.isErr()), 0))) { [
[maybe_unused]] auto tryTempError = tryResult1353.unwrapErr()
; mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT version FROM database\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16826, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT version FROM database\"_ns)"
, tryTempError, NS_OK); } const auto& stmt = tryResult1353
.inspect();
;
16827
16828 QM_TRY(OkIf(stmt), NS_OK){auto tryResult1354 = (OkIf(stmt)); static_assert(std::is_empty_v
<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect
(!!(tryResult1354.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1354.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(stmt)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16828, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(stmt)", tryTempError
, NS_OK); }}
;
16829
16830 int64_t version;
16831 rv = stmt->GetInt64(0, &version);
16832 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16832)
) {
16833 return NS_OK;
16834 }
16835
16836 mPreviousVersion = uint64_t(version);
16837 return NS_OK;
16838}
16839
16840nsresult DeleteDatabaseOp::DatabaseOpen() {
16841 AssertIsOnOwningThread();
16842 MOZ_ASSERT(mState == State::DatabaseOpenPending)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::DatabaseOpenPending)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::DatabaseOpenPending
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State::DatabaseOpenPending", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16842); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseOpenPending"
")"); do { MOZ_CrashSequence(__null, 16842); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16843
16844 nsresult rv = SendToIOThread();
16845 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16845)
) {
16846 return rv;
16847 }
16848
16849 return NS_OK;
16850}
16851
16852nsresult DeleteDatabaseOp::DoDatabaseWork() {
16853 AssertIsOnIOThread();
16854 MOZ_ASSERT(mState == State::DatabaseWorkOpen)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::DatabaseWorkOpen)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::DatabaseWorkOpen
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State::DatabaseWorkOpen", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16854); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkOpen"
")"); do { MOZ_CrashSequence(__null, 16854); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16855 MOZ_ASSERT(mOriginMetadata.mPersistenceType ==do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mOriginMetadata.mPersistenceType == mCommonParams.metadata
().persistenceType())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOriginMetadata.mPersistenceType
== mCommonParams.metadata().persistenceType()))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mOriginMetadata.mPersistenceType == mCommonParams.metadata().persistenceType()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16856
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOriginMetadata.mPersistenceType == mCommonParams.metadata().persistenceType()"
")"); do { MOZ_CrashSequence(__null, 16856); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16856 mCommonParams.metadata().persistenceType())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mOriginMetadata.mPersistenceType == mCommonParams.metadata
().persistenceType())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOriginMetadata.mPersistenceType
== mCommonParams.metadata().persistenceType()))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mOriginMetadata.mPersistenceType == mCommonParams.metadata().persistenceType()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16856
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOriginMetadata.mPersistenceType == mCommonParams.metadata().persistenceType()"
")"); do { MOZ_CrashSequence(__null, 16856); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16857
16858 AUTO_PROFILER_LABEL("DeleteDatabaseOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject16858( "DeleteDatabaseOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
16859
16860 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16860)
||
16861 !OperationMayProceed()) {
16862 IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16862, idbInternalErrMsg.get()); } while (0)
;
16863 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
16864 }
16865
16866 QuotaManager* const quotaManager = QuotaManager::Get();
16867 MOZ_ASSERT(quotaManager)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(quotaManager)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(quotaManager))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("quotaManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16867); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { MOZ_CrashSequence(__null, 16867); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16868
16869 QM_TRY_UNWRAP(auto directory,auto tryResult1355 = (quotaManager->GetOriginDirectory(mOriginMetadata
)); if ((__builtin_expect(!!(tryResult1355.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)"
, tryResult1355.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16870, mozilla::dom::quota::Severity::Error); return tryResult1355
.propagateErr(); } auto directory = tryResult1355.unwrap();
16870 quotaManager->GetOriginDirectory(mOriginMetadata))auto tryResult1355 = (quotaManager->GetOriginDirectory(mOriginMetadata
)); if ((__builtin_expect(!!(tryResult1355.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)"
, tryResult1355.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16870, mozilla::dom::quota::Severity::Error); return tryResult1355
.propagateErr(); } auto directory = tryResult1355.unwrap();
;
16871
16872 QM_TRY(MOZ_TO_RESULT({auto tryResult1356 = (ToResult(directory->Append(static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1356
)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(directory->Append(static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1356.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16873, mozilla::dom::quota::Severity::Error); return tryResult1356
.propagateErr(); }}
16873 directory->Append(NS_LITERAL_STRING_FROM_CSTRING(IDB_DIRECTORY_NAME)))){auto tryResult1356 = (ToResult(directory->Append(static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1356
)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(directory->Append(static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1356.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16873, mozilla::dom::quota::Severity::Error); return tryResult1356
.propagateErr(); }}
;
16874
16875 QM_TRY_UNWRAP(mDatabaseDirectoryPath, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1357 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(directory)>::GetPath), (directory) )); if ((__builtin_expect
(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(directory)>::GetPath), (directory) )"
, tryResult1357.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16876, mozilla::dom::quota::Severity::Error); return tryResult1357
.propagateErr(); } mDatabaseDirectoryPath = tryResult1357.unwrap
();
16876 nsString, directory, GetPath))auto tryResult1357 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(directory)>::GetPath), (directory) )); if ((__builtin_expect
(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(directory)>::GetPath), (directory) )"
, tryResult1357.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16876, mozilla::dom::quota::Severity::Error); return tryResult1357
.propagateErr(); } mDatabaseDirectoryPath = tryResult1357.unwrap
();
;
16877
16878 QM_TRY_INSPECT(auto tryResult1358 = (CloneFileAndAppend(*directory, *mDatabaseFilenameBase
+ kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1358.isErr
()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, *mDatabaseFilenameBase + kSQLiteSuffix)"
, tryResult1358.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16880, mozilla::dom::quota::Severity::Error); return tryResult1358
.propagateErr(); } const auto& dbFile = tryResult1358.inspect
();
16879 const auto& dbFile,auto tryResult1358 = (CloneFileAndAppend(*directory, *mDatabaseFilenameBase
+ kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1358.isErr
()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, *mDatabaseFilenameBase + kSQLiteSuffix)"
, tryResult1358.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16880, mozilla::dom::quota::Severity::Error); return tryResult1358
.propagateErr(); } const auto& dbFile = tryResult1358.inspect
();
16880 CloneFileAndAppend(*directory, *mDatabaseFilenameBase + kSQLiteSuffix))auto tryResult1358 = (CloneFileAndAppend(*directory, *mDatabaseFilenameBase
+ kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1358.isErr
()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, *mDatabaseFilenameBase + kSQLiteSuffix)"
, tryResult1358.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16880, mozilla::dom::quota::Severity::Error); return tryResult1358
.propagateErr(); } const auto& dbFile = tryResult1358.inspect
();
;
16881
16882#ifdef DEBUG1
16883 {
16884 QM_TRY_INSPECT(auto tryResult1359 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect(!!
(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )"
, tryResult1359.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16886, mozilla::dom::quota::Severity::Error); return tryResult1359
.propagateErr(); } const auto& databaseFilePath = tryResult1359
.inspect();
16885 const auto& databaseFilePath,auto tryResult1359 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect(!!
(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )"
, tryResult1359.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16886, mozilla::dom::quota::Severity::Error); return tryResult1359
.propagateErr(); } const auto& databaseFilePath = tryResult1359
.inspect();
16886 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsString, dbFile, GetPath))auto tryResult1359 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect(!!
(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )"
, tryResult1359.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16886, mozilla::dom::quota::Severity::Error); return tryResult1359
.propagateErr(); } const auto& databaseFilePath = tryResult1359
.inspect();
;
16887
16888 MOZ_ASSERT(databaseFilePath == mDatabaseFilePath.ref())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(databaseFilePath == mDatabaseFilePath.ref())>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(databaseFilePath == mDatabaseFilePath.ref()))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("databaseFilePath == mDatabaseFilePath.ref()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16888
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "databaseFilePath == mDatabaseFilePath.ref()"
")"); do { MOZ_CrashSequence(__null, 16888); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16889 }
16890#endif
16891
16892 QM_TRY_INSPECT(const bool& exists,auto tryResult1360 = (::mozilla::ToResultInvokeMember( (dbFile
), &::mozilla::detail::DerefedType<decltype(dbFile)>
::Exists )); if ((__builtin_expect(!!(tryResult1360.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (dbFile), &::mozilla::detail::DerefedType<decltype(dbFile)>::Exists )"
, tryResult1360.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16893, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); } const bool& exists = tryResult1360.inspect
();
16893 MOZ_TO_RESULT_INVOKE_MEMBER(dbFile, Exists))auto tryResult1360 = (::mozilla::ToResultInvokeMember( (dbFile
), &::mozilla::detail::DerefedType<decltype(dbFile)>
::Exists )); if ((__builtin_expect(!!(tryResult1360.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (dbFile), &::mozilla::detail::DerefedType<decltype(dbFile)>::Exists )"
, tryResult1360.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16893, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); } const bool& exists = tryResult1360.inspect
();
;
16894
16895 if (exists) {
16896 // Parts of this function may fail but that shouldn't prevent us from
16897 // deleting the file eventually.
16898 QM_TRY(MOZ_TO_RESULT(LoadPreviousVersion(*dbFile))){auto tryResult1361 = (ToResult(LoadPreviousVersion(*dbFile))
); static_assert(std::is_empty_v<typename decltype(tryResult1361
)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(LoadPreviousVersion(*dbFile))"
, tryResult1361.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16898, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}
;
16899
16900 mState = State::BeginVersionChange;
16901 } else {
16902 mState = State::SendingResults;
16903 }
16904
16905 QM_TRY(MOZ_TO_RESULT({auto tryResult1362 = (ToResult(DispatchThisAfterProcessingCurrentEvent
(mOwningEventTarget))); static_assert(std::is_empty_v<typename
decltype(tryResult1362)::ok_type>); if ((__builtin_expect
(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))"
, tryResult1362.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16906, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}
16906 DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))){auto tryResult1362 = (ToResult(DispatchThisAfterProcessingCurrentEvent
(mOwningEventTarget))); static_assert(std::is_empty_v<typename
decltype(tryResult1362)::ok_type>); if ((__builtin_expect
(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))"
, tryResult1362.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16906, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}
;
16907
16908 return NS_OK;
16909}
16910
16911nsresult DeleteDatabaseOp::BeginVersionChange() {
16912 AssertIsOnOwningThread();
16913 MOZ_ASSERT(mState == State::BeginVersionChange)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::BeginVersionChange)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::BeginVersionChange
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State::BeginVersionChange", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16913); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginVersionChange"
")"); do { MOZ_CrashSequence(__null, 16913); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16914 MOZ_ASSERT(mMaybeBlockedDatabases.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMaybeBlockedDatabases.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mMaybeBlockedDatabases.IsEmpty
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mMaybeBlockedDatabases.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16914); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 16914); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16915
16916 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread
(), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16916)
||
16917 IsActorDestroyed()) {
16918 IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16918, idbInternalErrMsg.get()); } while (0)
;
16919 QM_TRY(MOZ_TO_RESULT(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)){auto tryResult1363 = (ToResult(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
)); static_assert(std::is_empty_v<typename decltype(tryResult1363
)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)"
, tryResult1363.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16919, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}
;
16920 }
16921
16922 DatabaseActorInfo* info;
16923 if (gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info)) {
16924 MOZ_ASSERT(!info->mWaitingFactoryOp)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!info->mWaitingFactoryOp)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!info->mWaitingFactoryOp)
)), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!info->mWaitingFactoryOp"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16924
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp"
")"); do { MOZ_CrashSequence(__null, 16924); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16925
16926 nsresult rv =
16927 SendVersionChangeMessages(info, Nothing(), mPreviousVersion, Nothing());
16928 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16928)
) {
16929 return rv;
16930 }
16931
16932 if (!mMaybeBlockedDatabases.IsEmpty()) {
16933 // If the actor gets destroyed, mWaitingFactoryOp will hold the last
16934 // strong reference to us.
16935 info->mWaitingFactoryOp = this;
16936
16937 mState = State::WaitingForOtherDatabasesToClose;
16938 return NS_OK;
16939 }
16940 }
16941
16942 // No other databases need to be notified, just make sure that all
16943 // transactions are complete.
16944 WaitForTransactions();
16945 return NS_OK;
16946}
16947
16948bool DeleteDatabaseOp::AreActorsAlive() {
16949 AssertIsOnOwningThread();
16950
16951 return !IsActorDestroyed();
16952}
16953
16954nsresult DeleteDatabaseOp::DispatchToWorkThread() {
16955 AssertIsOnOwningThread();
16956 MOZ_ASSERT(mState == State::WaitingForTransactionsToComplete)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::WaitingForTransactionsToComplete)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mState == State::WaitingForTransactionsToComplete)))
, 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::WaitingForTransactionsToComplete"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16956
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::WaitingForTransactionsToComplete"
")"); do { MOZ_CrashSequence(__null, 16956); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16957 MOZ_ASSERT(mMaybeBlockedDatabases.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMaybeBlockedDatabases.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mMaybeBlockedDatabases.IsEmpty
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mMaybeBlockedDatabases.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16957); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 16957); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16958
16959 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread
(), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16959)
||
16960 IsActorDestroyed()) {
16961 IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16961, idbInternalErrMsg.get()); } while (0)
;
16962 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
16963 }
16964
16965 mState = State::DatabaseWorkVersionChange;
16966
16967 RefPtr<VersionChangeOp> versionChangeOp = new VersionChangeOp(this);
16968
16969 QuotaManager* const quotaManager = QuotaManager::Get();
16970 MOZ_ASSERT(quotaManager)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(quotaManager)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(quotaManager))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("quotaManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16970); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { MOZ_CrashSequence(__null, 16970); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16971
16972 nsresult rv = quotaManager->IOThread()->Dispatch(versionChangeOp.forget(),
16973 NS_DISPATCH_NORMALnsIEventTarget::DISPATCH_NORMAL);
16974 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16974)
) {
16975 IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16975, idbInternalErrMsg.get()); } while (0)
;
16976 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
16977 }
16978
16979 return NS_OK;
16980}
16981
16982void DeleteDatabaseOp::SendBlockedNotification() {
16983 AssertIsOnOwningThread();
16984 MOZ_ASSERT(mState == State::WaitingForOtherDatabasesToClose)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::WaitingForOtherDatabasesToClose)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mState == State::WaitingForOtherDatabasesToClose))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::WaitingForOtherDatabasesToClose"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16984
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::WaitingForOtherDatabasesToClose"
")"); do { MOZ_CrashSequence(__null, 16984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16985
16986 if (!IsActorDestroyed()) {
16987 (void)SendBlocked(mPreviousVersion);
16988 }
16989}
16990
16991nsresult DeleteDatabaseOp::DoVersionUpdate() {
16992 MOZ_CRASH("Not implemented because this should be unreachable.")do { do { } while (false); MOZ_ReportCrash("" "Not implemented because this should be unreachable."
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16992
); AnnotateMozCrashReason("MOZ_CRASH(" "Not implemented because this should be unreachable."
")"); do { MOZ_CrashSequence(__null, 16992); __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
16993}
16994
16995void DeleteDatabaseOp::SendResults() {
16996 AssertIsOnOwningThread();
16997 MOZ_ASSERT(mState == State::SendingResults)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::SendingResults)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::SendingResults
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State::SendingResults", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16997); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::SendingResults"
")"); do { MOZ_CrashSequence(__null, 16997); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16998 MOZ_ASSERT(mMaybeBlockedDatabases.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMaybeBlockedDatabases.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mMaybeBlockedDatabases.IsEmpty
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mMaybeBlockedDatabases.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16998); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 16998); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16999
17000 DebugOnly<DatabaseActorInfo*> info = nullptr;
17001 MOZ_ASSERT_IF(mDatabaseId.isSome() && gLiveDatabaseHashtable &&do { if (mDatabaseId.isSome() && gLiveDatabaseHashtable
&& gLiveDatabaseHashtable->Get(mDatabaseId.ref(),
&info)) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(!info->mWaitingFactoryOp)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!info->mWaitingFactoryOp)
)), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!info->mWaitingFactoryOp"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17003
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp"
")"); do { MOZ_CrashSequence(__null, 17003); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
17002 gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info),do { if (mDatabaseId.isSome() && gLiveDatabaseHashtable
&& gLiveDatabaseHashtable->Get(mDatabaseId.ref(),
&info)) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(!info->mWaitingFactoryOp)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!info->mWaitingFactoryOp)
)), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!info->mWaitingFactoryOp"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17003
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp"
")"); do { MOZ_CrashSequence(__null, 17003); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
17003 !info->mWaitingFactoryOp)do { if (mDatabaseId.isSome() && gLiveDatabaseHashtable
&& gLiveDatabaseHashtable->Get(mDatabaseId.ref(),
&info)) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(!info->mWaitingFactoryOp)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!info->mWaitingFactoryOp)
)), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!info->mWaitingFactoryOp"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17003
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp"
")"); do { MOZ_CrashSequence(__null, 17003); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
17004
17005 if (!IsActorDestroyed()) {
17006 FactoryRequestResponse response;
17007
17008 if (!HasFailed()) {
17009 response = DeleteDatabaseRequestResponse(mPreviousVersion);
17010 } else {
17011 response = ClampResultCode(ResultCode());
17012 }
17013
17014 (void)PBackgroundIDBFactoryRequestParent::Send__delete__(this, response);
17015 }
17016
17017 {
17018 auto destroyingDirectoryLockHandle = std::move(mDirectoryLockHandle);
17019 }
17020
17021 CleanupMetadata();
17022
17023 FinishSendResults();
17024}
17025
17026nsresult DeleteDatabaseOp::VersionChangeOp::RunOnIOThread() {
17027 AssertIsOnIOThread();
17028 MOZ_ASSERT(mDeleteDatabaseOp->mState == State::DatabaseWorkVersionChange)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDeleteDatabaseOp->mState == State::DatabaseWorkVersionChange
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mDeleteDatabaseOp->mState == State::DatabaseWorkVersionChange
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mDeleteDatabaseOp->mState == State::DatabaseWorkVersionChange"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17028
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDeleteDatabaseOp->mState == State::DatabaseWorkVersionChange"
")"); do { MOZ_CrashSequence(__null, 17028); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17029
17030 AUTO_PROFILER_LABEL("DeleteDatabaseOp::VersionChangeOp::RunOnIOThread", DOM)mozilla::AutoProfilerLabel raiiObject17030( "DeleteDatabaseOp::VersionChangeOp::RunOnIOThread"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
17031
17032 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17032)
||
17033 !OperationMayProceed()) {
17034 IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17034, idbInternalErrMsg.get()); } while (0)
;
17035 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
17036 }
17037
17038 const PersistenceType& persistenceType =
17039 mDeleteDatabaseOp->mCommonParams.metadata().persistenceType();
17040
17041 QuotaManager* quotaManager =
17042 mDeleteDatabaseOp->mEnforcingQuota ? QuotaManager::Get() : nullptr;
17043
17044 MOZ_ASSERT_IF(mDeleteDatabaseOp->mEnforcingQuota, quotaManager)do { if (mDeleteDatabaseOp->mEnforcingQuota) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(quotaManager
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(quotaManager))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("quotaManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17044); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { MOZ_CrashSequence(__null, 17044); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
17045
17046 nsCOMPtr<nsIFile> directory =
17047 GetFileForPath(mDeleteDatabaseOp->mDatabaseDirectoryPath);
17048 if (NS_WARN_IF(!directory)NS_warn_if_impl(!directory, "!directory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17048)
) {
17049 IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17049, idbInternalErrMsg.get()); } while (0)
;
17050 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
17051 }
17052
17053 nsresult rv = RemoveDatabaseFilesAndDirectory(
17054 *directory, *mDeleteDatabaseOp->mDatabaseFilenameBase, quotaManager,
17055 persistenceType, mDeleteDatabaseOp->mOriginMetadata,
17056 mDeleteDatabaseOp->mCommonParams.metadata().name());
17057 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17057)
) {
17058 return rv;
17059 }
17060
17061 rv = mOwningEventTarget->Dispatch(this, NS_DISPATCH_NORMALnsIEventTarget::DISPATCH_NORMAL);
17062 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17062)
) {
17063 return rv;
17064 }
17065
17066 return NS_OK;
17067}
17068
17069void DeleteDatabaseOp::VersionChangeOp::RunOnOwningThread() {
17070 AssertIsOnOwningThread();
17071 MOZ_ASSERT(mDeleteDatabaseOp->mState == State::DatabaseWorkVersionChange)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDeleteDatabaseOp->mState == State::DatabaseWorkVersionChange
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mDeleteDatabaseOp->mState == State::DatabaseWorkVersionChange
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mDeleteDatabaseOp->mState == State::DatabaseWorkVersionChange"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17071
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDeleteDatabaseOp->mState == State::DatabaseWorkVersionChange"
")"); do { MOZ_CrashSequence(__null, 17071); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17072
17073 const RefPtr<DeleteDatabaseOp> deleteOp = std::move(mDeleteDatabaseOp);
17074
17075 if (deleteOp->IsActorDestroyed()) {
17076 IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17076, idbInternalErrMsg.get()); } while (0)
;
17077 deleteOp->SetFailureCode(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR);
17078 } else if (HasFailed()) {
17079 deleteOp->SetFailureCodeIfUnset(ResultCode());
17080 } else {
17081 DatabaseActorInfo* info;
17082
17083 // Inform all the other databases that they are now invalidated. That
17084 // should remove the previous metadata from our table.
17085 if (gLiveDatabaseHashtable->Get(deleteOp->mDatabaseId.ref(), &info)) {
17086 MOZ_ASSERT(!info->mLiveDatabases.isEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!info->mLiveDatabases.isEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!info->mLiveDatabases.isEmpty
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!info->mLiveDatabases.isEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17086); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mLiveDatabases.isEmpty()"
")"); do { MOZ_CrashSequence(__null, 17086); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17087 MOZ_ASSERT(!info->mWaitingFactoryOp)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!info->mWaitingFactoryOp)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!info->mWaitingFactoryOp)
)), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!info->mWaitingFactoryOp"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17087
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp"
")"); do { MOZ_CrashSequence(__null, 17087); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17088
17089 nsTArray<SafeRefPtr<Database>> liveDatabases;
17090 if (NS_WARN_IF(!liveDatabases.SetCapacity(info->mLiveDatabases.length(),NS_warn_if_impl(!liveDatabases.SetCapacity(info->mLiveDatabases
.length(), fallible), "!liveDatabases.SetCapacity(info->mLiveDatabases.length(), fallible)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17091
)
17091 fallible))NS_warn_if_impl(!liveDatabases.SetCapacity(info->mLiveDatabases
.length(), fallible), "!liveDatabases.SetCapacity(info->mLiveDatabases.length(), fallible)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17091
)
) {
17092 deleteOp->SetFailureCode(NS_ERROR_OUT_OF_MEMORY);
17093 } else {
17094 std::transform(info->mLiveDatabases.begin(), info->mLiveDatabases.end(),
17095 MakeBackInserter(liveDatabases),
17096 [](Database* const aDatabase) -> SafeRefPtr<Database> {
17097 return {aDatabase, AcquireStrongRefFromRawPtr{}};
17098 });
17099
17100#ifdef DEBUG1
17101 // The code below should result in the deletion of |info|. Set to null
17102 // here to make sure we find invalid uses later.
17103 info = nullptr;
17104#endif
17105
17106 for (const auto& database : liveDatabases) {
17107 database->Invalidate();
17108 }
17109
17110 MOZ_ASSERT(!gLiveDatabaseHashtable->Get(deleteOp->mDatabaseId.ref()))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!gLiveDatabaseHashtable->Get(deleteOp->mDatabaseId
.ref()))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!gLiveDatabaseHashtable->Get(deleteOp->mDatabaseId
.ref())))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!gLiveDatabaseHashtable->Get(deleteOp->mDatabaseId.ref())"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17110
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!gLiveDatabaseHashtable->Get(deleteOp->mDatabaseId.ref())"
")"); do { MOZ_CrashSequence(__null, 17110); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17111 }
17112 }
17113 }
17114
17115 // We hold a strong ref to the deleteOp, so it's safe to call Run() directly.
17116
17117 deleteOp->mState = State::SendingResults;
17118 MOZ_ALWAYS_SUCCEEDS(deleteOp->Run())do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(deleteOp->Run())), 1)))), 1))) { } else { do { do { } while
(false); MOZ_ReportCrash("" "NS_SUCCEEDED(deleteOp->Run())"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17118
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(deleteOp->Run())"
")"); do { MOZ_CrashSequence(__null, 17118); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
17119
17120#ifdef DEBUG1
17121 // A bit hacky but the DeleteDatabaseOp::VersionChangeOp is not really a
17122 // normal database operation that is tied to an actor. Do this to make our
17123 // assertions happy.
17124 NoteActorDestroyed();
17125#endif
17126}
17127
17128nsresult DeleteDatabaseOp::VersionChangeOp::Run() {
17129 nsresult rv;
17130
17131 if (IsOnIOThread()) {
17132 rv = RunOnIOThread();
17133 } else {
17134 RunOnOwningThread();
17135 rv = NS_OK;
17136 }
17137
17138 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17138)
) {
17139 SetFailureCodeIfUnset(rv);
17140
17141 MOZ_ALWAYS_SUCCEEDS(mOwningEventTarget->Dispatch(this, NS_DISPATCH_NORMAL))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL
))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17141
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { MOZ_CrashSequence(__null, 17141); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
17142 }
17143
17144 return NS_OK;
17145}
17146
17147nsresult GetDatabasesOp::DatabasesNotAvailable() {
17148 AssertIsOnIOThread();
17149 MOZ_ASSERT(mState == State::DatabaseWorkOpen)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::DatabaseWorkOpen)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::DatabaseWorkOpen
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State::DatabaseWorkOpen", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17149); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkOpen"
")"); do { MOZ_CrashSequence(__null, 17149); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17150
17151 mState = State::SendingResults;
17152
17153 QM_TRY(MOZ_TO_RESULT({auto tryResult1364 = (ToResult(DispatchThisAfterProcessingCurrentEvent
(mOwningEventTarget))); static_assert(std::is_empty_v<typename
decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))"
, tryResult1364.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17154, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}
17154 DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))){auto tryResult1364 = (ToResult(DispatchThisAfterProcessingCurrentEvent
(mOwningEventTarget))); static_assert(std::is_empty_v<typename
decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))"
, tryResult1364.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17154, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}
;
17155
17156 return NS_OK;
17157}
17158
17159nsresult GetDatabasesOp::DoDirectoryWork() {
17160 AssertIsOnIOThread();
17161 MOZ_ASSERT(mState == State::DirectoryWorkOpen)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::DirectoryWorkOpen)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::DirectoryWorkOpen
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State::DirectoryWorkOpen", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17161); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryWorkOpen"
")"); do { MOZ_CrashSequence(__null, 17161); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17162
17163 // This state (DirectoryWorkOpen) runs immediately on the I/O thread, before
17164 // waiting for existing factory operations to complete (at which point
17165 // DoDatabaseWork will be invoked). To match the spec, we must snapshot the
17166 // current state of any databases that are being created (version = 0) or
17167 // upgraded (version >= 1) now. If we only sampled these values in
17168 // DoDatabaseWork, we would only see their post-creation/post-upgrade
17169 // versions, which would be incorrect.
17170
17171 IndexedDatabaseManager* const idm = IndexedDatabaseManager::Get();
17172 MOZ_ASSERT(idm)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(idm)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(idm))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("idm", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17172); AnnotateMozCrashReason("MOZ_ASSERT" "(" "idm" ")");
do { MOZ_CrashSequence(__null, 17172); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
17173
17174 const auto& fileManagers =
17175 idm->GetFileManagers(mPersistenceType, mOriginMetadata.mOrigin);
17176
17177 for (const auto& fileManager : fileManagers) {
17178 auto& metadata =
17179 mDatabaseMetadataTable.LookupOrInsert(fileManager->DatabaseFilePath());
17180 metadata.name() = fileManager->DatabaseName();
17181 metadata.version() = fileManager->DatabaseVersion();
17182 }
17183
17184 // Must set this before dispatching otherwise we will race with the IO thread.
17185 mState = State::DirectoryWorkDone;
17186
17187 QM_TRY(MOZ_TO_RESULT(mOwningEventTarget->Dispatch(this, NS_DISPATCH_NORMAL))){auto tryResult1365 = (ToResult(mOwningEventTarget->Dispatch
(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert(std::
is_empty_v<typename decltype(tryResult1365)::ok_type>);
if ((__builtin_expect(!!(tryResult1365.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryResult1365.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17187, mozilla::dom::quota::Severity::Error); return tryResult1365
.propagateErr(); }}
;
17188
17189 return NS_OK;
17190}
17191
17192nsresult GetDatabasesOp::DatabaseOpen() {
17193 AssertIsOnOwningThread();
17194 MOZ_ASSERT(mState == State::DatabaseOpenPending)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::DatabaseOpenPending)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::DatabaseOpenPending
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State::DatabaseOpenPending", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseOpenPending"
")"); do { MOZ_CrashSequence(__null, 17194); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17195
17196 nsresult rv = SendToIOThread();
17197 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17197)
) {
17198 return rv;
17199 }
17200
17201 return NS_OK;
17202}
17203
17204nsresult GetDatabasesOp::DoDatabaseWork() {
17205 AssertIsOnIOThread();
17206 MOZ_ASSERT(mState == State::DatabaseWorkOpen)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::DatabaseWorkOpen)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::DatabaseWorkOpen
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State::DatabaseWorkOpen", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17206); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkOpen"
")"); do { MOZ_CrashSequence(__null, 17206); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17207
17208 AUTO_PROFILER_LABEL("GetDatabasesOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject17208( "GetDatabasesOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
17209
17210 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17210)
||
17211 !OperationMayProceed()) {
17212 IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17212, idbInternalErrMsg.get()); } while (0)
;
17213 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
17214 }
17215
17216 QuotaManager* const quotaManager = QuotaManager::Get();
17217 MOZ_ASSERT(quotaManager)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(quotaManager)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(quotaManager))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("quotaManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17217); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { MOZ_CrashSequence(__null, 17217); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17218
17219 {
17220 QM_TRY_INSPECT(const bool& exists,auto tryResult1366 = (quotaManager->DoesOriginDirectoryExist
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1366.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->DoesOriginDirectoryExist(mOriginMetadata)"
, tryResult1366.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17221, mozilla::dom::quota::Severity::Error); return tryResult1366
.propagateErr(); } const bool& exists = tryResult1366.inspect
();
17221 quotaManager->DoesOriginDirectoryExist(mOriginMetadata))auto tryResult1366 = (quotaManager->DoesOriginDirectoryExist
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1366.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->DoesOriginDirectoryExist(mOriginMetadata)"
, tryResult1366.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17221, mozilla::dom::quota::Severity::Error); return tryResult1366
.propagateErr(); } const bool& exists = tryResult1366.inspect
();
;
17222 if (!exists) {
17223 return DatabasesNotAvailable();
17224 }
17225 }
17226
17227 // XXX Is this really needed ?
17228 QM_TRY(([&quotaManager,{auto tryResult1369 = (([&quotaManager, this]() -> mozilla
::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType
== PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1367 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1367
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17231, mozilla::dom::quota::Severity::Error); } return tryResult1367
;}; } {auto tryResult1368 = (quotaManager->GetOrCreateTemporaryOriginDirectory
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1368.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)"
, tryResult1368.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17235, mozilla::dom::quota::Severity::Error); } return tryResult1368
;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert
(std::is_empty_v<typename decltype(tryResult1369)::ok_type
>); if ((__builtin_expect(!!(tryResult1369.isErr()), 0))) {
mozilla::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1367 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1367.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17231, mozilla::dom::quota::Severity::Error); } return tryResult1367;}; } {auto tryResult1368 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1368.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17235, mozilla::dom::quota::Severity::Error); } return tryResult1368;}; }() .map([](const auto& res) { return Ok{}; }))"
, tryResult1369.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17237, mozilla::dom::quota::Severity::Error); return tryResult1369
.propagateErr(); }}
17229 this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> {{auto tryResult1369 = (([&quotaManager, this]() -> mozilla
::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType
== PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1367 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1367
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17231, mozilla::dom::quota::Severity::Error); } return tryResult1367
;}; } {auto tryResult1368 = (quotaManager->GetOrCreateTemporaryOriginDirectory
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1368.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)"
, tryResult1368.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17235, mozilla::dom::quota::Severity::Error); } return tryResult1368
;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert
(std::is_empty_v<typename decltype(tryResult1369)::ok_type
>); if ((__builtin_expect(!!(tryResult1369.isErr()), 0))) {
mozilla::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1367 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1367.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17231, mozilla::dom::quota::Severity::Error); } return tryResult1367;}; } {auto tryResult1368 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1368.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17235, mozilla::dom::quota::Severity::Error); } return tryResult1368;}; }() .map([](const auto& res) { return Ok{}; }))"
, tryResult1369.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17237, mozilla::dom::quota::Severity::Error); return tryResult1369
.propagateErr(); }}
17230 if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {{auto tryResult1369 = (([&quotaManager, this]() -> mozilla
::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType
== PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1367 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1367
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17231, mozilla::dom::quota::Severity::Error); } return tryResult1367
;}; } {auto tryResult1368 = (quotaManager->GetOrCreateTemporaryOriginDirectory
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1368.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)"
, tryResult1368.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17235, mozilla::dom::quota::Severity::Error); } return tryResult1368
;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert
(std::is_empty_v<typename decltype(tryResult1369)::ok_type
>); if ((__builtin_expect(!!(tryResult1369.isErr()), 0))) {
mozilla::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1367 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1367.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17231, mozilla::dom::quota::Severity::Error); } return tryResult1367;}; } {auto tryResult1368 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1368.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17235, mozilla::dom::quota::Severity::Error); } return tryResult1368;}; }() .map([](const auto& res) { return Ok{}; }))"
, tryResult1369.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17237, mozilla::dom::quota::Severity::Error); return tryResult1369
.propagateErr(); }}
17231 QM_TRY_RETURN(quotaManager->GetOriginDirectory(mOriginMetadata));{auto tryResult1369 = (([&quotaManager, this]() -> mozilla
::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType
== PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1367 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1367
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17231, mozilla::dom::quota::Severity::Error); } return tryResult1367
;}; } {auto tryResult1368 = (quotaManager->GetOrCreateTemporaryOriginDirectory
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1368.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)"
, tryResult1368.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17235, mozilla::dom::quota::Severity::Error); } return tryResult1368
;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert
(std::is_empty_v<typename decltype(tryResult1369)::ok_type
>); if ((__builtin_expect(!!(tryResult1369.isErr()), 0))) {
mozilla::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1367 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1367.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17231, mozilla::dom::quota::Severity::Error); } return tryResult1367;}; } {auto tryResult1368 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1368.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17235, mozilla::dom::quota::Severity::Error); } return tryResult1368;}; }() .map([](const auto& res) { return Ok{}; }))"
, tryResult1369.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17237, mozilla::dom::quota::Severity::Error); return tryResult1369
.propagateErr(); }}
17232 }{auto tryResult1369 = (([&quotaManager, this]() -> mozilla
::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType
== PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1367 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1367
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17231, mozilla::dom::quota::Severity::Error); } return tryResult1367
;}; } {auto tryResult1368 = (quotaManager->GetOrCreateTemporaryOriginDirectory
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1368.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)"
, tryResult1368.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17235, mozilla::dom::quota::Severity::Error); } return tryResult1368
;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert
(std::is_empty_v<typename decltype(tryResult1369)::ok_type
>); if ((__builtin_expect(!!(tryResult1369.isErr()), 0))) {
mozilla::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1367 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1367.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17231, mozilla::dom::quota::Severity::Error); } return tryResult1367;}; } {auto tryResult1368 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1368.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17235, mozilla::dom::quota::Severity::Error); } return tryResult1368;}; }() .map([](const auto& res) { return Ok{}; }))"
, tryResult1369.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17237, mozilla::dom::quota::Severity::Error); return tryResult1369
.propagateErr(); }}
17233
17234 QM_TRY_RETURN({auto tryResult1369 = (([&quotaManager, this]() -> mozilla
::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType
== PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1367 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1367
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17231, mozilla::dom::quota::Severity::Error); } return tryResult1367
;}; } {auto tryResult1368 = (quotaManager->GetOrCreateTemporaryOriginDirectory
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1368.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)"
, tryResult1368.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17235, mozilla::dom::quota::Severity::Error); } return tryResult1368
;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert
(std::is_empty_v<typename decltype(tryResult1369)::ok_type
>); if ((__builtin_expect(!!(tryResult1369.isErr()), 0))) {
mozilla::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1367 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1367.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17231, mozilla::dom::quota::Severity::Error); } return tryResult1367;}; } {auto tryResult1368 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1368.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17235, mozilla::dom::quota::Severity::Error); } return tryResult1368;}; }() .map([](const auto& res) { return Ok{}; }))"
, tryResult1369.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17237, mozilla::dom::quota::Severity::Error); return tryResult1369
.propagateErr(); }}
17235 quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata));{auto tryResult1369 = (([&quotaManager, this]() -> mozilla
::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType
== PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1367 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1367
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17231, mozilla::dom::quota::Severity::Error); } return tryResult1367
;}; } {auto tryResult1368 = (quotaManager->GetOrCreateTemporaryOriginDirectory
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1368.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)"
, tryResult1368.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17235, mozilla::dom::quota::Severity::Error); } return tryResult1368
;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert
(std::is_empty_v<typename decltype(tryResult1369)::ok_type
>); if ((__builtin_expect(!!(tryResult1369.isErr()), 0))) {
mozilla::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1367 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1367.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17231, mozilla::dom::quota::Severity::Error); } return tryResult1367;}; } {auto tryResult1368 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1368.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17235, mozilla::dom::quota::Severity::Error); } return tryResult1368;}; }() .map([](const auto& res) { return Ok{}; }))"
, tryResult1369.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17237, mozilla::dom::quota::Severity::Error); return tryResult1369
.propagateErr(); }}
17236 }(){auto tryResult1369 = (([&quotaManager, this]() -> mozilla
::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType
== PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1367 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1367
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17231, mozilla::dom::quota::Severity::Error); } return tryResult1367
;}; } {auto tryResult1368 = (quotaManager->GetOrCreateTemporaryOriginDirectory
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1368.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)"
, tryResult1368.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17235, mozilla::dom::quota::Severity::Error); } return tryResult1368
;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert
(std::is_empty_v<typename decltype(tryResult1369)::ok_type
>); if ((__builtin_expect(!!(tryResult1369.isErr()), 0))) {
mozilla::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1367 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1367.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17231, mozilla::dom::quota::Severity::Error); } return tryResult1367;}; } {auto tryResult1368 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1368.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17235, mozilla::dom::quota::Severity::Error); } return tryResult1368;}; }() .map([](const auto& res) { return Ok{}; }))"
, tryResult1369.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17237, mozilla::dom::quota::Severity::Error); return tryResult1369
.propagateErr(); }}
17237 .map([](const auto& res) { return Ok{}; }))){auto tryResult1369 = (([&quotaManager, this]() -> mozilla
::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType
== PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1367 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1367
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17231, mozilla::dom::quota::Severity::Error); } return tryResult1367
;}; } {auto tryResult1368 = (quotaManager->GetOrCreateTemporaryOriginDirectory
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1368.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)"
, tryResult1368.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17235, mozilla::dom::quota::Severity::Error); } return tryResult1368
;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert
(std::is_empty_v<typename decltype(tryResult1369)::ok_type
>); if ((__builtin_expect(!!(tryResult1369.isErr()), 0))) {
mozilla::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1367 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1367.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17231, mozilla::dom::quota::Severity::Error); } return tryResult1367;}; } {auto tryResult1368 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1368.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17235, mozilla::dom::quota::Severity::Error); } return tryResult1368;}; }() .map([](const auto& res) { return Ok{}; }))"
, tryResult1369.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17237, mozilla::dom::quota::Severity::Error); return tryResult1369
.propagateErr(); }}
;
17238
17239 {
17240 QM_TRY_INSPECT(const bool& exists,auto tryResult1370 = (quotaManager->DoesClientDirectoryExist
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1370.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->DoesClientDirectoryExist( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1370.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17242, mozilla::dom::quota::Severity::Error); return tryResult1370
.propagateErr(); } const bool& exists = tryResult1370.inspect
();
17241 quotaManager->DoesClientDirectoryExist(auto tryResult1370 = (quotaManager->DoesClientDirectoryExist
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1370.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->DoesClientDirectoryExist( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1370.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17242, mozilla::dom::quota::Severity::Error); return tryResult1370
.propagateErr(); } const bool& exists = tryResult1370.inspect
();
17242 ClientMetadata{mOriginMetadata, Client::IDB}))auto tryResult1370 = (quotaManager->DoesClientDirectoryExist
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1370.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->DoesClientDirectoryExist( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1370.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17242, mozilla::dom::quota::Severity::Error); return tryResult1370
.propagateErr(); } const bool& exists = tryResult1370.inspect
();
;
17243 if (!exists) {
17244 return DatabasesNotAvailable();
17245 }
17246 }
17247
17248 QM_TRY_INSPECT(auto tryResult1373 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1371 = (quotaManager->EnsurePersistentClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1371.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17254, mozilla::dom::quota::Severity::Error); } return tryResult1371
;}; } {auto tryResult1372 = (quotaManager->EnsureTemporaryClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((
__builtin_expect(!!(tryResult1372.isErr()), 0))) { mozilla::dom
::quota::HandleError("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)"
, tryResult1372.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17259, mozilla::dom::quota::Severity::Error); } return tryResult1372
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1373.isErr()), 0))) { mozilla
::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1371 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1371.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17254, mozilla::dom::quota::Severity::Error); } return tryResult1371;}; } {auto tryResult1372 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((__builtin_expect(!!(tryResult1372.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)\", tryResult1372.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17259, mozilla::dom::quota::Severity::Error); } return tryResult1372;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1373.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17261, mozilla::dom::quota::Severity::Error); return tryResult1373
.propagateErr(); } const auto& clientDirectory = tryResult1373
.inspect();
17249 const auto& clientDirectory,auto tryResult1373 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1371 = (quotaManager->EnsurePersistentClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1371.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17254, mozilla::dom::quota::Severity::Error); } return tryResult1371
;}; } {auto tryResult1372 = (quotaManager->EnsureTemporaryClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((
__builtin_expect(!!(tryResult1372.isErr()), 0))) { mozilla::dom
::quota::HandleError("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)"
, tryResult1372.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17259, mozilla::dom::quota::Severity::Error); } return tryResult1372
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1373.isErr()), 0))) { mozilla
::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1371 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1371.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17254, mozilla::dom::quota::Severity::Error); } return tryResult1371;}; } {auto tryResult1372 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((__builtin_expect(!!(tryResult1372.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)\", tryResult1372.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17259, mozilla::dom::quota::Severity::Error); } return tryResult1372;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1373.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17261, mozilla::dom::quota::Severity::Error); return tryResult1373
.propagateErr(); } const auto& clientDirectory = tryResult1373
.inspect();
17250 ([&quotaManager, this]()auto tryResult1373 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1371 = (quotaManager->EnsurePersistentClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1371.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17254, mozilla::dom::quota::Severity::Error); } return tryResult1371
;}; } {auto tryResult1372 = (quotaManager->EnsureTemporaryClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((
__builtin_expect(!!(tryResult1372.isErr()), 0))) { mozilla::dom
::quota::HandleError("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)"
, tryResult1372.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17259, mozilla::dom::quota::Severity::Error); } return tryResult1372
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1373.isErr()), 0))) { mozilla
::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1371 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1371.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17254, mozilla::dom::quota::Severity::Error); } return tryResult1371;}; } {auto tryResult1372 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((__builtin_expect(!!(tryResult1372.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)\", tryResult1372.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17259, mozilla::dom::quota::Severity::Error); } return tryResult1372;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1373.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17261, mozilla::dom::quota::Severity::Error); return tryResult1373
.propagateErr(); } const auto& clientDirectory = tryResult1373
.inspect();
17251 -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> {auto tryResult1373 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1371 = (quotaManager->EnsurePersistentClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1371.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17254, mozilla::dom::quota::Severity::Error); } return tryResult1371
;}; } {auto tryResult1372 = (quotaManager->EnsureTemporaryClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((
__builtin_expect(!!(tryResult1372.isErr()), 0))) { mozilla::dom
::quota::HandleError("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)"
, tryResult1372.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17259, mozilla::dom::quota::Severity::Error); } return tryResult1372
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1373.isErr()), 0))) { mozilla
::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1371 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1371.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17254, mozilla::dom::quota::Severity::Error); } return tryResult1371;}; } {auto tryResult1372 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((__builtin_expect(!!(tryResult1372.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)\", tryResult1372.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17259, mozilla::dom::quota::Severity::Error); } return tryResult1372;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1373.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17261, mozilla::dom::quota::Severity::Error); return tryResult1373
.propagateErr(); } const auto& clientDirectory = tryResult1373
.inspect();
17252 if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {auto tryResult1373 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1371 = (quotaManager->EnsurePersistentClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1371.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17254, mozilla::dom::quota::Severity::Error); } return tryResult1371
;}; } {auto tryResult1372 = (quotaManager->EnsureTemporaryClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((
__builtin_expect(!!(tryResult1372.isErr()), 0))) { mozilla::dom
::quota::HandleError("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)"
, tryResult1372.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17259, mozilla::dom::quota::Severity::Error); } return tryResult1372
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1373.isErr()), 0))) { mozilla
::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1371 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1371.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17254, mozilla::dom::quota::Severity::Error); } return tryResult1371;}; } {auto tryResult1372 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((__builtin_expect(!!(tryResult1372.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)\", tryResult1372.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17259, mozilla::dom::quota::Severity::Error); } return tryResult1372;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1373.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17261, mozilla::dom::quota::Severity::Error); return tryResult1373
.propagateErr(); } const auto& clientDirectory = tryResult1373
.inspect();
17253 QM_TRY_RETURN(quotaManager->EnsurePersistentClientIsInitialized(auto tryResult1373 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1371 = (quotaManager->EnsurePersistentClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1371.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17254, mozilla::dom::quota::Severity::Error); } return tryResult1371
;}; } {auto tryResult1372 = (quotaManager->EnsureTemporaryClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((
__builtin_expect(!!(tryResult1372.isErr()), 0))) { mozilla::dom
::quota::HandleError("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)"
, tryResult1372.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17259, mozilla::dom::quota::Severity::Error); } return tryResult1372
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1373.isErr()), 0))) { mozilla
::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1371 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1371.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17254, mozilla::dom::quota::Severity::Error); } return tryResult1371;}; } {auto tryResult1372 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((__builtin_expect(!!(tryResult1372.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)\", tryResult1372.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17259, mozilla::dom::quota::Severity::Error); } return tryResult1372;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1373.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17261, mozilla::dom::quota::Severity::Error); return tryResult1373
.propagateErr(); } const auto& clientDirectory = tryResult1373
.inspect();
17254 ClientMetadata{mOriginMetadata, Client::IDB}));auto tryResult1373 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1371 = (quotaManager->EnsurePersistentClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1371.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17254, mozilla::dom::quota::Severity::Error); } return tryResult1371
;}; } {auto tryResult1372 = (quotaManager->EnsureTemporaryClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((
__builtin_expect(!!(tryResult1372.isErr()), 0))) { mozilla::dom
::quota::HandleError("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)"
, tryResult1372.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17259, mozilla::dom::quota::Severity::Error); } return tryResult1372
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1373.isErr()), 0))) { mozilla
::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1371 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1371.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17254, mozilla::dom::quota::Severity::Error); } return tryResult1371;}; } {auto tryResult1372 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((__builtin_expect(!!(tryResult1372.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)\", tryResult1372.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17259, mozilla::dom::quota::Severity::Error); } return tryResult1372;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1373.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17261, mozilla::dom::quota::Severity::Error); return tryResult1373
.propagateErr(); } const auto& clientDirectory = tryResult1373
.inspect();
17255 }auto tryResult1373 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1371 = (quotaManager->EnsurePersistentClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1371.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17254, mozilla::dom::quota::Severity::Error); } return tryResult1371
;}; } {auto tryResult1372 = (quotaManager->EnsureTemporaryClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((
__builtin_expect(!!(tryResult1372.isErr()), 0))) { mozilla::dom
::quota::HandleError("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)"
, tryResult1372.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17259, mozilla::dom::quota::Severity::Error); } return tryResult1372
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1373.isErr()), 0))) { mozilla
::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1371 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1371.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17254, mozilla::dom::quota::Severity::Error); } return tryResult1371;}; } {auto tryResult1372 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((__builtin_expect(!!(tryResult1372.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)\", tryResult1372.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17259, mozilla::dom::quota::Severity::Error); } return tryResult1372;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1373.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17261, mozilla::dom::quota::Severity::Error); return tryResult1373
.propagateErr(); } const auto& clientDirectory = tryResult1373
.inspect();
17256
17257 QM_TRY_RETURN(quotaManager->EnsureTemporaryClientIsInitialized(auto tryResult1373 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1371 = (quotaManager->EnsurePersistentClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1371.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17254, mozilla::dom::quota::Severity::Error); } return tryResult1371
;}; } {auto tryResult1372 = (quotaManager->EnsureTemporaryClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((
__builtin_expect(!!(tryResult1372.isErr()), 0))) { mozilla::dom
::quota::HandleError("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)"
, tryResult1372.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17259, mozilla::dom::quota::Severity::Error); } return tryResult1372
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1373.isErr()), 0))) { mozilla
::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1371 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1371.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17254, mozilla::dom::quota::Severity::Error); } return tryResult1371;}; } {auto tryResult1372 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((__builtin_expect(!!(tryResult1372.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)\", tryResult1372.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17259, mozilla::dom::quota::Severity::Error); } return tryResult1372;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1373.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17261, mozilla::dom::quota::Severity::Error); return tryResult1373
.propagateErr(); } const auto& clientDirectory = tryResult1373
.inspect();
17258 ClientMetadata{mOriginMetadata, Client::IDB},auto tryResult1373 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1371 = (quotaManager->EnsurePersistentClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1371.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17254, mozilla::dom::quota::Severity::Error); } return tryResult1371
;}; } {auto tryResult1372 = (quotaManager->EnsureTemporaryClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((
__builtin_expect(!!(tryResult1372.isErr()), 0))) { mozilla::dom
::quota::HandleError("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)"
, tryResult1372.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17259, mozilla::dom::quota::Severity::Error); } return tryResult1372
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1373.isErr()), 0))) { mozilla
::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1371 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1371.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17254, mozilla::dom::quota::Severity::Error); } return tryResult1371;}; } {auto tryResult1372 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((__builtin_expect(!!(tryResult1372.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)\", tryResult1372.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17259, mozilla::dom::quota::Severity::Error); } return tryResult1372;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1373.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17261, mozilla::dom::quota::Severity::Error); return tryResult1373
.propagateErr(); } const auto& clientDirectory = tryResult1373
.inspect();
17259 /* aCreateIfNonExistent */ true));auto tryResult1373 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1371 = (quotaManager->EnsurePersistentClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1371.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17254, mozilla::dom::quota::Severity::Error); } return tryResult1371
;}; } {auto tryResult1372 = (quotaManager->EnsureTemporaryClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((
__builtin_expect(!!(tryResult1372.isErr()), 0))) { mozilla::dom
::quota::HandleError("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)"
, tryResult1372.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17259, mozilla::dom::quota::Severity::Error); } return tryResult1372
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1373.isErr()), 0))) { mozilla
::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1371 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1371.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17254, mozilla::dom::quota::Severity::Error); } return tryResult1371;}; } {auto tryResult1372 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((__builtin_expect(!!(tryResult1372.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)\", tryResult1372.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17259, mozilla::dom::quota::Severity::Error); } return tryResult1372;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1373.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17261, mozilla::dom::quota::Severity::Error); return tryResult1373
.propagateErr(); } const auto& clientDirectory = tryResult1373
.inspect();
17260 }()auto tryResult1373 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1371 = (quotaManager->EnsurePersistentClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1371.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17254, mozilla::dom::quota::Severity::Error); } return tryResult1371
;}; } {auto tryResult1372 = (quotaManager->EnsureTemporaryClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((
__builtin_expect(!!(tryResult1372.isErr()), 0))) { mozilla::dom
::quota::HandleError("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)"
, tryResult1372.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17259, mozilla::dom::quota::Severity::Error); } return tryResult1372
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1373.isErr()), 0))) { mozilla
::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1371 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1371.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17254, mozilla::dom::quota::Severity::Error); } return tryResult1371;}; } {auto tryResult1372 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((__builtin_expect(!!(tryResult1372.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)\", tryResult1372.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17259, mozilla::dom::quota::Severity::Error); } return tryResult1372;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1373.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17261, mozilla::dom::quota::Severity::Error); return tryResult1373
.propagateErr(); } const auto& clientDirectory = tryResult1373
.inspect();
17261 .map([](const auto& res) { return res.first; })))auto tryResult1373 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1371 = (quotaManager->EnsurePersistentClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1371.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17254, mozilla::dom::quota::Severity::Error); } return tryResult1371
;}; } {auto tryResult1372 = (quotaManager->EnsureTemporaryClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((
__builtin_expect(!!(tryResult1372.isErr()), 0))) { mozilla::dom
::quota::HandleError("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)"
, tryResult1372.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17259, mozilla::dom::quota::Severity::Error); } return tryResult1372
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1373.isErr()), 0))) { mozilla
::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1371 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1371.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17254, mozilla::dom::quota::Severity::Error); } return tryResult1371;}; } {auto tryResult1372 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((__builtin_expect(!!(tryResult1372.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)\", tryResult1372.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17259, mozilla::dom::quota::Severity::Error); } return tryResult1372;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1373.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17261, mozilla::dom::quota::Severity::Error); return tryResult1373
.propagateErr(); } const auto& clientDirectory = tryResult1373
.inspect();
;
17262
17263 QM_TRY_INSPECT(auto tryResult1374 = (QuotaClient::GetDatabaseFilenames(*clientDirectory
, Atomic<bool>{false})); if ((__builtin_expect(!!(tryResult1374
.isErr()), 0))) { mozilla::dom::quota::HandleError("QuotaClient::GetDatabaseFilenames(*clientDirectory, Atomic<bool>{false})"
, tryResult1374.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17266, mozilla::dom::quota::Severity::Error); return tryResult1374
.propagateErr(); } const auto& [subdirsToProcess, databaseFilenames
] = tryResult1374.inspect();
17264 (const auto& [subdirsToProcess, databaseFilenames]),auto tryResult1374 = (QuotaClient::GetDatabaseFilenames(*clientDirectory
, Atomic<bool>{false})); if ((__builtin_expect(!!(tryResult1374
.isErr()), 0))) { mozilla::dom::quota::HandleError("QuotaClient::GetDatabaseFilenames(*clientDirectory, Atomic<bool>{false})"
, tryResult1374.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17266, mozilla::dom::quota::Severity::Error); return tryResult1374
.propagateErr(); } const auto& [subdirsToProcess, databaseFilenames
] = tryResult1374.inspect();
17265 QuotaClient::GetDatabaseFilenames(*clientDirectory,auto tryResult1374 = (QuotaClient::GetDatabaseFilenames(*clientDirectory
, Atomic<bool>{false})); if ((__builtin_expect(!!(tryResult1374
.isErr()), 0))) { mozilla::dom::quota::HandleError("QuotaClient::GetDatabaseFilenames(*clientDirectory, Atomic<bool>{false})"
, tryResult1374.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17266, mozilla::dom::quota::Severity::Error); return tryResult1374
.propagateErr(); } const auto& [subdirsToProcess, databaseFilenames
] = tryResult1374.inspect();
17266 /* aCanceled */ Atomic<bool>{false}))auto tryResult1374 = (QuotaClient::GetDatabaseFilenames(*clientDirectory
, Atomic<bool>{false})); if ((__builtin_expect(!!(tryResult1374
.isErr()), 0))) { mozilla::dom::quota::HandleError("QuotaClient::GetDatabaseFilenames(*clientDirectory, Atomic<bool>{false})"
, tryResult1374.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17266, mozilla::dom::quota::Severity::Error); return tryResult1374
.propagateErr(); } const auto& [subdirsToProcess, databaseFilenames
] = tryResult1374.inspect();
;
17267
17268 for (const auto& databaseFilename : databaseFilenames) {
17269 QM_TRY_INSPECT(auto tryResult1375 = (CloneFileAndAppend(*clientDirectory, databaseFilename
+ kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1375.isErr
()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*clientDirectory, databaseFilename + kSQLiteSuffix)"
, tryResult1375.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17271, mozilla::dom::quota::Severity::Error); return tryResult1375
.propagateErr(); } const auto& databaseFile = tryResult1375
.inspect();
17270 const auto& databaseFile,auto tryResult1375 = (CloneFileAndAppend(*clientDirectory, databaseFilename
+ kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1375.isErr
()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*clientDirectory, databaseFilename + kSQLiteSuffix)"
, tryResult1375.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17271, mozilla::dom::quota::Severity::Error); return tryResult1375
.propagateErr(); } const auto& databaseFile = tryResult1375
.inspect();
17271 CloneFileAndAppend(*clientDirectory, databaseFilename + kSQLiteSuffix))auto tryResult1375 = (CloneFileAndAppend(*clientDirectory, databaseFilename
+ kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1375.isErr
()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*clientDirectory, databaseFilename + kSQLiteSuffix)"
, tryResult1375.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17271, mozilla::dom::quota::Severity::Error); return tryResult1375
.propagateErr(); } const auto& databaseFile = tryResult1375
.inspect();
;
17272
17273 nsString path;
17274 databaseFile->GetPath(path);
17275
17276 // Use the snapshotted values from DoDirectoryWork which correctly
17277 // snapshotted the state of any pending creations/upgrades. This does mean
17278 // that we need to skip reporting databases that had a version of 0 at that
17279 // time because they were still being created. In the event that any other
17280 // creation or upgrade requests are made after our operation is created,
17281 // this operation will block those, so it's not possible for this set of
17282 // data to get out of sync. The snapshotting (using cached database name
17283 // and version in DatabaseFileManager) also guarantees that we are not
17284 // touching the SQLite database here on the QuotaManager I/O thread which
17285 // is already open on the connection thread.
17286
17287 auto metadata = mDatabaseMetadataTable.Lookup(path);
17288 if (metadata) {
17289 if (metadata->version() != 0) {
17290 mDatabaseMetadataArray.AppendElement(DatabaseMetadata(
17291 metadata->name(), metadata->version(), mPersistenceType));
17292 }
17293
17294 continue;
17295 }
17296
17297 // Since the database is not already open (there was no DatabaseFileManager
17298 // for snapshotting in DoDirectoryWork which could provide us with the
17299 // database name and version without needing to open the SQLite database),
17300 // it is safe and necessary for us to open the database on this thread and
17301 // retrieve its name and version. We do not need to worry about racing a
17302 // database open because database opens can only be processed on this
17303 // thread and we are performing the steps below synchronously.
17304
17305 QM_TRY_INSPECT(auto tryResult1376 = (CloneFileAndAppend(*clientDirectory, databaseFilename
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult1376.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*clientDirectory, databaseFilename + kFileManagerDirectoryNameSuffix)"
, tryResult1376.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17308, mozilla::dom::quota::Severity::Error); return tryResult1376
.propagateErr(); } const auto& fmDirectory = tryResult1376
.inspect();
17306 const auto& fmDirectory,auto tryResult1376 = (CloneFileAndAppend(*clientDirectory, databaseFilename
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult1376.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*clientDirectory, databaseFilename + kFileManagerDirectoryNameSuffix)"
, tryResult1376.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17308, mozilla::dom::quota::Severity::Error); return tryResult1376
.propagateErr(); } const auto& fmDirectory = tryResult1376
.inspect();
17307 CloneFileAndAppend(*clientDirectory,auto tryResult1376 = (CloneFileAndAppend(*clientDirectory, databaseFilename
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult1376.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*clientDirectory, databaseFilename + kFileManagerDirectoryNameSuffix)"
, tryResult1376.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17308, mozilla::dom::quota::Severity::Error); return tryResult1376
.propagateErr(); } const auto& fmDirectory = tryResult1376
.inspect();
17308 databaseFilename + kFileManagerDirectoryNameSuffix))auto tryResult1376 = (CloneFileAndAppend(*clientDirectory, databaseFilename
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult1376.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*clientDirectory, databaseFilename + kFileManagerDirectoryNameSuffix)"
, tryResult1376.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17308, mozilla::dom::quota::Severity::Error); return tryResult1376
.propagateErr(); } const auto& fmDirectory = tryResult1376
.inspect();
;
17309
17310 QM_TRY_UNWRAP(auto tryResult1377 = (CreateStorageConnection(*databaseFile, *
fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId
, TelemetryIdForFile(databaseFile), Nothing{})); if ((__builtin_expect
(!!(tryResult1377.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateStorageConnection(*databaseFile, *fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId, TelemetryIdForFile(databaseFile), Nothing{})"
, tryResult1377.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17314, mozilla::dom::quota::Severity::Error); return tryResult1377
.propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1377.unwrap();
17311 const NotNull<nsCOMPtr<mozIStorageConnection>> connection,auto tryResult1377 = (CreateStorageConnection(*databaseFile, *
fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId
, TelemetryIdForFile(databaseFile), Nothing{})); if ((__builtin_expect
(!!(tryResult1377.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateStorageConnection(*databaseFile, *fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId, TelemetryIdForFile(databaseFile), Nothing{})"
, tryResult1377.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17314, mozilla::dom::quota::Severity::Error); return tryResult1377
.propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1377.unwrap();
17312 CreateStorageConnection(*databaseFile, *fmDirectory, VoidString(),auto tryResult1377 = (CreateStorageConnection(*databaseFile, *
fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId
, TelemetryIdForFile(databaseFile), Nothing{})); if ((__builtin_expect
(!!(tryResult1377.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateStorageConnection(*databaseFile, *fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId, TelemetryIdForFile(databaseFile), Nothing{})"
, tryResult1377.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17314, mozilla::dom::quota::Severity::Error); return tryResult1377
.propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1377.unwrap();
17313 mOriginMetadata.mOrigin, mDirectoryLockId,auto tryResult1377 = (CreateStorageConnection(*databaseFile, *
fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId
, TelemetryIdForFile(databaseFile), Nothing{})); if ((__builtin_expect
(!!(tryResult1377.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateStorageConnection(*databaseFile, *fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId, TelemetryIdForFile(databaseFile), Nothing{})"
, tryResult1377.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17314, mozilla::dom::quota::Severity::Error); return tryResult1377
.propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1377.unwrap();
17314 TelemetryIdForFile(databaseFile), Nothing{}))auto tryResult1377 = (CreateStorageConnection(*databaseFile, *
fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId
, TelemetryIdForFile(databaseFile), Nothing{})); if ((__builtin_expect
(!!(tryResult1377.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateStorageConnection(*databaseFile, *fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId, TelemetryIdForFile(databaseFile), Nothing{})"
, tryResult1377.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17314, mozilla::dom::quota::Severity::Error); return tryResult1377
.propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1377.unwrap();
;
17315
17316 {
17317 // Load version information.
17318 QM_TRY_INSPECT(const auto& stmt,auto tryResult1378 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name, version FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1378.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name, version FROM database\"_ns)"
, tryResult1378.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17321, mozilla::dom::quota::Severity::Error); return tryResult1378
.propagateErr(); } const auto& stmt = tryResult1378.inspect
();
17319 CreateAndExecuteSingleStepStatement<auto tryResult1378 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name, version FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1378.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name, version FROM database\"_ns)"
, tryResult1378.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17321, mozilla::dom::quota::Severity::Error); return tryResult1378
.propagateErr(); } const auto& stmt = tryResult1378.inspect
();
17320 SingleStepResult::ReturnNullIfNoResult>(auto tryResult1378 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name, version FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1378.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name, version FROM database\"_ns)"
, tryResult1378.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17321, mozilla::dom::quota::Severity::Error); return tryResult1378
.propagateErr(); } const auto& stmt = tryResult1378.inspect
();
17321 *connection, "SELECT name, version FROM database"_ns))auto tryResult1378 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name, version FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1378.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name, version FROM database\"_ns)"
, tryResult1378.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17321, mozilla::dom::quota::Severity::Error); return tryResult1378
.propagateErr(); } const auto& stmt = tryResult1378.inspect
();
;
17322
17323 QM_TRY(OkIf(stmt), NS_ERROR_FILE_CORRUPTED){auto tryResult1379 = (OkIf(stmt)); static_assert(std::is_empty_v
<typename decltype(tryResult1379)::ok_type>); if ((__builtin_expect
(!!(tryResult1379.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1379.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(stmt)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17323, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(stmt)", tryTempError
, NS_ERROR_FILE_CORRUPTED); }}
;
17324
17325 QM_TRY_INSPECT(auto tryResult1380 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(stmt)>::GetString), (stmt), 0)); if ((__builtin_expect(!!
(tryResult1380.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(stmt)>::GetString), (stmt), 0)"
, tryResult1380.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17327, mozilla::dom::quota::Severity::Error); return tryResult1380
.propagateErr(); } const auto& databaseName = tryResult1380
.inspect();
17326 const auto& databaseName,auto tryResult1380 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(stmt)>::GetString), (stmt), 0)); if ((__builtin_expect(!!
(tryResult1380.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(stmt)>::GetString), (stmt), 0)"
, tryResult1380.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17327, mozilla::dom::quota::Severity::Error); return tryResult1380
.propagateErr(); } const auto& databaseName = tryResult1380
.inspect();
17327 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsString, stmt, GetString, 0))auto tryResult1380 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(stmt)>::GetString), (stmt), 0)); if ((__builtin_expect(!!
(tryResult1380.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(stmt)>::GetString), (stmt), 0)"
, tryResult1380.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17327, mozilla::dom::quota::Severity::Error); return tryResult1380
.propagateErr(); } const auto& databaseName = tryResult1380
.inspect();
;
17328
17329 QM_TRY_INSPECT(const int64_t& version,auto tryResult1381 = (::mozilla::ToResultInvokeMember( (stmt)
, &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1381.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1381.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17330, mozilla::dom::quota::Severity::Error); return tryResult1381
.propagateErr(); } const int64_t& version = tryResult1381
.inspect();
17330 MOZ_TO_RESULT_INVOKE_MEMBER(stmt, GetInt64, 1))auto tryResult1381 = (::mozilla::ToResultInvokeMember( (stmt)
, &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1381.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)"
, tryResult1381.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17330, mozilla::dom::quota::Severity::Error); return tryResult1381
.propagateErr(); } const int64_t& version = tryResult1381
.inspect();
;
17331
17332 mDatabaseMetadataArray.AppendElement(
17333 DatabaseMetadata(databaseName, version, mPersistenceType));
17334 }
17335 }
17336
17337 mState = State::SendingResults;
17338
17339 QM_TRY(MOZ_TO_RESULT({auto tryResult1382 = (ToResult(DispatchThisAfterProcessingCurrentEvent
(mOwningEventTarget))); static_assert(std::is_empty_v<typename
decltype(tryResult1382)::ok_type>); if ((__builtin_expect
(!!(tryResult1382.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))"
, tryResult1382.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17340, mozilla::dom::quota::Severity::Error); return tryResult1382
.propagateErr(); }}
17340 DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))){auto tryResult1382 = (ToResult(DispatchThisAfterProcessingCurrentEvent
(mOwningEventTarget))); static_assert(std::is_empty_v<typename
decltype(tryResult1382)::ok_type>); if ((__builtin_expect
(!!(tryResult1382.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))"
, tryResult1382.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17340, mozilla::dom::quota::Severity::Error); return tryResult1382
.propagateErr(); }}
;
17341
17342 return NS_OK;
17343}
17344
17345nsresult GetDatabasesOp::BeginVersionChange() {
17346 MOZ_CRASH("Not implemented because this should be unreachable.")do { do { } while (false); MOZ_ReportCrash("" "Not implemented because this should be unreachable."
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17346
); AnnotateMozCrashReason("MOZ_CRASH(" "Not implemented because this should be unreachable."
")"); do { MOZ_CrashSequence(__null, 17346); __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
17347}
17348
17349bool GetDatabasesOp::AreActorsAlive() {
17350 MOZ_CRASH("Not implemented because this should be unreachable.")do { do { } while (false); MOZ_ReportCrash("" "Not implemented because this should be unreachable."
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17350
); AnnotateMozCrashReason("MOZ_CRASH(" "Not implemented because this should be unreachable."
")"); do { MOZ_CrashSequence(__null, 17350); __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
17351}
17352
17353void GetDatabasesOp::SendBlockedNotification() {
17354 MOZ_CRASH("Not implemented because this should be unreachable.")do { do { } while (false); MOZ_ReportCrash("" "Not implemented because this should be unreachable."
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17354
); AnnotateMozCrashReason("MOZ_CRASH(" "Not implemented because this should be unreachable."
")"); do { MOZ_CrashSequence(__null, 17354); __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
17355}
17356
17357nsresult GetDatabasesOp::DispatchToWorkThread() {
17358 MOZ_CRASH("Not implemented because this should be unreachable.")do { do { } while (false); MOZ_ReportCrash("" "Not implemented because this should be unreachable."
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17358
); AnnotateMozCrashReason("MOZ_CRASH(" "Not implemented because this should be unreachable."
")"); do { MOZ_CrashSequence(__null, 17358); __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
17359}
17360
17361nsresult GetDatabasesOp::DoVersionUpdate() {
17362 MOZ_CRASH("Not implemented because this should be unreachable.")do { do { } while (false); MOZ_ReportCrash("" "Not implemented because this should be unreachable."
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17362
); AnnotateMozCrashReason("MOZ_CRASH(" "Not implemented because this should be unreachable."
")"); do { MOZ_CrashSequence(__null, 17362); __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
17363}
17364
17365void GetDatabasesOp::SendResults() {
17366 AssertIsOnOwningThread();
17367 MOZ_ASSERT(mState == State::SendingResults)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::SendingResults)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::SendingResults
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State::SendingResults", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17367); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::SendingResults"
")"); do { MOZ_CrashSequence(__null, 17367); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17368
17369#ifdef DEBUG1
17370 NoteActorDestroyed();
17371#endif
17372
17373 if (HasFailed()) {
17374 mResolver(ClampResultCode(ResultCode()));
17375 } else {
17376 std::sort(mDatabaseMetadataArray.begin(), mDatabaseMetadataArray.end(),
17377 [](const auto& a, const auto& b) { return a.name() < b.name(); });
17378 mResolver(mDatabaseMetadataArray);
17379 }
17380
17381 {
17382 auto destroyingDirectoryLockHandle = std::move(mDirectoryLockHandle);
17383 }
17384
17385 CleanupMetadata();
17386
17387 FinishSendResults();
17388}
17389
17390TransactionDatabaseOperationBase::TransactionDatabaseOperationBase(
17391 SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId)
17392 : DatabaseOperationBase(aTransaction->GetLoggingInfo()->Id(),
17393 aTransaction->GetLoggingInfo()->NextRequestSN()),
17394 mTransaction(WrapNotNull(std::move(aTransaction))),
17395 mRequestId(aRequestId),
17396 mTransactionIsAborted((*mTransaction)->IsAborted()),
17397 mTransactionLoggingSerialNumber((*mTransaction)->LoggingSerialNumber()) {
17398 MOZ_ASSERT(LoggingSerialNumber())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(LoggingSerialNumber())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(LoggingSerialNumber()))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("LoggingSerialNumber()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17398
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "LoggingSerialNumber()"
")"); do { MOZ_CrashSequence(__null, 17398); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17399}
17400
17401TransactionDatabaseOperationBase::TransactionDatabaseOperationBase(
17402 SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId,
17403 uint64_t aLoggingSerialNumber)
17404 : DatabaseOperationBase(aTransaction->GetLoggingInfo()->Id(),
17405 aLoggingSerialNumber),
17406 mTransaction(WrapNotNull(std::move(aTransaction))),
17407 mRequestId(aRequestId),
17408 mTransactionIsAborted((*mTransaction)->IsAborted()),
17409 mTransactionLoggingSerialNumber((*mTransaction)->LoggingSerialNumber()) {}
17410
17411TransactionDatabaseOperationBase::~TransactionDatabaseOperationBase() {
17412 MOZ_ASSERT(mInternalState == InternalState::Completed)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mInternalState == InternalState::Completed)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mInternalState == InternalState::Completed))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mInternalState == InternalState::Completed"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17412
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::Completed"
")"); do { MOZ_CrashSequence(__null, 17412); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17413 MOZ_ASSERT(!mNotedActiveRequest)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mNotedActiveRequest)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mNotedActiveRequest))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("!mNotedActiveRequest"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17413
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mNotedActiveRequest"
")"); do { MOZ_CrashSequence(__null, 17413); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17414 MOZ_ASSERT(!mTransaction,do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mTransaction))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("!mTransaction" " ("
"TransactionDatabaseOperationBase::Cleanup() was not called by a "
"subclass!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17416); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransaction"
") (" "TransactionDatabaseOperationBase::Cleanup() was not called by a "
"subclass!" ")"); do { MOZ_CrashSequence(__null, 17416); __attribute__
((nomerge)) ::abort(); } while (false); } } while (false)
17415 "TransactionDatabaseOperationBase::Cleanup() was not called by a "do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mTransaction))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("!mTransaction" " ("
"TransactionDatabaseOperationBase::Cleanup() was not called by a "
"subclass!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17416); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransaction"
") (" "TransactionDatabaseOperationBase::Cleanup() was not called by a "
"subclass!" ")"); do { MOZ_CrashSequence(__null, 17416); __attribute__
((nomerge)) ::abort(); } while (false); } } while (false)
17416 "subclass!")do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mTransaction))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("!mTransaction" " ("
"TransactionDatabaseOperationBase::Cleanup() was not called by a "
"subclass!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17416); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransaction"
") (" "TransactionDatabaseOperationBase::Cleanup() was not called by a "
"subclass!" ")"); do { MOZ_CrashSequence(__null, 17416); __attribute__
((nomerge)) ::abort(); } while (false); } } while (false)
;
17417}
17418
17419#ifdef DEBUG1
17420
17421void TransactionDatabaseOperationBase::AssertIsOnConnectionThread() const {
17422 (*mTransaction)->AssertIsOnConnectionThread();
17423}
17424
17425#endif // DEBUG
17426
17427uint64_t TransactionDatabaseOperationBase::StartOnConnectionPool(
17428 const nsID& aBackgroundChildLoggingId, const nsACString& aDatabaseId,
17429 int64_t aLoggingSerialNumber, const nsTArray<nsString>& aObjectStoreNames,
17430 bool aIsWriteTransaction) {
17431 AssertIsOnOwningThread();
17432 MOZ_ASSERT(mInternalState == InternalState::Initial)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mInternalState == InternalState::Initial)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mInternalState == InternalState::Initial))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mInternalState == InternalState::Initial"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17432
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::Initial"
")"); do { MOZ_CrashSequence(__null, 17432); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17433
17434 // Must set mInternalState before dispatching otherwise we will race with the
17435 // connection thread.
17436 mInternalState = InternalState::DatabaseWork;
17437
17438 return gConnectionPool->Start(aBackgroundChildLoggingId, aDatabaseId,
17439 aLoggingSerialNumber, aObjectStoreNames,
17440 aIsWriteTransaction, this);
17441}
17442
17443void TransactionDatabaseOperationBase::DispatchToConnectionPool() {
17444 AssertIsOnOwningThread();
17445 MOZ_ASSERT(mInternalState == InternalState::Initial)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mInternalState == InternalState::Initial)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mInternalState == InternalState::Initial))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mInternalState == InternalState::Initial"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17445
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::Initial"
")"); do { MOZ_CrashSequence(__null, 17445); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17446
17447 (void)this->Run();
17448}
17449
17450void TransactionDatabaseOperationBase::RunOnConnectionThread() {
17451 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17451
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 17451); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17452 MOZ_ASSERT(mInternalState == InternalState::DatabaseWork)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mInternalState == InternalState::DatabaseWork)>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mInternalState == InternalState::DatabaseWork))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("mInternalState == InternalState::DatabaseWork"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17452
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::DatabaseWork"
")"); do { MOZ_CrashSequence(__null, 17452); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17453 MOZ_ASSERT(!HasFailed())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!HasFailed())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!HasFailed()))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("!HasFailed()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17453); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!HasFailed()"
")"); do { MOZ_CrashSequence(__null, 17453); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17454
17455 AUTO_PROFILER_LABEL("TransactionDatabaseOperationBase::RunOnConnectionThread",mozilla::AutoProfilerLabel raiiObject17456( "TransactionDatabaseOperationBase::RunOnConnectionThread"
, nullptr, JS::ProfilingCategoryPair::DOM)
17456 DOM)mozilla::AutoProfilerLabel raiiObject17456( "TransactionDatabaseOperationBase::RunOnConnectionThread"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
17457
17458 // There are several cases where we don't actually have to to any work here.
17459
17460 if (mTransactionIsAborted || (*mTransaction)->IsInvalidatedOnAnyThread()) {
17461 // This transaction is already set to be aborted or invalidated.
17462 SetFailureCode(NS_ERROR_DOM_INDEXEDDB_ABORT_ERR);
17463 } else if (!OperationMayProceed()) {
17464 // The operation was canceled in some way, likely because the child process
17465 // has crashed.
17466 IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17466, idbInternalErrMsg.get()); } while (0)
;
17467 OverrideFailureCode(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR);
17468 } else {
17469 Database& database = (*mTransaction)->GetMutableDatabase();
17470
17471 // Here we're actually going to perform the database operation.
17472 nsresult rv = database.EnsureConnection();
17473 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17473)
) {
17474 SetFailureCode(rv);
17475 } else {
17476 DatabaseConnection* connection = database.GetConnection();
17477 MOZ_ASSERT(connection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(connection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(connection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("connection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17477); AnnotateMozCrashReason("MOZ_ASSERT" "(" "connection"
")"); do { MOZ_CrashSequence(__null, 17477); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17478
17479 auto& storageConnection = connection->MutableStorageConnection();
17480
17481 AutoSetProgressHandler autoProgress;
17482 if (mLoggingSerialNumber) {
17483 rv = autoProgress.Register(storageConnection, this);
17484 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17484)
) {
17485 SetFailureCode(rv);
17486 }
17487 }
17488
17489 if (NS_SUCCEEDED(rv)((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) {
17490 if (mLoggingSerialNumber) {
17491 IDB_LOG_MARK_PARENT_TRANSACTION_REQUEST(mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"Beginning database work", "IndexedDB %s: " "P" " " "T[%" "l"
"i" "]" " " "R[%" "l" "u" "]" ": " "DB Start", mozilla::dom::
indexedDB::LoggingIdString<true>(mBackgroundChildLoggingId
).get(), mTransactionLoggingSerialNumber, mLoggingSerialNumber
)
17492 "Beginning database work", "DB Start",mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"Beginning database work", "IndexedDB %s: " "P" " " "T[%" "l"
"i" "]" " " "R[%" "l" "u" "]" ": " "DB Start", mozilla::dom::
indexedDB::LoggingIdString<true>(mBackgroundChildLoggingId
).get(), mTransactionLoggingSerialNumber, mLoggingSerialNumber
)
17493 IDB_LOG_ID_STRING(mBackgroundChildLoggingId),mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"Beginning database work", "IndexedDB %s: " "P" " " "T[%" "l"
"i" "]" " " "R[%" "l" "u" "]" ": " "DB Start", mozilla::dom::
indexedDB::LoggingIdString<true>(mBackgroundChildLoggingId
).get(), mTransactionLoggingSerialNumber, mLoggingSerialNumber
)
17494 mTransactionLoggingSerialNumber, mLoggingSerialNumber)mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"Beginning database work", "IndexedDB %s: " "P" " " "T[%" "l"
"i" "]" " " "R[%" "l" "u" "]" ": " "DB Start", mozilla::dom::
indexedDB::LoggingIdString<true>(mBackgroundChildLoggingId
).get(), mTransactionLoggingSerialNumber, mLoggingSerialNumber
)
;
17495 }
17496
17497 rv = DoDatabaseWork(connection);
17498
17499 if (mLoggingSerialNumber) {
17500 IDB_LOG_MARK_PARENT_TRANSACTION_REQUEST(mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"Finished database work", "IndexedDB %s: " "P" " " "T[%" "l"
"i" "]" " " "R[%" "l" "u" "]" ": " "DB End", mozilla::dom::indexedDB
::LoggingIdString<true>(mBackgroundChildLoggingId).get(
), mTransactionLoggingSerialNumber, mLoggingSerialNumber)
17501 "Finished database work", "DB End",mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"Finished database work", "IndexedDB %s: " "P" " " "T[%" "l"
"i" "]" " " "R[%" "l" "u" "]" ": " "DB End", mozilla::dom::indexedDB
::LoggingIdString<true>(mBackgroundChildLoggingId).get(
), mTransactionLoggingSerialNumber, mLoggingSerialNumber)
17502 IDB_LOG_ID_STRING(mBackgroundChildLoggingId),mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"Finished database work", "IndexedDB %s: " "P" " " "T[%" "l"
"i" "]" " " "R[%" "l" "u" "]" ": " "DB End", mozilla::dom::indexedDB
::LoggingIdString<true>(mBackgroundChildLoggingId).get(
), mTransactionLoggingSerialNumber, mLoggingSerialNumber)
17503 mTransactionLoggingSerialNumber, mLoggingSerialNumber)mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"Finished database work", "IndexedDB %s: " "P" " " "T[%" "l"
"i" "]" " " "R[%" "l" "u" "]" ": " "DB End", mozilla::dom::indexedDB
::LoggingIdString<true>(mBackgroundChildLoggingId).get(
), mTransactionLoggingSerialNumber, mLoggingSerialNumber)
;
17504 }
17505
17506 if (NS_FAILED(rv)((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) {
17507 SetFailureCode(rv);
17508 }
17509 }
17510 }
17511 }
17512
17513 // Must set mInternalState before dispatching otherwise we will race with the
17514 // owning thread.
17515 if (HasPreprocessInfo()) {
17516 mInternalState = InternalState::SendingPreprocess;
17517 } else {
17518 mInternalState = InternalState::SendingResults;
17519 }
17520
17521 MOZ_ALWAYS_SUCCEEDS(mOwningEventTarget->Dispatch(this, NS_DISPATCH_NORMAL))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL
))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17521
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { MOZ_CrashSequence(__null, 17521); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
17522}
17523
17524bool TransactionDatabaseOperationBase::HasPreprocessInfo() { return false; }
17525
17526nsresult TransactionDatabaseOperationBase::SendPreprocessInfo() {
17527 return NS_OK;
17528}
17529
17530void TransactionDatabaseOperationBase::NoteContinueReceived() {
17531 AssertIsOnOwningThread();
17532 MOZ_ASSERT(mInternalState == InternalState::WaitingForContinue)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mInternalState == InternalState::WaitingForContinue)
>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mInternalState == InternalState::WaitingForContinue)
)), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mInternalState == InternalState::WaitingForContinue"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17532
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::WaitingForContinue"
")"); do { MOZ_CrashSequence(__null, 17532); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17533
17534 mWaitingForContinue = false;
17535
17536 mInternalState = InternalState::SendingResults;
17537
17538 // This TransactionDatabaseOperationBase can only be held alive by the IPDL.
17539 // Run() can end up with clearing that last reference. So we need to add
17540 // a self reference here.
17541 RefPtr<TransactionDatabaseOperationBase> kungFuDeathGrip = this;
17542
17543 (void)this->Run();
17544}
17545
17546void TransactionDatabaseOperationBase::NoteTransactionActiveRequest() {
17547 AssertIsOnOwningThread();
17548 MOZ_ASSERT(!mNotedActiveRequest)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mNotedActiveRequest)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mNotedActiveRequest))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("!mNotedActiveRequest"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17548
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mNotedActiveRequest"
")"); do { MOZ_CrashSequence(__null, 17548); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17549
17550 (*mTransaction)->NoteActiveRequest();
17551 mNotedActiveRequest = true;
17552}
17553
17554void TransactionDatabaseOperationBase::SendToConnectionPool() {
17555 AssertIsOnOwningThread();
17556 MOZ_ASSERT(mInternalState == InternalState::Initial)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mInternalState == InternalState::Initial)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mInternalState == InternalState::Initial))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mInternalState == InternalState::Initial"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17556
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::Initial"
")"); do { MOZ_CrashSequence(__null, 17556); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17557
17558 // Must set mInternalState before dispatching otherwise we will race with the
17559 // connection thread.
17560 mInternalState = InternalState::DatabaseWork;
17561
17562 gConnectionPool->StartOp((*mTransaction)->TransactionId(), this);
17563
17564 NoteTransactionActiveRequest();
17565}
17566
17567void TransactionDatabaseOperationBase::SendPreprocess() {
17568 AssertIsOnOwningThread();
17569 MOZ_ASSERT(mInternalState == InternalState::SendingPreprocess)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mInternalState == InternalState::SendingPreprocess)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mInternalState == InternalState::SendingPreprocess))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mInternalState == InternalState::SendingPreprocess"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17569
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::SendingPreprocess"
")"); do { MOZ_CrashSequence(__null, 17569); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17570
17571 SendPreprocessInfoOrResults(/* aSendPreprocessInfo */ true);
17572}
17573
17574void TransactionDatabaseOperationBase::SendResults() {
17575 AssertIsOnOwningThread();
17576 MOZ_ASSERT(mInternalState == InternalState::SendingResults)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mInternalState == InternalState::SendingResults)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mInternalState == InternalState::SendingResults))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("mInternalState == InternalState::SendingResults"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17576
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::SendingResults"
")"); do { MOZ_CrashSequence(__null, 17576); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17577
17578 SendPreprocessInfoOrResults(/* aSendPreprocessInfo */ false);
17579}
17580
17581void TransactionDatabaseOperationBase::SendPreprocessInfoOrResults(
17582 bool aSendPreprocessInfo) {
17583 AssertIsOnOwningThread();
17584 MOZ_ASSERT(mInternalState == InternalState::SendingPreprocess ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mInternalState == InternalState::SendingPreprocess ||
mInternalState == InternalState::SendingResults)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mInternalState == InternalState::SendingPreprocess || mInternalState
== InternalState::SendingResults))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("mInternalState == InternalState::SendingPreprocess || mInternalState == InternalState::SendingResults"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17585
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::SendingPreprocess || mInternalState == InternalState::SendingResults"
")"); do { MOZ_CrashSequence(__null, 17585); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
17585 mInternalState == InternalState::SendingResults)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mInternalState == InternalState::SendingPreprocess ||
mInternalState == InternalState::SendingResults)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mInternalState == InternalState::SendingPreprocess || mInternalState
== InternalState::SendingResults))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("mInternalState == InternalState::SendingPreprocess || mInternalState == InternalState::SendingResults"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17585
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::SendingPreprocess || mInternalState == InternalState::SendingResults"
")"); do { MOZ_CrashSequence(__null, 17585); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17586
17587 // The flag is raised only when there is no mUpdateRefcountFunction for the
17588 // executing operation. It assume that is because the previous
17589 // StartTransactionOp was failed to begin a write transaction and it reported
17590 // when this operation has already jumped to the Connection thread.
17591 MOZ_DIAGNOSTIC_ASSERT_IF(mAssumingPreviousOperationFail,do { if (mAssumingPreviousOperationFail) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*mTransaction
)->IsAborted())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*mTransaction)->IsAborted
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*mTransaction)->IsAborted()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17592); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "(*mTransaction)->IsAborted()"
")"); do { MOZ_CrashSequence(__null, 17592); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
17592 (*mTransaction)->IsAborted())do { if (mAssumingPreviousOperationFail) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*mTransaction
)->IsAborted())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*mTransaction)->IsAborted
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*mTransaction)->IsAborted()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17592); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "(*mTransaction)->IsAborted()"
")"); do { MOZ_CrashSequence(__null, 17592); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
17593
17594 if (NS_WARN_IF(IsActorDestroyed())NS_warn_if_impl(IsActorDestroyed(), "IsActorDestroyed()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17594)
) {
17595 // Normally we wouldn't need to send any notifications if the actor was
17596 // already destroyed, but this can be a VersionChangeOp which needs to
17597 // notify its parent operation (OpenDatabaseOp) about the failure.
17598 // So SendFailureResult needs to be called even when the actor was
17599 // destroyed. Normal operations redundantly check if the actor was
17600 // destroyed in SendSuccessResult and SendFailureResult, therefore it's
17601 // ok to call it in all cases here.
17602 if (!HasFailed()) {
17603 IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17603, idbInternalErrMsg.get()); } while (0)
;
17604 SetFailureCode(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR);
17605 }
17606 } else if ((*mTransaction)->IsInvalidated() || (*mTransaction)->IsAborted()) {
17607 // Aborted transactions always see their requests fail with ABORT_ERR,
17608 // even if the request succeeded or failed with another error.
17609 OverrideFailureCode(NS_ERROR_DOM_INDEXEDDB_ABORT_ERR);
17610 }
17611
17612 const auto result = [aSendPreprocessInfo, this]() -> TransactionOpResult {
17613 if (HasFailed()) {
17614 return ResultCode();
17615 }
17616 if (aSendPreprocessInfo) {
17617 // This should not release the IPDL reference.
17618 return SendPreprocessInfo();
17619 }
17620 // This may release the IPDL reference.
17621 return SendSuccessResult();
17622 }();
17623
17624 if (NS_FAILED(result.mCode)((bool)(__builtin_expect(!!(NS_FAILED_impl(result.mCode)), 0)
))
) {
17625 SetFailureCodeIfUnset(result.mCode);
17626
17627 // This should definitely release the IPDL reference.
17628 if (!SendFailureResult(result)) {
17629 // Abort the transaction.
17630 (*mTransaction)->Abort(result.mCode, /* aForce */ false);
17631 }
17632 }
17633
17634 if (aSendPreprocessInfo && !HasFailed()) {
17635 mInternalState = InternalState::WaitingForContinue;
17636
17637 mWaitingForContinue = true;
17638 } else {
17639 if (mNotedActiveRequest) {
17640 (*mTransaction)->NoteFinishedRequest(mRequestId, ResultCode());
17641 mNotedActiveRequest = false;
17642 }
17643
17644 gConnectionPool->FinishOp((*mTransaction)->TransactionId());
17645
17646 Cleanup();
17647
17648 mInternalState = InternalState::Completed;
17649 }
17650}
17651
17652bool TransactionDatabaseOperationBase::Init(TransactionBase& aTransaction) {
17653 AssertIsOnBackgroundThread();
17654 MOZ_ASSERT(mInternalState == InternalState::Initial)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mInternalState == InternalState::Initial)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mInternalState == InternalState::Initial))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mInternalState == InternalState::Initial"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17654
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::Initial"
")"); do { MOZ_CrashSequence(__null, 17654); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17655
17656 return true;
17657}
17658
17659void TransactionDatabaseOperationBase::Cleanup() {
17660 AssertIsOnOwningThread();
17661 MOZ_ASSERT(mInternalState == InternalState::SendingResults)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mInternalState == InternalState::SendingResults)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mInternalState == InternalState::SendingResults))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("mInternalState == InternalState::SendingResults"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17661
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::SendingResults"
")"); do { MOZ_CrashSequence(__null, 17661); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17662
17663 mTransaction.destroy();
17664}
17665
17666NS_IMETHODIMPnsresult
17667TransactionDatabaseOperationBase::Run() {
17668 switch (mInternalState) {
17669 case InternalState::Initial:
17670 SendToConnectionPool();
17671 return NS_OK;
17672
17673 case InternalState::DatabaseWork:
17674 RunOnConnectionThread();
17675 return NS_OK;
17676
17677 case InternalState::SendingPreprocess:
17678 SendPreprocess();
17679 return NS_OK;
17680
17681 case InternalState::SendingResults:
17682 SendResults();
17683 return NS_OK;
17684
17685 default:
17686 MOZ_CRASH("Bad state!")do { do { } while (false); MOZ_ReportCrash("" "Bad state!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17686); AnnotateMozCrashReason("MOZ_CRASH(" "Bad state!" ")"
); do { MOZ_CrashSequence(__null, 17686); __attribute__((nomerge
)) ::abort(); } while (false); } while (false)
;
17687 }
17688}
17689
17690TransactionBase::CommitOp::CommitOp(SafeRefPtr<TransactionBase> aTransaction,
17691 nsresult aResultCode)
17692 : DatabaseOperationBase(aTransaction->GetLoggingInfo()->Id(),
17693 aTransaction->GetLoggingInfo()->NextRequestSN()),
17694 mTransaction(std::move(aTransaction)),
17695 mResultCode(aResultCode) {
17696 MOZ_ASSERT(mTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mTransaction))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mTransaction", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17696); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction"
")"); do { MOZ_CrashSequence(__null, 17696); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17697 MOZ_ASSERT(LoggingSerialNumber())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(LoggingSerialNumber())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(LoggingSerialNumber()))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("LoggingSerialNumber()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17697
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "LoggingSerialNumber()"
")"); do { MOZ_CrashSequence(__null, 17697); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17698}
17699
17700nsresult TransactionBase::CommitOp::WriteAutoIncrementCounts() {
17701 MOZ_ASSERT(mTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mTransaction))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mTransaction", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17701); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction"
")"); do { MOZ_CrashSequence(__null, 17701); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17702 mTransaction->AssertIsOnConnectionThread();
17703 MOZ_ASSERT(mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mTransaction->GetMode() == IDBTransaction::Mode::
ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode
::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction
::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction
::Mode::VersionChange)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mTransaction->GetMode() ==
IDBTransaction::Mode::ReadWrite || mTransaction->GetMode(
) == IDBTransaction::Mode::ReadWriteFlush || mTransaction->
GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->
GetMode() == IDBTransaction::Mode::VersionChange))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17706
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 17706); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
17704 mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mTransaction->GetMode() == IDBTransaction::Mode::
ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode
::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction
::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction
::Mode::VersionChange)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mTransaction->GetMode() ==
IDBTransaction::Mode::ReadWrite || mTransaction->GetMode(
) == IDBTransaction::Mode::ReadWriteFlush || mTransaction->
GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->
GetMode() == IDBTransaction::Mode::VersionChange))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17706
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 17706); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
17705 mTransaction->GetMode() == IDBTransaction::Mode::Cleanup ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mTransaction->GetMode() == IDBTransaction::Mode::
ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode
::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction
::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction
::Mode::VersionChange)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mTransaction->GetMode() ==
IDBTransaction::Mode::ReadWrite || mTransaction->GetMode(
) == IDBTransaction::Mode::ReadWriteFlush || mTransaction->
GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->
GetMode() == IDBTransaction::Mode::VersionChange))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17706
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 17706); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
17706 mTransaction->GetMode() == IDBTransaction::Mode::VersionChange)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mTransaction->GetMode() == IDBTransaction::Mode::
ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode
::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction
::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction
::Mode::VersionChange)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mTransaction->GetMode() ==
IDBTransaction::Mode::ReadWrite || mTransaction->GetMode(
) == IDBTransaction::Mode::ReadWriteFlush || mTransaction->
GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->
GetMode() == IDBTransaction::Mode::VersionChange))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17706
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 17706); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17707
17708 const nsTArray<SafeRefPtr<FullObjectStoreMetadata>>& metadataArray =
17709 mTransaction->mModifiedAutoIncrementObjectStoreMetadataArray;
17710
17711 if (!metadataArray.IsEmpty()) {
17712 DatabaseConnection* connection =
17713 mTransaction->GetDatabase().GetConnection();
17714 MOZ_ASSERT(connection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(connection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(connection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("connection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17714); AnnotateMozCrashReason("MOZ_ASSERT" "(" "connection"
")"); do { MOZ_CrashSequence(__null, 17714); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17715
17716 // The parameter names are not used, parameters are bound by index only
17717 // locally in the same function.
17718 auto stmt = DatabaseConnection::LazyStatement(
17719 *connection,
17720 "UPDATE object_store "
17721 "SET auto_increment = :auto_increment WHERE id "
17722 "= :object_store_id;"_ns);
17723
17724 for (const auto& metadata : metadataArray) {
17725 MOZ_ASSERT(!metadata->mDeleted)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!metadata->mDeleted)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!metadata->mDeleted))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!metadata->mDeleted"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17725
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!metadata->mDeleted"
")"); do { MOZ_CrashSequence(__null, 17725); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17726
17727 const int64_t nextAutoIncrementId = [&metadata] {
17728 const auto&& lockedAutoIncrementIds =
17729 metadata->mAutoIncrementIds.Lock();
17730 return lockedAutoIncrementIds->next;
17731 }();
17732
17733 MOZ_ASSERT(nextAutoIncrementId > 1)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(nextAutoIncrementId > 1)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(nextAutoIncrementId > 1))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("nextAutoIncrementId > 1"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17733
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "nextAutoIncrementId > 1"
")"); do { MOZ_CrashSequence(__null, 17733); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17734
17735 QM_TRY_INSPECT(const auto& borrowedStmt, stmt.Borrow())auto tryResult1383 = (stmt.Borrow()); if ((__builtin_expect(!
!(tryResult1383.isErr()), 0))) { mozilla::dom::quota::HandleError
("stmt.Borrow()", tryResult1383.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17735, mozilla::dom::quota::Severity::Error); return tryResult1383
.propagateErr(); } const auto& borrowedStmt = tryResult1383
.inspect();
;
17736
17737 QM_TRY(MOZ_TO_RESULT({auto tryResult1384 = (ToResult(borrowedStmt->BindInt64ByIndex
(1, metadata->mCommonMetadata.id()))); static_assert(std::
is_empty_v<typename decltype(tryResult1384)::ok_type>);
if ((__builtin_expect(!!(tryResult1384.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(borrowedStmt->BindInt64ByIndex(1, metadata->mCommonMetadata.id()))"
, tryResult1384.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17738, mozilla::dom::quota::Severity::Error); return tryResult1384
.propagateErr(); }}
17738 borrowedStmt->BindInt64ByIndex(1, metadata->mCommonMetadata.id()))){auto tryResult1384 = (ToResult(borrowedStmt->BindInt64ByIndex
(1, metadata->mCommonMetadata.id()))); static_assert(std::
is_empty_v<typename decltype(tryResult1384)::ok_type>);
if ((__builtin_expect(!!(tryResult1384.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(borrowedStmt->BindInt64ByIndex(1, metadata->mCommonMetadata.id()))"
, tryResult1384.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17738, mozilla::dom::quota::Severity::Error); return tryResult1384
.propagateErr(); }}
;
17739
17740 QM_TRY(MOZ_TO_RESULT({auto tryResult1385 = (ToResult(borrowedStmt->BindInt64ByIndex
(0, nextAutoIncrementId))); static_assert(std::is_empty_v<
typename decltype(tryResult1385)::ok_type>); if ((__builtin_expect
(!!(tryResult1385.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(borrowedStmt->BindInt64ByIndex(0, nextAutoIncrementId))"
, tryResult1385.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17741, mozilla::dom::quota::Severity::Error); return tryResult1385
.propagateErr(); }}
17741 borrowedStmt->BindInt64ByIndex(0, nextAutoIncrementId))){auto tryResult1385 = (ToResult(borrowedStmt->BindInt64ByIndex
(0, nextAutoIncrementId))); static_assert(std::is_empty_v<
typename decltype(tryResult1385)::ok_type>); if ((__builtin_expect
(!!(tryResult1385.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(borrowedStmt->BindInt64ByIndex(0, nextAutoIncrementId))"
, tryResult1385.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17741, mozilla::dom::quota::Severity::Error); return tryResult1385
.propagateErr(); }}
;
17742
17743 QM_TRY(MOZ_TO_RESULT(borrowedStmt->Execute())){auto tryResult1386 = (ToResult(borrowedStmt->Execute()));
static_assert(std::is_empty_v<typename decltype(tryResult1386
)::ok_type>); if ((__builtin_expect(!!(tryResult1386.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedStmt->Execute())"
, tryResult1386.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17743, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}
;
17744 }
17745 }
17746
17747 return NS_OK;
17748}
17749
17750void TransactionBase::CommitOp::CommitOrRollbackAutoIncrementCounts() {
17751 MOZ_ASSERT(mTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mTransaction))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mTransaction", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17751); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction"
")"); do { MOZ_CrashSequence(__null, 17751); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17752 mTransaction->AssertIsOnConnectionThread();
17753 MOZ_ASSERT(mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mTransaction->GetMode() == IDBTransaction::Mode::
ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode
::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction
::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction
::Mode::VersionChange)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mTransaction->GetMode() ==
IDBTransaction::Mode::ReadWrite || mTransaction->GetMode(
) == IDBTransaction::Mode::ReadWriteFlush || mTransaction->
GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->
GetMode() == IDBTransaction::Mode::VersionChange))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17756
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 17756); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
17754 mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mTransaction->GetMode() == IDBTransaction::Mode::
ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode
::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction
::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction
::Mode::VersionChange)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mTransaction->GetMode() ==
IDBTransaction::Mode::ReadWrite || mTransaction->GetMode(
) == IDBTransaction::Mode::ReadWriteFlush || mTransaction->
GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->
GetMode() == IDBTransaction::Mode::VersionChange))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17756
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 17756); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
17755 mTransaction->GetMode() == IDBTransaction::Mode::Cleanup ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mTransaction->GetMode() == IDBTransaction::Mode::
ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode
::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction
::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction
::Mode::VersionChange)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mTransaction->GetMode() ==
IDBTransaction::Mode::ReadWrite || mTransaction->GetMode(
) == IDBTransaction::Mode::ReadWriteFlush || mTransaction->
GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->
GetMode() == IDBTransaction::Mode::VersionChange))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17756
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 17756); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
17756 mTransaction->GetMode() == IDBTransaction::Mode::VersionChange)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mTransaction->GetMode() == IDBTransaction::Mode::
ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode
::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction
::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction
::Mode::VersionChange)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mTransaction->GetMode() ==
IDBTransaction::Mode::ReadWrite || mTransaction->GetMode(
) == IDBTransaction::Mode::ReadWriteFlush || mTransaction->
GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->
GetMode() == IDBTransaction::Mode::VersionChange))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17756
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 17756); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17757
17758 const auto& metadataArray =
17759 mTransaction->mModifiedAutoIncrementObjectStoreMetadataArray;
17760
17761 if (!metadataArray.IsEmpty()) {
17762 bool committed = NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
;
17763
17764 for (const auto& metadata : metadataArray) {
17765 auto&& lockedAutoIncrementIds = metadata->mAutoIncrementIds.Lock();
17766
17767 if (committed) {
17768 lockedAutoIncrementIds->committed = lockedAutoIncrementIds->next;
17769 } else {
17770 lockedAutoIncrementIds->next = lockedAutoIncrementIds->committed;
17771 }
17772 }
17773 }
17774}
17775
17776#ifdef DEBUG1
17777
17778void TransactionBase::CommitOp::AssertForeignKeyConsistency(
17779 DatabaseConnection* aConnection) {
17780 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17780); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 17780); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17781 MOZ_ASSERT(mTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mTransaction))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mTransaction", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17781); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction"
")"); do { MOZ_CrashSequence(__null, 17781); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17782 mTransaction->AssertIsOnConnectionThread();
17783 MOZ_ASSERT(mTransaction->GetMode() != IDBTransaction::Mode::ReadOnly)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mTransaction->GetMode() != IDBTransaction::Mode::
ReadOnly)>::isValid, "invalid assertion condition"); if ((
__builtin_expect(!!(!(!!(mTransaction->GetMode() != IDBTransaction
::Mode::ReadOnly))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mTransaction->GetMode() != IDBTransaction::Mode::ReadOnly"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17783
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction->GetMode() != IDBTransaction::Mode::ReadOnly"
")"); do { MOZ_CrashSequence(__null, 17783); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17784
17785 {
17786 QM_TRY_INSPECT(auto tryResult1387 = (CreateAndExecuteSingleStepStatement( aConnection
->MutableStorageConnection(), "PRAGMA foreign_keys;"_ns));
if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { [[maybe_unused
]] auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom
::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection->MutableStorageConnection(), \"PRAGMA foreign_keys;\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17790, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement( aConnection->MutableStorageConnection(), \"PRAGMA foreign_keys;\"_ns)"
, tryTempError, [](const char*, const char*) { do { do { } while
(false); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17790); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17790); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& pragmaStmt = tryResult1387.inspect();
17787 const auto& pragmaStmt,auto tryResult1387 = (CreateAndExecuteSingleStepStatement( aConnection
->MutableStorageConnection(), "PRAGMA foreign_keys;"_ns));
if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { [[maybe_unused
]] auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom
::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection->MutableStorageConnection(), \"PRAGMA foreign_keys;\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17790, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement( aConnection->MutableStorageConnection(), \"PRAGMA foreign_keys;\"_ns)"
, tryTempError, [](const char*, const char*) { do { do { } while
(false); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17790); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17790); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& pragmaStmt = tryResult1387.inspect();
17788 CreateAndExecuteSingleStepStatement(auto tryResult1387 = (CreateAndExecuteSingleStepStatement( aConnection
->MutableStorageConnection(), "PRAGMA foreign_keys;"_ns));
if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { [[maybe_unused
]] auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom
::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection->MutableStorageConnection(), \"PRAGMA foreign_keys;\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17790, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement( aConnection->MutableStorageConnection(), \"PRAGMA foreign_keys;\"_ns)"
, tryTempError, [](const char*, const char*) { do { do { } while
(false); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17790); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17790); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& pragmaStmt = tryResult1387.inspect();
17789 aConnection->MutableStorageConnection(), "PRAGMA foreign_keys;"_ns),auto tryResult1387 = (CreateAndExecuteSingleStepStatement( aConnection
->MutableStorageConnection(), "PRAGMA foreign_keys;"_ns));
if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { [[maybe_unused
]] auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom
::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection->MutableStorageConnection(), \"PRAGMA foreign_keys;\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17790, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement( aConnection->MutableStorageConnection(), \"PRAGMA foreign_keys;\"_ns)"
, tryTempError, [](const char*, const char*) { do { do { } while
(false); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17790); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17790); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& pragmaStmt = tryResult1387.inspect();
17790 QM_ASSERT_UNREACHABLE_VOID)auto tryResult1387 = (CreateAndExecuteSingleStepStatement( aConnection
->MutableStorageConnection(), "PRAGMA foreign_keys;"_ns));
if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { [[maybe_unused
]] auto tryTempError = tryResult1387.unwrapErr(); mozilla::dom
::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection->MutableStorageConnection(), \"PRAGMA foreign_keys;\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17790, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement( aConnection->MutableStorageConnection(), \"PRAGMA foreign_keys;\"_ns)"
, tryTempError, [](const char*, const char*) { do { do { } while
(false); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17790); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17790); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& pragmaStmt = tryResult1387.inspect();
;
17791
17792 int32_t foreignKeysEnabled;
17793 MOZ_ALWAYS_SUCCEEDS(pragmaStmt->GetInt32(0, &foreignKeysEnabled))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(pragmaStmt->GetInt32(0, &foreignKeysEnabled))), 1))))
, 1))) { } else { do { do { } while (false); MOZ_ReportCrash(
"" "NS_SUCCEEDED(pragmaStmt->GetInt32(0, &foreignKeysEnabled))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17793
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(pragmaStmt->GetInt32(0, &foreignKeysEnabled))"
")"); do { MOZ_CrashSequence(__null, 17793); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
17794
17795 MOZ_ASSERT(foreignKeysEnabled,do { static_assert( mozilla::detail::AssertionConditionType<
decltype(foreignKeysEnabled)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(foreignKeysEnabled))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("foreignKeysEnabled"
" (" "Database doesn't have foreign keys enabled!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17796); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foreignKeysEnabled"
") (" "Database doesn't have foreign keys enabled!" ")"); do
{ MOZ_CrashSequence(__null, 17796); __attribute__((nomerge))
::abort(); } while (false); } } while (false)
17796 "Database doesn't have foreign keys enabled!")do { static_assert( mozilla::detail::AssertionConditionType<
decltype(foreignKeysEnabled)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(foreignKeysEnabled))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("foreignKeysEnabled"
" (" "Database doesn't have foreign keys enabled!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17796); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foreignKeysEnabled"
") (" "Database doesn't have foreign keys enabled!" ")"); do
{ MOZ_CrashSequence(__null, 17796); __attribute__((nomerge))
::abort(); } while (false); } } while (false)
;
17797 }
17798
17799 {
17800 QM_TRY_INSPECT(const bool& foreignKeyError,auto tryResult1388 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection->
MutableStorageConnection(), "PRAGMA foreign_key_check;"_ns));
if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { [[maybe_unused
]] auto tryTempError = tryResult1388.unwrapErr(); mozilla::dom
::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17805, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)"
, tryTempError, [](const char*, const char*) { do { do { } while
(false); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17805); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17805); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& foreignKeyError = tryResult1388.inspect();
17801 CreateAndExecuteSingleStepStatement<auto tryResult1388 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection->
MutableStorageConnection(), "PRAGMA foreign_key_check;"_ns));
if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { [[maybe_unused
]] auto tryTempError = tryResult1388.unwrapErr(); mozilla::dom
::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17805, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)"
, tryTempError, [](const char*, const char*) { do { do { } while
(false); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17805); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17805); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& foreignKeyError = tryResult1388.inspect();
17802 SingleStepResult::ReturnNullIfNoResult>(auto tryResult1388 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection->
MutableStorageConnection(), "PRAGMA foreign_key_check;"_ns));
if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { [[maybe_unused
]] auto tryTempError = tryResult1388.unwrapErr(); mozilla::dom
::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17805, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)"
, tryTempError, [](const char*, const char*) { do { do { } while
(false); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17805); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17805); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& foreignKeyError = tryResult1388.inspect();
17803 aConnection->MutableStorageConnection(),auto tryResult1388 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection->
MutableStorageConnection(), "PRAGMA foreign_key_check;"_ns));
if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { [[maybe_unused
]] auto tryTempError = tryResult1388.unwrapErr(); mozilla::dom
::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17805, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)"
, tryTempError, [](const char*, const char*) { do { do { } while
(false); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17805); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17805); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& foreignKeyError = tryResult1388.inspect();
17804 "PRAGMA foreign_key_check;"_ns),auto tryResult1388 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection->
MutableStorageConnection(), "PRAGMA foreign_key_check;"_ns));
if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { [[maybe_unused
]] auto tryTempError = tryResult1388.unwrapErr(); mozilla::dom
::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17805, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)"
, tryTempError, [](const char*, const char*) { do { do { } while
(false); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17805); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17805); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& foreignKeyError = tryResult1388.inspect();
17805 QM_ASSERT_UNREACHABLE_VOID)auto tryResult1388 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection->
MutableStorageConnection(), "PRAGMA foreign_key_check;"_ns));
if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { [[maybe_unused
]] auto tryTempError = tryResult1388.unwrapErr(); mozilla::dom
::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17805, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)"
, tryTempError, [](const char*, const char*) { do { do { } while
(false); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17805); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17805); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& foreignKeyError = tryResult1388.inspect();
;
17806
17807 MOZ_ASSERT(!foreignKeyError, "Database has inconsisistent foreign keys!")do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!foreignKeyError)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!foreignKeyError))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!foreignKeyError"
" (" "Database has inconsisistent foreign keys!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17807); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!foreignKeyError"
") (" "Database has inconsisistent foreign keys!" ")"); do {
MOZ_CrashSequence(__null, 17807); __attribute__((nomerge)) ::
abort(); } while (false); } } while (false)
;
17808 }
17809}
17810
17811#endif // DEBUG
17812
17813NS_IMPL_ISUPPORTS_INHERITED0(TransactionBase::CommitOp, DatabaseOperationBase)nsresult TransactionBase::CommitOp::QueryInterface(const nsIID
& aIID, void** aInstancePtr) { do { if (!(aInstancePtr)) {
NS_DebugBreak(NS_DEBUG_ASSERTION, "QueryInterface requires a non-NULL destination!"
, "aInstancePtr", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17813); MOZ_PretendNoReturn(); } } while (0); nsresult rv =
NS_ERROR_FAILURE; if (((bool)(__builtin_expect(!!(!NS_FAILED_impl
(rv)), 1)))) return rv; return DatabaseOperationBase::QueryInterface
(aIID, aInstancePtr); } MozExternalRefCountType TransactionBase
::CommitOp::AddRef(void) { static_assert(!std::is_destructible_v
<TransactionBase::CommitOp>, "Reference-counted class "
"TransactionBase::CommitOp" " should not have a public destructor. "
"Make this class's destructor non-public"); nsrefcnt r = DatabaseOperationBase
::AddRef(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt
<TransactionBase::CommitOp>) { NS_LogAddRef((this), (r)
, ("TransactionBase::CommitOp"), (uint32_t)(sizeof(*this))); }
return r; } MozExternalRefCountType TransactionBase::CommitOp
::Release(void) { nsrefcnt r = DatabaseOperationBase::Release
(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt
<TransactionBase::CommitOp>) { NS_LogRelease((this), (r
), ("TransactionBase::CommitOp")); } return r; }
17814
17815NS_IMETHODIMPnsresult
17816TransactionBase::CommitOp::Run() {
17817 MOZ_ASSERT(mTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mTransaction))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mTransaction", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17817); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction"
")"); do { MOZ_CrashSequence(__null, 17817); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17818 mTransaction->AssertIsOnConnectionThread();
17819
17820 AUTO_PROFILER_LABEL("TransactionBase::CommitOp::Run", DOM)mozilla::AutoProfilerLabel raiiObject17820( "TransactionBase::CommitOp::Run"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
17821
17822 IDB_LOG_MARK_PARENT_TRANSACTION_REQUEST(mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"Beginning database work", "IndexedDB %s: " "P" " " "T[%" "l"
"i" "]" " " "R[%" "l" "u" "]" ": " "DB Start", mozilla::dom::
indexedDB::LoggingIdString<true>(mBackgroundChildLoggingId
).get(), mTransaction->LoggingSerialNumber(), mLoggingSerialNumber
)
17823 "Beginning database work", "DB Start",mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"Beginning database work", "IndexedDB %s: " "P" " " "T[%" "l"
"i" "]" " " "R[%" "l" "u" "]" ": " "DB Start", mozilla::dom::
indexedDB::LoggingIdString<true>(mBackgroundChildLoggingId
).get(), mTransaction->LoggingSerialNumber(), mLoggingSerialNumber
)
17824 IDB_LOG_ID_STRING(mBackgroundChildLoggingId),mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"Beginning database work", "IndexedDB %s: " "P" " " "T[%" "l"
"i" "]" " " "R[%" "l" "u" "]" ": " "DB Start", mozilla::dom::
indexedDB::LoggingIdString<true>(mBackgroundChildLoggingId
).get(), mTransaction->LoggingSerialNumber(), mLoggingSerialNumber
)
17825 mTransaction->LoggingSerialNumber(), mLoggingSerialNumber)mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"Beginning database work", "IndexedDB %s: " "P" " " "T[%" "l"
"i" "]" " " "R[%" "l" "u" "]" ": " "DB Start", mozilla::dom::
indexedDB::LoggingIdString<true>(mBackgroundChildLoggingId
).get(), mTransaction->LoggingSerialNumber(), mLoggingSerialNumber
)
;
17826
17827 if (mTransaction->GetMode() != IDBTransaction::Mode::ReadOnly &&
17828 mTransaction->mHasBeenActiveOnConnectionThread) {
17829 if (DatabaseConnection* connection =
17830 mTransaction->GetDatabase().GetConnection()) {
17831 // May be null if the VersionChangeOp was canceled.
17832 DatabaseConnection::UpdateRefcountFunction* fileRefcountFunction =
17833 connection->GetUpdateRefcountFunction();
17834
17835 if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
) {
17836 if (fileRefcountFunction) {
17837 mResultCode = fileRefcountFunction->WillCommit();
17838 NS_WARNING_ASSERTION(NS_SUCCEEDED(mResultCode),do { if (!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode
)), 1))))) { NS_DebugBreak(NS_DEBUG_WARNING, "WillCommit() failed!"
, "NS_SUCCEEDED(mResultCode)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17839); } } while (false)
17839 "WillCommit() failed!")do { if (!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode
)), 1))))) { NS_DebugBreak(NS_DEBUG_WARNING, "WillCommit() failed!"
, "NS_SUCCEEDED(mResultCode)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17839); } } while (false)
;
17840 }
17841
17842 if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
) {
17843 mResultCode = WriteAutoIncrementCounts();
17844 NS_WARNING_ASSERTION(NS_SUCCEEDED(mResultCode),do { if (!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode
)), 1))))) { NS_DebugBreak(NS_DEBUG_WARNING, "WriteAutoIncrementCounts() failed!"
, "NS_SUCCEEDED(mResultCode)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17845); } } while (false)
17845 "WriteAutoIncrementCounts() failed!")do { if (!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode
)), 1))))) { NS_DebugBreak(NS_DEBUG_WARNING, "WriteAutoIncrementCounts() failed!"
, "NS_SUCCEEDED(mResultCode)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17845); } } while (false)
;
17846
17847 if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
) {
17848 AssertForeignKeyConsistency(connection);
17849
17850 mResultCode = connection->CommitWriteTransaction();
17851 NS_WARNING_ASSERTION(NS_SUCCEEDED(mResultCode), "Commit failed!")do { if (!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode
)), 1))))) { NS_DebugBreak(NS_DEBUG_WARNING, "Commit failed!"
, "NS_SUCCEEDED(mResultCode)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17851); } } while (false)
;
17852
17853 if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
&&
17854 mTransaction->GetMode() ==
17855 IDBTransaction::Mode::ReadWriteFlush) {
17856 mResultCode = connection->Checkpoint();
17857 }
17858
17859 if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
&& fileRefcountFunction) {
17860 fileRefcountFunction->DidCommit();
17861 }
17862 }
17863 }
17864 }
17865
17866 if (NS_FAILED(mResultCode)((bool)(__builtin_expect(!!(NS_FAILED_impl(mResultCode)), 0))
)
) {
17867 if (fileRefcountFunction) {
17868 fileRefcountFunction->DidAbort();
17869 }
17870
17871 connection->RollbackWriteTransaction();
17872 }
17873
17874 CommitOrRollbackAutoIncrementCounts();
17875
17876 connection->FinishWriteTransaction();
17877
17878 if (mTransaction->GetMode() == IDBTransaction::Mode::Cleanup) {
17879 connection->DoIdleProcessing(/* aNeedsCheckpoint */ true,
17880 /* aInterrupted */ Atomic<bool>(false));
17881
17882 connection->EnableQuotaChecks();
17883 }
17884 }
17885 }
17886
17887 IDB_LOG_MARK_PARENT_TRANSACTION_REQUEST(mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"Finished database work", "IndexedDB %s: " "P" " " "T[%" "l"
"i" "]" " " "R[%" "l" "u" "]" ": " "DB End", mozilla::dom::indexedDB
::LoggingIdString<true>(mBackgroundChildLoggingId).get(
), mTransaction->LoggingSerialNumber(), mLoggingSerialNumber
)
17888 "Finished database work", "DB End",mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"Finished database work", "IndexedDB %s: " "P" " " "T[%" "l"
"i" "]" " " "R[%" "l" "u" "]" ": " "DB End", mozilla::dom::indexedDB
::LoggingIdString<true>(mBackgroundChildLoggingId).get(
), mTransaction->LoggingSerialNumber(), mLoggingSerialNumber
)
17889 IDB_LOG_ID_STRING(mBackgroundChildLoggingId),mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"Finished database work", "IndexedDB %s: " "P" " " "T[%" "l"
"i" "]" " " "R[%" "l" "u" "]" ": " "DB End", mozilla::dom::indexedDB
::LoggingIdString<true>(mBackgroundChildLoggingId).get(
), mTransaction->LoggingSerialNumber(), mLoggingSerialNumber
)
17890 mTransaction->LoggingSerialNumber(), mLoggingSerialNumber)mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"Finished database work", "IndexedDB %s: " "P" " " "T[%" "l"
"i" "]" " " "R[%" "l" "u" "]" ": " "DB End", mozilla::dom::indexedDB
::LoggingIdString<true>(mBackgroundChildLoggingId).get(
), mTransaction->LoggingSerialNumber(), mLoggingSerialNumber
)
;
17891
17892 IDB_LOG_MARK_PARENT_TRANSACTION("Finished database work", "DB End",mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" ": " "Finished database work"
, "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" ": " "DB End", mozilla
::dom::indexedDB::LoggingIdString<true>(mBackgroundChildLoggingId
).get(), mTransaction->LoggingSerialNumber())
17893 IDB_LOG_ID_STRING(mBackgroundChildLoggingId),mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" ": " "Finished database work"
, "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" ": " "DB End", mozilla
::dom::indexedDB::LoggingIdString<true>(mBackgroundChildLoggingId
).get(), mTransaction->LoggingSerialNumber())
17894 mTransaction->LoggingSerialNumber())mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" ": " "Finished database work"
, "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" ": " "DB End", mozilla
::dom::indexedDB::LoggingIdString<true>(mBackgroundChildLoggingId
).get(), mTransaction->LoggingSerialNumber())
;
17895
17896 return NS_OK;
17897}
17898
17899void TransactionBase::CommitOp::TransactionFinishedBeforeUnblock() {
17900 AssertIsOnBackgroundThread();
17901 MOZ_ASSERT(mTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mTransaction))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mTransaction", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17901); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction"
")"); do { MOZ_CrashSequence(__null, 17901); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17902
17903 AUTO_PROFILER_LABEL("CommitOp::TransactionFinishedBeforeUnblock", DOM)mozilla::AutoProfilerLabel raiiObject17903( "CommitOp::TransactionFinishedBeforeUnblock"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
17904
17905 if (!IsActorDestroyed()) {
17906 mTransaction->UpdateMetadata(mResultCode);
17907 }
17908}
17909
17910void TransactionBase::CommitOp::TransactionFinishedAfterUnblock() {
17911 AssertIsOnBackgroundThread();
17912 MOZ_ASSERT(mTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mTransaction))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mTransaction", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17912); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction"
")"); do { MOZ_CrashSequence(__null, 17912); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17913
17914 IDB_LOG_MARK_PARENT_TRANSACTION(mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" ": " "Finished with result 0x%"
"x", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" ": " "Transaction finished (0x%"
"x" ")", mozilla::dom::indexedDB::LoggingIdString<true>
(mTransaction->GetLoggingInfo()->Id()).get(), mTransaction
->LoggingSerialNumber(), static_cast<uint32_t>(mResultCode
))
17915 "Finished with result 0x%" PRIx32, "Transaction finished (0x%" PRIx32 ")",mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" ": " "Finished with result 0x%"
"x", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" ": " "Transaction finished (0x%"
"x" ")", mozilla::dom::indexedDB::LoggingIdString<true>
(mTransaction->GetLoggingInfo()->Id()).get(), mTransaction
->LoggingSerialNumber(), static_cast<uint32_t>(mResultCode
))
17916 IDB_LOG_ID_STRING(mTransaction->GetLoggingInfo()->Id()),mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" ": " "Finished with result 0x%"
"x", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" ": " "Transaction finished (0x%"
"x" ")", mozilla::dom::indexedDB::LoggingIdString<true>
(mTransaction->GetLoggingInfo()->Id()).get(), mTransaction
->LoggingSerialNumber(), static_cast<uint32_t>(mResultCode
))
17917 mTransaction->LoggingSerialNumber(), static_cast<uint32_t>(mResultCode))mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" ": " "Finished with result 0x%"
"x", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" ": " "Transaction finished (0x%"
"x" ")", mozilla::dom::indexedDB::LoggingIdString<true>
(mTransaction->GetLoggingInfo()->Id()).get(), mTransaction
->LoggingSerialNumber(), static_cast<uint32_t>(mResultCode
))
;
17918
17919 mTransaction->SendCompleteNotification(ClampResultCode(mResultCode));
17920
17921 mTransaction->GetMutableDatabase().UnregisterTransaction(*mTransaction);
17922
17923 mTransaction = nullptr;
17924
17925#ifdef DEBUG1
17926 // A bit hacky but the CommitOp is not really a normal database operation
17927 // that is tied to an actor. Do this to make our assertions happy.
17928 NoteActorDestroyed();
17929#endif
17930}
17931
17932TransactionOpResult VersionChangeTransactionOp::SendSuccessResult() {
17933 AssertIsOnOwningThread();
17934
17935 // Nothing to send here, the API assumes that this request always succeeds.
17936 return NS_OK;
17937}
17938
17939bool VersionChangeTransactionOp::SendFailureResult(
17940 const TransactionOpResult& /* aResult */) {
17941 AssertIsOnOwningThread();
17942
17943 // The only option here is to cause the transaction to abort.
17944 return false;
17945}
17946
17947void VersionChangeTransactionOp::Cleanup() {
17948 AssertIsOnOwningThread();
17949
17950#ifdef DEBUG1
17951 // A bit hacky but the VersionChangeTransactionOp is not generated in response
17952 // to a child request like most other database operations. Do this to make our
17953 // assertions happy.
17954 NoteActorDestroyed();
17955#endif
17956
17957 TransactionDatabaseOperationBase::Cleanup();
17958}
17959
17960nsresult CreateObjectStoreOp::DoDatabaseWork(DatabaseConnection* aConnection) {
17961 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 17961); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17962 aConnection->AssertIsOnConnectionThread();
17963
17964 AUTO_PROFILER_LABEL("CreateObjectStoreOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject17964( "CreateObjectStoreOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
17965
17966#ifdef DEBUG1
17967 {
17968 // Make sure that we're not creating an object store with the same name as
17969 // another that already exists. This should be impossible because we should
17970 // have thrown an error long before now...
17971 // The parameter names are not used, parameters are bound by index only
17972 // locally in the same function.
17973 QM_TRY_INSPECT(const bool& hasResult,auto tryResult1390 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1389 = (ToResult(stmt.BindStringByIndex
( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect
(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))"
, tryResult1389.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17981, mozilla::dom::quota::Severity::Error); return tryResult1389
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1390.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1390.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1389 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1389.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17981, mozilla::dom::quota::Severity::Error); return tryResult1389.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17985, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1389 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1389.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17981, mozilla::dom::quota::Severity::Error); return tryResult1389.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17985); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17985); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1390.inspect();
17974 aConnectionauto tryResult1390 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1389 = (ToResult(stmt.BindStringByIndex
( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect
(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))"
, tryResult1389.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17981, mozilla::dom::quota::Severity::Error); return tryResult1389
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1390.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1390.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1389 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1389.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17981, mozilla::dom::quota::Severity::Error); return tryResult1389.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17985, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1389 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1389.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17981, mozilla::dom::quota::Severity::Error); return tryResult1389.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17985); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17985); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1390.inspect();
17975 ->BorrowAndExecuteSingleStepStatement(auto tryResult1390 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1389 = (ToResult(stmt.BindStringByIndex
( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect
(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))"
, tryResult1389.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17981, mozilla::dom::quota::Severity::Error); return tryResult1389
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1390.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1390.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1389 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1389.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17981, mozilla::dom::quota::Severity::Error); return tryResult1389.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17985, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1389 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1389.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17981, mozilla::dom::quota::Severity::Error); return tryResult1389.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17985); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17985); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1390.inspect();
17976 "SELECT name "auto tryResult1390 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1389 = (ToResult(stmt.BindStringByIndex
( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect
(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))"
, tryResult1389.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17981, mozilla::dom::quota::Severity::Error); return tryResult1389
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1390.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1390.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1389 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1389.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17981, mozilla::dom::quota::Severity::Error); return tryResult1389.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17985, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1389 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1389.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17981, mozilla::dom::quota::Severity::Error); return tryResult1389.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17985); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17985); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1390.inspect();
17977 "FROM object_store "auto tryResult1390 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1389 = (ToResult(stmt.BindStringByIndex
( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect
(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))"
, tryResult1389.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17981, mozilla::dom::quota::Severity::Error); return tryResult1389
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1390.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1390.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1389 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1389.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17981, mozilla::dom::quota::Severity::Error); return tryResult1389.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17985, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1389 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1389.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17981, mozilla::dom::quota::Severity::Error); return tryResult1389.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17985); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17985); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1390.inspect();
17978 "WHERE name = :name;"_ns,auto tryResult1390 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1389 = (ToResult(stmt.BindStringByIndex
( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect
(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))"
, tryResult1389.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17981, mozilla::dom::quota::Severity::Error); return tryResult1389
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1390.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1390.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1389 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1389.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17981, mozilla::dom::quota::Severity::Error); return tryResult1389.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17985, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1389 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1389.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17981, mozilla::dom::quota::Severity::Error); return tryResult1389.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17985); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17985); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1390.inspect();
17979 [&self = *this](auto& stmt) -> Result<Ok, nsresult> {auto tryResult1390 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1389 = (ToResult(stmt.BindStringByIndex
( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect
(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))"
, tryResult1389.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17981, mozilla::dom::quota::Severity::Error); return tryResult1389
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1390.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1390.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1389 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1389.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17981, mozilla::dom::quota::Severity::Error); return tryResult1389.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17985, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1389 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1389.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17981, mozilla::dom::quota::Severity::Error); return tryResult1389.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17985); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17985); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1390.inspect();
17980 QM_TRY(MOZ_TO_RESULT(stmt.BindStringByIndex(auto tryResult1390 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1389 = (ToResult(stmt.BindStringByIndex
( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect
(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))"
, tryResult1389.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17981, mozilla::dom::quota::Severity::Error); return tryResult1389
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1390.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1390.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1389 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1389.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17981, mozilla::dom::quota::Severity::Error); return tryResult1389.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17985, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1389 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1389.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17981, mozilla::dom::quota::Severity::Error); return tryResult1389.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17985); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17985); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1390.inspect();
17981 0, self.mMetadata.name())));auto tryResult1390 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1389 = (ToResult(stmt.BindStringByIndex
( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect
(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))"
, tryResult1389.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17981, mozilla::dom::quota::Severity::Error); return tryResult1389
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1390.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1390.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1389 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1389.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17981, mozilla::dom::quota::Severity::Error); return tryResult1389.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17985, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1389 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1389.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17981, mozilla::dom::quota::Severity::Error); return tryResult1389.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17985); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17985); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1390.inspect();
17982 return Ok{};auto tryResult1390 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1389 = (ToResult(stmt.BindStringByIndex
( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect
(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))"
, tryResult1389.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17981, mozilla::dom::quota::Severity::Error); return tryResult1389
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1390.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1390.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1389 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1389.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17981, mozilla::dom::quota::Severity::Error); return tryResult1389.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17985, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1389 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1389.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17981, mozilla::dom::quota::Severity::Error); return tryResult1389.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17985); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17985); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1390.inspect();
17983 })auto tryResult1390 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1389 = (ToResult(stmt.BindStringByIndex
( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect
(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))"
, tryResult1389.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17981, mozilla::dom::quota::Severity::Error); return tryResult1389
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1390.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1390.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1389 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1389.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17981, mozilla::dom::quota::Severity::Error); return tryResult1389.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17985, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1389 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1389.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17981, mozilla::dom::quota::Severity::Error); return tryResult1389.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17985); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17985); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1390.inspect();
17984 .map(IsSome),auto tryResult1390 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1389 = (ToResult(stmt.BindStringByIndex
( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect
(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))"
, tryResult1389.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17981, mozilla::dom::quota::Severity::Error); return tryResult1389
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1390.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1390.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1389 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1389.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17981, mozilla::dom::quota::Severity::Error); return tryResult1389.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17985, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1389 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1389.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17981, mozilla::dom::quota::Severity::Error); return tryResult1389.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17985); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17985); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1390.inspect();
17985 QM_ASSERT_UNREACHABLE)auto tryResult1390 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1389 = (ToResult(stmt.BindStringByIndex
( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect
(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))"
, tryResult1389.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17981, mozilla::dom::quota::Severity::Error); return tryResult1389
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1390.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1390.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1389 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1389.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17981, mozilla::dom::quota::Severity::Error); return tryResult1389.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17985, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1389 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1389)::ok_type>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1389.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17981, mozilla::dom::quota::Severity::Error); return tryResult1389.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17985); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17985); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1390.inspect();
;
17986
17987 MOZ_ASSERT(!hasResult)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!hasResult)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!hasResult))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("!hasResult", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17987); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!hasResult"
")"); do { MOZ_CrashSequence(__null, 17987); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17988 }
17989#endif
17990
17991 DatabaseConnection::AutoSavepoint autoSave;
17992 QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult1391 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391
.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17997, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
17993#ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult1391 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391
.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17997, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
17994 ,{auto tryResult1391 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391
.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17997, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
17995 QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult1391 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391
.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17997, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
17996#endif{auto tryResult1391 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391
.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17997, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
17997 ){auto tryResult1391 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391
.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17997, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
;
17998
17999 // The parameter names are not used, parameters are bound by index only
18000 // locally in the same function.
18001 QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1397 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store (id, auto_increment, name, key_path) "
"VALUES (:id, :auto_increment, :name, :key_path);"_ns, [&
metadata = mMetadata](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1392 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1392)::ok_type>); if ((__builtin_expect
(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1392
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18006, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1393.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18009, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1394)::ok_type>); if ((__builtin_expect
(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1394
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18011, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1395 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18015, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; } else { {auto tryResult1396 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1396.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18017
, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1397)::ok_type>);
if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store (id, auto_increment, name, key_path) \" \"VALUES (:id, :auto_increment, :name, :key_path);\"_ns, [&metadata = mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1392 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18006, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1393.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18009, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18011, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1395 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18015, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; } else { {auto tryResult1396 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1396.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18017, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } return Ok{}; }))"
, tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18021, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}
18002 "INSERT INTO object_store (id, auto_increment, name, key_path) "{auto tryResult1397 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store (id, auto_increment, name, key_path) "
"VALUES (:id, :auto_increment, :name, :key_path);"_ns, [&
metadata = mMetadata](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1392 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1392)::ok_type>); if ((__builtin_expect
(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1392
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18006, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1393.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18009, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1394)::ok_type>); if ((__builtin_expect
(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1394
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18011, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1395 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18015, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; } else { {auto tryResult1396 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1396.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18017
, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1397)::ok_type>);
if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store (id, auto_increment, name, key_path) \" \"VALUES (:id, :auto_increment, :name, :key_path);\"_ns, [&metadata = mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1392 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18006, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1393.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18009, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18011, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1395 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18015, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; } else { {auto tryResult1396 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1396.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18017, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } return Ok{}; }))"
, tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18021, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}
18003 "VALUES (:id, :auto_increment, :name, :key_path);"_ns,{auto tryResult1397 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store (id, auto_increment, name, key_path) "
"VALUES (:id, :auto_increment, :name, :key_path);"_ns, [&
metadata = mMetadata](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1392 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1392)::ok_type>); if ((__builtin_expect
(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1392
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18006, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1393.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18009, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1394)::ok_type>); if ((__builtin_expect
(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1394
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18011, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1395 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18015, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; } else { {auto tryResult1396 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1396.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18017
, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1397)::ok_type>);
if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store (id, auto_increment, name, key_path) \" \"VALUES (:id, :auto_increment, :name, :key_path);\"_ns, [&metadata = mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1392 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18006, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1393.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18009, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18011, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1395 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18015, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; } else { {auto tryResult1396 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1396.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18017, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } return Ok{}; }))"
, tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18021, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}
18004 [&metadata ={auto tryResult1397 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store (id, auto_increment, name, key_path) "
"VALUES (:id, :auto_increment, :name, :key_path);"_ns, [&
metadata = mMetadata](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1392 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1392)::ok_type>); if ((__builtin_expect
(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1392
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18006, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1393.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18009, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1394)::ok_type>); if ((__builtin_expect
(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1394
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18011, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1395 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18015, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; } else { {auto tryResult1396 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1396.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18017
, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1397)::ok_type>);
if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store (id, auto_increment, name, key_path) \" \"VALUES (:id, :auto_increment, :name, :key_path);\"_ns, [&metadata = mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1392 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18006, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1393.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18009, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18011, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1395 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18015, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; } else { {auto tryResult1396 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1396.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18017, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } return Ok{}; }))"
, tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18021, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}
18005 mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> {{auto tryResult1397 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store (id, auto_increment, name, key_path) "
"VALUES (:id, :auto_increment, :name, :key_path);"_ns, [&
metadata = mMetadata](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1392 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1392)::ok_type>); if ((__builtin_expect
(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1392
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18006, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1393.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18009, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1394)::ok_type>); if ((__builtin_expect
(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1394
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18011, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1395 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18015, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; } else { {auto tryResult1396 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1396.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18017
, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1397)::ok_type>);
if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store (id, auto_increment, name, key_path) \" \"VALUES (:id, :auto_increment, :name, :key_path);\"_ns, [&metadata = mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1392 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18006, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1393.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18009, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18011, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1395 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18015, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; } else { {auto tryResult1396 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1396.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18017, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } return Ok{}; }))"
, tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18021, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}
18006 QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(0, metadata.id())));{auto tryResult1397 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store (id, auto_increment, name, key_path) "
"VALUES (:id, :auto_increment, :name, :key_path);"_ns, [&
metadata = mMetadata](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1392 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1392)::ok_type>); if ((__builtin_expect
(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1392
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18006, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1393.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18009, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1394)::ok_type>); if ((__builtin_expect
(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1394
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18011, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1395 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18015, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; } else { {auto tryResult1396 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1396.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18017
, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1397)::ok_type>);
if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store (id, auto_increment, name, key_path) \" \"VALUES (:id, :auto_increment, :name, :key_path);\"_ns, [&metadata = mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1392 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18006, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1393.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18009, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18011, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1395 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18015, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; } else { {auto tryResult1396 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1396.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18017, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } return Ok{}; }))"
, tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18021, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}
18007
18008 QM_TRY(MOZ_TO_RESULT({auto tryResult1397 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store (id, auto_increment, name, key_path) "
"VALUES (:id, :auto_increment, :name, :key_path);"_ns, [&
metadata = mMetadata](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1392 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1392)::ok_type>); if ((__builtin_expect
(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1392
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18006, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1393.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18009, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1394)::ok_type>); if ((__builtin_expect
(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1394
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18011, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1395 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18015, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; } else { {auto tryResult1396 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1396.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18017
, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1397)::ok_type>);
if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store (id, auto_increment, name, key_path) \" \"VALUES (:id, :auto_increment, :name, :key_path);\"_ns, [&metadata = mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1392 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18006, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1393.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18009, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18011, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1395 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18015, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; } else { {auto tryResult1396 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1396.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18017, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } return Ok{}; }))"
, tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18021, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}
18009 stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0)));{auto tryResult1397 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store (id, auto_increment, name, key_path) "
"VALUES (:id, :auto_increment, :name, :key_path);"_ns, [&
metadata = mMetadata](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1392 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1392)::ok_type>); if ((__builtin_expect
(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1392
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18006, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1393.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18009, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1394)::ok_type>); if ((__builtin_expect
(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1394
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18011, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1395 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18015, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; } else { {auto tryResult1396 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1396.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18017
, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1397)::ok_type>);
if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store (id, auto_increment, name, key_path) \" \"VALUES (:id, :auto_increment, :name, :key_path);\"_ns, [&metadata = mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1392 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18006, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1393.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18009, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18011, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1395 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18015, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; } else { {auto tryResult1396 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1396.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18017, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } return Ok{}; }))"
, tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18021, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}
18010
18011 QM_TRY(MOZ_TO_RESULT(stmt.BindStringByIndex(2, metadata.name())));{auto tryResult1397 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store (id, auto_increment, name, key_path) "
"VALUES (:id, :auto_increment, :name, :key_path);"_ns, [&
metadata = mMetadata](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1392 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1392)::ok_type>); if ((__builtin_expect
(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1392
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18006, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1393.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18009, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1394)::ok_type>); if ((__builtin_expect
(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1394
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18011, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1395 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18015, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; } else { {auto tryResult1396 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1396.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18017
, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1397)::ok_type>);
if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store (id, auto_increment, name, key_path) \" \"VALUES (:id, :auto_increment, :name, :key_path);\"_ns, [&metadata = mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1392 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18006, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1393.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18009, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18011, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1395 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18015, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; } else { {auto tryResult1396 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1396.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18017, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } return Ok{}; }))"
, tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18021, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}
18012
18013 if (metadata.keyPath().IsValid()) {{auto tryResult1397 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store (id, auto_increment, name, key_path) "
"VALUES (:id, :auto_increment, :name, :key_path);"_ns, [&
metadata = mMetadata](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1392 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1392)::ok_type>); if ((__builtin_expect
(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1392
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18006, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1393.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18009, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1394)::ok_type>); if ((__builtin_expect
(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1394
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18011, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1395 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18015, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; } else { {auto tryResult1396 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1396.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18017
, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1397)::ok_type>);
if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store (id, auto_increment, name, key_path) \" \"VALUES (:id, :auto_increment, :name, :key_path);\"_ns, [&metadata = mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1392 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18006, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1393.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18009, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18011, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1395 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18015, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; } else { {auto tryResult1396 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1396.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18017, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } return Ok{}; }))"
, tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18021, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}
18014 QM_TRY(MOZ_TO_RESULT(stmt.BindStringByIndex({auto tryResult1397 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store (id, auto_increment, name, key_path) "
"VALUES (:id, :auto_increment, :name, :key_path);"_ns, [&
metadata = mMetadata](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1392 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1392)::ok_type>); if ((__builtin_expect
(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1392
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18006, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1393.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18009, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1394)::ok_type>); if ((__builtin_expect
(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1394
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18011, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1395 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18015, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; } else { {auto tryResult1396 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1396.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18017
, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1397)::ok_type>);
if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store (id, auto_increment, name, key_path) \" \"VALUES (:id, :auto_increment, :name, :key_path);\"_ns, [&metadata = mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1392 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18006, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1393.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18009, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18011, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1395 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18015, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; } else { {auto tryResult1396 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1396.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18017, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } return Ok{}; }))"
, tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18021, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}
18015 3, metadata.keyPath().SerializeToString())));{auto tryResult1397 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store (id, auto_increment, name, key_path) "
"VALUES (:id, :auto_increment, :name, :key_path);"_ns, [&
metadata = mMetadata](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1392 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1392)::ok_type>); if ((__builtin_expect
(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1392
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18006, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1393.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18009, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1394)::ok_type>); if ((__builtin_expect
(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1394
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18011, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1395 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18015, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; } else { {auto tryResult1396 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1396.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18017
, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1397)::ok_type>);
if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store (id, auto_increment, name, key_path) \" \"VALUES (:id, :auto_increment, :name, :key_path);\"_ns, [&metadata = mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1392 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18006, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1393.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18009, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18011, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1395 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18015, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; } else { {auto tryResult1396 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1396.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18017, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } return Ok{}; }))"
, tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18021, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}
18016 } else {{auto tryResult1397 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store (id, auto_increment, name, key_path) "
"VALUES (:id, :auto_increment, :name, :key_path);"_ns, [&
metadata = mMetadata](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1392 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1392)::ok_type>); if ((__builtin_expect
(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1392
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18006, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1393.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18009, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1394)::ok_type>); if ((__builtin_expect
(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1394
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18011, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1395 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18015, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; } else { {auto tryResult1396 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1396.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18017
, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1397)::ok_type>);
if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store (id, auto_increment, name, key_path) \" \"VALUES (:id, :auto_increment, :name, :key_path);\"_ns, [&metadata = mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1392 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18006, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1393.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18009, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18011, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1395 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18015, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; } else { {auto tryResult1396 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1396.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18017, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } return Ok{}; }))"
, tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18021, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}
18017 QM_TRY(MOZ_TO_RESULT(stmt.BindNullByIndex(3)));{auto tryResult1397 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store (id, auto_increment, name, key_path) "
"VALUES (:id, :auto_increment, :name, :key_path);"_ns, [&
metadata = mMetadata](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1392 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1392)::ok_type>); if ((__builtin_expect
(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1392
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18006, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1393.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18009, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1394)::ok_type>); if ((__builtin_expect
(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1394
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18011, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1395 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18015, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; } else { {auto tryResult1396 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1396.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18017
, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1397)::ok_type>);
if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store (id, auto_increment, name, key_path) \" \"VALUES (:id, :auto_increment, :name, :key_path);\"_ns, [&metadata = mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1392 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18006, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1393.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18009, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18011, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1395 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18015, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; } else { {auto tryResult1396 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1396.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18017, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } return Ok{}; }))"
, tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18021, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}
18018 }{auto tryResult1397 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store (id, auto_increment, name, key_path) "
"VALUES (:id, :auto_increment, :name, :key_path);"_ns, [&
metadata = mMetadata](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1392 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1392)::ok_type>); if ((__builtin_expect
(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1392
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18006, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1393.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18009, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1394)::ok_type>); if ((__builtin_expect
(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1394
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18011, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1395 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18015, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; } else { {auto tryResult1396 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1396.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18017
, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1397)::ok_type>);
if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store (id, auto_increment, name, key_path) \" \"VALUES (:id, :auto_increment, :name, :key_path);\"_ns, [&metadata = mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1392 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18006, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1393.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18009, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18011, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1395 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18015, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; } else { {auto tryResult1396 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1396.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18017, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } return Ok{}; }))"
, tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18021, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}
18019
18020 return Ok{};{auto tryResult1397 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store (id, auto_increment, name, key_path) "
"VALUES (:id, :auto_increment, :name, :key_path);"_ns, [&
metadata = mMetadata](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1392 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1392)::ok_type>); if ((__builtin_expect
(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1392
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18006, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1393.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18009, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1394)::ok_type>); if ((__builtin_expect
(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1394
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18011, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1395 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18015, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; } else { {auto tryResult1396 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1396.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18017
, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1397)::ok_type>);
if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store (id, auto_increment, name, key_path) \" \"VALUES (:id, :auto_increment, :name, :key_path);\"_ns, [&metadata = mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1392 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18006, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1393.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18009, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18011, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1395 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18015, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; } else { {auto tryResult1396 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1396.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18017, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } return Ok{}; }))"
, tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18021, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}
18021 }))){auto tryResult1397 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store (id, auto_increment, name, key_path) "
"VALUES (:id, :auto_increment, :name, :key_path);"_ns, [&
metadata = mMetadata](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1392 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1392)::ok_type>); if ((__builtin_expect
(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1392
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18006, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1393.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18009, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1394)::ok_type>); if ((__builtin_expect
(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1394
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18011, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1395 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18015, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; } else { {auto tryResult1396 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect
(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1396.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18017
, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1397)::ok_type>);
if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store (id, auto_increment, name, key_path) \" \"VALUES (:id, :auto_increment, :name, :key_path);\"_ns, [&metadata = mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1392 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18006, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1393.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18009, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18011, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1395 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18015, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; } else { {auto tryResult1396 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1396.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18017, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; } return Ok{}; }))"
, tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18021, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}
;
18022
18023#ifdef DEBUG1
18024 {
18025 int64_t id;
18026 MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(aConnection->MutableStorageConnection().GetLastInsertRowID
(&id))), 1)))), 1))) { } else { do { do { } while (false)
; MOZ_ReportCrash("" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetLastInsertRowID(&id))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18027
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetLastInsertRowID(&id))"
")"); do { MOZ_CrashSequence(__null, 18027); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
18027 aConnection->MutableStorageConnection().GetLastInsertRowID(&id))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(aConnection->MutableStorageConnection().GetLastInsertRowID
(&id))), 1)))), 1))) { } else { do { do { } while (false)
; MOZ_ReportCrash("" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetLastInsertRowID(&id))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18027
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetLastInsertRowID(&id))"
")"); do { MOZ_CrashSequence(__null, 18027); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
18028 MOZ_ASSERT(mMetadata.id() == id)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMetadata.id() == id)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mMetadata.id() == id))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("mMetadata.id() == id"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18028
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata.id() == id"
")"); do { MOZ_CrashSequence(__null, 18028); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18029 }
18030#endif
18031
18032 QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult1398 = (ToResult(autoSave.Commit())); static_assert
(std::is_empty_v<typename decltype(tryResult1398)::ok_type
>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18032, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}
;
18033
18034 return NS_OK;
18035}
18036
18037nsresult DeleteObjectStoreOp::DoDatabaseWork(DatabaseConnection* aConnection) {
18038 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18038); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 18038); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18039 aConnection->AssertIsOnConnectionThread();
18040
18041 AUTO_PROFILER_LABEL("DeleteObjectStoreOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject18041( "DeleteObjectStoreOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
18042
18043#ifdef DEBUG1
18044 {
18045 // Make sure |mIsLastObjectStore| is telling the truth.
18046 QM_TRY_INSPECT(auto tryResult1399 = (aConnection->BorrowCachedStatement("SELECT id FROM object_store;"_ns
)); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { [
[maybe_unused]] auto tryTempError = tryResult1399.unwrapErr()
; mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement(\"SELECT id FROM object_store;\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18049, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection->BorrowCachedStatement(\"SELECT id FROM object_store;\"_ns)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18049); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18049); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& stmt = tryResult1399.inspect();
18047 const auto& stmt,auto tryResult1399 = (aConnection->BorrowCachedStatement("SELECT id FROM object_store;"_ns
)); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { [
[maybe_unused]] auto tryTempError = tryResult1399.unwrapErr()
; mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement(\"SELECT id FROM object_store;\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18049, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection->BorrowCachedStatement(\"SELECT id FROM object_store;\"_ns)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18049); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18049); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& stmt = tryResult1399.inspect();
18048 aConnection->BorrowCachedStatement("SELECT id FROM object_store;"_ns),auto tryResult1399 = (aConnection->BorrowCachedStatement("SELECT id FROM object_store;"_ns
)); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { [
[maybe_unused]] auto tryTempError = tryResult1399.unwrapErr()
; mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement(\"SELECT id FROM object_store;\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18049, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection->BorrowCachedStatement(\"SELECT id FROM object_store;\"_ns)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18049); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18049); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& stmt = tryResult1399.inspect();
18049 QM_ASSERT_UNREACHABLE)auto tryResult1399 = (aConnection->BorrowCachedStatement("SELECT id FROM object_store;"_ns
)); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { [
[maybe_unused]] auto tryTempError = tryResult1399.unwrapErr()
; mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement(\"SELECT id FROM object_store;\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18049, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection->BorrowCachedStatement(\"SELECT id FROM object_store;\"_ns)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18049); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18049); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& stmt = tryResult1399.inspect();
;
18050
18051 bool foundThisObjectStore = false;
18052 bool foundOtherObjectStore = false;
18053
18054 while (true) {
18055 bool hasResult;
18056 MOZ_ALWAYS_SUCCEEDS(stmt->ExecuteStep(&hasResult))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(stmt->ExecuteStep(&hasResult))), 1)))), 1))) { } else
{ do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(stmt->ExecuteStep(&hasResult))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18056
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(stmt->ExecuteStep(&hasResult))"
")"); do { MOZ_CrashSequence(__null, 18056); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
18057
18058 if (!hasResult) {
18059 break;
18060 }
18061
18062 int64_t id;
18063 MOZ_ALWAYS_SUCCEEDS(stmt->GetInt64(0, &id))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(stmt->GetInt64(0, &id))), 1)))), 1))) { } else { do {
do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(stmt->GetInt64(0, &id))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18063
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(stmt->GetInt64(0, &id))"
")"); do { MOZ_CrashSequence(__null, 18063); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
18064
18065 if (id == mMetadata->mCommonMetadata.id()) {
18066 foundThisObjectStore = true;
18067 } else {
18068 foundOtherObjectStore = true;
18069 }
18070 }
18071
18072 MOZ_ASSERT_IF(mIsLastObjectStore,do { if (mIsLastObjectStore) { do { static_assert( mozilla::detail
::AssertionConditionType<decltype(foundThisObjectStore &&
!foundOtherObjectStore)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(foundThisObjectStore &&
!foundOtherObjectStore))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("foundThisObjectStore && !foundOtherObjectStore", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18073); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foundThisObjectStore && !foundOtherObjectStore"
")"); do { MOZ_CrashSequence(__null, 18073); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
18073 foundThisObjectStore && !foundOtherObjectStore)do { if (mIsLastObjectStore) { do { static_assert( mozilla::detail
::AssertionConditionType<decltype(foundThisObjectStore &&
!foundOtherObjectStore)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(foundThisObjectStore &&
!foundOtherObjectStore))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("foundThisObjectStore && !foundOtherObjectStore", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18073); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foundThisObjectStore && !foundOtherObjectStore"
")"); do { MOZ_CrashSequence(__null, 18073); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
18074 MOZ_ASSERT_IF(!mIsLastObjectStore,do { if (!mIsLastObjectStore) { do { static_assert( mozilla::
detail::AssertionConditionType<decltype(foundThisObjectStore
&& foundOtherObjectStore)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(foundThisObjectStore &&
foundOtherObjectStore))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("foundThisObjectStore && foundOtherObjectStore", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18075); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foundThisObjectStore && foundOtherObjectStore"
")"); do { MOZ_CrashSequence(__null, 18075); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
18075 foundThisObjectStore && foundOtherObjectStore)do { if (!mIsLastObjectStore) { do { static_assert( mozilla::
detail::AssertionConditionType<decltype(foundThisObjectStore
&& foundOtherObjectStore)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(foundThisObjectStore &&
foundOtherObjectStore))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("foundThisObjectStore && foundOtherObjectStore", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18075); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foundThisObjectStore && foundOtherObjectStore"
")"); do { MOZ_CrashSequence(__null, 18075); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
18076 }
18077#endif
18078
18079 DatabaseConnection::AutoSavepoint autoSave;
18080 QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult1400 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400
.isErr()), 0))) { auto tryTempError = tryResult1400.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18085, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
18081#ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult1400 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400
.isErr()), 0))) { auto tryTempError = tryResult1400.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18085, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
18082 ,{auto tryResult1400 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400
.isErr()), 0))) { auto tryTempError = tryResult1400.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18085, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
18083 QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult1400 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400
.isErr()), 0))) { auto tryTempError = tryResult1400.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18085, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
18084#endif{auto tryResult1400 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400
.isErr()), 0))) { auto tryTempError = tryResult1400.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18085, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
18085 ){auto tryResult1400 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400
.isErr()), 0))) { auto tryTempError = tryResult1400.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18085, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
;
18086
18087 if (mIsLastObjectStore) {
18088 // We can just delete everything if this is the last object store.
18089 QM_TRY(MOZ_TO_RESULT({auto tryResult1401 = (ToResult(aConnection->ExecuteCachedStatement
("DELETE FROM index_data;"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect
(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement(\"DELETE FROM index_data;\"_ns))"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18090, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}
18090 aConnection->ExecuteCachedStatement("DELETE FROM index_data;"_ns))){auto tryResult1401 = (ToResult(aConnection->ExecuteCachedStatement
("DELETE FROM index_data;"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect
(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement(\"DELETE FROM index_data;\"_ns))"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18090, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}
;
18091
18092 QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1402 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM unique_index_data;"_ns))); static_assert(std::
is_empty_v<typename decltype(tryResult1402)::ok_type>);
if ((__builtin_expect(!!(tryResult1402.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM unique_index_data;\"_ns))"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18093, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18093 "DELETE FROM unique_index_data;"_ns))){auto tryResult1402 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM unique_index_data;"_ns))); static_assert(std::
is_empty_v<typename decltype(tryResult1402)::ok_type>);
if ((__builtin_expect(!!(tryResult1402.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM unique_index_data;\"_ns))"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18093, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
;
18094
18095 QM_TRY(MOZ_TO_RESULT({auto tryResult1403 = (ToResult(aConnection->ExecuteCachedStatement
("DELETE FROM object_data;"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect
(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement(\"DELETE FROM object_data;\"_ns))"
, tryResult1403.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18096, mozilla::dom::quota::Severity::Error); return tryResult1403
.propagateErr(); }}
18096 aConnection->ExecuteCachedStatement("DELETE FROM object_data;"_ns))){auto tryResult1403 = (ToResult(aConnection->ExecuteCachedStatement
("DELETE FROM object_data;"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect
(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement(\"DELETE FROM object_data;\"_ns))"
, tryResult1403.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18096, mozilla::dom::quota::Severity::Error); return tryResult1403
.propagateErr(); }}
;
18097
18098 QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1404 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store_index;"_ns))); static_assert(std::
is_empty_v<typename decltype(tryResult1404)::ok_type>);
if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index;\"_ns))"
, tryResult1404.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18099, mozilla::dom::quota::Severity::Error); return tryResult1404
.propagateErr(); }}
18099 "DELETE FROM object_store_index;"_ns))){auto tryResult1404 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store_index;"_ns))); static_assert(std::
is_empty_v<typename decltype(tryResult1404)::ok_type>);
if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index;\"_ns))"
, tryResult1404.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18099, mozilla::dom::quota::Severity::Error); return tryResult1404
.propagateErr(); }}
;
18100
18101 QM_TRY(MOZ_TO_RESULT({auto tryResult1405 = (ToResult(aConnection->ExecuteCachedStatement
("DELETE FROM object_store;"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect
(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement(\"DELETE FROM object_store;\"_ns))"
, tryResult1405.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18102, mozilla::dom::quota::Severity::Error); return tryResult1405
.propagateErr(); }}
18102 aConnection->ExecuteCachedStatement("DELETE FROM object_store;"_ns))){auto tryResult1405 = (ToResult(aConnection->ExecuteCachedStatement
("DELETE FROM object_store;"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect
(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement(\"DELETE FROM object_store;\"_ns))"
, tryResult1405.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18102, mozilla::dom::quota::Severity::Error); return tryResult1405
.propagateErr(); }}
;
18103 } else {
18104 QM_TRY_INSPECT(auto tryResult1406 = (ObjectStoreHasIndexes(*aConnection, mMetadata
->mCommonMetadata.id())); if ((__builtin_expect(!!(tryResult1406
.isErr()), 0))) { mozilla::dom::quota::HandleError("ObjectStoreHasIndexes(*aConnection, mMetadata->mCommonMetadata.id())"
, tryResult1406.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18106, mozilla::dom::quota::Severity::Error); return tryResult1406
.propagateErr(); } const bool& hasIndexes = tryResult1406
.inspect();
18105 const bool& hasIndexes,auto tryResult1406 = (ObjectStoreHasIndexes(*aConnection, mMetadata
->mCommonMetadata.id())); if ((__builtin_expect(!!(tryResult1406
.isErr()), 0))) { mozilla::dom::quota::HandleError("ObjectStoreHasIndexes(*aConnection, mMetadata->mCommonMetadata.id())"
, tryResult1406.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18106, mozilla::dom::quota::Severity::Error); return tryResult1406
.propagateErr(); } const bool& hasIndexes = tryResult1406
.inspect();
18106 ObjectStoreHasIndexes(*aConnection, mMetadata->mCommonMetadata.id()))auto tryResult1406 = (ObjectStoreHasIndexes(*aConnection, mMetadata
->mCommonMetadata.id())); if ((__builtin_expect(!!(tryResult1406
.isErr()), 0))) { mozilla::dom::quota::HandleError("ObjectStoreHasIndexes(*aConnection, mMetadata->mCommonMetadata.id())"
, tryResult1406.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18106, mozilla::dom::quota::Severity::Error); return tryResult1406
.propagateErr(); } const bool& hasIndexes = tryResult1406
.inspect();
;
18107
18108 const auto bindObjectStoreIdToFirstParameter =
18109 [this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> {
18110 QM_TRY(MOZ_TO_RESULT({auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex(0, mMetadata
->mCommonMetadata.id()))); static_assert(std::is_empty_v<
typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect
(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, mMetadata->mCommonMetadata.id()))"
, tryResult1407.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18111, mozilla::dom::quota::Severity::Error); return tryResult1407
.propagateErr(); }}
18111 stmt.BindInt64ByIndex(0, mMetadata->mCommonMetadata.id()))){auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex(0, mMetadata
->mCommonMetadata.id()))); static_assert(std::is_empty_v<
typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect
(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, mMetadata->mCommonMetadata.id()))"
, tryResult1407.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18111, mozilla::dom::quota::Severity::Error); return tryResult1407
.propagateErr(); }}
;
18112
18113 return Ok{};
18114 };
18115
18116 // The parameter name :object_store_id in the SQL statements below is not
18117 // used for binding, parameters are bound by index only locally by
18118 // bindObjectStoreIdToFirstParameter.
18119 if (hasIndexes) {
18120 QM_TRY(MOZ_TO_RESULT(DeleteObjectStoreDataTableRowsWithIndexes({auto tryResult1408 = (ToResult(DeleteObjectStoreDataTableRowsWithIndexes
( aConnection, mMetadata->mCommonMetadata.id(), Nothing())
)); static_assert(std::is_empty_v<typename decltype(tryResult1408
)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mMetadata->mCommonMetadata.id(), Nothing()))"
, tryResult1408.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18121, mozilla::dom::quota::Severity::Error); return tryResult1408
.propagateErr(); }}
18121 aConnection, mMetadata->mCommonMetadata.id(), Nothing()))){auto tryResult1408 = (ToResult(DeleteObjectStoreDataTableRowsWithIndexes
( aConnection, mMetadata->mCommonMetadata.id(), Nothing())
)); static_assert(std::is_empty_v<typename decltype(tryResult1408
)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mMetadata->mCommonMetadata.id(), Nothing()))"
, tryResult1408.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18121, mozilla::dom::quota::Severity::Error); return tryResult1408
.propagateErr(); }}
;
18122
18123 // Now clean up the object store index table.
18124 QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1409 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store_index " "WHERE object_store_id = :object_store_id;"_ns
, bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v
<typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect
(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))"
, tryResult1409.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18127, mozilla::dom::quota::Severity::Error); return tryResult1409
.propagateErr(); }}
18125 "DELETE FROM object_store_index "{auto tryResult1409 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store_index " "WHERE object_store_id = :object_store_id;"_ns
, bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v
<typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect
(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))"
, tryResult1409.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18127, mozilla::dom::quota::Severity::Error); return tryResult1409
.propagateErr(); }}
18126 "WHERE object_store_id = :object_store_id;"_ns,{auto tryResult1409 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store_index " "WHERE object_store_id = :object_store_id;"_ns
, bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v
<typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect
(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))"
, tryResult1409.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18127, mozilla::dom::quota::Severity::Error); return tryResult1409
.propagateErr(); }}
18127 bindObjectStoreIdToFirstParameter))){auto tryResult1409 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store_index " "WHERE object_store_id = :object_store_id;"_ns
, bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v
<typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect
(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))"
, tryResult1409.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18127, mozilla::dom::quota::Severity::Error); return tryResult1409
.propagateErr(); }}
;
18128 } else {
18129 // We only have to worry about object data if this object store has no
18130 // indexes.
18131 QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1410 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns
, bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v
<typename decltype(tryResult1410)::ok_type>); if ((__builtin_expect
(!!(tryResult1410.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))"
, tryResult1410.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18134, mozilla::dom::quota::Severity::Error); return tryResult1410
.propagateErr(); }}
18132 "DELETE FROM object_data "{auto tryResult1410 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns
, bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v
<typename decltype(tryResult1410)::ok_type>); if ((__builtin_expect
(!!(tryResult1410.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))"
, tryResult1410.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18134, mozilla::dom::quota::Severity::Error); return tryResult1410
.propagateErr(); }}
18133 "WHERE object_store_id = :object_store_id;"_ns,{auto tryResult1410 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns
, bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v
<typename decltype(tryResult1410)::ok_type>); if ((__builtin_expect
(!!(tryResult1410.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))"
, tryResult1410.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18134, mozilla::dom::quota::Severity::Error); return tryResult1410
.propagateErr(); }}
18134 bindObjectStoreIdToFirstParameter))){auto tryResult1410 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns
, bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v
<typename decltype(tryResult1410)::ok_type>); if ((__builtin_expect
(!!(tryResult1410.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))"
, tryResult1410.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18134, mozilla::dom::quota::Severity::Error); return tryResult1410
.propagateErr(); }}
;
18135 }
18136
18137 QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1411 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store " "WHERE id = :object_store_id;"_ns
, bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v
<typename decltype(tryResult1411)::ok_type>); if ((__builtin_expect
(!!(tryResult1411.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store \" \"WHERE id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))"
, tryResult1411.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18140, mozilla::dom::quota::Severity::Error); return tryResult1411
.propagateErr(); }}
18138 "DELETE FROM object_store "{auto tryResult1411 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store " "WHERE id = :object_store_id;"_ns
, bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v
<typename decltype(tryResult1411)::ok_type>); if ((__builtin_expect
(!!(tryResult1411.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store \" \"WHERE id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))"
, tryResult1411.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18140, mozilla::dom::quota::Severity::Error); return tryResult1411
.propagateErr(); }}
18139 "WHERE id = :object_store_id;"_ns,{auto tryResult1411 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store " "WHERE id = :object_store_id;"_ns
, bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v
<typename decltype(tryResult1411)::ok_type>); if ((__builtin_expect
(!!(tryResult1411.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store \" \"WHERE id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))"
, tryResult1411.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18140, mozilla::dom::quota::Severity::Error); return tryResult1411
.propagateErr(); }}
18140 bindObjectStoreIdToFirstParameter))){auto tryResult1411 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store " "WHERE id = :object_store_id;"_ns
, bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v
<typename decltype(tryResult1411)::ok_type>); if ((__builtin_expect
(!!(tryResult1411.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store \" \"WHERE id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))"
, tryResult1411.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18140, mozilla::dom::quota::Severity::Error); return tryResult1411
.propagateErr(); }}
;
18141
18142#ifdef DEBUG1
18143 {
18144 int32_t deletedRowCount;
18145 MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(aConnection->MutableStorageConnection().GetAffectedRows( &
deletedRowCount))), 1)))), 1))) { } else { do { do { } while (
false); MOZ_ReportCrash("" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18147
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))"
")"); do { MOZ_CrashSequence(__null, 18147); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
18146 aConnection->MutableStorageConnection().GetAffectedRows(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(aConnection->MutableStorageConnection().GetAffectedRows( &
deletedRowCount))), 1)))), 1))) { } else { do { do { } while (
false); MOZ_ReportCrash("" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18147
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))"
")"); do { MOZ_CrashSequence(__null, 18147); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
18147 &deletedRowCount))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(aConnection->MutableStorageConnection().GetAffectedRows( &
deletedRowCount))), 1)))), 1))) { } else { do { do { } while (
false); MOZ_ReportCrash("" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18147
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))"
")"); do { MOZ_CrashSequence(__null, 18147); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
18148 MOZ_ASSERT(deletedRowCount == 1)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(deletedRowCount == 1)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(deletedRowCount == 1))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("deletedRowCount == 1"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18148
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "deletedRowCount == 1"
")"); do { MOZ_CrashSequence(__null, 18148); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18149 }
18150#endif
18151 }
18152
18153 QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult1412 = (ToResult(autoSave.Commit())); static_assert
(std::is_empty_v<typename decltype(tryResult1412)::ok_type
>); if ((__builtin_expect(!!(tryResult1412.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())"
, tryResult1412.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18153, mozilla::dom::quota::Severity::Error); return tryResult1412
.propagateErr(); }}
;
18154
18155 if (mMetadata->mCommonMetadata.autoIncrement()) {
18156 Transaction().ForgetModifiedAutoIncrementObjectStore(*mMetadata);
18157 }
18158
18159 return NS_OK;
18160}
18161
18162nsresult RenameObjectStoreOp::DoDatabaseWork(DatabaseConnection* aConnection) {
18163 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18163); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 18163); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18164 aConnection->AssertIsOnConnectionThread();
18165
18166 AUTO_PROFILER_LABEL("RenameObjectStoreOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject18166( "RenameObjectStoreOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
18167
18168#ifdef DEBUG1
18169 {
18170 // Make sure that we're not renaming an object store with the same name as
18171 // another that already exists. This should be impossible because we should
18172 // have thrown an error long before now...
18173 // The parameter names are not used, parameters are bound by index only
18174 // locally in the same function.
18175 QM_TRY_INSPECT(auto tryResult1415 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1413 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1413)::ok_type>); if ((__builtin_expect
(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1413
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18184, mozilla::dom::quota::Severity::Error); return tryResult1413
.propagateErr(); }}; {auto tryResult1414 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1414)::ok_type>); if ((__builtin_expect(!!(tryResult1414
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1414.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18186, mozilla::dom::quota::Severity::Error); return tryResult1414
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1415.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1415.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1413 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1413)::ok_type>); if ((__builtin_expect(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1413.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18184, mozilla::dom::quota::Severity::Error); return tryResult1413.propagateErr(); }}; {auto tryResult1414 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1414)::ok_type>); if ((__builtin_expect(!!(tryResult1414.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1414.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18186, mozilla::dom::quota::Severity::Error); return tryResult1414.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18190, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1413 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1413)::ok_type>); if ((__builtin_expect(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1413.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18184, mozilla::dom::quota::Severity::Error); return tryResult1413.propagateErr(); }}; {auto tryResult1414 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1414)::ok_type>); if ((__builtin_expect(!!(tryResult1414.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1414.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18186, mozilla::dom::quota::Severity::Error); return tryResult1414.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18190); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18190); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1415.inspect();
18176 const bool& hasResult,auto tryResult1415 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1413 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1413)::ok_type>); if ((__builtin_expect
(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1413
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18184, mozilla::dom::quota::Severity::Error); return tryResult1413
.propagateErr(); }}; {auto tryResult1414 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1414)::ok_type>); if ((__builtin_expect(!!(tryResult1414
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1414.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18186, mozilla::dom::quota::Severity::Error); return tryResult1414
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1415.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1415.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1413 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1413)::ok_type>); if ((__builtin_expect(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1413.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18184, mozilla::dom::quota::Severity::Error); return tryResult1413.propagateErr(); }}; {auto tryResult1414 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1414)::ok_type>); if ((__builtin_expect(!!(tryResult1414.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1414.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18186, mozilla::dom::quota::Severity::Error); return tryResult1414.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18190, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1413 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1413)::ok_type>); if ((__builtin_expect(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1413.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18184, mozilla::dom::quota::Severity::Error); return tryResult1413.propagateErr(); }}; {auto tryResult1414 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1414)::ok_type>); if ((__builtin_expect(!!(tryResult1414.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1414.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18186, mozilla::dom::quota::Severity::Error); return tryResult1414.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18190); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18190); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1415.inspect();
18177 aConnectionauto tryResult1415 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1413 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1413)::ok_type>); if ((__builtin_expect
(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1413
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18184, mozilla::dom::quota::Severity::Error); return tryResult1413
.propagateErr(); }}; {auto tryResult1414 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1414)::ok_type>); if ((__builtin_expect(!!(tryResult1414
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1414.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18186, mozilla::dom::quota::Severity::Error); return tryResult1414
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1415.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1415.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1413 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1413)::ok_type>); if ((__builtin_expect(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1413.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18184, mozilla::dom::quota::Severity::Error); return tryResult1413.propagateErr(); }}; {auto tryResult1414 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1414)::ok_type>); if ((__builtin_expect(!!(tryResult1414.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1414.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18186, mozilla::dom::quota::Severity::Error); return tryResult1414.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18190, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1413 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1413)::ok_type>); if ((__builtin_expect(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1413.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18184, mozilla::dom::quota::Severity::Error); return tryResult1413.propagateErr(); }}; {auto tryResult1414 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1414)::ok_type>); if ((__builtin_expect(!!(tryResult1414.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1414.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18186, mozilla::dom::quota::Severity::Error); return tryResult1414.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18190); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18190); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1415.inspect();
18178 ->BorrowAndExecuteSingleStepStatement(auto tryResult1415 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1413 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1413)::ok_type>); if ((__builtin_expect
(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1413
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18184, mozilla::dom::quota::Severity::Error); return tryResult1413
.propagateErr(); }}; {auto tryResult1414 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1414)::ok_type>); if ((__builtin_expect(!!(tryResult1414
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1414.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18186, mozilla::dom::quota::Severity::Error); return tryResult1414
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1415.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1415.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1413 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1413)::ok_type>); if ((__builtin_expect(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1413.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18184, mozilla::dom::quota::Severity::Error); return tryResult1413.propagateErr(); }}; {auto tryResult1414 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1414)::ok_type>); if ((__builtin_expect(!!(tryResult1414.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1414.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18186, mozilla::dom::quota::Severity::Error); return tryResult1414.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18190, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1413 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1413)::ok_type>); if ((__builtin_expect(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1413.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18184, mozilla::dom::quota::Severity::Error); return tryResult1413.propagateErr(); }}; {auto tryResult1414 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1414)::ok_type>); if ((__builtin_expect(!!(tryResult1414.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1414.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18186, mozilla::dom::quota::Severity::Error); return tryResult1414.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18190); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18190); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1415.inspect();
18179 "SELECT name "auto tryResult1415 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1413 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1413)::ok_type>); if ((__builtin_expect
(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1413
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18184, mozilla::dom::quota::Severity::Error); return tryResult1413
.propagateErr(); }}; {auto tryResult1414 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1414)::ok_type>); if ((__builtin_expect(!!(tryResult1414
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1414.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18186, mozilla::dom::quota::Severity::Error); return tryResult1414
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1415.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1415.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1413 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1413)::ok_type>); if ((__builtin_expect(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1413.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18184, mozilla::dom::quota::Severity::Error); return tryResult1413.propagateErr(); }}; {auto tryResult1414 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1414)::ok_type>); if ((__builtin_expect(!!(tryResult1414.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1414.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18186, mozilla::dom::quota::Severity::Error); return tryResult1414.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18190, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1413 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1413)::ok_type>); if ((__builtin_expect(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1413.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18184, mozilla::dom::quota::Severity::Error); return tryResult1413.propagateErr(); }}; {auto tryResult1414 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1414)::ok_type>); if ((__builtin_expect(!!(tryResult1414.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1414.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18186, mozilla::dom::quota::Severity::Error); return tryResult1414.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18190); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18190); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1415.inspect();
18180 "FROM object_store "auto tryResult1415 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1413 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1413)::ok_type>); if ((__builtin_expect
(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1413
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18184, mozilla::dom::quota::Severity::Error); return tryResult1413
.propagateErr(); }}; {auto tryResult1414 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1414)::ok_type>); if ((__builtin_expect(!!(tryResult1414
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1414.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18186, mozilla::dom::quota::Severity::Error); return tryResult1414
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1415.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1415.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1413 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1413)::ok_type>); if ((__builtin_expect(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1413.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18184, mozilla::dom::quota::Severity::Error); return tryResult1413.propagateErr(); }}; {auto tryResult1414 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1414)::ok_type>); if ((__builtin_expect(!!(tryResult1414.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1414.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18186, mozilla::dom::quota::Severity::Error); return tryResult1414.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18190, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1413 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1413)::ok_type>); if ((__builtin_expect(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1413.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18184, mozilla::dom::quota::Severity::Error); return tryResult1413.propagateErr(); }}; {auto tryResult1414 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1414)::ok_type>); if ((__builtin_expect(!!(tryResult1414.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1414.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18186, mozilla::dom::quota::Severity::Error); return tryResult1414.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18190); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18190); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1415.inspect();
18181 "WHERE name = :name AND id != :id;"_ns,auto tryResult1415 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1413 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1413)::ok_type>); if ((__builtin_expect
(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1413
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18184, mozilla::dom::quota::Severity::Error); return tryResult1413
.propagateErr(); }}; {auto tryResult1414 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1414)::ok_type>); if ((__builtin_expect(!!(tryResult1414
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1414.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18186, mozilla::dom::quota::Severity::Error); return tryResult1414
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1415.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1415.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1413 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1413)::ok_type>); if ((__builtin_expect(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1413.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18184, mozilla::dom::quota::Severity::Error); return tryResult1413.propagateErr(); }}; {auto tryResult1414 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1414)::ok_type>); if ((__builtin_expect(!!(tryResult1414.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1414.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18186, mozilla::dom::quota::Severity::Error); return tryResult1414.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18190, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1413 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1413)::ok_type>); if ((__builtin_expect(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1413.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18184, mozilla::dom::quota::Severity::Error); return tryResult1413.propagateErr(); }}; {auto tryResult1414 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1414)::ok_type>); if ((__builtin_expect(!!(tryResult1414.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1414.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18186, mozilla::dom::quota::Severity::Error); return tryResult1414.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18190); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18190); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1415.inspect();
18182 [&self = *this](auto& stmt) -> Result<Ok, nsresult> {auto tryResult1415 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1413 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1413)::ok_type>); if ((__builtin_expect
(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1413
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18184, mozilla::dom::quota::Severity::Error); return tryResult1413
.propagateErr(); }}; {auto tryResult1414 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1414)::ok_type>); if ((__builtin_expect(!!(tryResult1414
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1414.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18186, mozilla::dom::quota::Severity::Error); return tryResult1414
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1415.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1415.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1413 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1413)::ok_type>); if ((__builtin_expect(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1413.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18184, mozilla::dom::quota::Severity::Error); return tryResult1413.propagateErr(); }}; {auto tryResult1414 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1414)::ok_type>); if ((__builtin_expect(!!(tryResult1414.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1414.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18186, mozilla::dom::quota::Severity::Error); return tryResult1414.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18190, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1413 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1413)::ok_type>); if ((__builtin_expect(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1413.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18184, mozilla::dom::quota::Severity::Error); return tryResult1413.propagateErr(); }}; {auto tryResult1414 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1414)::ok_type>); if ((__builtin_expect(!!(tryResult1414.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1414.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18186, mozilla::dom::quota::Severity::Error); return tryResult1414.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18190); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18190); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1415.inspect();
18183 QM_TRY(auto tryResult1415 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1413 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1413)::ok_type>); if ((__builtin_expect
(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1413
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18184, mozilla::dom::quota::Severity::Error); return tryResult1413
.propagateErr(); }}; {auto tryResult1414 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1414)::ok_type>); if ((__builtin_expect(!!(tryResult1414
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1414.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18186, mozilla::dom::quota::Severity::Error); return tryResult1414
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1415.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1415.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1413 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1413)::ok_type>); if ((__builtin_expect(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1413.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18184, mozilla::dom::quota::Severity::Error); return tryResult1413.propagateErr(); }}; {auto tryResult1414 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1414)::ok_type>); if ((__builtin_expect(!!(tryResult1414.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1414.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18186, mozilla::dom::quota::Severity::Error); return tryResult1414.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18190, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1413 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1413)::ok_type>); if ((__builtin_expect(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1413.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18184, mozilla::dom::quota::Severity::Error); return tryResult1413.propagateErr(); }}; {auto tryResult1414 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1414)::ok_type>); if ((__builtin_expect(!!(tryResult1414.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1414.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18186, mozilla::dom::quota::Severity::Error); return tryResult1414.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18190); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18190); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1415.inspect();
18184 MOZ_TO_RESULT(stmt.BindStringByIndex(0, self.mNewName)));auto tryResult1415 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1413 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1413)::ok_type>); if ((__builtin_expect
(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1413
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18184, mozilla::dom::quota::Severity::Error); return tryResult1413
.propagateErr(); }}; {auto tryResult1414 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1414)::ok_type>); if ((__builtin_expect(!!(tryResult1414
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1414.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18186, mozilla::dom::quota::Severity::Error); return tryResult1414
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1415.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1415.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1413 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1413)::ok_type>); if ((__builtin_expect(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1413.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18184, mozilla::dom::quota::Severity::Error); return tryResult1413.propagateErr(); }}; {auto tryResult1414 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1414)::ok_type>); if ((__builtin_expect(!!(tryResult1414.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1414.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18186, mozilla::dom::quota::Severity::Error); return tryResult1414.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18190, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1413 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1413)::ok_type>); if ((__builtin_expect(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1413.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18184, mozilla::dom::quota::Severity::Error); return tryResult1413.propagateErr(); }}; {auto tryResult1414 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1414)::ok_type>); if ((__builtin_expect(!!(tryResult1414.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1414.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18186, mozilla::dom::quota::Severity::Error); return tryResult1414.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18190); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18190); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1415.inspect();
18185
18186 QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(1, self.mId)));auto tryResult1415 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1413 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1413)::ok_type>); if ((__builtin_expect
(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1413
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18184, mozilla::dom::quota::Severity::Error); return tryResult1413
.propagateErr(); }}; {auto tryResult1414 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1414)::ok_type>); if ((__builtin_expect(!!(tryResult1414
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1414.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18186, mozilla::dom::quota::Severity::Error); return tryResult1414
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1415.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1415.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1413 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1413)::ok_type>); if ((__builtin_expect(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1413.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18184, mozilla::dom::quota::Severity::Error); return tryResult1413.propagateErr(); }}; {auto tryResult1414 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1414)::ok_type>); if ((__builtin_expect(!!(tryResult1414.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1414.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18186, mozilla::dom::quota::Severity::Error); return tryResult1414.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18190, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1413 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1413)::ok_type>); if ((__builtin_expect(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1413.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18184, mozilla::dom::quota::Severity::Error); return tryResult1413.propagateErr(); }}; {auto tryResult1414 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1414)::ok_type>); if ((__builtin_expect(!!(tryResult1414.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1414.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18186, mozilla::dom::quota::Severity::Error); return tryResult1414.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18190); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18190); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1415.inspect();
18187 return Ok{};auto tryResult1415 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1413 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1413)::ok_type>); if ((__builtin_expect
(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1413
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18184, mozilla::dom::quota::Severity::Error); return tryResult1413
.propagateErr(); }}; {auto tryResult1414 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1414)::ok_type>); if ((__builtin_expect(!!(tryResult1414
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1414.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18186, mozilla::dom::quota::Severity::Error); return tryResult1414
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1415.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1415.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1413 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1413)::ok_type>); if ((__builtin_expect(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1413.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18184, mozilla::dom::quota::Severity::Error); return tryResult1413.propagateErr(); }}; {auto tryResult1414 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1414)::ok_type>); if ((__builtin_expect(!!(tryResult1414.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1414.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18186, mozilla::dom::quota::Severity::Error); return tryResult1414.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18190, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1413 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1413)::ok_type>); if ((__builtin_expect(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1413.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18184, mozilla::dom::quota::Severity::Error); return tryResult1413.propagateErr(); }}; {auto tryResult1414 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1414)::ok_type>); if ((__builtin_expect(!!(tryResult1414.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1414.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18186, mozilla::dom::quota::Severity::Error); return tryResult1414.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18190); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18190); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1415.inspect();
18188 })auto tryResult1415 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1413 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1413)::ok_type>); if ((__builtin_expect
(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1413
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18184, mozilla::dom::quota::Severity::Error); return tryResult1413
.propagateErr(); }}; {auto tryResult1414 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1414)::ok_type>); if ((__builtin_expect(!!(tryResult1414
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1414.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18186, mozilla::dom::quota::Severity::Error); return tryResult1414
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1415.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1415.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1413 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1413)::ok_type>); if ((__builtin_expect(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1413.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18184, mozilla::dom::quota::Severity::Error); return tryResult1413.propagateErr(); }}; {auto tryResult1414 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1414)::ok_type>); if ((__builtin_expect(!!(tryResult1414.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1414.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18186, mozilla::dom::quota::Severity::Error); return tryResult1414.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18190, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1413 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1413)::ok_type>); if ((__builtin_expect(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1413.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18184, mozilla::dom::quota::Severity::Error); return tryResult1413.propagateErr(); }}; {auto tryResult1414 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1414)::ok_type>); if ((__builtin_expect(!!(tryResult1414.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1414.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18186, mozilla::dom::quota::Severity::Error); return tryResult1414.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18190); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18190); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1415.inspect();
18189 .map(IsSome),auto tryResult1415 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1413 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1413)::ok_type>); if ((__builtin_expect
(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1413
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18184, mozilla::dom::quota::Severity::Error); return tryResult1413
.propagateErr(); }}; {auto tryResult1414 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1414)::ok_type>); if ((__builtin_expect(!!(tryResult1414
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1414.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18186, mozilla::dom::quota::Severity::Error); return tryResult1414
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1415.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1415.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1413 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1413)::ok_type>); if ((__builtin_expect(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1413.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18184, mozilla::dom::quota::Severity::Error); return tryResult1413.propagateErr(); }}; {auto tryResult1414 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1414)::ok_type>); if ((__builtin_expect(!!(tryResult1414.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1414.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18186, mozilla::dom::quota::Severity::Error); return tryResult1414.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18190, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1413 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1413)::ok_type>); if ((__builtin_expect(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1413.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18184, mozilla::dom::quota::Severity::Error); return tryResult1413.propagateErr(); }}; {auto tryResult1414 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1414)::ok_type>); if ((__builtin_expect(!!(tryResult1414.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1414.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18186, mozilla::dom::quota::Severity::Error); return tryResult1414.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18190); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18190); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1415.inspect();
18190 QM_ASSERT_UNREACHABLE)auto tryResult1415 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1413 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1413)::ok_type>); if ((__builtin_expect
(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1413
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18184, mozilla::dom::quota::Severity::Error); return tryResult1413
.propagateErr(); }}; {auto tryResult1414 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1414)::ok_type>); if ((__builtin_expect(!!(tryResult1414
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1414.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18186, mozilla::dom::quota::Severity::Error); return tryResult1414
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1415.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1415.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1413 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1413)::ok_type>); if ((__builtin_expect(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1413.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18184, mozilla::dom::quota::Severity::Error); return tryResult1413.propagateErr(); }}; {auto tryResult1414 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1414)::ok_type>); if ((__builtin_expect(!!(tryResult1414.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1414.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18186, mozilla::dom::quota::Severity::Error); return tryResult1414.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18190, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1413 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1413)::ok_type>); if ((__builtin_expect(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1413.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18184, mozilla::dom::quota::Severity::Error); return tryResult1413.propagateErr(); }}; {auto tryResult1414 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1414)::ok_type>); if ((__builtin_expect(!!(tryResult1414.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1414.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18186, mozilla::dom::quota::Severity::Error); return tryResult1414.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18190); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18190); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1415.inspect();
;
18191
18192 MOZ_ASSERT(!hasResult)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!hasResult)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!hasResult))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("!hasResult", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18192); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!hasResult"
")"); do { MOZ_CrashSequence(__null, 18192); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18193 }
18194#endif
18195
18196 DatabaseConnection::AutoSavepoint autoSave;
18197 QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult1416 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416
.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18202, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
18198#ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult1416 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416
.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18202, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
18199 ,{auto tryResult1416 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416
.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18202, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
18200 QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult1416 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416
.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18202, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
18201#endif{auto tryResult1416 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416
.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18202, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
18202 ){auto tryResult1416 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1416)::ok_type>); if ((__builtin_expect(!!(tryResult1416
.isErr()), 0))) { auto tryTempError = tryResult1416.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18202, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
;
18203
18204 // The parameter names are not used, parameters are bound by index only
18205 // locally in the same function.
18206 QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1419 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1417 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1417)::ok_type>); if ((__builtin_expect
(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1417
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18211, mozilla::dom::quota::Severity::Error); return tryResult1417
.propagateErr(); }}; {auto tryResult1418 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1418.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18213, mozilla::dom::quota::Severity::Error); return tryResult1418
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect
(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_store \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1417 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18211, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1418.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18213, mozilla::dom::quota::Severity::Error); return tryResult1418.propagateErr(); }}; return Ok{}; }))"
, tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18216, mozilla::dom::quota::Severity::Error); return tryResult1419
.propagateErr(); }}
18207 "UPDATE object_store "{auto tryResult1419 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1417 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1417)::ok_type>); if ((__builtin_expect
(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1417
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18211, mozilla::dom::quota::Severity::Error); return tryResult1417
.propagateErr(); }}; {auto tryResult1418 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1418.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18213, mozilla::dom::quota::Severity::Error); return tryResult1418
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect
(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_store \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1417 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18211, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1418.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18213, mozilla::dom::quota::Severity::Error); return tryResult1418.propagateErr(); }}; return Ok{}; }))"
, tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18216, mozilla::dom::quota::Severity::Error); return tryResult1419
.propagateErr(); }}
18208 "SET name = :name "{auto tryResult1419 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1417 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1417)::ok_type>); if ((__builtin_expect
(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1417
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18211, mozilla::dom::quota::Severity::Error); return tryResult1417
.propagateErr(); }}; {auto tryResult1418 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1418.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18213, mozilla::dom::quota::Severity::Error); return tryResult1418
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect
(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_store \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1417 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18211, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1418.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18213, mozilla::dom::quota::Severity::Error); return tryResult1418.propagateErr(); }}; return Ok{}; }))"
, tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18216, mozilla::dom::quota::Severity::Error); return tryResult1419
.propagateErr(); }}
18209 "WHERE id = :id;"_ns,{auto tryResult1419 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1417 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1417)::ok_type>); if ((__builtin_expect
(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1417
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18211, mozilla::dom::quota::Severity::Error); return tryResult1417
.propagateErr(); }}; {auto tryResult1418 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1418.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18213, mozilla::dom::quota::Severity::Error); return tryResult1418
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect
(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_store \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1417 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18211, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1418.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18213, mozilla::dom::quota::Severity::Error); return tryResult1418.propagateErr(); }}; return Ok{}; }))"
, tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18216, mozilla::dom::quota::Severity::Error); return tryResult1419
.propagateErr(); }}
18210 [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> {{auto tryResult1419 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1417 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1417)::ok_type>); if ((__builtin_expect
(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1417
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18211, mozilla::dom::quota::Severity::Error); return tryResult1417
.propagateErr(); }}; {auto tryResult1418 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1418.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18213, mozilla::dom::quota::Severity::Error); return tryResult1418
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect
(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_store \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1417 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18211, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1418.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18213, mozilla::dom::quota::Severity::Error); return tryResult1418.propagateErr(); }}; return Ok{}; }))"
, tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18216, mozilla::dom::quota::Severity::Error); return tryResult1419
.propagateErr(); }}
18211 QM_TRY(MOZ_TO_RESULT(stmt.BindStringByIndex(0, self.mNewName)));{auto tryResult1419 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1417 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1417)::ok_type>); if ((__builtin_expect
(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1417
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18211, mozilla::dom::quota::Severity::Error); return tryResult1417
.propagateErr(); }}; {auto tryResult1418 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1418.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18213, mozilla::dom::quota::Severity::Error); return tryResult1418
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect
(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_store \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1417 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18211, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1418.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18213, mozilla::dom::quota::Severity::Error); return tryResult1418.propagateErr(); }}; return Ok{}; }))"
, tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18216, mozilla::dom::quota::Severity::Error); return tryResult1419
.propagateErr(); }}
18212
18213 QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(1, self.mId)));{auto tryResult1419 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1417 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1417)::ok_type>); if ((__builtin_expect
(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1417
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18211, mozilla::dom::quota::Severity::Error); return tryResult1417
.propagateErr(); }}; {auto tryResult1418 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1418.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18213, mozilla::dom::quota::Severity::Error); return tryResult1418
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect
(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_store \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1417 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18211, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1418.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18213, mozilla::dom::quota::Severity::Error); return tryResult1418.propagateErr(); }}; return Ok{}; }))"
, tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18216, mozilla::dom::quota::Severity::Error); return tryResult1419
.propagateErr(); }}
18214
18215 return Ok{};{auto tryResult1419 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1417 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1417)::ok_type>); if ((__builtin_expect
(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1417
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18211, mozilla::dom::quota::Severity::Error); return tryResult1417
.propagateErr(); }}; {auto tryResult1418 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1418.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18213, mozilla::dom::quota::Severity::Error); return tryResult1418
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect
(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_store \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1417 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18211, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1418.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18213, mozilla::dom::quota::Severity::Error); return tryResult1418.propagateErr(); }}; return Ok{}; }))"
, tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18216, mozilla::dom::quota::Severity::Error); return tryResult1419
.propagateErr(); }}
18216 }))){auto tryResult1419 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1417 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1417)::ok_type>); if ((__builtin_expect
(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1417
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18211, mozilla::dom::quota::Severity::Error); return tryResult1417
.propagateErr(); }}; {auto tryResult1418 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1418.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18213, mozilla::dom::quota::Severity::Error); return tryResult1418
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect
(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_store \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1417 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1417)::ok_type>); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1417.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18211, mozilla::dom::quota::Severity::Error); return tryResult1417.propagateErr(); }}; {auto tryResult1418 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1418.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18213, mozilla::dom::quota::Severity::Error); return tryResult1418.propagateErr(); }}; return Ok{}; }))"
, tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18216, mozilla::dom::quota::Severity::Error); return tryResult1419
.propagateErr(); }}
;
18217
18218 QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult1420 = (ToResult(autoSave.Commit())); static_assert
(std::is_empty_v<typename decltype(tryResult1420)::ok_type
>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())"
, tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18218, mozilla::dom::quota::Severity::Error); return tryResult1420
.propagateErr(); }}
;
18219
18220 return NS_OK;
18221}
18222
18223CreateIndexOp::CreateIndexOp(SafeRefPtr<VersionChangeTransaction> aTransaction,
18224 const IndexOrObjectStoreId aObjectStoreId,
18225 const IndexMetadata& aMetadata)
18226 : VersionChangeTransactionOp(std::move(aTransaction)),
18227 mMetadata(aMetadata),
18228 mFileManager(Transaction().GetDatabase().GetFileManagerPtr()),
18229 mDatabaseId(Transaction().DatabaseId()),
18230 mObjectStoreId(aObjectStoreId) {
18231 MOZ_ASSERT(aObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aObjectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aObjectStoreId))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("aObjectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18231
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aObjectStoreId" ")"
); do { MOZ_CrashSequence(__null, 18231); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
18232 MOZ_ASSERT(aMetadata.id())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aMetadata.id())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aMetadata.id()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("aMetadata.id()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18232
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMetadata.id()" ")"
); do { MOZ_CrashSequence(__null, 18232); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
18233 MOZ_ASSERT(mFileManager)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mFileManager)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mFileManager))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mFileManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18233); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileManager"
")"); do { MOZ_CrashSequence(__null, 18233); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18234 MOZ_ASSERT(!mDatabaseId.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDatabaseId.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDatabaseId.IsEmpty()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!mDatabaseId.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18234
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabaseId.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 18234); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18235}
18236
18237nsresult CreateIndexOp::InsertDataFromObjectStore(
18238 DatabaseConnection* aConnection) {
18239 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18239); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 18239); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18240 aConnection->AssertIsOnConnectionThread();
18241 MOZ_ASSERT(mMaybeUniqueIndexTable)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMaybeUniqueIndexTable)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mMaybeUniqueIndexTable))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("mMaybeUniqueIndexTable"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18241
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeUniqueIndexTable"
")"); do { MOZ_CrashSequence(__null, 18241); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18242
18243 AUTO_PROFILER_LABEL("CreateIndexOp::InsertDataFromObjectStore", DOM)mozilla::AutoProfilerLabel raiiObject18243( "CreateIndexOp::InsertDataFromObjectStore"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
18244
18245 auto& storageConnection = aConnection->MutableStorageConnection();
18246
18247 RefPtr<UpdateIndexDataValuesFunction> updateFunction =
18248 new UpdateIndexDataValuesFunction(this, aConnection,
18249 Transaction().GetDatabasePtr());
18250
18251 constexpr auto updateFunctionName = "update_index_data_values"_ns;
18252
18253 nsresult rv =
18254 storageConnection.CreateFunction(updateFunctionName, 4, updateFunction);
18255 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18255)
) {
18256 return rv;
18257 }
18258
18259 rv = InsertDataFromObjectStoreInternal(aConnection);
18260
18261 MOZ_ALWAYS_SUCCEEDS(storageConnection.RemoveFunction(updateFunctionName))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(storageConnection.RemoveFunction(updateFunctionName))), 1)))
), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(storageConnection.RemoveFunction(updateFunctionName))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18261
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(storageConnection.RemoveFunction(updateFunctionName))"
")"); do { MOZ_CrashSequence(__null, 18261); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
18262
18263 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18263)
) {
18264 return rv;
18265 }
18266
18267 return NS_OK;
18268}
18269
18270nsresult CreateIndexOp::InsertDataFromObjectStoreInternal(
18271 DatabaseConnection* aConnection) const {
18272 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18272); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 18272); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18273 aConnection->AssertIsOnConnectionThread();
18274 MOZ_ASSERT(mMaybeUniqueIndexTable)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMaybeUniqueIndexTable)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mMaybeUniqueIndexTable))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("mMaybeUniqueIndexTable"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18274
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeUniqueIndexTable"
")"); do { MOZ_CrashSequence(__null, 18274); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18275
18276 MOZ_ASSERT(aConnection->HasStorageConnection())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection->HasStorageConnection())>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(aConnection->HasStorageConnection()))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aConnection->HasStorageConnection()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18276
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection->HasStorageConnection()"
")"); do { MOZ_CrashSequence(__null, 18276); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18277
18278 // The parameter names are not used, parameters are bound by index only
18279 // locally in the same function.
18280 QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1422 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data " "SET index_data_values = update_index_data_values "
"(key, index_data_values, file_ids, data) " "WHERE object_store_id = :object_store_id;"_ns
, [objectStoredId = mObjectStoreId](mozIStorageStatement&
stmt) -> Result<Ok, nsresult> { {auto tryResult1421
= (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert
(std::is_empty_v<typename decltype(tryResult1421)::ok_type
>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))"
, tryResult1421.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18287, mozilla::dom::quota::Severity::Error); return tryResult1421
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1422)::ok_type>); if ((__builtin_expect
(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data \" \"SET index_data_values = update_index_data_values \" \"(key, index_data_values, file_ids, data) \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoredId = mObjectStoreId](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1421 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult1421.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18287, mozilla::dom::quota::Severity::Error); return tryResult1421.propagateErr(); }}; return Ok{}; }))"
, tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18290, mozilla::dom::quota::Severity::Error); return tryResult1422
.propagateErr(); }}
18281 "UPDATE object_data "{auto tryResult1422 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data " "SET index_data_values = update_index_data_values "
"(key, index_data_values, file_ids, data) " "WHERE object_store_id = :object_store_id;"_ns
, [objectStoredId = mObjectStoreId](mozIStorageStatement&
stmt) -> Result<Ok, nsresult> { {auto tryResult1421
= (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert
(std::is_empty_v<typename decltype(tryResult1421)::ok_type
>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))"
, tryResult1421.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18287, mozilla::dom::quota::Severity::Error); return tryResult1421
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1422)::ok_type>); if ((__builtin_expect
(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data \" \"SET index_data_values = update_index_data_values \" \"(key, index_data_values, file_ids, data) \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoredId = mObjectStoreId](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1421 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult1421.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18287, mozilla::dom::quota::Severity::Error); return tryResult1421.propagateErr(); }}; return Ok{}; }))"
, tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18290, mozilla::dom::quota::Severity::Error); return tryResult1422
.propagateErr(); }}
18282 "SET index_data_values = update_index_data_values "{auto tryResult1422 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data " "SET index_data_values = update_index_data_values "
"(key, index_data_values, file_ids, data) " "WHERE object_store_id = :object_store_id;"_ns
, [objectStoredId = mObjectStoreId](mozIStorageStatement&
stmt) -> Result<Ok, nsresult> { {auto tryResult1421
= (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert
(std::is_empty_v<typename decltype(tryResult1421)::ok_type
>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))"
, tryResult1421.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18287, mozilla::dom::quota::Severity::Error); return tryResult1421
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1422)::ok_type>); if ((__builtin_expect
(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data \" \"SET index_data_values = update_index_data_values \" \"(key, index_data_values, file_ids, data) \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoredId = mObjectStoreId](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1421 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult1421.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18287, mozilla::dom::quota::Severity::Error); return tryResult1421.propagateErr(); }}; return Ok{}; }))"
, tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18290, mozilla::dom::quota::Severity::Error); return tryResult1422
.propagateErr(); }}
18283 "(key, index_data_values, file_ids, data) "{auto tryResult1422 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data " "SET index_data_values = update_index_data_values "
"(key, index_data_values, file_ids, data) " "WHERE object_store_id = :object_store_id;"_ns
, [objectStoredId = mObjectStoreId](mozIStorageStatement&
stmt) -> Result<Ok, nsresult> { {auto tryResult1421
= (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert
(std::is_empty_v<typename decltype(tryResult1421)::ok_type
>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))"
, tryResult1421.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18287, mozilla::dom::quota::Severity::Error); return tryResult1421
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1422)::ok_type>); if ((__builtin_expect
(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data \" \"SET index_data_values = update_index_data_values \" \"(key, index_data_values, file_ids, data) \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoredId = mObjectStoreId](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1421 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult1421.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18287, mozilla::dom::quota::Severity::Error); return tryResult1421.propagateErr(); }}; return Ok{}; }))"
, tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18290, mozilla::dom::quota::Severity::Error); return tryResult1422
.propagateErr(); }}
18284 "WHERE object_store_id = :object_store_id;"_ns,{auto tryResult1422 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data " "SET index_data_values = update_index_data_values "
"(key, index_data_values, file_ids, data) " "WHERE object_store_id = :object_store_id;"_ns
, [objectStoredId = mObjectStoreId](mozIStorageStatement&
stmt) -> Result<Ok, nsresult> { {auto tryResult1421
= (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert
(std::is_empty_v<typename decltype(tryResult1421)::ok_type
>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))"
, tryResult1421.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18287, mozilla::dom::quota::Severity::Error); return tryResult1421
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1422)::ok_type>); if ((__builtin_expect
(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data \" \"SET index_data_values = update_index_data_values \" \"(key, index_data_values, file_ids, data) \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoredId = mObjectStoreId](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1421 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult1421.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18287, mozilla::dom::quota::Severity::Error); return tryResult1421.propagateErr(); }}; return Ok{}; }))"
, tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18290, mozilla::dom::quota::Severity::Error); return tryResult1422
.propagateErr(); }}
18285 [objectStoredId ={auto tryResult1422 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data " "SET index_data_values = update_index_data_values "
"(key, index_data_values, file_ids, data) " "WHERE object_store_id = :object_store_id;"_ns
, [objectStoredId = mObjectStoreId](mozIStorageStatement&
stmt) -> Result<Ok, nsresult> { {auto tryResult1421
= (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert
(std::is_empty_v<typename decltype(tryResult1421)::ok_type
>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))"
, tryResult1421.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18287, mozilla::dom::quota::Severity::Error); return tryResult1421
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1422)::ok_type>); if ((__builtin_expect
(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data \" \"SET index_data_values = update_index_data_values \" \"(key, index_data_values, file_ids, data) \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoredId = mObjectStoreId](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1421 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult1421.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18287, mozilla::dom::quota::Severity::Error); return tryResult1421.propagateErr(); }}; return Ok{}; }))"
, tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18290, mozilla::dom::quota::Severity::Error); return tryResult1422
.propagateErr(); }}
18286 mObjectStoreId](mozIStorageStatement& stmt) -> Result<Ok, nsresult> {{auto tryResult1422 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data " "SET index_data_values = update_index_data_values "
"(key, index_data_values, file_ids, data) " "WHERE object_store_id = :object_store_id;"_ns
, [objectStoredId = mObjectStoreId](mozIStorageStatement&
stmt) -> Result<Ok, nsresult> { {auto tryResult1421
= (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert
(std::is_empty_v<typename decltype(tryResult1421)::ok_type
>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))"
, tryResult1421.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18287, mozilla::dom::quota::Severity::Error); return tryResult1421
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1422)::ok_type>); if ((__builtin_expect
(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data \" \"SET index_data_values = update_index_data_values \" \"(key, index_data_values, file_ids, data) \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoredId = mObjectStoreId](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1421 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult1421.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18287, mozilla::dom::quota::Severity::Error); return tryResult1421.propagateErr(); }}; return Ok{}; }))"
, tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18290, mozilla::dom::quota::Severity::Error); return tryResult1422
.propagateErr(); }}
18287 QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(0, objectStoredId)));{auto tryResult1422 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data " "SET index_data_values = update_index_data_values "
"(key, index_data_values, file_ids, data) " "WHERE object_store_id = :object_store_id;"_ns
, [objectStoredId = mObjectStoreId](mozIStorageStatement&
stmt) -> Result<Ok, nsresult> { {auto tryResult1421
= (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert
(std::is_empty_v<typename decltype(tryResult1421)::ok_type
>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))"
, tryResult1421.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18287, mozilla::dom::quota::Severity::Error); return tryResult1421
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1422)::ok_type>); if ((__builtin_expect
(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data \" \"SET index_data_values = update_index_data_values \" \"(key, index_data_values, file_ids, data) \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoredId = mObjectStoreId](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1421 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult1421.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18287, mozilla::dom::quota::Severity::Error); return tryResult1421.propagateErr(); }}; return Ok{}; }))"
, tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18290, mozilla::dom::quota::Severity::Error); return tryResult1422
.propagateErr(); }}
18288
18289 return Ok{};{auto tryResult1422 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data " "SET index_data_values = update_index_data_values "
"(key, index_data_values, file_ids, data) " "WHERE object_store_id = :object_store_id;"_ns
, [objectStoredId = mObjectStoreId](mozIStorageStatement&
stmt) -> Result<Ok, nsresult> { {auto tryResult1421
= (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert
(std::is_empty_v<typename decltype(tryResult1421)::ok_type
>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))"
, tryResult1421.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18287, mozilla::dom::quota::Severity::Error); return tryResult1421
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1422)::ok_type>); if ((__builtin_expect
(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data \" \"SET index_data_values = update_index_data_values \" \"(key, index_data_values, file_ids, data) \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoredId = mObjectStoreId](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1421 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult1421.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18287, mozilla::dom::quota::Severity::Error); return tryResult1421.propagateErr(); }}; return Ok{}; }))"
, tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18290, mozilla::dom::quota::Severity::Error); return tryResult1422
.propagateErr(); }}
18290 }))){auto tryResult1422 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data " "SET index_data_values = update_index_data_values "
"(key, index_data_values, file_ids, data) " "WHERE object_store_id = :object_store_id;"_ns
, [objectStoredId = mObjectStoreId](mozIStorageStatement&
stmt) -> Result<Ok, nsresult> { {auto tryResult1421
= (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert
(std::is_empty_v<typename decltype(tryResult1421)::ok_type
>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))"
, tryResult1421.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18287, mozilla::dom::quota::Severity::Error); return tryResult1421
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1422)::ok_type>); if ((__builtin_expect
(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data \" \"SET index_data_values = update_index_data_values \" \"(key, index_data_values, file_ids, data) \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoredId = mObjectStoreId](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1421 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult1421.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18287, mozilla::dom::quota::Severity::Error); return tryResult1421.propagateErr(); }}; return Ok{}; }))"
, tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18290, mozilla::dom::quota::Severity::Error); return tryResult1422
.propagateErr(); }}
;
18291
18292 return NS_OK;
18293}
18294
18295bool CreateIndexOp::Init(TransactionBase& aTransaction) {
18296 AssertIsOnBackgroundThread();
18297 MOZ_ASSERT(mObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mObjectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mObjectStoreId))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mObjectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18297
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mObjectStoreId" ")"
); do { MOZ_CrashSequence(__null, 18297); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
18298 MOZ_ASSERT(mMaybeUniqueIndexTable.isNothing())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMaybeUniqueIndexTable.isNothing())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mMaybeUniqueIndexTable.isNothing
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mMaybeUniqueIndexTable.isNothing()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18298); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeUniqueIndexTable.isNothing()"
")"); do { MOZ_CrashSequence(__null, 18298); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18299
18300 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
18301 aTransaction.GetMetadataForObjectStoreId(mObjectStoreId);
18302 MOZ_ASSERT(objectStoreMetadata)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(objectStoreMetadata)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(objectStoreMetadata))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("objectStoreMetadata"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18302
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreMetadata"
")"); do { MOZ_CrashSequence(__null, 18302); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18303
18304 const uint32_t indexCount = objectStoreMetadata->mIndexes.Count();
18305 if (!indexCount) {
18306 return true;
18307 }
18308
18309 auto uniqueIndexTable = UniqueIndexTable{indexCount};
18310
18311 for (const auto& value : objectStoreMetadata->mIndexes.Values()) {
18312 MOZ_ASSERT(!uniqueIndexTable.Contains(value->mCommonMetadata.id()))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!uniqueIndexTable.Contains(value->mCommonMetadata
.id()))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!uniqueIndexTable.Contains(value->mCommonMetadata
.id())))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!uniqueIndexTable.Contains(value->mCommonMetadata.id())"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18312
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!uniqueIndexTable.Contains(value->mCommonMetadata.id())"
")"); do { MOZ_CrashSequence(__null, 18312); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18313
18314 if (NS_WARN_IF(!uniqueIndexTable.InsertOrUpdate(NS_warn_if_impl(!uniqueIndexTable.InsertOrUpdate( value->mCommonMetadata
.id(), value->mCommonMetadata.unique(), fallible), "!uniqueIndexTable.InsertOrUpdate( value->mCommonMetadata.id(), value->mCommonMetadata.unique(), fallible)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18316
)
18315 value->mCommonMetadata.id(), value->mCommonMetadata.unique(),NS_warn_if_impl(!uniqueIndexTable.InsertOrUpdate( value->mCommonMetadata
.id(), value->mCommonMetadata.unique(), fallible), "!uniqueIndexTable.InsertOrUpdate( value->mCommonMetadata.id(), value->mCommonMetadata.unique(), fallible)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18316
)
18316 fallible))NS_warn_if_impl(!uniqueIndexTable.InsertOrUpdate( value->mCommonMetadata
.id(), value->mCommonMetadata.unique(), fallible), "!uniqueIndexTable.InsertOrUpdate( value->mCommonMetadata.id(), value->mCommonMetadata.unique(), fallible)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18316
)
) {
18317 IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18317, idbInternalErrMsg.get()); } while (0)
;
18318 NS_WARNING("out of memory")NS_DebugBreak(NS_DEBUG_WARNING, "out of memory", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18318)
;
18319 return false;
18320 }
18321 }
18322
18323 uniqueIndexTable.MarkImmutable();
18324
18325 mMaybeUniqueIndexTable.emplace(std::move(uniqueIndexTable));
18326
18327 return true;
18328}
18329
18330nsresult CreateIndexOp::DoDatabaseWork(DatabaseConnection* aConnection) {
18331 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18331); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 18331); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18332 aConnection->AssertIsOnConnectionThread();
18333
18334 AUTO_PROFILER_LABEL("CreateIndexOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject18334( "CreateIndexOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
18335
18336#ifdef DEBUG1
18337 {
18338 // Make sure that we're not creating an index with the same name and object
18339 // store as another that already exists. This should be impossible because
18340 // we should have thrown an error long before now...
18341 // The parameter names are not used, parameters are bound by index only
18342 // locally in the same function.
18343 QM_TRY_INSPECT(auto tryResult1425 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id AND name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1423 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1423)::ok_type>); if ((__builtin_expect
(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1423
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18352, mozilla::dom::quota::Severity::Error); return tryResult1423
.propagateErr(); }}; {auto tryResult1424 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect
(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18354, mozilla::dom::quota::Severity::Error); return tryResult1424
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1425.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1425.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1423 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18352, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18354, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18358, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1423 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18352, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18354, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18358); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18358); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1425.inspect();
18344 const bool& hasResult,auto tryResult1425 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id AND name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1423 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1423)::ok_type>); if ((__builtin_expect
(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1423
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18352, mozilla::dom::quota::Severity::Error); return tryResult1423
.propagateErr(); }}; {auto tryResult1424 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect
(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18354, mozilla::dom::quota::Severity::Error); return tryResult1424
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1425.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1425.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1423 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18352, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18354, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18358, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1423 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18352, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18354, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18358); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18358); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1425.inspect();
18345 aConnectionauto tryResult1425 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id AND name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1423 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1423)::ok_type>); if ((__builtin_expect
(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1423
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18352, mozilla::dom::quota::Severity::Error); return tryResult1423
.propagateErr(); }}; {auto tryResult1424 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect
(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18354, mozilla::dom::quota::Severity::Error); return tryResult1424
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1425.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1425.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1423 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18352, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18354, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18358, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1423 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18352, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18354, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18358); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18358); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1425.inspect();
18346 ->BorrowAndExecuteSingleStepStatement(auto tryResult1425 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id AND name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1423 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1423)::ok_type>); if ((__builtin_expect
(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1423
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18352, mozilla::dom::quota::Severity::Error); return tryResult1423
.propagateErr(); }}; {auto tryResult1424 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect
(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18354, mozilla::dom::quota::Severity::Error); return tryResult1424
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1425.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1425.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1423 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18352, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18354, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18358, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1423 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18352, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18354, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18358); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18358); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1425.inspect();
18347 "SELECT name "auto tryResult1425 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id AND name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1423 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1423)::ok_type>); if ((__builtin_expect
(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1423
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18352, mozilla::dom::quota::Severity::Error); return tryResult1423
.propagateErr(); }}; {auto tryResult1424 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect
(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18354, mozilla::dom::quota::Severity::Error); return tryResult1424
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1425.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1425.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1423 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18352, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18354, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18358, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1423 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18352, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18354, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18358); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18358); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1425.inspect();
18348 "FROM object_store_index "auto tryResult1425 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id AND name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1423 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1423)::ok_type>); if ((__builtin_expect
(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1423
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18352, mozilla::dom::quota::Severity::Error); return tryResult1423
.propagateErr(); }}; {auto tryResult1424 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect
(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18354, mozilla::dom::quota::Severity::Error); return tryResult1424
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1425.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1425.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1423 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18352, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18354, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18358, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1423 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18352, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18354, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18358); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18358); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1425.inspect();
18349 "WHERE object_store_id = :object_store_id AND name = :name;"_ns,auto tryResult1425 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id AND name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1423 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1423)::ok_type>); if ((__builtin_expect
(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1423
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18352, mozilla::dom::quota::Severity::Error); return tryResult1423
.propagateErr(); }}; {auto tryResult1424 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect
(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18354, mozilla::dom::quota::Severity::Error); return tryResult1424
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1425.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1425.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1423 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18352, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18354, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18358, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1423 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18352, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18354, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18358); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18358); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1425.inspect();
18350 [&self = *this](auto& stmt) -> Result<Ok, nsresult> {auto tryResult1425 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id AND name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1423 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1423)::ok_type>); if ((__builtin_expect
(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1423
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18352, mozilla::dom::quota::Severity::Error); return tryResult1423
.propagateErr(); }}; {auto tryResult1424 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect
(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18354, mozilla::dom::quota::Severity::Error); return tryResult1424
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1425.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1425.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1423 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18352, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18354, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18358, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1423 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18352, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18354, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18358); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18358); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1425.inspect();
18351 QM_TRY(MOZ_TO_RESULT(auto tryResult1425 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id AND name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1423 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1423)::ok_type>); if ((__builtin_expect
(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1423
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18352, mozilla::dom::quota::Severity::Error); return tryResult1423
.propagateErr(); }}; {auto tryResult1424 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect
(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18354, mozilla::dom::quota::Severity::Error); return tryResult1424
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1425.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1425.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1423 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18352, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18354, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18358, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1423 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18352, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18354, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18358); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18358); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1425.inspect();
18352 stmt.BindInt64ByIndex(0, self.mObjectStoreId)));auto tryResult1425 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id AND name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1423 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1423)::ok_type>); if ((__builtin_expect
(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1423
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18352, mozilla::dom::quota::Severity::Error); return tryResult1423
.propagateErr(); }}; {auto tryResult1424 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect
(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18354, mozilla::dom::quota::Severity::Error); return tryResult1424
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1425.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1425.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1423 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18352, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18354, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18358, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1423 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18352, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18354, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18358); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18358); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1425.inspect();
18353 QM_TRY(MOZ_TO_RESULT(auto tryResult1425 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id AND name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1423 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1423)::ok_type>); if ((__builtin_expect
(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1423
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18352, mozilla::dom::quota::Severity::Error); return tryResult1423
.propagateErr(); }}; {auto tryResult1424 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect
(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18354, mozilla::dom::quota::Severity::Error); return tryResult1424
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1425.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1425.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1423 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18352, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18354, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18358, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1423 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18352, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18354, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18358); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18358); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1425.inspect();
18354 stmt.BindStringByIndex(1, self.mMetadata.name())));auto tryResult1425 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id AND name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1423 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1423)::ok_type>); if ((__builtin_expect
(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1423
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18352, mozilla::dom::quota::Severity::Error); return tryResult1423
.propagateErr(); }}; {auto tryResult1424 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect
(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18354, mozilla::dom::quota::Severity::Error); return tryResult1424
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1425.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1425.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1423 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18352, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18354, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18358, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1423 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18352, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18354, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18358); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18358); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1425.inspect();
18355 return Ok{};auto tryResult1425 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id AND name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1423 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1423)::ok_type>); if ((__builtin_expect
(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1423
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18352, mozilla::dom::quota::Severity::Error); return tryResult1423
.propagateErr(); }}; {auto tryResult1424 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect
(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18354, mozilla::dom::quota::Severity::Error); return tryResult1424
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1425.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1425.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1423 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18352, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18354, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18358, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1423 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18352, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18354, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18358); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18358); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1425.inspect();
18356 })auto tryResult1425 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id AND name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1423 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1423)::ok_type>); if ((__builtin_expect
(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1423
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18352, mozilla::dom::quota::Severity::Error); return tryResult1423
.propagateErr(); }}; {auto tryResult1424 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect
(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18354, mozilla::dom::quota::Severity::Error); return tryResult1424
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1425.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1425.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1423 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18352, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18354, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18358, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1423 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18352, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18354, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18358); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18358); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1425.inspect();
18357 .map(IsSome),auto tryResult1425 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id AND name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1423 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1423)::ok_type>); if ((__builtin_expect
(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1423
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18352, mozilla::dom::quota::Severity::Error); return tryResult1423
.propagateErr(); }}; {auto tryResult1424 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect
(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18354, mozilla::dom::quota::Severity::Error); return tryResult1424
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1425.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1425.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1423 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18352, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18354, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18358, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1423 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18352, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18354, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18358); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18358); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1425.inspect();
18358 QM_ASSERT_UNREACHABLE)auto tryResult1425 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id AND name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1423 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1423)::ok_type>); if ((__builtin_expect
(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1423
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18352, mozilla::dom::quota::Severity::Error); return tryResult1423
.propagateErr(); }}; {auto tryResult1424 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect
(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18354, mozilla::dom::quota::Severity::Error); return tryResult1424
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1425.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1425.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1423 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18352, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18354, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18358, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1423 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1423.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18352, mozilla::dom::quota::Severity::Error); return tryResult1423.propagateErr(); }}; {auto tryResult1424 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1424.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18354, mozilla::dom::quota::Severity::Error); return tryResult1424.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18358); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18358); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1425.inspect();
;
18359
18360 MOZ_ASSERT(!hasResult)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!hasResult)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!hasResult))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("!hasResult", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18360); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!hasResult"
")"); do { MOZ_CrashSequence(__null, 18360); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18361 }
18362#endif
18363
18364 DatabaseConnection::AutoSavepoint autoSave;
18365 QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult1426 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426
.isErr()), 0))) { auto tryTempError = tryResult1426.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18370, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
18366#ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult1426 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426
.isErr()), 0))) { auto tryTempError = tryResult1426.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18370, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
18367 ,{auto tryResult1426 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426
.isErr()), 0))) { auto tryTempError = tryResult1426.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18370, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
18368 QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult1426 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426
.isErr()), 0))) { auto tryTempError = tryResult1426.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18370, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
18369#endif{auto tryResult1426 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426
.isErr()), 0))) { auto tryTempError = tryResult1426.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18370, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
18370 ){auto tryResult1426 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426
.isErr()), 0))) { auto tryTempError = tryResult1426.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18370, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
;
18371
18372 // The parameter names are not used, parameters are bound by index only
18373 // locally in the same function.
18374 QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1435 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store_index (id, name, key_path, unique_index, "
"multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, "
":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata
= mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement
& stmt) -> Result<Ok, nsresult> { {auto tryResult1427
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1427)::ok_type
>); if ((__builtin_expect(!!(tryResult1427.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18382, mozilla::dom::quota::Severity::Error); return tryResult1427
.propagateErr(); }}; {auto tryResult1428 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1428)::ok_type>); if ((__builtin_expect
(!!(tryResult1428.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1428
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18384, mozilla::dom::quota::Severity::Error); return tryResult1428
.propagateErr(); }}; {auto tryResult1429 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1429)::ok_type>
); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1429.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1429
.propagateErr(); }}; {auto tryResult1430 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1430)::ok_type>); if ((__builtin_expect
(!!(tryResult1430.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1430.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); return tryResult1430
.propagateErr(); }}; {auto tryResult1431 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect
(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18393, mozilla::dom::quota::Severity::Error); return tryResult1431
.propagateErr(); }}; {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1432)::ok_type>); if ((__builtin_expect
(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1432
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18394, mozilla::dom::quota::Severity::Error); return tryResult1432
.propagateErr(); }}; {auto tryResult1433 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1433)::ok_type>); if ((__builtin_expect
(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18399, mozilla::dom::quota::Severity::Error); return tryResult1433
.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect
(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1434.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1434
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect
(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1427 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect(!!(tryResult1427.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1427.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1427.propagateErr(); }}; {auto tryResult1428 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1428)::ok_type>); if ((__builtin_expect(!!(tryResult1428.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1428.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1428.propagateErr(); }}; {auto tryResult1429 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1429)::ok_type>); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1429.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1429.propagateErr(); }}; {auto tryResult1430 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1430)::ok_type>); if ((__builtin_expect(!!(tryResult1430.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1430.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); return tryResult1430.propagateErr(); }}; {auto tryResult1431 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18393, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18394, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18399, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }))"
, tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18404, mozilla::dom::quota::Severity::Error); return tryResult1435
.propagateErr(); }}
18375 "INSERT INTO object_store_index (id, name, key_path, unique_index, "{auto tryResult1435 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store_index (id, name, key_path, unique_index, "
"multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, "
":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata
= mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement
& stmt) -> Result<Ok, nsresult> { {auto tryResult1427
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1427)::ok_type
>); if ((__builtin_expect(!!(tryResult1427.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18382, mozilla::dom::quota::Severity::Error); return tryResult1427
.propagateErr(); }}; {auto tryResult1428 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1428)::ok_type>); if ((__builtin_expect
(!!(tryResult1428.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1428
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18384, mozilla::dom::quota::Severity::Error); return tryResult1428
.propagateErr(); }}; {auto tryResult1429 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1429)::ok_type>
); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1429.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1429
.propagateErr(); }}; {auto tryResult1430 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1430)::ok_type>); if ((__builtin_expect
(!!(tryResult1430.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1430.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); return tryResult1430
.propagateErr(); }}; {auto tryResult1431 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect
(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18393, mozilla::dom::quota::Severity::Error); return tryResult1431
.propagateErr(); }}; {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1432)::ok_type>); if ((__builtin_expect
(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1432
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18394, mozilla::dom::quota::Severity::Error); return tryResult1432
.propagateErr(); }}; {auto tryResult1433 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1433)::ok_type>); if ((__builtin_expect
(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18399, mozilla::dom::quota::Severity::Error); return tryResult1433
.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect
(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1434.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1434
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect
(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1427 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect(!!(tryResult1427.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1427.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1427.propagateErr(); }}; {auto tryResult1428 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1428)::ok_type>); if ((__builtin_expect(!!(tryResult1428.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1428.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1428.propagateErr(); }}; {auto tryResult1429 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1429)::ok_type>); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1429.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1429.propagateErr(); }}; {auto tryResult1430 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1430)::ok_type>); if ((__builtin_expect(!!(tryResult1430.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1430.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); return tryResult1430.propagateErr(); }}; {auto tryResult1431 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18393, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18394, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18399, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }))"
, tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18404, mozilla::dom::quota::Severity::Error); return tryResult1435
.propagateErr(); }}
18376 "multientry, object_store_id, locale, "{auto tryResult1435 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store_index (id, name, key_path, unique_index, "
"multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, "
":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata
= mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement
& stmt) -> Result<Ok, nsresult> { {auto tryResult1427
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1427)::ok_type
>); if ((__builtin_expect(!!(tryResult1427.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18382, mozilla::dom::quota::Severity::Error); return tryResult1427
.propagateErr(); }}; {auto tryResult1428 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1428)::ok_type>); if ((__builtin_expect
(!!(tryResult1428.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1428
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18384, mozilla::dom::quota::Severity::Error); return tryResult1428
.propagateErr(); }}; {auto tryResult1429 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1429)::ok_type>
); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1429.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1429
.propagateErr(); }}; {auto tryResult1430 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1430)::ok_type>); if ((__builtin_expect
(!!(tryResult1430.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1430.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); return tryResult1430
.propagateErr(); }}; {auto tryResult1431 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect
(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18393, mozilla::dom::quota::Severity::Error); return tryResult1431
.propagateErr(); }}; {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1432)::ok_type>); if ((__builtin_expect
(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1432
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18394, mozilla::dom::quota::Severity::Error); return tryResult1432
.propagateErr(); }}; {auto tryResult1433 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1433)::ok_type>); if ((__builtin_expect
(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18399, mozilla::dom::quota::Severity::Error); return tryResult1433
.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect
(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1434.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1434
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect
(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1427 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect(!!(tryResult1427.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1427.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1427.propagateErr(); }}; {auto tryResult1428 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1428)::ok_type>); if ((__builtin_expect(!!(tryResult1428.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1428.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1428.propagateErr(); }}; {auto tryResult1429 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1429)::ok_type>); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1429.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1429.propagateErr(); }}; {auto tryResult1430 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1430)::ok_type>); if ((__builtin_expect(!!(tryResult1430.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1430.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); return tryResult1430.propagateErr(); }}; {auto tryResult1431 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18393, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18394, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18399, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }))"
, tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18404, mozilla::dom::quota::Severity::Error); return tryResult1435
.propagateErr(); }}
18377 "is_auto_locale) "{auto tryResult1435 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store_index (id, name, key_path, unique_index, "
"multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, "
":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata
= mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement
& stmt) -> Result<Ok, nsresult> { {auto tryResult1427
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1427)::ok_type
>); if ((__builtin_expect(!!(tryResult1427.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18382, mozilla::dom::quota::Severity::Error); return tryResult1427
.propagateErr(); }}; {auto tryResult1428 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1428)::ok_type>); if ((__builtin_expect
(!!(tryResult1428.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1428
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18384, mozilla::dom::quota::Severity::Error); return tryResult1428
.propagateErr(); }}; {auto tryResult1429 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1429)::ok_type>
); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1429.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1429
.propagateErr(); }}; {auto tryResult1430 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1430)::ok_type>); if ((__builtin_expect
(!!(tryResult1430.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1430.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); return tryResult1430
.propagateErr(); }}; {auto tryResult1431 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect
(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18393, mozilla::dom::quota::Severity::Error); return tryResult1431
.propagateErr(); }}; {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1432)::ok_type>); if ((__builtin_expect
(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1432
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18394, mozilla::dom::quota::Severity::Error); return tryResult1432
.propagateErr(); }}; {auto tryResult1433 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1433)::ok_type>); if ((__builtin_expect
(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18399, mozilla::dom::quota::Severity::Error); return tryResult1433
.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect
(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1434.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1434
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect
(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1427 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect(!!(tryResult1427.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1427.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1427.propagateErr(); }}; {auto tryResult1428 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1428)::ok_type>); if ((__builtin_expect(!!(tryResult1428.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1428.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1428.propagateErr(); }}; {auto tryResult1429 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1429)::ok_type>); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1429.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1429.propagateErr(); }}; {auto tryResult1430 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1430)::ok_type>); if ((__builtin_expect(!!(tryResult1430.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1430.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); return tryResult1430.propagateErr(); }}; {auto tryResult1431 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18393, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18394, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18399, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }))"
, tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18404, mozilla::dom::quota::Severity::Error); return tryResult1435
.propagateErr(); }}
18378 "VALUES (:id, :name, :key_path, :unique, :multientry, "{auto tryResult1435 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store_index (id, name, key_path, unique_index, "
"multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, "
":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata
= mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement
& stmt) -> Result<Ok, nsresult> { {auto tryResult1427
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1427)::ok_type
>); if ((__builtin_expect(!!(tryResult1427.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18382, mozilla::dom::quota::Severity::Error); return tryResult1427
.propagateErr(); }}; {auto tryResult1428 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1428)::ok_type>); if ((__builtin_expect
(!!(tryResult1428.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1428
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18384, mozilla::dom::quota::Severity::Error); return tryResult1428
.propagateErr(); }}; {auto tryResult1429 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1429)::ok_type>
); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1429.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1429
.propagateErr(); }}; {auto tryResult1430 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1430)::ok_type>); if ((__builtin_expect
(!!(tryResult1430.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1430.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); return tryResult1430
.propagateErr(); }}; {auto tryResult1431 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect
(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18393, mozilla::dom::quota::Severity::Error); return tryResult1431
.propagateErr(); }}; {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1432)::ok_type>); if ((__builtin_expect
(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1432
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18394, mozilla::dom::quota::Severity::Error); return tryResult1432
.propagateErr(); }}; {auto tryResult1433 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1433)::ok_type>); if ((__builtin_expect
(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18399, mozilla::dom::quota::Severity::Error); return tryResult1433
.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect
(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1434.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1434
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect
(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1427 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect(!!(tryResult1427.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1427.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1427.propagateErr(); }}; {auto tryResult1428 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1428)::ok_type>); if ((__builtin_expect(!!(tryResult1428.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1428.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1428.propagateErr(); }}; {auto tryResult1429 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1429)::ok_type>); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1429.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1429.propagateErr(); }}; {auto tryResult1430 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1430)::ok_type>); if ((__builtin_expect(!!(tryResult1430.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1430.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); return tryResult1430.propagateErr(); }}; {auto tryResult1431 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18393, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18394, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18399, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }))"
, tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18404, mozilla::dom::quota::Severity::Error); return tryResult1435
.propagateErr(); }}
18379 ":object_store_id, :locale, :is_auto_locale)"_ns,{auto tryResult1435 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store_index (id, name, key_path, unique_index, "
"multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, "
":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata
= mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement
& stmt) -> Result<Ok, nsresult> { {auto tryResult1427
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1427)::ok_type
>); if ((__builtin_expect(!!(tryResult1427.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18382, mozilla::dom::quota::Severity::Error); return tryResult1427
.propagateErr(); }}; {auto tryResult1428 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1428)::ok_type>); if ((__builtin_expect
(!!(tryResult1428.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1428
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18384, mozilla::dom::quota::Severity::Error); return tryResult1428
.propagateErr(); }}; {auto tryResult1429 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1429)::ok_type>
); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1429.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1429
.propagateErr(); }}; {auto tryResult1430 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1430)::ok_type>); if ((__builtin_expect
(!!(tryResult1430.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1430.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); return tryResult1430
.propagateErr(); }}; {auto tryResult1431 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect
(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18393, mozilla::dom::quota::Severity::Error); return tryResult1431
.propagateErr(); }}; {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1432)::ok_type>); if ((__builtin_expect
(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1432
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18394, mozilla::dom::quota::Severity::Error); return tryResult1432
.propagateErr(); }}; {auto tryResult1433 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1433)::ok_type>); if ((__builtin_expect
(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18399, mozilla::dom::quota::Severity::Error); return tryResult1433
.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect
(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1434.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1434
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect
(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1427 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect(!!(tryResult1427.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1427.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1427.propagateErr(); }}; {auto tryResult1428 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1428)::ok_type>); if ((__builtin_expect(!!(tryResult1428.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1428.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1428.propagateErr(); }}; {auto tryResult1429 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1429)::ok_type>); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1429.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1429.propagateErr(); }}; {auto tryResult1430 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1430)::ok_type>); if ((__builtin_expect(!!(tryResult1430.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1430.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); return tryResult1430.propagateErr(); }}; {auto tryResult1431 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18393, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18394, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18399, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }))"
, tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18404, mozilla::dom::quota::Severity::Error); return tryResult1435
.propagateErr(); }}
18380 [&metadata = mMetadata, objectStoreId = mObjectStoreId]({auto tryResult1435 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store_index (id, name, key_path, unique_index, "
"multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, "
":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata
= mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement
& stmt) -> Result<Ok, nsresult> { {auto tryResult1427
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1427)::ok_type
>); if ((__builtin_expect(!!(tryResult1427.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18382, mozilla::dom::quota::Severity::Error); return tryResult1427
.propagateErr(); }}; {auto tryResult1428 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1428)::ok_type>); if ((__builtin_expect
(!!(tryResult1428.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1428
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18384, mozilla::dom::quota::Severity::Error); return tryResult1428
.propagateErr(); }}; {auto tryResult1429 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1429)::ok_type>
); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1429.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1429
.propagateErr(); }}; {auto tryResult1430 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1430)::ok_type>); if ((__builtin_expect
(!!(tryResult1430.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1430.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); return tryResult1430
.propagateErr(); }}; {auto tryResult1431 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect
(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18393, mozilla::dom::quota::Severity::Error); return tryResult1431
.propagateErr(); }}; {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1432)::ok_type>); if ((__builtin_expect
(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1432
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18394, mozilla::dom::quota::Severity::Error); return tryResult1432
.propagateErr(); }}; {auto tryResult1433 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1433)::ok_type>); if ((__builtin_expect
(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18399, mozilla::dom::quota::Severity::Error); return tryResult1433
.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect
(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1434.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1434
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect
(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1427 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect(!!(tryResult1427.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1427.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1427.propagateErr(); }}; {auto tryResult1428 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1428)::ok_type>); if ((__builtin_expect(!!(tryResult1428.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1428.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1428.propagateErr(); }}; {auto tryResult1429 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1429)::ok_type>); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1429.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1429.propagateErr(); }}; {auto tryResult1430 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1430)::ok_type>); if ((__builtin_expect(!!(tryResult1430.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1430.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); return tryResult1430.propagateErr(); }}; {auto tryResult1431 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18393, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18394, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18399, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }))"
, tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18404, mozilla::dom::quota::Severity::Error); return tryResult1435
.propagateErr(); }}
18381 mozIStorageStatement& stmt) -> Result<Ok, nsresult> {{auto tryResult1435 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store_index (id, name, key_path, unique_index, "
"multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, "
":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata
= mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement
& stmt) -> Result<Ok, nsresult> { {auto tryResult1427
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1427)::ok_type
>); if ((__builtin_expect(!!(tryResult1427.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18382, mozilla::dom::quota::Severity::Error); return tryResult1427
.propagateErr(); }}; {auto tryResult1428 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1428)::ok_type>); if ((__builtin_expect
(!!(tryResult1428.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1428
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18384, mozilla::dom::quota::Severity::Error); return tryResult1428
.propagateErr(); }}; {auto tryResult1429 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1429)::ok_type>
); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1429.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1429
.propagateErr(); }}; {auto tryResult1430 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1430)::ok_type>); if ((__builtin_expect
(!!(tryResult1430.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1430.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); return tryResult1430
.propagateErr(); }}; {auto tryResult1431 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect
(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18393, mozilla::dom::quota::Severity::Error); return tryResult1431
.propagateErr(); }}; {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1432)::ok_type>); if ((__builtin_expect
(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1432
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18394, mozilla::dom::quota::Severity::Error); return tryResult1432
.propagateErr(); }}; {auto tryResult1433 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1433)::ok_type>); if ((__builtin_expect
(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18399, mozilla::dom::quota::Severity::Error); return tryResult1433
.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect
(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1434.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1434
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect
(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1427 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect(!!(tryResult1427.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1427.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1427.propagateErr(); }}; {auto tryResult1428 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1428)::ok_type>); if ((__builtin_expect(!!(tryResult1428.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1428.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1428.propagateErr(); }}; {auto tryResult1429 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1429)::ok_type>); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1429.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1429.propagateErr(); }}; {auto tryResult1430 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1430)::ok_type>); if ((__builtin_expect(!!(tryResult1430.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1430.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); return tryResult1430.propagateErr(); }}; {auto tryResult1431 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18393, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18394, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18399, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }))"
, tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18404, mozilla::dom::quota::Severity::Error); return tryResult1435
.propagateErr(); }}
18382 QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(0, metadata.id())));{auto tryResult1435 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store_index (id, name, key_path, unique_index, "
"multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, "
":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata
= mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement
& stmt) -> Result<Ok, nsresult> { {auto tryResult1427
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1427)::ok_type
>); if ((__builtin_expect(!!(tryResult1427.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18382, mozilla::dom::quota::Severity::Error); return tryResult1427
.propagateErr(); }}; {auto tryResult1428 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1428)::ok_type>); if ((__builtin_expect
(!!(tryResult1428.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1428
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18384, mozilla::dom::quota::Severity::Error); return tryResult1428
.propagateErr(); }}; {auto tryResult1429 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1429)::ok_type>
); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1429.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1429
.propagateErr(); }}; {auto tryResult1430 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1430)::ok_type>); if ((__builtin_expect
(!!(tryResult1430.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1430.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); return tryResult1430
.propagateErr(); }}; {auto tryResult1431 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect
(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18393, mozilla::dom::quota::Severity::Error); return tryResult1431
.propagateErr(); }}; {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1432)::ok_type>); if ((__builtin_expect
(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1432
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18394, mozilla::dom::quota::Severity::Error); return tryResult1432
.propagateErr(); }}; {auto tryResult1433 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1433)::ok_type>); if ((__builtin_expect
(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18399, mozilla::dom::quota::Severity::Error); return tryResult1433
.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect
(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1434.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1434
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect
(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1427 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect(!!(tryResult1427.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1427.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1427.propagateErr(); }}; {auto tryResult1428 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1428)::ok_type>); if ((__builtin_expect(!!(tryResult1428.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1428.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1428.propagateErr(); }}; {auto tryResult1429 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1429)::ok_type>); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1429.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1429.propagateErr(); }}; {auto tryResult1430 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1430)::ok_type>); if ((__builtin_expect(!!(tryResult1430.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1430.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); return tryResult1430.propagateErr(); }}; {auto tryResult1431 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18393, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18394, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18399, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }))"
, tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18404, mozilla::dom::quota::Severity::Error); return tryResult1435
.propagateErr(); }}
18383
18384 QM_TRY(MOZ_TO_RESULT(stmt.BindStringByIndex(1, metadata.name())));{auto tryResult1435 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store_index (id, name, key_path, unique_index, "
"multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, "
":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata
= mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement
& stmt) -> Result<Ok, nsresult> { {auto tryResult1427
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1427)::ok_type
>); if ((__builtin_expect(!!(tryResult1427.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18382, mozilla::dom::quota::Severity::Error); return tryResult1427
.propagateErr(); }}; {auto tryResult1428 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1428)::ok_type>); if ((__builtin_expect
(!!(tryResult1428.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1428
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18384, mozilla::dom::quota::Severity::Error); return tryResult1428
.propagateErr(); }}; {auto tryResult1429 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1429)::ok_type>
); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1429.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1429
.propagateErr(); }}; {auto tryResult1430 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1430)::ok_type>); if ((__builtin_expect
(!!(tryResult1430.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1430.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); return tryResult1430
.propagateErr(); }}; {auto tryResult1431 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect
(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18393, mozilla::dom::quota::Severity::Error); return tryResult1431
.propagateErr(); }}; {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1432)::ok_type>); if ((__builtin_expect
(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1432
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18394, mozilla::dom::quota::Severity::Error); return tryResult1432
.propagateErr(); }}; {auto tryResult1433 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1433)::ok_type>); if ((__builtin_expect
(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18399, mozilla::dom::quota::Severity::Error); return tryResult1433
.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect
(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1434.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1434
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect
(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1427 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect(!!(tryResult1427.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1427.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1427.propagateErr(); }}; {auto tryResult1428 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1428)::ok_type>); if ((__builtin_expect(!!(tryResult1428.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1428.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1428.propagateErr(); }}; {auto tryResult1429 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1429)::ok_type>); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1429.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1429.propagateErr(); }}; {auto tryResult1430 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1430)::ok_type>); if ((__builtin_expect(!!(tryResult1430.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1430.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); return tryResult1430.propagateErr(); }}; {auto tryResult1431 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18393, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18394, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18399, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }))"
, tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18404, mozilla::dom::quota::Severity::Error); return tryResult1435
.propagateErr(); }}
18385
18386 QM_TRY(MOZ_TO_RESULT({auto tryResult1435 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store_index (id, name, key_path, unique_index, "
"multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, "
":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata
= mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement
& stmt) -> Result<Ok, nsresult> { {auto tryResult1427
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1427)::ok_type
>); if ((__builtin_expect(!!(tryResult1427.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18382, mozilla::dom::quota::Severity::Error); return tryResult1427
.propagateErr(); }}; {auto tryResult1428 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1428)::ok_type>); if ((__builtin_expect
(!!(tryResult1428.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1428
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18384, mozilla::dom::quota::Severity::Error); return tryResult1428
.propagateErr(); }}; {auto tryResult1429 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1429)::ok_type>
); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1429.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1429
.propagateErr(); }}; {auto tryResult1430 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1430)::ok_type>); if ((__builtin_expect
(!!(tryResult1430.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1430.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); return tryResult1430
.propagateErr(); }}; {auto tryResult1431 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect
(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18393, mozilla::dom::quota::Severity::Error); return tryResult1431
.propagateErr(); }}; {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1432)::ok_type>); if ((__builtin_expect
(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1432
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18394, mozilla::dom::quota::Severity::Error); return tryResult1432
.propagateErr(); }}; {auto tryResult1433 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1433)::ok_type>); if ((__builtin_expect
(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18399, mozilla::dom::quota::Severity::Error); return tryResult1433
.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect
(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1434.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1434
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect
(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1427 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect(!!(tryResult1427.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1427.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1427.propagateErr(); }}; {auto tryResult1428 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1428)::ok_type>); if ((__builtin_expect(!!(tryResult1428.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1428.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1428.propagateErr(); }}; {auto tryResult1429 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1429)::ok_type>); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1429.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1429.propagateErr(); }}; {auto tryResult1430 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1430)::ok_type>); if ((__builtin_expect(!!(tryResult1430.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1430.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); return tryResult1430.propagateErr(); }}; {auto tryResult1431 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18393, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18394, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18399, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }))"
, tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18404, mozilla::dom::quota::Severity::Error); return tryResult1435
.propagateErr(); }}
18387 stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString())));{auto tryResult1435 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store_index (id, name, key_path, unique_index, "
"multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, "
":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata
= mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement
& stmt) -> Result<Ok, nsresult> { {auto tryResult1427
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1427)::ok_type
>); if ((__builtin_expect(!!(tryResult1427.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18382, mozilla::dom::quota::Severity::Error); return tryResult1427
.propagateErr(); }}; {auto tryResult1428 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1428)::ok_type>); if ((__builtin_expect
(!!(tryResult1428.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1428
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18384, mozilla::dom::quota::Severity::Error); return tryResult1428
.propagateErr(); }}; {auto tryResult1429 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1429)::ok_type>
); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1429.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1429
.propagateErr(); }}; {auto tryResult1430 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1430)::ok_type>); if ((__builtin_expect
(!!(tryResult1430.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1430.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); return tryResult1430
.propagateErr(); }}; {auto tryResult1431 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect
(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18393, mozilla::dom::quota::Severity::Error); return tryResult1431
.propagateErr(); }}; {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1432)::ok_type>); if ((__builtin_expect
(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1432
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18394, mozilla::dom::quota::Severity::Error); return tryResult1432
.propagateErr(); }}; {auto tryResult1433 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1433)::ok_type>); if ((__builtin_expect
(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18399, mozilla::dom::quota::Severity::Error); return tryResult1433
.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect
(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1434.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1434
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect
(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1427 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect(!!(tryResult1427.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1427.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1427.propagateErr(); }}; {auto tryResult1428 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1428)::ok_type>); if ((__builtin_expect(!!(tryResult1428.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1428.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1428.propagateErr(); }}; {auto tryResult1429 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1429)::ok_type>); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1429.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1429.propagateErr(); }}; {auto tryResult1430 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1430)::ok_type>); if ((__builtin_expect(!!(tryResult1430.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1430.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); return tryResult1430.propagateErr(); }}; {auto tryResult1431 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18393, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18394, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18399, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }))"
, tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18404, mozilla::dom::quota::Severity::Error); return tryResult1435
.propagateErr(); }}
18388
18389 QM_TRY({auto tryResult1435 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store_index (id, name, key_path, unique_index, "
"multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, "
":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata
= mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement
& stmt) -> Result<Ok, nsresult> { {auto tryResult1427
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1427)::ok_type
>); if ((__builtin_expect(!!(tryResult1427.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18382, mozilla::dom::quota::Severity::Error); return tryResult1427
.propagateErr(); }}; {auto tryResult1428 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1428)::ok_type>); if ((__builtin_expect
(!!(tryResult1428.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1428
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18384, mozilla::dom::quota::Severity::Error); return tryResult1428
.propagateErr(); }}; {auto tryResult1429 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1429)::ok_type>
); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1429.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1429
.propagateErr(); }}; {auto tryResult1430 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1430)::ok_type>); if ((__builtin_expect
(!!(tryResult1430.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1430.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); return tryResult1430
.propagateErr(); }}; {auto tryResult1431 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect
(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18393, mozilla::dom::quota::Severity::Error); return tryResult1431
.propagateErr(); }}; {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1432)::ok_type>); if ((__builtin_expect
(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1432
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18394, mozilla::dom::quota::Severity::Error); return tryResult1432
.propagateErr(); }}; {auto tryResult1433 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1433)::ok_type>); if ((__builtin_expect
(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18399, mozilla::dom::quota::Severity::Error); return tryResult1433
.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect
(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1434.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1434
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect
(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1427 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect(!!(tryResult1427.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1427.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1427.propagateErr(); }}; {auto tryResult1428 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1428)::ok_type>); if ((__builtin_expect(!!(tryResult1428.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1428.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1428.propagateErr(); }}; {auto tryResult1429 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1429)::ok_type>); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1429.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1429.propagateErr(); }}; {auto tryResult1430 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1430)::ok_type>); if ((__builtin_expect(!!(tryResult1430.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1430.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); return tryResult1430.propagateErr(); }}; {auto tryResult1431 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18393, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18394, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18399, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }))"
, tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18404, mozilla::dom::quota::Severity::Error); return tryResult1435
.propagateErr(); }}
18390 MOZ_TO_RESULT(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0)));{auto tryResult1435 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store_index (id, name, key_path, unique_index, "
"multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, "
":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata
= mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement
& stmt) -> Result<Ok, nsresult> { {auto tryResult1427
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1427)::ok_type
>); if ((__builtin_expect(!!(tryResult1427.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18382, mozilla::dom::quota::Severity::Error); return tryResult1427
.propagateErr(); }}; {auto tryResult1428 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1428)::ok_type>); if ((__builtin_expect
(!!(tryResult1428.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1428
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18384, mozilla::dom::quota::Severity::Error); return tryResult1428
.propagateErr(); }}; {auto tryResult1429 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1429)::ok_type>
); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1429.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1429
.propagateErr(); }}; {auto tryResult1430 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1430)::ok_type>); if ((__builtin_expect
(!!(tryResult1430.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1430.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); return tryResult1430
.propagateErr(); }}; {auto tryResult1431 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect
(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18393, mozilla::dom::quota::Severity::Error); return tryResult1431
.propagateErr(); }}; {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1432)::ok_type>); if ((__builtin_expect
(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1432
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18394, mozilla::dom::quota::Severity::Error); return tryResult1432
.propagateErr(); }}; {auto tryResult1433 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1433)::ok_type>); if ((__builtin_expect
(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18399, mozilla::dom::quota::Severity::Error); return tryResult1433
.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect
(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1434.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1434
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect
(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1427 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect(!!(tryResult1427.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1427.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1427.propagateErr(); }}; {auto tryResult1428 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1428)::ok_type>); if ((__builtin_expect(!!(tryResult1428.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1428.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1428.propagateErr(); }}; {auto tryResult1429 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1429)::ok_type>); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1429.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1429.propagateErr(); }}; {auto tryResult1430 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1430)::ok_type>); if ((__builtin_expect(!!(tryResult1430.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1430.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); return tryResult1430.propagateErr(); }}; {auto tryResult1431 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18393, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18394, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18399, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }))"
, tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18404, mozilla::dom::quota::Severity::Error); return tryResult1435
.propagateErr(); }}
18391
18392 QM_TRY(MOZ_TO_RESULT({auto tryResult1435 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store_index (id, name, key_path, unique_index, "
"multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, "
":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata
= mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement
& stmt) -> Result<Ok, nsresult> { {auto tryResult1427
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1427)::ok_type
>); if ((__builtin_expect(!!(tryResult1427.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18382, mozilla::dom::quota::Severity::Error); return tryResult1427
.propagateErr(); }}; {auto tryResult1428 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1428)::ok_type>); if ((__builtin_expect
(!!(tryResult1428.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1428
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18384, mozilla::dom::quota::Severity::Error); return tryResult1428
.propagateErr(); }}; {auto tryResult1429 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1429)::ok_type>
); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1429.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1429
.propagateErr(); }}; {auto tryResult1430 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1430)::ok_type>); if ((__builtin_expect
(!!(tryResult1430.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1430.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); return tryResult1430
.propagateErr(); }}; {auto tryResult1431 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect
(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18393, mozilla::dom::quota::Severity::Error); return tryResult1431
.propagateErr(); }}; {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1432)::ok_type>); if ((__builtin_expect
(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1432
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18394, mozilla::dom::quota::Severity::Error); return tryResult1432
.propagateErr(); }}; {auto tryResult1433 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1433)::ok_type>); if ((__builtin_expect
(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18399, mozilla::dom::quota::Severity::Error); return tryResult1433
.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect
(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1434.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1434
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect
(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1427 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect(!!(tryResult1427.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1427.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1427.propagateErr(); }}; {auto tryResult1428 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1428)::ok_type>); if ((__builtin_expect(!!(tryResult1428.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1428.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1428.propagateErr(); }}; {auto tryResult1429 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1429)::ok_type>); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1429.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1429.propagateErr(); }}; {auto tryResult1430 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1430)::ok_type>); if ((__builtin_expect(!!(tryResult1430.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1430.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); return tryResult1430.propagateErr(); }}; {auto tryResult1431 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18393, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18394, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18399, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }))"
, tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18404, mozilla::dom::quota::Severity::Error); return tryResult1435
.propagateErr(); }}
18393 stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0)));{auto tryResult1435 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store_index (id, name, key_path, unique_index, "
"multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, "
":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata
= mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement
& stmt) -> Result<Ok, nsresult> { {auto tryResult1427
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1427)::ok_type
>); if ((__builtin_expect(!!(tryResult1427.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18382, mozilla::dom::quota::Severity::Error); return tryResult1427
.propagateErr(); }}; {auto tryResult1428 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1428)::ok_type>); if ((__builtin_expect
(!!(tryResult1428.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1428
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18384, mozilla::dom::quota::Severity::Error); return tryResult1428
.propagateErr(); }}; {auto tryResult1429 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1429)::ok_type>
); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1429.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1429
.propagateErr(); }}; {auto tryResult1430 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1430)::ok_type>); if ((__builtin_expect
(!!(tryResult1430.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1430.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); return tryResult1430
.propagateErr(); }}; {auto tryResult1431 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect
(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18393, mozilla::dom::quota::Severity::Error); return tryResult1431
.propagateErr(); }}; {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1432)::ok_type>); if ((__builtin_expect
(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1432
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18394, mozilla::dom::quota::Severity::Error); return tryResult1432
.propagateErr(); }}; {auto tryResult1433 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1433)::ok_type>); if ((__builtin_expect
(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18399, mozilla::dom::quota::Severity::Error); return tryResult1433
.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect
(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1434.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1434
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect
(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1427 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect(!!(tryResult1427.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1427.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1427.propagateErr(); }}; {auto tryResult1428 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1428)::ok_type>); if ((__builtin_expect(!!(tryResult1428.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1428.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1428.propagateErr(); }}; {auto tryResult1429 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1429)::ok_type>); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1429.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1429.propagateErr(); }}; {auto tryResult1430 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1430)::ok_type>); if ((__builtin_expect(!!(tryResult1430.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1430.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); return tryResult1430.propagateErr(); }}; {auto tryResult1431 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18393, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18394, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18399, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }))"
, tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18404, mozilla::dom::quota::Severity::Error); return tryResult1435
.propagateErr(); }}
18394 QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(5, objectStoreId)));{auto tryResult1435 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store_index (id, name, key_path, unique_index, "
"multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, "
":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata
= mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement
& stmt) -> Result<Ok, nsresult> { {auto tryResult1427
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1427)::ok_type
>); if ((__builtin_expect(!!(tryResult1427.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18382, mozilla::dom::quota::Severity::Error); return tryResult1427
.propagateErr(); }}; {auto tryResult1428 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1428)::ok_type>); if ((__builtin_expect
(!!(tryResult1428.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1428
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18384, mozilla::dom::quota::Severity::Error); return tryResult1428
.propagateErr(); }}; {auto tryResult1429 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1429)::ok_type>
); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1429.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1429
.propagateErr(); }}; {auto tryResult1430 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1430)::ok_type>); if ((__builtin_expect
(!!(tryResult1430.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1430.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); return tryResult1430
.propagateErr(); }}; {auto tryResult1431 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect
(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18393, mozilla::dom::quota::Severity::Error); return tryResult1431
.propagateErr(); }}; {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1432)::ok_type>); if ((__builtin_expect
(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1432
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18394, mozilla::dom::quota::Severity::Error); return tryResult1432
.propagateErr(); }}; {auto tryResult1433 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1433)::ok_type>); if ((__builtin_expect
(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18399, mozilla::dom::quota::Severity::Error); return tryResult1433
.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect
(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1434.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1434
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect
(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1427 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect(!!(tryResult1427.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1427.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1427.propagateErr(); }}; {auto tryResult1428 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1428)::ok_type>); if ((__builtin_expect(!!(tryResult1428.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1428.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1428.propagateErr(); }}; {auto tryResult1429 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1429)::ok_type>); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1429.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1429.propagateErr(); }}; {auto tryResult1430 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1430)::ok_type>); if ((__builtin_expect(!!(tryResult1430.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1430.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); return tryResult1430.propagateErr(); }}; {auto tryResult1431 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18393, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18394, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18399, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }))"
, tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18404, mozilla::dom::quota::Severity::Error); return tryResult1435
.propagateErr(); }}
18395
18396 QM_TRY(MOZ_TO_RESULT({auto tryResult1435 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store_index (id, name, key_path, unique_index, "
"multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, "
":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata
= mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement
& stmt) -> Result<Ok, nsresult> { {auto tryResult1427
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1427)::ok_type
>); if ((__builtin_expect(!!(tryResult1427.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18382, mozilla::dom::quota::Severity::Error); return tryResult1427
.propagateErr(); }}; {auto tryResult1428 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1428)::ok_type>); if ((__builtin_expect
(!!(tryResult1428.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1428
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18384, mozilla::dom::quota::Severity::Error); return tryResult1428
.propagateErr(); }}; {auto tryResult1429 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1429)::ok_type>
); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1429.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1429
.propagateErr(); }}; {auto tryResult1430 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1430)::ok_type>); if ((__builtin_expect
(!!(tryResult1430.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1430.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); return tryResult1430
.propagateErr(); }}; {auto tryResult1431 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect
(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18393, mozilla::dom::quota::Severity::Error); return tryResult1431
.propagateErr(); }}; {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1432)::ok_type>); if ((__builtin_expect
(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1432
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18394, mozilla::dom::quota::Severity::Error); return tryResult1432
.propagateErr(); }}; {auto tryResult1433 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1433)::ok_type>); if ((__builtin_expect
(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18399, mozilla::dom::quota::Severity::Error); return tryResult1433
.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect
(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1434.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1434
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect
(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1427 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect(!!(tryResult1427.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1427.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1427.propagateErr(); }}; {auto tryResult1428 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1428)::ok_type>); if ((__builtin_expect(!!(tryResult1428.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1428.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1428.propagateErr(); }}; {auto tryResult1429 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1429)::ok_type>); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1429.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1429.propagateErr(); }}; {auto tryResult1430 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1430)::ok_type>); if ((__builtin_expect(!!(tryResult1430.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1430.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); return tryResult1430.propagateErr(); }}; {auto tryResult1431 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18393, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18394, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18399, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }))"
, tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18404, mozilla::dom::quota::Severity::Error); return tryResult1435
.propagateErr(); }}
18397 metadata.locale().IsEmpty(){auto tryResult1435 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store_index (id, name, key_path, unique_index, "
"multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, "
":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata
= mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement
& stmt) -> Result<Ok, nsresult> { {auto tryResult1427
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1427)::ok_type
>); if ((__builtin_expect(!!(tryResult1427.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18382, mozilla::dom::quota::Severity::Error); return tryResult1427
.propagateErr(); }}; {auto tryResult1428 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1428)::ok_type>); if ((__builtin_expect
(!!(tryResult1428.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1428
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18384, mozilla::dom::quota::Severity::Error); return tryResult1428
.propagateErr(); }}; {auto tryResult1429 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1429)::ok_type>
); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1429.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1429
.propagateErr(); }}; {auto tryResult1430 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1430)::ok_type>); if ((__builtin_expect
(!!(tryResult1430.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1430.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); return tryResult1430
.propagateErr(); }}; {auto tryResult1431 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect
(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18393, mozilla::dom::quota::Severity::Error); return tryResult1431
.propagateErr(); }}; {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1432)::ok_type>); if ((__builtin_expect
(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1432
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18394, mozilla::dom::quota::Severity::Error); return tryResult1432
.propagateErr(); }}; {auto tryResult1433 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1433)::ok_type>); if ((__builtin_expect
(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18399, mozilla::dom::quota::Severity::Error); return tryResult1433
.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect
(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1434.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1434
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect
(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1427 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect(!!(tryResult1427.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1427.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1427.propagateErr(); }}; {auto tryResult1428 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1428)::ok_type>); if ((__builtin_expect(!!(tryResult1428.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1428.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1428.propagateErr(); }}; {auto tryResult1429 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1429)::ok_type>); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1429.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1429.propagateErr(); }}; {auto tryResult1430 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1430)::ok_type>); if ((__builtin_expect(!!(tryResult1430.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1430.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); return tryResult1430.propagateErr(); }}; {auto tryResult1431 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18393, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18394, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18399, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }))"
, tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18404, mozilla::dom::quota::Severity::Error); return tryResult1435
.propagateErr(); }}
18398 ? stmt.BindNullByIndex(6){auto tryResult1435 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store_index (id, name, key_path, unique_index, "
"multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, "
":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata
= mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement
& stmt) -> Result<Ok, nsresult> { {auto tryResult1427
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1427)::ok_type
>); if ((__builtin_expect(!!(tryResult1427.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18382, mozilla::dom::quota::Severity::Error); return tryResult1427
.propagateErr(); }}; {auto tryResult1428 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1428)::ok_type>); if ((__builtin_expect
(!!(tryResult1428.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1428
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18384, mozilla::dom::quota::Severity::Error); return tryResult1428
.propagateErr(); }}; {auto tryResult1429 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1429)::ok_type>
); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1429.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1429
.propagateErr(); }}; {auto tryResult1430 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1430)::ok_type>); if ((__builtin_expect
(!!(tryResult1430.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1430.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); return tryResult1430
.propagateErr(); }}; {auto tryResult1431 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect
(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18393, mozilla::dom::quota::Severity::Error); return tryResult1431
.propagateErr(); }}; {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1432)::ok_type>); if ((__builtin_expect
(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1432
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18394, mozilla::dom::quota::Severity::Error); return tryResult1432
.propagateErr(); }}; {auto tryResult1433 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1433)::ok_type>); if ((__builtin_expect
(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18399, mozilla::dom::quota::Severity::Error); return tryResult1433
.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect
(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1434.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1434
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect
(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1427 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect(!!(tryResult1427.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1427.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1427.propagateErr(); }}; {auto tryResult1428 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1428)::ok_type>); if ((__builtin_expect(!!(tryResult1428.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1428.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1428.propagateErr(); }}; {auto tryResult1429 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1429)::ok_type>); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1429.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1429.propagateErr(); }}; {auto tryResult1430 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1430)::ok_type>); if ((__builtin_expect(!!(tryResult1430.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1430.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); return tryResult1430.propagateErr(); }}; {auto tryResult1431 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18393, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18394, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18399, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }))"
, tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18404, mozilla::dom::quota::Severity::Error); return tryResult1435
.propagateErr(); }}
18399 : stmt.BindUTF8StringByIndex(6, metadata.locale())));{auto tryResult1435 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store_index (id, name, key_path, unique_index, "
"multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, "
":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata
= mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement
& stmt) -> Result<Ok, nsresult> { {auto tryResult1427
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1427)::ok_type
>); if ((__builtin_expect(!!(tryResult1427.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18382, mozilla::dom::quota::Severity::Error); return tryResult1427
.propagateErr(); }}; {auto tryResult1428 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1428)::ok_type>); if ((__builtin_expect
(!!(tryResult1428.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1428
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18384, mozilla::dom::quota::Severity::Error); return tryResult1428
.propagateErr(); }}; {auto tryResult1429 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1429)::ok_type>
); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1429.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1429
.propagateErr(); }}; {auto tryResult1430 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1430)::ok_type>); if ((__builtin_expect
(!!(tryResult1430.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1430.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); return tryResult1430
.propagateErr(); }}; {auto tryResult1431 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect
(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18393, mozilla::dom::quota::Severity::Error); return tryResult1431
.propagateErr(); }}; {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1432)::ok_type>); if ((__builtin_expect
(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1432
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18394, mozilla::dom::quota::Severity::Error); return tryResult1432
.propagateErr(); }}; {auto tryResult1433 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1433)::ok_type>); if ((__builtin_expect
(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18399, mozilla::dom::quota::Severity::Error); return tryResult1433
.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect
(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1434.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1434
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect
(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1427 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect(!!(tryResult1427.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1427.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1427.propagateErr(); }}; {auto tryResult1428 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1428)::ok_type>); if ((__builtin_expect(!!(tryResult1428.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1428.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1428.propagateErr(); }}; {auto tryResult1429 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1429)::ok_type>); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1429.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1429.propagateErr(); }}; {auto tryResult1430 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1430)::ok_type>); if ((__builtin_expect(!!(tryResult1430.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1430.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); return tryResult1430.propagateErr(); }}; {auto tryResult1431 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18393, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18394, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18399, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }))"
, tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18404, mozilla::dom::quota::Severity::Error); return tryResult1435
.propagateErr(); }}
18400
18401 QM_TRY(MOZ_TO_RESULT(stmt.BindInt32ByIndex(7, metadata.autoLocale())));{auto tryResult1435 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store_index (id, name, key_path, unique_index, "
"multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, "
":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata
= mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement
& stmt) -> Result<Ok, nsresult> { {auto tryResult1427
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1427)::ok_type
>); if ((__builtin_expect(!!(tryResult1427.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18382, mozilla::dom::quota::Severity::Error); return tryResult1427
.propagateErr(); }}; {auto tryResult1428 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1428)::ok_type>); if ((__builtin_expect
(!!(tryResult1428.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1428
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18384, mozilla::dom::quota::Severity::Error); return tryResult1428
.propagateErr(); }}; {auto tryResult1429 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1429)::ok_type>
); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1429.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1429
.propagateErr(); }}; {auto tryResult1430 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1430)::ok_type>); if ((__builtin_expect
(!!(tryResult1430.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1430.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); return tryResult1430
.propagateErr(); }}; {auto tryResult1431 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect
(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18393, mozilla::dom::quota::Severity::Error); return tryResult1431
.propagateErr(); }}; {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1432)::ok_type>); if ((__builtin_expect
(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1432
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18394, mozilla::dom::quota::Severity::Error); return tryResult1432
.propagateErr(); }}; {auto tryResult1433 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1433)::ok_type>); if ((__builtin_expect
(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18399, mozilla::dom::quota::Severity::Error); return tryResult1433
.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect
(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1434.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1434
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect
(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1427 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect(!!(tryResult1427.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1427.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1427.propagateErr(); }}; {auto tryResult1428 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1428)::ok_type>); if ((__builtin_expect(!!(tryResult1428.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1428.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1428.propagateErr(); }}; {auto tryResult1429 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1429)::ok_type>); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1429.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1429.propagateErr(); }}; {auto tryResult1430 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1430)::ok_type>); if ((__builtin_expect(!!(tryResult1430.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1430.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); return tryResult1430.propagateErr(); }}; {auto tryResult1431 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18393, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18394, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18399, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }))"
, tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18404, mozilla::dom::quota::Severity::Error); return tryResult1435
.propagateErr(); }}
18402
18403 return Ok{};{auto tryResult1435 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store_index (id, name, key_path, unique_index, "
"multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, "
":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata
= mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement
& stmt) -> Result<Ok, nsresult> { {auto tryResult1427
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1427)::ok_type
>); if ((__builtin_expect(!!(tryResult1427.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18382, mozilla::dom::quota::Severity::Error); return tryResult1427
.propagateErr(); }}; {auto tryResult1428 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1428)::ok_type>); if ((__builtin_expect
(!!(tryResult1428.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1428
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18384, mozilla::dom::quota::Severity::Error); return tryResult1428
.propagateErr(); }}; {auto tryResult1429 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1429)::ok_type>
); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1429.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1429
.propagateErr(); }}; {auto tryResult1430 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1430)::ok_type>); if ((__builtin_expect
(!!(tryResult1430.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1430.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); return tryResult1430
.propagateErr(); }}; {auto tryResult1431 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect
(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18393, mozilla::dom::quota::Severity::Error); return tryResult1431
.propagateErr(); }}; {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1432)::ok_type>); if ((__builtin_expect
(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1432
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18394, mozilla::dom::quota::Severity::Error); return tryResult1432
.propagateErr(); }}; {auto tryResult1433 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1433)::ok_type>); if ((__builtin_expect
(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18399, mozilla::dom::quota::Severity::Error); return tryResult1433
.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect
(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1434.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1434
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect
(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1427 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect(!!(tryResult1427.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1427.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1427.propagateErr(); }}; {auto tryResult1428 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1428)::ok_type>); if ((__builtin_expect(!!(tryResult1428.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1428.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1428.propagateErr(); }}; {auto tryResult1429 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1429)::ok_type>); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1429.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1429.propagateErr(); }}; {auto tryResult1430 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1430)::ok_type>); if ((__builtin_expect(!!(tryResult1430.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1430.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); return tryResult1430.propagateErr(); }}; {auto tryResult1431 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18393, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18394, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18399, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }))"
, tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18404, mozilla::dom::quota::Severity::Error); return tryResult1435
.propagateErr(); }}
18404 }))){auto tryResult1435 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store_index (id, name, key_path, unique_index, "
"multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, "
":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata
= mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement
& stmt) -> Result<Ok, nsresult> { {auto tryResult1427
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1427)::ok_type
>); if ((__builtin_expect(!!(tryResult1427.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18382, mozilla::dom::quota::Severity::Error); return tryResult1427
.propagateErr(); }}; {auto tryResult1428 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1428)::ok_type>); if ((__builtin_expect
(!!(tryResult1428.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1428
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18384, mozilla::dom::quota::Severity::Error); return tryResult1428
.propagateErr(); }}; {auto tryResult1429 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1429)::ok_type>
); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1429.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18387, mozilla::dom::quota::Severity::Error); return tryResult1429
.propagateErr(); }}; {auto tryResult1430 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1430)::ok_type>); if ((__builtin_expect
(!!(tryResult1430.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1430.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18390, mozilla::dom::quota::Severity::Error); return tryResult1430
.propagateErr(); }}; {auto tryResult1431 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect
(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18393, mozilla::dom::quota::Severity::Error); return tryResult1431
.propagateErr(); }}; {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1432)::ok_type>); if ((__builtin_expect
(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1432
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18394, mozilla::dom::quota::Severity::Error); return tryResult1432
.propagateErr(); }}; {auto tryResult1433 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1433)::ok_type>); if ((__builtin_expect
(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18399, mozilla::dom::quota::Severity::Error); return tryResult1433
.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect
(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1434.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18401, mozilla::dom::quota::Severity::Error); return tryResult1434
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect
(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1427 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1427)::ok_type>); if ((__builtin_expect(!!(tryResult1427.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1427.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1427.propagateErr(); }}; {auto tryResult1428 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1428)::ok_type>); if ((__builtin_expect(!!(tryResult1428.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1428.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1428.propagateErr(); }}; {auto tryResult1429 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1429)::ok_type>); if ((__builtin_expect(!!(tryResult1429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1429.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18387, mozilla::dom::quota::Severity::Error); return tryResult1429.propagateErr(); }}; {auto tryResult1430 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1430)::ok_type>); if ((__builtin_expect(!!(tryResult1430.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1430.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18390, mozilla::dom::quota::Severity::Error); return tryResult1430.propagateErr(); }}; {auto tryResult1431 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18393, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1432.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18394, mozilla::dom::quota::Severity::Error); return tryResult1432.propagateErr(); }}; {auto tryResult1433 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18399, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1434.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18401, mozilla::dom::quota::Severity::Error); return tryResult1434.propagateErr(); }}; return Ok{}; }))"
, tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18404, mozilla::dom::quota::Severity::Error); return tryResult1435
.propagateErr(); }}
;
18405
18406#ifdef DEBUG1
18407 {
18408 int64_t id;
18409 MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(aConnection->MutableStorageConnection().GetLastInsertRowID
(&id))), 1)))), 1))) { } else { do { do { } while (false)
; MOZ_ReportCrash("" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetLastInsertRowID(&id))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18410
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetLastInsertRowID(&id))"
")"); do { MOZ_CrashSequence(__null, 18410); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
18410 aConnection->MutableStorageConnection().GetLastInsertRowID(&id))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(aConnection->MutableStorageConnection().GetLastInsertRowID
(&id))), 1)))), 1))) { } else { do { do { } while (false)
; MOZ_ReportCrash("" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetLastInsertRowID(&id))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18410
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetLastInsertRowID(&id))"
")"); do { MOZ_CrashSequence(__null, 18410); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
18411 MOZ_ASSERT(mMetadata.id() == id)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMetadata.id() == id)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mMetadata.id() == id))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("mMetadata.id() == id"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18411
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata.id() == id"
")"); do { MOZ_CrashSequence(__null, 18411); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18412 }
18413#endif
18414
18415 QM_TRY(MOZ_TO_RESULT(InsertDataFromObjectStore(aConnection))){auto tryResult1436 = (ToResult(InsertDataFromObjectStore(aConnection
))); static_assert(std::is_empty_v<typename decltype(tryResult1436
)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(InsertDataFromObjectStore(aConnection))"
, tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18415, mozilla::dom::quota::Severity::Error); return tryResult1436
.propagateErr(); }}
;
18416
18417 QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult1437 = (ToResult(autoSave.Commit())); static_assert
(std::is_empty_v<typename decltype(tryResult1437)::ok_type
>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())"
, tryResult1437.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18417, mozilla::dom::quota::Severity::Error); return tryResult1437
.propagateErr(); }}
;
18418
18419 return NS_OK;
18420}
18421
18422NS_IMPL_ISUPPORTS(CreateIndexOp::UpdateIndexDataValuesFunction,MozExternalRefCountType CreateIndexOp::UpdateIndexDataValuesFunction
::AddRef(void) { static_assert(!std::is_destructible_v<CreateIndexOp
::UpdateIndexDataValuesFunction>, "Reference-counted class "
"CreateIndexOp::UpdateIndexDataValuesFunction" " should not have a public destructor. "
"Make this class's destructor non-public"); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(int32_t
(mRefCnt) >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0"
" (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18423); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 18423
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); do { static_assert( mozilla::detail::AssertionConditionType
<decltype("CreateIndexOp::UpdateIndexDataValuesFunction" !=
nullptr)>::isValid, "invalid assertion condition"); if ((
__builtin_expect(!!(!(!!("CreateIndexOp::UpdateIndexDataValuesFunction"
!= nullptr))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("\"CreateIndexOp::UpdateIndexDataValuesFunction\" != nullptr"
" (" "Must specify a name" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18423); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"CreateIndexOp::UpdateIndexDataValuesFunction\" != nullptr"
") (" "Must specify a name" ")"); do { MOZ_CrashSequence(__null
, 18423); __attribute__((nomerge)) ::abort(); } while (false)
; } } while (false); if (!mRefCnt.isThreadSafe) _mOwningThread
.AssertOwnership("CreateIndexOp::UpdateIndexDataValuesFunction"
" not thread-safe"); nsrefcnt count = ++mRefCnt; NS_LogAddRef
((this), (count), ("CreateIndexOp::UpdateIndexDataValuesFunction"
), (uint32_t)(sizeof(*this))); return count; } MozExternalRefCountType
CreateIndexOp::UpdateIndexDataValuesFunction::Release(void) {
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0"
" (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18423); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 18423
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); do { static_assert( mozilla::detail::AssertionConditionType
<decltype("CreateIndexOp::UpdateIndexDataValuesFunction" !=
nullptr)>::isValid, "invalid assertion condition"); if ((
__builtin_expect(!!(!(!!("CreateIndexOp::UpdateIndexDataValuesFunction"
!= nullptr))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("\"CreateIndexOp::UpdateIndexDataValuesFunction\" != nullptr"
" (" "Must specify a name" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18423); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"CreateIndexOp::UpdateIndexDataValuesFunction\" != nullptr"
") (" "Must specify a name" ")"); do { MOZ_CrashSequence(__null
, 18423); __attribute__((nomerge)) ::abort(); } while (false)
; } } while (false); if (!mRefCnt.isThreadSafe) _mOwningThread
.AssertOwnership("CreateIndexOp::UpdateIndexDataValuesFunction"
" not thread-safe"); const char* const nametmp = "CreateIndexOp::UpdateIndexDataValuesFunction"
; nsrefcnt count = --mRefCnt; NS_LogRelease((this), (count), (
nametmp)); if (count == 0) { mRefCnt = 1; delete (this); return
0; } return count; } nsresult CreateIndexOp::UpdateIndexDataValuesFunction
::QueryInterface(const nsIID& aIID, void** aInstancePtr) {
do { if (!(aInstancePtr)) { NS_DebugBreak(NS_DEBUG_ASSERTION
, "QueryInterface requires a non-NULL destination!", "aInstancePtr"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18423
); MOZ_PretendNoReturn(); } } while (0); nsresult rv = NS_ERROR_FAILURE
; static_assert(1 > 0, "Need more arguments to NS_INTERFACE_TABLE"
); static const QITableEntry table[] = { {&mozilla::detail
::kImplementedIID<CreateIndexOp::UpdateIndexDataValuesFunction
, mozIStorageFunction>, int32_t( reinterpret_cast<char*
>(static_cast<mozIStorageFunction*>((CreateIndexOp::
UpdateIndexDataValuesFunction*)0x1000)) - reinterpret_cast<
char*>((CreateIndexOp::UpdateIndexDataValuesFunction*)0x1000
))}, {&mozilla::detail::kImplementedIID<CreateIndexOp::
UpdateIndexDataValuesFunction, nsISupports>, int32_t(reinterpret_cast
<char*>(static_cast<nsISupports*>( static_cast<
mozIStorageFunction*>((CreateIndexOp::UpdateIndexDataValuesFunction
*)0x1000))) - reinterpret_cast<char*>((CreateIndexOp::UpdateIndexDataValuesFunction
*)0x1000))}, { nullptr, 0 } } ; static_assert(std::size(table
) > 1, "need at least 1 interface"); rv = NS_TableDrivenQI
(static_cast<void*>(this), aIID, aInstancePtr, table); return
rv; }
18423 mozIStorageFunction)MozExternalRefCountType CreateIndexOp::UpdateIndexDataValuesFunction
::AddRef(void) { static_assert(!std::is_destructible_v<CreateIndexOp
::UpdateIndexDataValuesFunction>, "Reference-counted class "
"CreateIndexOp::UpdateIndexDataValuesFunction" " should not have a public destructor. "
"Make this class's destructor non-public"); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(int32_t
(mRefCnt) >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0"
" (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18423); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 18423
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); do { static_assert( mozilla::detail::AssertionConditionType
<decltype("CreateIndexOp::UpdateIndexDataValuesFunction" !=
nullptr)>::isValid, "invalid assertion condition"); if ((
__builtin_expect(!!(!(!!("CreateIndexOp::UpdateIndexDataValuesFunction"
!= nullptr))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("\"CreateIndexOp::UpdateIndexDataValuesFunction\" != nullptr"
" (" "Must specify a name" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18423); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"CreateIndexOp::UpdateIndexDataValuesFunction\" != nullptr"
") (" "Must specify a name" ")"); do { MOZ_CrashSequence(__null
, 18423); __attribute__((nomerge)) ::abort(); } while (false)
; } } while (false); if (!mRefCnt.isThreadSafe) _mOwningThread
.AssertOwnership("CreateIndexOp::UpdateIndexDataValuesFunction"
" not thread-safe"); nsrefcnt count = ++mRefCnt; NS_LogAddRef
((this), (count), ("CreateIndexOp::UpdateIndexDataValuesFunction"
), (uint32_t)(sizeof(*this))); return count; } MozExternalRefCountType
CreateIndexOp::UpdateIndexDataValuesFunction::Release(void) {
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0"
" (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18423); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 18423
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); do { static_assert( mozilla::detail::AssertionConditionType
<decltype("CreateIndexOp::UpdateIndexDataValuesFunction" !=
nullptr)>::isValid, "invalid assertion condition"); if ((
__builtin_expect(!!(!(!!("CreateIndexOp::UpdateIndexDataValuesFunction"
!= nullptr))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("\"CreateIndexOp::UpdateIndexDataValuesFunction\" != nullptr"
" (" "Must specify a name" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18423); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"CreateIndexOp::UpdateIndexDataValuesFunction\" != nullptr"
") (" "Must specify a name" ")"); do { MOZ_CrashSequence(__null
, 18423); __attribute__((nomerge)) ::abort(); } while (false)
; } } while (false); if (!mRefCnt.isThreadSafe) _mOwningThread
.AssertOwnership("CreateIndexOp::UpdateIndexDataValuesFunction"
" not thread-safe"); const char* const nametmp = "CreateIndexOp::UpdateIndexDataValuesFunction"
; nsrefcnt count = --mRefCnt; NS_LogRelease((this), (count), (
nametmp)); if (count == 0) { mRefCnt = 1; delete (this); return
0; } return count; } nsresult CreateIndexOp::UpdateIndexDataValuesFunction
::QueryInterface(const nsIID& aIID, void** aInstancePtr) {
do { if (!(aInstancePtr)) { NS_DebugBreak(NS_DEBUG_ASSERTION
, "QueryInterface requires a non-NULL destination!", "aInstancePtr"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18423
); MOZ_PretendNoReturn(); } } while (0); nsresult rv = NS_ERROR_FAILURE
; static_assert(1 > 0, "Need more arguments to NS_INTERFACE_TABLE"
); static const QITableEntry table[] = { {&mozilla::detail
::kImplementedIID<CreateIndexOp::UpdateIndexDataValuesFunction
, mozIStorageFunction>, int32_t( reinterpret_cast<char*
>(static_cast<mozIStorageFunction*>((CreateIndexOp::
UpdateIndexDataValuesFunction*)0x1000)) - reinterpret_cast<
char*>((CreateIndexOp::UpdateIndexDataValuesFunction*)0x1000
))}, {&mozilla::detail::kImplementedIID<CreateIndexOp::
UpdateIndexDataValuesFunction, nsISupports>, int32_t(reinterpret_cast
<char*>(static_cast<nsISupports*>( static_cast<
mozIStorageFunction*>((CreateIndexOp::UpdateIndexDataValuesFunction
*)0x1000))) - reinterpret_cast<char*>((CreateIndexOp::UpdateIndexDataValuesFunction
*)0x1000))}, { nullptr, 0 } } ; static_assert(std::size(table
) > 1, "need at least 1 interface"); rv = NS_TableDrivenQI
(static_cast<void*>(this), aIID, aInstancePtr, table); return
rv; }
;
18424
18425NS_IMETHODIMPnsresult
18426CreateIndexOp::UpdateIndexDataValuesFunction::OnFunctionCall(
18427 mozIStorageValueArray* aValues, nsIVariant** _retval) {
18428 MOZ_ASSERT(aValues)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aValues)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aValues))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aValues", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18428); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aValues" ")"
); do { MOZ_CrashSequence(__null, 18428); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
18429 MOZ_ASSERT(_retval)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(_retval)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(_retval))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("_retval", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18429); AnnotateMozCrashReason("MOZ_ASSERT" "(" "_retval" ")"
); do { MOZ_CrashSequence(__null, 18429); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
18430 MOZ_ASSERT(mConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18430); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection"
")"); do { MOZ_CrashSequence(__null, 18430); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18431 mConnection->AssertIsOnConnectionThread();
18432 MOZ_ASSERT(mOp)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mOp)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(mOp))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("mOp", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18432); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOp" ")");
do { MOZ_CrashSequence(__null, 18432); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
18433 MOZ_ASSERT(mOp->mFileManager)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mOp->mFileManager)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOp->mFileManager))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("mOp->mFileManager"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18433
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOp->mFileManager"
")"); do { MOZ_CrashSequence(__null, 18433); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18434
18435 AUTO_PROFILER_LABEL(mozilla::AutoProfilerLabel raiiObject18436( "CreateIndexOp::UpdateIndexDataValuesFunction::OnFunctionCall"
, nullptr, JS::ProfilingCategoryPair::DOM)
18436 "CreateIndexOp::UpdateIndexDataValuesFunction::OnFunctionCall", DOM)mozilla::AutoProfilerLabel raiiObject18436( "CreateIndexOp::UpdateIndexDataValuesFunction::OnFunctionCall"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
18437
18438#ifdef DEBUG1
18439 {
18440 uint32_t argCount;
18441 MOZ_ALWAYS_SUCCEEDS(aValues->GetNumEntries(&argCount))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(aValues->GetNumEntries(&argCount))), 1)))), 1))) { } else
{ do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(aValues->GetNumEntries(&argCount))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18441
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aValues->GetNumEntries(&argCount))"
")"); do { MOZ_CrashSequence(__null, 18441); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
18442 MOZ_ASSERT(argCount == 4)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(argCount == 4)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(argCount == 4))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("argCount == 4",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18442)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "argCount == 4" ")"
); do { MOZ_CrashSequence(__null, 18442); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
; // key, index_data_values, file_ids, data
18443
18444 int32_t valueType;
18445 MOZ_ALWAYS_SUCCEEDS(aValues->GetTypeOfIndex(0, &valueType))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(aValues->GetTypeOfIndex(0, &valueType))), 1)))), 1)))
{ } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(aValues->GetTypeOfIndex(0, &valueType))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18445
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aValues->GetTypeOfIndex(0, &valueType))"
")"); do { MOZ_CrashSequence(__null, 18445); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
18446 MOZ_ASSERT(valueType == mozIStorageValueArray::VALUE_TYPE_BLOB)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(valueType == mozIStorageValueArray::VALUE_TYPE_BLOB)
>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(valueType == mozIStorageValueArray::VALUE_TYPE_BLOB)
)), 0))) { do { } while (false); MOZ_ReportAssertionFailure("valueType == mozIStorageValueArray::VALUE_TYPE_BLOB"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18446
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_BLOB"
")"); do { MOZ_CrashSequence(__null, 18446); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18447
18448 MOZ_ALWAYS_SUCCEEDS(aValues->GetTypeOfIndex(1, &valueType))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(aValues->GetTypeOfIndex(1, &valueType))), 1)))), 1)))
{ } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(aValues->GetTypeOfIndex(1, &valueType))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18448
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aValues->GetTypeOfIndex(1, &valueType))"
")"); do { MOZ_CrashSequence(__null, 18448); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
18449 MOZ_ASSERT(valueType == mozIStorageValueArray::VALUE_TYPE_NULL ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(valueType == mozIStorageValueArray::VALUE_TYPE_NULL ||
valueType == mozIStorageValueArray::VALUE_TYPE_BLOB)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType
== mozIStorageValueArray::VALUE_TYPE_BLOB))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18450
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB"
")"); do { MOZ_CrashSequence(__null, 18450); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
18450 valueType == mozIStorageValueArray::VALUE_TYPE_BLOB)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(valueType == mozIStorageValueArray::VALUE_TYPE_NULL ||
valueType == mozIStorageValueArray::VALUE_TYPE_BLOB)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType
== mozIStorageValueArray::VALUE_TYPE_BLOB))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18450
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB"
")"); do { MOZ_CrashSequence(__null, 18450); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18451
18452 MOZ_ALWAYS_SUCCEEDS(aValues->GetTypeOfIndex(2, &valueType))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(aValues->GetTypeOfIndex(2, &valueType))), 1)))), 1)))
{ } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(aValues->GetTypeOfIndex(2, &valueType))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18452
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aValues->GetTypeOfIndex(2, &valueType))"
")"); do { MOZ_CrashSequence(__null, 18452); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
18453 MOZ_ASSERT(valueType == mozIStorageValueArray::VALUE_TYPE_NULL ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(valueType == mozIStorageValueArray::VALUE_TYPE_NULL ||
valueType == mozIStorageValueArray::VALUE_TYPE_TEXT)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType
== mozIStorageValueArray::VALUE_TYPE_TEXT))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_TEXT"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18454
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 18454); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
18454 valueType == mozIStorageValueArray::VALUE_TYPE_TEXT)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(valueType == mozIStorageValueArray::VALUE_TYPE_NULL ||
valueType == mozIStorageValueArray::VALUE_TYPE_TEXT)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType
== mozIStorageValueArray::VALUE_TYPE_TEXT))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_TEXT"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18454
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 18454); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18455
18456 MOZ_ALWAYS_SUCCEEDS(aValues->GetTypeOfIndex(3, &valueType))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(aValues->GetTypeOfIndex(3, &valueType))), 1)))), 1)))
{ } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(aValues->GetTypeOfIndex(3, &valueType))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18456
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aValues->GetTypeOfIndex(3, &valueType))"
")"); do { MOZ_CrashSequence(__null, 18456); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
18457 MOZ_ASSERT(valueType == mozIStorageValueArray::VALUE_TYPE_BLOB ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(valueType == mozIStorageValueArray::VALUE_TYPE_BLOB ||
valueType == mozIStorageValueArray::VALUE_TYPE_INTEGER)>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(valueType == mozIStorageValueArray::VALUE_TYPE_BLOB ||
valueType == mozIStorageValueArray::VALUE_TYPE_INTEGER))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("valueType == mozIStorageValueArray::VALUE_TYPE_BLOB || valueType == mozIStorageValueArray::VALUE_TYPE_INTEGER"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18458
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_BLOB || valueType == mozIStorageValueArray::VALUE_TYPE_INTEGER"
")"); do { MOZ_CrashSequence(__null, 18458); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
18458 valueType == mozIStorageValueArray::VALUE_TYPE_INTEGER)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(valueType == mozIStorageValueArray::VALUE_TYPE_BLOB ||
valueType == mozIStorageValueArray::VALUE_TYPE_INTEGER)>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(valueType == mozIStorageValueArray::VALUE_TYPE_BLOB ||
valueType == mozIStorageValueArray::VALUE_TYPE_INTEGER))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("valueType == mozIStorageValueArray::VALUE_TYPE_BLOB || valueType == mozIStorageValueArray::VALUE_TYPE_INTEGER"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18458
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_BLOB || valueType == mozIStorageValueArray::VALUE_TYPE_INTEGER"
")"); do { MOZ_CrashSequence(__null, 18458); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18459 }
18460#endif
18461
18462 QM_TRY_UNWRAP(auto cloneInfo, GetStructuredCloneReadInfoFromValueArray(auto tryResult1438 = (GetStructuredCloneReadInfoFromValueArray
( aValues, 3, 2, *mOp->mFileManager)); if ((__builtin_expect
(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromValueArray( aValues, 3, 2, *mOp->mFileManager)"
, tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18465, mozilla::dom::quota::Severity::Error); return tryResult1438
.propagateErr(); } auto cloneInfo = tryResult1438.unwrap();
18463 aValues,auto tryResult1438 = (GetStructuredCloneReadInfoFromValueArray
( aValues, 3, 2, *mOp->mFileManager)); if ((__builtin_expect
(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromValueArray( aValues, 3, 2, *mOp->mFileManager)"
, tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18465, mozilla::dom::quota::Severity::Error); return tryResult1438
.propagateErr(); } auto cloneInfo = tryResult1438.unwrap();
18464 /* aDataIndex */ 3,auto tryResult1438 = (GetStructuredCloneReadInfoFromValueArray
( aValues, 3, 2, *mOp->mFileManager)); if ((__builtin_expect
(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromValueArray( aValues, 3, 2, *mOp->mFileManager)"
, tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18465, mozilla::dom::quota::Severity::Error); return tryResult1438
.propagateErr(); } auto cloneInfo = tryResult1438.unwrap();
18465 /* aFileIdsIndex */ 2, *mOp->mFileManager))auto tryResult1438 = (GetStructuredCloneReadInfoFromValueArray
( aValues, 3, 2, *mOp->mFileManager)); if ((__builtin_expect
(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromValueArray( aValues, 3, 2, *mOp->mFileManager)"
, tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18465, mozilla::dom::quota::Severity::Error); return tryResult1438
.propagateErr(); } auto cloneInfo = tryResult1438.unwrap();
;
18466
18467 const IndexMetadata& metadata = mOp->mMetadata;
18468 const IndexOrObjectStoreId& objectStoreId = mOp->mObjectStoreId;
18469
18470 // XXX does this really need a non-const cloneInfo?
18471 QM_TRY_INSPECT(const auto& updateInfos,auto tryResult1439 = (DeserializeIndexValueToUpdateInfos( metadata
.id(), metadata.keyPath(), metadata.multiEntry(), metadata.locale
(), cloneInfo)); if ((__builtin_expect(!!(tryResult1439.isErr
()), 0))) { mozilla::dom::quota::HandleError("DeserializeIndexValueToUpdateInfos( metadata.id(), metadata.keyPath(), metadata.multiEntry(), metadata.locale(), cloneInfo)"
, tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18474, mozilla::dom::quota::Severity::Error); return tryResult1439
.propagateErr(); } const auto& updateInfos = tryResult1439
.inspect();
18472 DeserializeIndexValueToUpdateInfos(auto tryResult1439 = (DeserializeIndexValueToUpdateInfos( metadata
.id(), metadata.keyPath(), metadata.multiEntry(), metadata.locale
(), cloneInfo)); if ((__builtin_expect(!!(tryResult1439.isErr
()), 0))) { mozilla::dom::quota::HandleError("DeserializeIndexValueToUpdateInfos( metadata.id(), metadata.keyPath(), metadata.multiEntry(), metadata.locale(), cloneInfo)"
, tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18474, mozilla::dom::quota::Severity::Error); return tryResult1439
.propagateErr(); } const auto& updateInfos = tryResult1439
.inspect();
18473 metadata.id(), metadata.keyPath(), metadata.multiEntry(),auto tryResult1439 = (DeserializeIndexValueToUpdateInfos( metadata
.id(), metadata.keyPath(), metadata.multiEntry(), metadata.locale
(), cloneInfo)); if ((__builtin_expect(!!(tryResult1439.isErr
()), 0))) { mozilla::dom::quota::HandleError("DeserializeIndexValueToUpdateInfos( metadata.id(), metadata.keyPath(), metadata.multiEntry(), metadata.locale(), cloneInfo)"
, tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18474, mozilla::dom::quota::Severity::Error); return tryResult1439
.propagateErr(); } const auto& updateInfos = tryResult1439
.inspect();
18474 metadata.locale(), cloneInfo))auto tryResult1439 = (DeserializeIndexValueToUpdateInfos( metadata
.id(), metadata.keyPath(), metadata.multiEntry(), metadata.locale
(), cloneInfo)); if ((__builtin_expect(!!(tryResult1439.isErr
()), 0))) { mozilla::dom::quota::HandleError("DeserializeIndexValueToUpdateInfos( metadata.id(), metadata.keyPath(), metadata.multiEntry(), metadata.locale(), cloneInfo)"
, tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18474, mozilla::dom::quota::Severity::Error); return tryResult1439
.propagateErr(); } const auto& updateInfos = tryResult1439
.inspect();
;
18475
18476 if (updateInfos.IsEmpty()) {
18477 // XXX See if we can do this without copying...
18478
18479 nsCOMPtr<nsIVariant> unmodifiedValue;
18480
18481 // No changes needed, just return the original value.
18482 QM_TRY_INSPECT(const int32_t& valueType,auto tryResult1440 = (::mozilla::ToResultInvokeMember( (aValues
), &::mozilla::detail::DerefedType<decltype(aValues)>
::GetTypeOfIndex , 1)); if ((__builtin_expect(!!(tryResult1440
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex , 1)"
, tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18483, mozilla::dom::quota::Severity::Error); return tryResult1440
.propagateErr(); } const int32_t& valueType = tryResult1440
.inspect();
18483 MOZ_TO_RESULT_INVOKE_MEMBER(aValues, GetTypeOfIndex, 1))auto tryResult1440 = (::mozilla::ToResultInvokeMember( (aValues
), &::mozilla::detail::DerefedType<decltype(aValues)>
::GetTypeOfIndex , 1)); if ((__builtin_expect(!!(tryResult1440
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex , 1)"
, tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18483, mozilla::dom::quota::Severity::Error); return tryResult1440
.propagateErr(); } const int32_t& valueType = tryResult1440
.inspect();
;
18484
18485 MOZ_ASSERT(valueType == mozIStorageValueArray::VALUE_TYPE_NULL ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(valueType == mozIStorageValueArray::VALUE_TYPE_NULL ||
valueType == mozIStorageValueArray::VALUE_TYPE_BLOB)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType
== mozIStorageValueArray::VALUE_TYPE_BLOB))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18486
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB"
")"); do { MOZ_CrashSequence(__null, 18486); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
18486 valueType == mozIStorageValueArray::VALUE_TYPE_BLOB)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(valueType == mozIStorageValueArray::VALUE_TYPE_NULL ||
valueType == mozIStorageValueArray::VALUE_TYPE_BLOB)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType
== mozIStorageValueArray::VALUE_TYPE_BLOB))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18486
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB"
")"); do { MOZ_CrashSequence(__null, 18486); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18487
18488 if (valueType == mozIStorageValueArray::VALUE_TYPE_NULL) {
18489 unmodifiedValue = new storage::NullVariant();
18490 unmodifiedValue.forget(_retval);
18491 return NS_OK;
18492 }
18493
18494 MOZ_ASSERT(valueType == mozIStorageValueArray::VALUE_TYPE_BLOB)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(valueType == mozIStorageValueArray::VALUE_TYPE_BLOB)
>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(valueType == mozIStorageValueArray::VALUE_TYPE_BLOB)
)), 0))) { do { } while (false); MOZ_ReportAssertionFailure("valueType == mozIStorageValueArray::VALUE_TYPE_BLOB"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18494
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_BLOB"
")"); do { MOZ_CrashSequence(__null, 18494); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18495
18496 const uint8_t* blobData;
18497 uint32_t blobDataLength;
18498 QM_TRY({auto tryResult1441 = (ToResult(aValues->GetSharedBlob(1, &
blobDataLength, &blobData))); static_assert(std::is_empty_v
<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect
(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aValues->GetSharedBlob(1, &blobDataLength, &blobData))"
, tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18499, mozilla::dom::quota::Severity::Error); return tryResult1441
.propagateErr(); }}
18499 MOZ_TO_RESULT(aValues->GetSharedBlob(1, &blobDataLength, &blobData))){auto tryResult1441 = (ToResult(aValues->GetSharedBlob(1, &
blobDataLength, &blobData))); static_assert(std::is_empty_v
<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect
(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aValues->GetSharedBlob(1, &blobDataLength, &blobData))"
, tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18499, mozilla::dom::quota::Severity::Error); return tryResult1441
.propagateErr(); }}
;
18500
18501 const std::pair<uint8_t*, int> copiedBlobDataPair(
18502 static_cast<uint8_t*>(malloc(blobDataLength)), blobDataLength);
18503
18504 if (!copiedBlobDataPair.first) {
18505 IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18505, idbInternalErrMsg.get()); } while (0)
;
18506 return NS_ERROR_OUT_OF_MEMORY;
18507 }
18508
18509 memcpy(copiedBlobDataPair.first, blobData, blobDataLength);
18510
18511 unmodifiedValue = new storage::AdoptedBlobVariant(copiedBlobDataPair);
18512 unmodifiedValue.forget(_retval);
18513
18514 return NS_OK;
18515 }
18516
18517 Key key;
18518 QM_TRY(MOZ_TO_RESULT(key.SetFromValueArray(aValues, 0))){auto tryResult1442 = (ToResult(key.SetFromValueArray(aValues
, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1442
)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(key.SetFromValueArray(aValues, 0))"
, tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18518, mozilla::dom::quota::Severity::Error); return tryResult1442
.propagateErr(); }}
;
18519
18520 QM_TRY_UNWRAP(auto indexValues, ReadCompressedIndexDataValues(*aValues, 1))auto tryResult1443 = (ReadCompressedIndexDataValues(*aValues,
1)); if ((__builtin_expect(!!(tryResult1443.isErr()), 0))) {
mozilla::dom::quota::HandleError("ReadCompressedIndexDataValues(*aValues, 1)"
, tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18520, mozilla::dom::quota::Severity::Error); return tryResult1443
.propagateErr(); } auto indexValues = tryResult1443.unwrap();
;
18521
18522 const bool hadPreviousIndexValues = !indexValues.IsEmpty();
18523
18524 const uint32_t updateInfoCount = updateInfos.Length();
18525
18526 QM_TRY(OkIf(indexValues.SetCapacity(indexValues.Length() + updateInfoCount,{auto tryResult1444 = (OkIf(indexValues.SetCapacity(indexValues
.Length() + updateInfoCount, fallible))); static_assert(std::
is_empty_v<typename decltype(tryResult1444)::ok_type>);
if ((__builtin_expect(!!(tryResult1444.isErr()), 0))) { auto
tryTempError = tryResult1444.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexValues.SetCapacity(indexValues.Length() + updateInfoCount, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18528, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18528, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexValues.SetCapacity(indexValues.Length() + updateInfoCount, fallible))"
, tryTempError, NS_ERROR_OUT_OF_MEMORY); }}
18527 fallible)),{auto tryResult1444 = (OkIf(indexValues.SetCapacity(indexValues
.Length() + updateInfoCount, fallible))); static_assert(std::
is_empty_v<typename decltype(tryResult1444)::ok_type>);
if ((__builtin_expect(!!(tryResult1444.isErr()), 0))) { auto
tryTempError = tryResult1444.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexValues.SetCapacity(indexValues.Length() + updateInfoCount, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18528, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18528, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexValues.SetCapacity(indexValues.Length() + updateInfoCount, fallible))"
, tryTempError, NS_ERROR_OUT_OF_MEMORY); }}
18528 NS_ERROR_OUT_OF_MEMORY, IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult1444 = (OkIf(indexValues.SetCapacity(indexValues
.Length() + updateInfoCount, fallible))); static_assert(std::
is_empty_v<typename decltype(tryResult1444)::ok_type>);
if ((__builtin_expect(!!(tryResult1444.isErr()), 0))) { auto
tryTempError = tryResult1444.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexValues.SetCapacity(indexValues.Length() + updateInfoCount, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18528, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18528, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexValues.SetCapacity(indexValues.Length() + updateInfoCount, fallible))"
, tryTempError, NS_ERROR_OUT_OF_MEMORY); }}
;
18529
18530 // First construct the full list to update the index_data_values row.
18531 for (const IndexUpdateInfo& info : updateInfos) {
18532 MOZ_ALWAYS_TRUE(indexValues.InsertElementSorted(do { if ((__builtin_expect(!!(indexValues.InsertElementSorted
( IndexDataValue(metadata.id(), metadata.unique(), info.value
(), info.localizedValue()), fallible)), 1))) { } else { do { do
{ } while (false); MOZ_ReportCrash("" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18535
); AnnotateMozCrashReason("MOZ_CRASH(" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)"
")"); do { MOZ_CrashSequence(__null, 18535); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
18533 IndexDataValue(metadata.id(), metadata.unique(), info.value(),do { if ((__builtin_expect(!!(indexValues.InsertElementSorted
( IndexDataValue(metadata.id(), metadata.unique(), info.value
(), info.localizedValue()), fallible)), 1))) { } else { do { do
{ } while (false); MOZ_ReportCrash("" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18535
); AnnotateMozCrashReason("MOZ_CRASH(" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)"
")"); do { MOZ_CrashSequence(__null, 18535); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
18534 info.localizedValue()),do { if ((__builtin_expect(!!(indexValues.InsertElementSorted
( IndexDataValue(metadata.id(), metadata.unique(), info.value
(), info.localizedValue()), fallible)), 1))) { } else { do { do
{ } while (false); MOZ_ReportCrash("" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18535
); AnnotateMozCrashReason("MOZ_CRASH(" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)"
")"); do { MOZ_CrashSequence(__null, 18535); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
18535 fallible))do { if ((__builtin_expect(!!(indexValues.InsertElementSorted
( IndexDataValue(metadata.id(), metadata.unique(), info.value
(), info.localizedValue()), fallible)), 1))) { } else { do { do
{ } while (false); MOZ_ReportCrash("" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18535
); AnnotateMozCrashReason("MOZ_CRASH(" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)"
")"); do { MOZ_CrashSequence(__null, 18535); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
18536 }
18537
18538 QM_TRY_UNWRAP((auto [indexValuesBlob, indexValuesBlobLength]),auto tryResult1445 = (MakeCompressedIndexDataValues(indexValues
)); if ((__builtin_expect(!!(tryResult1445.isErr()), 0))) { mozilla
::dom::quota::HandleError("MakeCompressedIndexDataValues(indexValues)"
, tryResult1445.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18539, mozilla::dom::quota::Severity::Error); return tryResult1445
.propagateErr(); } auto [indexValuesBlob, indexValuesBlobLength
] = tryResult1445.unwrap();
18539 MakeCompressedIndexDataValues(indexValues))auto tryResult1445 = (MakeCompressedIndexDataValues(indexValues
)); if ((__builtin_expect(!!(tryResult1445.isErr()), 0))) { mozilla
::dom::quota::HandleError("MakeCompressedIndexDataValues(indexValues)"
, tryResult1445.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18539, mozilla::dom::quota::Severity::Error); return tryResult1445
.propagateErr(); } auto [indexValuesBlob, indexValuesBlobLength
] = tryResult1445.unwrap();
;
18540
18541 MOZ_ASSERT(!indexValuesBlobLength == !(indexValuesBlob.get()))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!indexValuesBlobLength == !(indexValuesBlob.get()))>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!indexValuesBlobLength == !(indexValuesBlob.get())))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!indexValuesBlobLength == !(indexValuesBlob.get())"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18541
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!indexValuesBlobLength == !(indexValuesBlob.get())"
")"); do { MOZ_CrashSequence(__null, 18541); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18542
18543 nsCOMPtr<nsIVariant> value;
18544
18545 if (!indexValuesBlob) {
18546 value = new storage::NullVariant();
18547
18548 value.forget(_retval);
18549 return NS_OK;
18550 }
18551
18552 // Now insert the new table rows. We only need to construct a new list if
18553 // the full list is different.
18554 if (hadPreviousIndexValues) {
18555 indexValues.ClearAndRetainStorage();
18556
18557 MOZ_ASSERT(indexValues.Capacity() >= updateInfoCount)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(indexValues.Capacity() >= updateInfoCount)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(indexValues.Capacity() >= updateInfoCount))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("indexValues.Capacity() >= updateInfoCount"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18557
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexValues.Capacity() >= updateInfoCount"
")"); do { MOZ_CrashSequence(__null, 18557); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18558
18559 for (const IndexUpdateInfo& info : updateInfos) {
18560 MOZ_ALWAYS_TRUE(indexValues.InsertElementSorted(do { if ((__builtin_expect(!!(indexValues.InsertElementSorted
( IndexDataValue(metadata.id(), metadata.unique(), info.value
(), info.localizedValue()), fallible)), 1))) { } else { do { do
{ } while (false); MOZ_ReportCrash("" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18563
); AnnotateMozCrashReason("MOZ_CRASH(" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)"
")"); do { MOZ_CrashSequence(__null, 18563); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
18561 IndexDataValue(metadata.id(), metadata.unique(), info.value(),do { if ((__builtin_expect(!!(indexValues.InsertElementSorted
( IndexDataValue(metadata.id(), metadata.unique(), info.value
(), info.localizedValue()), fallible)), 1))) { } else { do { do
{ } while (false); MOZ_ReportCrash("" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18563
); AnnotateMozCrashReason("MOZ_CRASH(" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)"
")"); do { MOZ_CrashSequence(__null, 18563); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
18562 info.localizedValue()),do { if ((__builtin_expect(!!(indexValues.InsertElementSorted
( IndexDataValue(metadata.id(), metadata.unique(), info.value
(), info.localizedValue()), fallible)), 1))) { } else { do { do
{ } while (false); MOZ_ReportCrash("" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18563
); AnnotateMozCrashReason("MOZ_CRASH(" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)"
")"); do { MOZ_CrashSequence(__null, 18563); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
18563 fallible))do { if ((__builtin_expect(!!(indexValues.InsertElementSorted
( IndexDataValue(metadata.id(), metadata.unique(), info.value
(), info.localizedValue()), fallible)), 1))) { } else { do { do
{ } while (false); MOZ_ReportCrash("" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18563
); AnnotateMozCrashReason("MOZ_CRASH(" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)"
")"); do { MOZ_CrashSequence(__null, 18563); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
18564 }
18565 }
18566
18567 QM_TRY(MOZ_TO_RESULT({auto tryResult1446 = (ToResult(InsertIndexTableRows(mConnection
, objectStoreId, key, indexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1446)::ok_type>); if ((__builtin_expect
(!!(tryResult1446.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(InsertIndexTableRows(mConnection, objectStoreId, key, indexValues))"
, tryResult1446.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18568, mozilla::dom::quota::Severity::Error); return tryResult1446
.propagateErr(); }}
18568 InsertIndexTableRows(mConnection, objectStoreId, key, indexValues))){auto tryResult1446 = (ToResult(InsertIndexTableRows(mConnection
, objectStoreId, key, indexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1446)::ok_type>); if ((__builtin_expect
(!!(tryResult1446.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(InsertIndexTableRows(mConnection, objectStoreId, key, indexValues))"
, tryResult1446.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18568, mozilla::dom::quota::Severity::Error); return tryResult1446
.propagateErr(); }}
;
18569
18570 value = new storage::AdoptedBlobVariant(
18571 std::pair(indexValuesBlob.release(), indexValuesBlobLength));
18572
18573 value.forget(_retval);
18574 return NS_OK;
18575}
18576
18577DeleteIndexOp::DeleteIndexOp(SafeRefPtr<VersionChangeTransaction> aTransaction,
18578 const IndexOrObjectStoreId aObjectStoreId,
18579 const IndexOrObjectStoreId aIndexId,
18580 const bool aUnique, const bool aIsLastIndex)
18581 : VersionChangeTransactionOp(std::move(aTransaction)),
18582 mObjectStoreId(aObjectStoreId),
18583 mIndexId(aIndexId),
18584 mUnique(aUnique),
18585 mIsLastIndex(aIsLastIndex) {
18586 MOZ_ASSERT(aObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aObjectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aObjectStoreId))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("aObjectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18586
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aObjectStoreId" ")"
); do { MOZ_CrashSequence(__null, 18586); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
18587 MOZ_ASSERT(aIndexId)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aIndexId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aIndexId))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aIndexId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18587); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aIndexId" ")"
); do { MOZ_CrashSequence(__null, 18587); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
18588}
18589
18590nsresult DeleteIndexOp::RemoveReferencesToIndex(
18591 DatabaseConnection* aConnection, const Key& aObjectStoreKey,
18592 nsTArray<IndexDataValue>& aIndexValues) const {
18593 MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18593
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { MOZ_CrashSequence(__null, 18593); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18594 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18594
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 18594); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18595 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18595); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 18595); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18596 MOZ_ASSERT(!aObjectStoreKey.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aObjectStoreKey.IsUnset())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!aObjectStoreKey.IsUnset()))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!aObjectStoreKey.IsUnset()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18596
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aObjectStoreKey.IsUnset()"
")"); do { MOZ_CrashSequence(__null, 18596); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18597 MOZ_ASSERT_IF(!mIsLastIndex, !aIndexValues.IsEmpty())do { if (!mIsLastIndex) { do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!aIndexValues.IsEmpty())
>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!aIndexValues.IsEmpty()))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("!aIndexValues.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aIndexValues.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 18597); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
18598
18599 AUTO_PROFILER_LABEL("DeleteIndexOp::RemoveReferencesToIndex", DOM)mozilla::AutoProfilerLabel raiiObject18599( "DeleteIndexOp::RemoveReferencesToIndex"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
18600
18601 if (mIsLastIndex) {
18602 // There is no need to parse the previous entry in the index_data_values
18603 // column if this is the last index. Simply set it to NULL.
18604 QM_TRY_INSPECT(const auto& stmt,auto tryResult1447 = (aConnection->BorrowCachedStatement( "UPDATE object_data "
"SET index_data_values = NULL " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns)); if ((__builtin_expect(!!(tryResult1447.isErr()),
0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"UPDATE object_data \" \"SET index_data_values = NULL \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1447.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18610, mozilla::dom::quota::Severity::Error); return tryResult1447
.propagateErr(); } const auto& stmt = tryResult1447.inspect
();
18605 aConnection->BorrowCachedStatement(auto tryResult1447 = (aConnection->BorrowCachedStatement( "UPDATE object_data "
"SET index_data_values = NULL " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns)); if ((__builtin_expect(!!(tryResult1447.isErr()),
0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"UPDATE object_data \" \"SET index_data_values = NULL \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1447.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18610, mozilla::dom::quota::Severity::Error); return tryResult1447
.propagateErr(); } const auto& stmt = tryResult1447.inspect
();
18606 "UPDATE object_data "auto tryResult1447 = (aConnection->BorrowCachedStatement( "UPDATE object_data "
"SET index_data_values = NULL " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns)); if ((__builtin_expect(!!(tryResult1447.isErr()),
0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"UPDATE object_data \" \"SET index_data_values = NULL \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1447.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18610, mozilla::dom::quota::Severity::Error); return tryResult1447
.propagateErr(); } const auto& stmt = tryResult1447.inspect
();
18607 "SET index_data_values = NULL "auto tryResult1447 = (aConnection->BorrowCachedStatement( "UPDATE object_data "
"SET index_data_values = NULL " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns)); if ((__builtin_expect(!!(tryResult1447.isErr()),
0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"UPDATE object_data \" \"SET index_data_values = NULL \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1447.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18610, mozilla::dom::quota::Severity::Error); return tryResult1447
.propagateErr(); } const auto& stmt = tryResult1447.inspect
();
18608 "WHERE object_store_id = :"_ns +auto tryResult1447 = (aConnection->BorrowCachedStatement( "UPDATE object_data "
"SET index_data_values = NULL " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns)); if ((__builtin_expect(!!(tryResult1447.isErr()),
0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"UPDATE object_data \" \"SET index_data_values = NULL \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1447.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18610, mozilla::dom::quota::Severity::Error); return tryResult1447
.propagateErr(); } const auto& stmt = tryResult1447.inspect
();
18609 kStmtParamNameObjectStoreId + " AND key = :"_ns +auto tryResult1447 = (aConnection->BorrowCachedStatement( "UPDATE object_data "
"SET index_data_values = NULL " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns)); if ((__builtin_expect(!!(tryResult1447.isErr()),
0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"UPDATE object_data \" \"SET index_data_values = NULL \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1447.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18610, mozilla::dom::quota::Severity::Error); return tryResult1447
.propagateErr(); } const auto& stmt = tryResult1447.inspect
();
18610 kStmtParamNameKey + ";"_ns))auto tryResult1447 = (aConnection->BorrowCachedStatement( "UPDATE object_data "
"SET index_data_values = NULL " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns)); if ((__builtin_expect(!!(tryResult1447.isErr()),
0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"UPDATE object_data \" \"SET index_data_values = NULL \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1447.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18610, mozilla::dom::quota::Severity::Error); return tryResult1447
.propagateErr(); } const auto& stmt = tryResult1447.inspect
();
;
18611
18612 QM_TRY(MOZ_TO_RESULT({auto tryResult1448 = (ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId
, mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1448)::ok_type>); if ((__builtin_expect
(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId, mObjectStoreId))"
, tryResult1448.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18613, mozilla::dom::quota::Severity::Error); return tryResult1448
.propagateErr(); }}
18613 stmt->BindInt64ByName(kStmtParamNameObjectStoreId, mObjectStoreId))){auto tryResult1448 = (ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId
, mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1448)::ok_type>); if ((__builtin_expect
(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId, mObjectStoreId))"
, tryResult1448.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18613, mozilla::dom::quota::Severity::Error); return tryResult1448
.propagateErr(); }}
;
18614
18615 QM_TRY(MOZ_TO_RESULT({auto tryResult1449 = (ToResult(aObjectStoreKey.BindToStatement
(&*stmt, kStmtParamNameKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect
(!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aObjectStoreKey.BindToStatement(&*stmt, kStmtParamNameKey))"
, tryResult1449.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18616, mozilla::dom::quota::Severity::Error); return tryResult1449
.propagateErr(); }}
18616 aObjectStoreKey.BindToStatement(&*stmt, kStmtParamNameKey))){auto tryResult1449 = (ToResult(aObjectStoreKey.BindToStatement
(&*stmt, kStmtParamNameKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect
(!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aObjectStoreKey.BindToStatement(&*stmt, kStmtParamNameKey))"
, tryResult1449.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18616, mozilla::dom::quota::Severity::Error); return tryResult1449
.propagateErr(); }}
;
18617
18618 QM_TRY(MOZ_TO_RESULT(stmt->Execute())){auto tryResult1450 = (ToResult(stmt->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult1450)::ok_type
>); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1450.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18618, mozilla::dom::quota::Severity::Error); return tryResult1450
.propagateErr(); }}
;
18619
18620 return NS_OK;
18621 }
18622
18623 {
18624 IndexDataValue search;
18625 search.mIndexId = mIndexId;
18626
18627 // Use raw pointers for search to avoid redundant index validity checks.
18628 // Maybe this should better be encapsulated in nsTArray.
18629 const auto* const begin = aIndexValues.Elements();
18630 const auto* const end = aIndexValues.Elements() + aIndexValues.Length();
18631
18632 const auto indexIdComparator = [](const IndexDataValue& aA,
18633 const IndexDataValue& aB) {
18634 return aA.mIndexId < aB.mIndexId;
18635 };
18636
18637 MOZ_ASSERT(std::is_sorted(begin, end, indexIdComparator))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(std::is_sorted(begin, end, indexIdComparator))>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(std::is_sorted(begin, end, indexIdComparator)))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("std::is_sorted(begin, end, indexIdComparator)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18637
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "std::is_sorted(begin, end, indexIdComparator)"
")"); do { MOZ_CrashSequence(__null, 18637); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18638
18639 const auto [beginRange, endRange] =
18640 std::equal_range(begin, end, search, indexIdComparator);
18641 if (beginRange == end) {
18642 IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18642, idbInternalErrMsg.get()); } while (0)
;
18643 return NS_ERROR_FILE_CORRUPTED;
18644 }
18645
18646 aIndexValues.RemoveElementsAt(beginRange - begin, endRange - beginRange);
18647 }
18648
18649 QM_TRY(MOZ_TO_RESULT(UpdateIndexValues(aConnection, mObjectStoreId,{auto tryResult1451 = (ToResult(UpdateIndexValues(aConnection
, mObjectStoreId, aObjectStoreKey, aIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1451)::ok_type
>); if ((__builtin_expect(!!(tryResult1451.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(UpdateIndexValues(aConnection, mObjectStoreId, aObjectStoreKey, aIndexValues))"
, tryResult1451.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18650, mozilla::dom::quota::Severity::Error); return tryResult1451
.propagateErr(); }}
18650 aObjectStoreKey, aIndexValues))){auto tryResult1451 = (ToResult(UpdateIndexValues(aConnection
, mObjectStoreId, aObjectStoreKey, aIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1451)::ok_type
>); if ((__builtin_expect(!!(tryResult1451.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(UpdateIndexValues(aConnection, mObjectStoreId, aObjectStoreKey, aIndexValues))"
, tryResult1451.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18650, mozilla::dom::quota::Severity::Error); return tryResult1451
.propagateErr(); }}
;
18651
18652 return NS_OK;
18653}
18654
18655nsresult DeleteIndexOp::DoDatabaseWork(DatabaseConnection* aConnection) {
18656 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 18656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18657 aConnection->AssertIsOnConnectionThread();
18658
18659#ifdef DEBUG1
18660 {
18661 // Make sure |mIsLastIndex| is telling the truth.
18662 // The parameter names are not used, parameters are bound by index only
18663 // locally in the same function.
18664 QM_TRY_INSPECT(const auto& stmt,auto tryResult1452 = (aConnection->BorrowCachedStatement( "SELECT id "
"FROM object_store_index " "WHERE object_store_id = :object_store_id;"_ns
)); if ((__builtin_expect(!!(tryResult1452.isErr()), 0))) { [
[maybe_unused]] auto tryTempError = tryResult1452.unwrapErr()
; mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18669, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection->BorrowCachedStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18669); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18669); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& stmt = tryResult1452.inspect();
18665 aConnection->BorrowCachedStatement(auto tryResult1452 = (aConnection->BorrowCachedStatement( "SELECT id "
"FROM object_store_index " "WHERE object_store_id = :object_store_id;"_ns
)); if ((__builtin_expect(!!(tryResult1452.isErr()), 0))) { [
[maybe_unused]] auto tryTempError = tryResult1452.unwrapErr()
; mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18669, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection->BorrowCachedStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18669); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18669); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& stmt = tryResult1452.inspect();
18666 "SELECT id "auto tryResult1452 = (aConnection->BorrowCachedStatement( "SELECT id "
"FROM object_store_index " "WHERE object_store_id = :object_store_id;"_ns
)); if ((__builtin_expect(!!(tryResult1452.isErr()), 0))) { [
[maybe_unused]] auto tryTempError = tryResult1452.unwrapErr()
; mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18669, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection->BorrowCachedStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18669); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18669); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& stmt = tryResult1452.inspect();
18667 "FROM object_store_index "auto tryResult1452 = (aConnection->BorrowCachedStatement( "SELECT id "
"FROM object_store_index " "WHERE object_store_id = :object_store_id;"_ns
)); if ((__builtin_expect(!!(tryResult1452.isErr()), 0))) { [
[maybe_unused]] auto tryTempError = tryResult1452.unwrapErr()
; mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18669, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection->BorrowCachedStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18669); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18669); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& stmt = tryResult1452.inspect();
18668 "WHERE object_store_id = :object_store_id;"_ns),auto tryResult1452 = (aConnection->BorrowCachedStatement( "SELECT id "
"FROM object_store_index " "WHERE object_store_id = :object_store_id;"_ns
)); if ((__builtin_expect(!!(tryResult1452.isErr()), 0))) { [
[maybe_unused]] auto tryTempError = tryResult1452.unwrapErr()
; mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18669, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection->BorrowCachedStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18669); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18669); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& stmt = tryResult1452.inspect();
18669 QM_ASSERT_UNREACHABLE)auto tryResult1452 = (aConnection->BorrowCachedStatement( "SELECT id "
"FROM object_store_index " "WHERE object_store_id = :object_store_id;"_ns
)); if ((__builtin_expect(!!(tryResult1452.isErr()), 0))) { [
[maybe_unused]] auto tryTempError = tryResult1452.unwrapErr()
; mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18669, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection->BorrowCachedStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18669); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18669); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& stmt = tryResult1452.inspect();
;
18670
18671 MOZ_ALWAYS_SUCCEEDS(stmt->BindInt64ByIndex(0, mObjectStoreId))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(stmt->BindInt64ByIndex(0, mObjectStoreId))), 1)))), 1))) {
} else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(stmt->BindInt64ByIndex(0, mObjectStoreId))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18671
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(stmt->BindInt64ByIndex(0, mObjectStoreId))"
")"); do { MOZ_CrashSequence(__null, 18671); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
18672
18673 bool foundThisIndex = false;
18674 bool foundOtherIndex = false;
18675
18676 while (true) {
18677 bool hasResult;
18678 MOZ_ALWAYS_SUCCEEDS(stmt->ExecuteStep(&hasResult))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(stmt->ExecuteStep(&hasResult))), 1)))), 1))) { } else
{ do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(stmt->ExecuteStep(&hasResult))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18678
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(stmt->ExecuteStep(&hasResult))"
")"); do { MOZ_CrashSequence(__null, 18678); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
18679
18680 if (!hasResult) {
18681 break;
18682 }
18683
18684 int64_t id;
18685 MOZ_ALWAYS_SUCCEEDS(stmt->GetInt64(0, &id))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(stmt->GetInt64(0, &id))), 1)))), 1))) { } else { do {
do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(stmt->GetInt64(0, &id))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18685
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(stmt->GetInt64(0, &id))"
")"); do { MOZ_CrashSequence(__null, 18685); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
18686
18687 if (id == mIndexId) {
18688 foundThisIndex = true;
18689 } else {
18690 foundOtherIndex = true;
18691 }
18692 }
18693
18694 MOZ_ASSERT_IF(mIsLastIndex, foundThisIndex && !foundOtherIndex)do { if (mIsLastIndex) { do { static_assert( mozilla::detail::
AssertionConditionType<decltype(foundThisIndex && !
foundOtherIndex)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(foundThisIndex && !foundOtherIndex
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"foundThisIndex && !foundOtherIndex", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18694); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foundThisIndex && !foundOtherIndex"
")"); do { MOZ_CrashSequence(__null, 18694); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
18695 MOZ_ASSERT_IF(!mIsLastIndex, foundThisIndex && foundOtherIndex)do { if (!mIsLastIndex) { do { static_assert( mozilla::detail
::AssertionConditionType<decltype(foundThisIndex &&
foundOtherIndex)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(foundThisIndex && foundOtherIndex
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"foundThisIndex && foundOtherIndex", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18695); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foundThisIndex && foundOtherIndex"
")"); do { MOZ_CrashSequence(__null, 18695); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
18696 }
18697#endif
18698
18699 AUTO_PROFILER_LABEL("DeleteIndexOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject18699( "DeleteIndexOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
18700
18701 DatabaseConnection::AutoSavepoint autoSave;
18702 QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult1453 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1453)::ok_type>); if ((__builtin_expect(!!(tryResult1453
.isErr()), 0))) { auto tryTempError = tryResult1453.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18707, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
18703#ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult1453 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1453)::ok_type>); if ((__builtin_expect(!!(tryResult1453
.isErr()), 0))) { auto tryTempError = tryResult1453.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18707, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
18704 ,{auto tryResult1453 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1453)::ok_type>); if ((__builtin_expect(!!(tryResult1453
.isErr()), 0))) { auto tryTempError = tryResult1453.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18707, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
18705 QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult1453 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1453)::ok_type>); if ((__builtin_expect(!!(tryResult1453
.isErr()), 0))) { auto tryTempError = tryResult1453.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18707, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
18706#endif{auto tryResult1453 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1453)::ok_type>); if ((__builtin_expect(!!(tryResult1453
.isErr()), 0))) { auto tryTempError = tryResult1453.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18707, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
18707 ){auto tryResult1453 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1453)::ok_type>); if ((__builtin_expect(!!(tryResult1453
.isErr()), 0))) { auto tryTempError = tryResult1453.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18707, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
;
18708
18709 // mozStorage warns that these statements trigger a sort operation but we
18710 // don't care because this is a very rare call and we expect it to be slow.
18711 // The cost of having an index on this field is too high.
18712 QM_TRY_INSPECT(auto tryResult1454 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18755, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); } const auto& selectStmt = tryResult1454
.inspect();
18713 const auto& selectStmt,auto tryResult1454 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18755, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); } const auto& selectStmt = tryResult1454
.inspect();
18714 aConnection->BorrowCachedStatement(auto tryResult1454 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18755, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); } const auto& selectStmt = tryResult1454
.inspect();
18715 mUniqueauto tryResult1454 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18755, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); } const auto& selectStmt = tryResult1454
.inspect();
18716 ? (mIsLastIndexauto tryResult1454 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18755, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); } const auto& selectStmt = tryResult1454
.inspect();
18717 ? "/* do not warn (bug someone else) */ "auto tryResult1454 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18755, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); } const auto& selectStmt = tryResult1454
.inspect();
18718 "SELECT value, object_data_key "auto tryResult1454 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18755, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); } const auto& selectStmt = tryResult1454
.inspect();
18719 "FROM unique_index_data "auto tryResult1454 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18755, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); } const auto& selectStmt = tryResult1454
.inspect();
18720 "WHERE index_id = :"_ns +auto tryResult1454 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18755, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); } const auto& selectStmt = tryResult1454
.inspect();
18721 kStmtParamNameIndexId +auto tryResult1454 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18755, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); } const auto& selectStmt = tryResult1454
.inspect();
18722 " ORDER BY object_data_key ASC;"_nsauto tryResult1454 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18755, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); } const auto& selectStmt = tryResult1454
.inspect();
18723 : "/* do not warn (bug out) */ "auto tryResult1454 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18755, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); } const auto& selectStmt = tryResult1454
.inspect();
18724 "SELECT unique_index_data.value, "auto tryResult1454 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18755, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); } const auto& selectStmt = tryResult1454
.inspect();
18725 "unique_index_data.object_data_key, "auto tryResult1454 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18755, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); } const auto& selectStmt = tryResult1454
.inspect();
18726 "object_data.index_data_values "auto tryResult1454 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18755, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); } const auto& selectStmt = tryResult1454
.inspect();
18727 "FROM unique_index_data "auto tryResult1454 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18755, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); } const auto& selectStmt = tryResult1454
.inspect();
18728 "JOIN object_data "auto tryResult1454 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18755, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); } const auto& selectStmt = tryResult1454
.inspect();
18729 "ON unique_index_data.object_data_key = object_data.key "auto tryResult1454 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18755, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); } const auto& selectStmt = tryResult1454
.inspect();
18730 "WHERE unique_index_data.index_id = :"_ns +auto tryResult1454 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18755, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); } const auto& selectStmt = tryResult1454
.inspect();
18731 kStmtParamNameIndexId +auto tryResult1454 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18755, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); } const auto& selectStmt = tryResult1454
.inspect();
18732 " AND object_data.object_store_id = :"_ns +auto tryResult1454 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18755, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); } const auto& selectStmt = tryResult1454
.inspect();
18733 kStmtParamNameObjectStoreId +auto tryResult1454 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18755, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); } const auto& selectStmt = tryResult1454
.inspect();
18734 " ORDER BY unique_index_data.object_data_key ASC;"_ns)auto tryResult1454 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18755, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); } const auto& selectStmt = tryResult1454
.inspect();
18735 : (mIsLastIndexauto tryResult1454 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18755, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); } const auto& selectStmt = tryResult1454
.inspect();
18736 ? "/* do not warn (bug me not) */ "auto tryResult1454 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18755, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); } const auto& selectStmt = tryResult1454
.inspect();
18737 "SELECT value, object_data_key "auto tryResult1454 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18755, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); } const auto& selectStmt = tryResult1454
.inspect();
18738 "FROM index_data "auto tryResult1454 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18755, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); } const auto& selectStmt = tryResult1454
.inspect();
18739 "WHERE index_id = :"_ns +auto tryResult1454 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18755, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); } const auto& selectStmt = tryResult1454
.inspect();
18740 kStmtParamNameIndexId +auto tryResult1454 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18755, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); } const auto& selectStmt = tryResult1454
.inspect();
18741 " AND object_store_id = :"_ns +auto tryResult1454 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18755, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); } const auto& selectStmt = tryResult1454
.inspect();
18742 kStmtParamNameObjectStoreId +auto tryResult1454 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18755, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); } const auto& selectStmt = tryResult1454
.inspect();
18743 " ORDER BY object_data_key ASC;"_nsauto tryResult1454 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18755, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); } const auto& selectStmt = tryResult1454
.inspect();
18744 : "/* do not warn (bug off) */ "auto tryResult1454 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18755, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); } const auto& selectStmt = tryResult1454
.inspect();
18745 "SELECT index_data.value, "auto tryResult1454 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18755, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); } const auto& selectStmt = tryResult1454
.inspect();
18746 "index_data.object_data_key, "auto tryResult1454 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18755, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); } const auto& selectStmt = tryResult1454
.inspect();
18747 "object_data.index_data_values "auto tryResult1454 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18755, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); } const auto& selectStmt = tryResult1454
.inspect();
18748 "FROM index_data "auto tryResult1454 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18755, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); } const auto& selectStmt = tryResult1454
.inspect();
18749 "JOIN object_data "auto tryResult1454 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18755, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); } const auto& selectStmt = tryResult1454
.inspect();
18750 "ON index_data.object_data_key = object_data.key "auto tryResult1454 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18755, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); } const auto& selectStmt = tryResult1454
.inspect();
18751 "WHERE index_data.index_id = :"_ns +auto tryResult1454 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18755, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); } const auto& selectStmt = tryResult1454
.inspect();
18752 kStmtParamNameIndexId +auto tryResult1454 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18755, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); } const auto& selectStmt = tryResult1454
.inspect();
18753 " AND object_data.object_store_id = :"_ns +auto tryResult1454 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18755, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); } const auto& selectStmt = tryResult1454
.inspect();
18754 kStmtParamNameObjectStoreId +auto tryResult1454 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18755, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); } const auto& selectStmt = tryResult1454
.inspect();
18755 " ORDER BY index_data.object_data_key ASC;"_ns)))auto tryResult1454 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18755, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); } const auto& selectStmt = tryResult1454
.inspect();
;
18756
18757 QM_TRY(MOZ_TO_RESULT({auto tryResult1455 = (ToResult(selectStmt->BindInt64ByName
(kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1455)::ok_type>); if ((__builtin_expect
(!!(tryResult1455.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(selectStmt->BindInt64ByName(kStmtParamNameIndexId, mIndexId))"
, tryResult1455.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18758, mozilla::dom::quota::Severity::Error); return tryResult1455
.propagateErr(); }}
18758 selectStmt->BindInt64ByName(kStmtParamNameIndexId, mIndexId))){auto tryResult1455 = (ToResult(selectStmt->BindInt64ByName
(kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1455)::ok_type>); if ((__builtin_expect
(!!(tryResult1455.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(selectStmt->BindInt64ByName(kStmtParamNameIndexId, mIndexId))"
, tryResult1455.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18758, mozilla::dom::quota::Severity::Error); return tryResult1455
.propagateErr(); }}
;
18759
18760 if (!mUnique || !mIsLastIndex) {
18761 QM_TRY(MOZ_TO_RESULT(selectStmt->BindInt64ByName({auto tryResult1456 = (ToResult(selectStmt->BindInt64ByName
( kStmtParamNameObjectStoreId, mObjectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1456)::ok_type
>); if ((__builtin_expect(!!(tryResult1456.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt->BindInt64ByName( kStmtParamNameObjectStoreId, mObjectStoreId))"
, tryResult1456.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18762, mozilla::dom::quota::Severity::Error); return tryResult1456
.propagateErr(); }}
18762 kStmtParamNameObjectStoreId, mObjectStoreId))){auto tryResult1456 = (ToResult(selectStmt->BindInt64ByName
( kStmtParamNameObjectStoreId, mObjectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1456)::ok_type
>); if ((__builtin_expect(!!(tryResult1456.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt->BindInt64ByName( kStmtParamNameObjectStoreId, mObjectStoreId))"
, tryResult1456.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18762, mozilla::dom::quota::Severity::Error); return tryResult1456
.propagateErr(); }}
;
18763 }
18764
18765 Key lastObjectStoreKey;
18766 IndexDataValuesAutoArray lastIndexValues;
18767
18768 QM_TRY(CollectWhileHasResult({auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18769 *selectStmt,{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18770 [this, &aConnection, &lastObjectStoreKey, &lastIndexValues,{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18771 deleteIndexRowStmt ={auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18772 DatabaseConnection::LazyStatement{{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18773 *aConnection,{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18774 mUnique{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18775 ? "DELETE FROM unique_index_data "{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18776 "WHERE index_id = :"_ns +{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18777 kStmtParamNameIndexId + " AND value = :"_ns +{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18778 kStmtParamNameValue + ";"_ns{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18779 : "DELETE FROM index_data "{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18780 "WHERE index_id = :"_ns +{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18781 kStmtParamNameIndexId + " AND value = :"_ns +{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18782 kStmtParamNameValue + " AND object_data_key = :"_ns +{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18783 kStmtParamNameObjectDataKey + ";"_ns}]({auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18784 auto& selectStmt) mutable -> Result<Ok, nsresult> {{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18785 // We always need the index key to delete the index row.{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18786 Key indexKey;{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18787 QM_TRY(MOZ_TO_RESULT(indexKey.SetFromStatement(&selectStmt, 0)));{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18788
18789 QM_TRY(OkIf(!indexKey.IsUnset()), Err(NS_ERROR_FILE_CORRUPTED),{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18790 IDB_REPORT_INTERNAL_ERR_LAMBDA);{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18791
18792 // Don't call |lastObjectStoreKey.BindToStatement()| directly because we{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18793 // don't want to copy the same key multiple times.{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18794 const uint8_t* objectStoreKeyData;{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18795 uint32_t objectStoreKeyDataLength;{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18796 QM_TRY(MOZ_TO_RESULT(selectStmt.GetSharedBlob({auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18797 1, &objectStoreKeyDataLength, &objectStoreKeyData)));{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18798
18799 QM_TRY(OkIf(objectStoreKeyDataLength), Err(NS_ERROR_FILE_CORRUPTED),{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18800 IDB_REPORT_INTERNAL_ERR_LAMBDA);{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18801
18802 const nsDependentCString currentObjectStoreKeyBuffer({auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18803 reinterpret_cast<const char*>(objectStoreKeyData),{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18804 objectStoreKeyDataLength);{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18805 if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) {{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18806 // We just walked to the next object store key.{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18807 if (!lastObjectStoreKey.IsUnset()) {{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18808 // Before we move on to the next key we need to update the previous{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18809 // key's index_data_values column.{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18810 QM_TRY(MOZ_TO_RESULT(RemoveReferencesToIndex({auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18811 aConnection, lastObjectStoreKey, lastIndexValues)));{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18812 }{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18813
18814 // Save the object store key.{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18815 lastObjectStoreKey = Key(currentObjectStoreKeyBuffer);{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18816
18817 // And the |index_data_values| row if this isn't the only index.{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18818 if (!mIsLastIndex) {{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18819 lastIndexValues.ClearAndRetainStorage();{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18820 QM_TRY(MOZ_TO_RESULT({auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18821 ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues)));{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18822
18823 QM_TRY(OkIf(!lastIndexValues.IsEmpty()),{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18824 Err(NS_ERROR_FILE_CORRUPTED),{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18825 IDB_REPORT_INTERNAL_ERR_LAMBDA);{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18826 }{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18827 }{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18828
18829 // Now delete the index row.{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18830 {{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18831 QM_TRY_INSPECT(const auto& borrowedDeleteIndexRowStmt,{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18832 deleteIndexRowStmt.Borrow());{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18833
18834 QM_TRY(MOZ_TO_RESULT(borrowedDeleteIndexRowStmt->BindInt64ByName({auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18835 kStmtParamNameIndexId, mIndexId)));{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18836
18837 QM_TRY(MOZ_TO_RESULT(indexKey.BindToStatement({auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18838 &*borrowedDeleteIndexRowStmt, kStmtParamNameValue)));{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18839
18840 if (!mUnique) {{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18841 QM_TRY(MOZ_TO_RESULT(lastObjectStoreKey.BindToStatement({auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18842 &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey)));{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18843 }{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18844
18845 QM_TRY(MOZ_TO_RESULT(borrowedDeleteIndexRowStmt->Execute()));{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18846 }{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18847
18848 return Ok{};{auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
18849 })){auto tryResult1469 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1457)::ok_type
>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18787, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1458
)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr
()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18790
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1459)::ok_type
>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18797, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1460
)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr
()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18800
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1461)::ok_type
>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18811, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18821, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18832, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1464.inspect();; {auto tryResult1465 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18835, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18838, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18842, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18845, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1469)::ok_type>); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1457 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1457)::ok_type>); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1457.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18787, mozilla::dom::quota::Severity::Error); return tryResult1457.propagateErr(); }}; {auto tryResult1458 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18790, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1459 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1459.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18797, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; {auto tryResult1460 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1461 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18811, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1462 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18821, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; {auto tryResult1463 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18825, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1464 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1464.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1464.inspect();; {auto tryResult1465 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1465.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18835, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; {auto tryResult1466 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18838, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; if (!mUnique) { {auto tryResult1467 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18842, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; } {auto tryResult1468 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1468.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18845, mozilla::dom::quota::Severity::Error); return tryResult1468.propagateErr(); }}; } return Ok{}; })"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18849, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
;
18850
18851 // Take care of the last key.
18852 if (!lastObjectStoreKey.IsUnset()) {
18853 MOZ_ASSERT_IF(!mIsLastIndex, !lastIndexValues.IsEmpty())do { if (!mIsLastIndex) { do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!lastIndexValues.IsEmpty
())>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!lastIndexValues.IsEmpty()))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("!lastIndexValues.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18853
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!lastIndexValues.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 18853); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
18854
18855 QM_TRY(MOZ_TO_RESULT(RemoveReferencesToIndex({auto tryResult1470 = (ToResult(RemoveReferencesToIndex( aConnection
, lastObjectStoreKey, lastIndexValues))); static_assert(std::
is_empty_v<typename decltype(tryResult1470)::ok_type>);
if ((__builtin_expect(!!(tryResult1470.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1470.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18856, mozilla::dom::quota::Severity::Error); return tryResult1470
.propagateErr(); }}
18856 aConnection, lastObjectStoreKey, lastIndexValues))){auto tryResult1470 = (ToResult(RemoveReferencesToIndex( aConnection
, lastObjectStoreKey, lastIndexValues))); static_assert(std::
is_empty_v<typename decltype(tryResult1470)::ok_type>);
if ((__builtin_expect(!!(tryResult1470.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1470.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18856, mozilla::dom::quota::Severity::Error); return tryResult1470
.propagateErr(); }}
;
18857 }
18858
18859 QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1472 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store_index " "WHERE id = :index_id;"_ns
, [indexId = mIndexId](mozIStorageStatement& deleteStmt) ->
Result<Ok, nsresult> { {auto tryResult1471 = (ToResult
(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1471)::ok_type>
); if ((__builtin_expect(!!(tryResult1471.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(deleteStmt.BindInt64ByIndex(0, indexId))"
, tryResult1471.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18864, mozilla::dom::quota::Severity::Error); return tryResult1471
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1472)::ok_type>); if ((__builtin_expect
(!!(tryResult1472.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE id = :index_id;\"_ns, [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult1471 = (ToResult(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1471)::ok_type>); if ((__builtin_expect(!!(tryResult1471.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(deleteStmt.BindInt64ByIndex(0, indexId))\", tryResult1471.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18864, mozilla::dom::quota::Severity::Error); return tryResult1471.propagateErr(); }}; return Ok{}; }))"
, tryResult1472.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18867, mozilla::dom::quota::Severity::Error); return tryResult1472
.propagateErr(); }}
18860 "DELETE FROM object_store_index "{auto tryResult1472 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store_index " "WHERE id = :index_id;"_ns
, [indexId = mIndexId](mozIStorageStatement& deleteStmt) ->
Result<Ok, nsresult> { {auto tryResult1471 = (ToResult
(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1471)::ok_type>
); if ((__builtin_expect(!!(tryResult1471.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(deleteStmt.BindInt64ByIndex(0, indexId))"
, tryResult1471.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18864, mozilla::dom::quota::Severity::Error); return tryResult1471
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1472)::ok_type>); if ((__builtin_expect
(!!(tryResult1472.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE id = :index_id;\"_ns, [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult1471 = (ToResult(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1471)::ok_type>); if ((__builtin_expect(!!(tryResult1471.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(deleteStmt.BindInt64ByIndex(0, indexId))\", tryResult1471.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18864, mozilla::dom::quota::Severity::Error); return tryResult1471.propagateErr(); }}; return Ok{}; }))"
, tryResult1472.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18867, mozilla::dom::quota::Severity::Error); return tryResult1472
.propagateErr(); }}
18861 "WHERE id = :index_id;"_ns,{auto tryResult1472 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store_index " "WHERE id = :index_id;"_ns
, [indexId = mIndexId](mozIStorageStatement& deleteStmt) ->
Result<Ok, nsresult> { {auto tryResult1471 = (ToResult
(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1471)::ok_type>
); if ((__builtin_expect(!!(tryResult1471.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(deleteStmt.BindInt64ByIndex(0, indexId))"
, tryResult1471.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18864, mozilla::dom::quota::Severity::Error); return tryResult1471
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1472)::ok_type>); if ((__builtin_expect
(!!(tryResult1472.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE id = :index_id;\"_ns, [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult1471 = (ToResult(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1471)::ok_type>); if ((__builtin_expect(!!(tryResult1471.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(deleteStmt.BindInt64ByIndex(0, indexId))\", tryResult1471.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18864, mozilla::dom::quota::Severity::Error); return tryResult1471.propagateErr(); }}; return Ok{}; }))"
, tryResult1472.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18867, mozilla::dom::quota::Severity::Error); return tryResult1472
.propagateErr(); }}
18862 [indexId ={auto tryResult1472 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store_index " "WHERE id = :index_id;"_ns
, [indexId = mIndexId](mozIStorageStatement& deleteStmt) ->
Result<Ok, nsresult> { {auto tryResult1471 = (ToResult
(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1471)::ok_type>
); if ((__builtin_expect(!!(tryResult1471.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(deleteStmt.BindInt64ByIndex(0, indexId))"
, tryResult1471.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18864, mozilla::dom::quota::Severity::Error); return tryResult1471
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1472)::ok_type>); if ((__builtin_expect
(!!(tryResult1472.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE id = :index_id;\"_ns, [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult1471 = (ToResult(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1471)::ok_type>); if ((__builtin_expect(!!(tryResult1471.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(deleteStmt.BindInt64ByIndex(0, indexId))\", tryResult1471.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18864, mozilla::dom::quota::Severity::Error); return tryResult1471.propagateErr(); }}; return Ok{}; }))"
, tryResult1472.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18867, mozilla::dom::quota::Severity::Error); return tryResult1472
.propagateErr(); }}
18863 mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> {{auto tryResult1472 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store_index " "WHERE id = :index_id;"_ns
, [indexId = mIndexId](mozIStorageStatement& deleteStmt) ->
Result<Ok, nsresult> { {auto tryResult1471 = (ToResult
(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1471)::ok_type>
); if ((__builtin_expect(!!(tryResult1471.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(deleteStmt.BindInt64ByIndex(0, indexId))"
, tryResult1471.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18864, mozilla::dom::quota::Severity::Error); return tryResult1471
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1472)::ok_type>); if ((__builtin_expect
(!!(tryResult1472.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE id = :index_id;\"_ns, [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult1471 = (ToResult(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1471)::ok_type>); if ((__builtin_expect(!!(tryResult1471.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(deleteStmt.BindInt64ByIndex(0, indexId))\", tryResult1471.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18864, mozilla::dom::quota::Severity::Error); return tryResult1471.propagateErr(); }}; return Ok{}; }))"
, tryResult1472.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18867, mozilla::dom::quota::Severity::Error); return tryResult1472
.propagateErr(); }}
18864 QM_TRY(MOZ_TO_RESULT(deleteStmt.BindInt64ByIndex(0, indexId)));{auto tryResult1472 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store_index " "WHERE id = :index_id;"_ns
, [indexId = mIndexId](mozIStorageStatement& deleteStmt) ->
Result<Ok, nsresult> { {auto tryResult1471 = (ToResult
(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1471)::ok_type>
); if ((__builtin_expect(!!(tryResult1471.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(deleteStmt.BindInt64ByIndex(0, indexId))"
, tryResult1471.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18864, mozilla::dom::quota::Severity::Error); return tryResult1471
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1472)::ok_type>); if ((__builtin_expect
(!!(tryResult1472.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE id = :index_id;\"_ns, [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult1471 = (ToResult(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1471)::ok_type>); if ((__builtin_expect(!!(tryResult1471.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(deleteStmt.BindInt64ByIndex(0, indexId))\", tryResult1471.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18864, mozilla::dom::quota::Severity::Error); return tryResult1471.propagateErr(); }}; return Ok{}; }))"
, tryResult1472.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18867, mozilla::dom::quota::Severity::Error); return tryResult1472
.propagateErr(); }}
18865
18866 return Ok{};{auto tryResult1472 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store_index " "WHERE id = :index_id;"_ns
, [indexId = mIndexId](mozIStorageStatement& deleteStmt) ->
Result<Ok, nsresult> { {auto tryResult1471 = (ToResult
(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1471)::ok_type>
); if ((__builtin_expect(!!(tryResult1471.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(deleteStmt.BindInt64ByIndex(0, indexId))"
, tryResult1471.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18864, mozilla::dom::quota::Severity::Error); return tryResult1471
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1472)::ok_type>); if ((__builtin_expect
(!!(tryResult1472.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE id = :index_id;\"_ns, [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult1471 = (ToResult(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1471)::ok_type>); if ((__builtin_expect(!!(tryResult1471.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(deleteStmt.BindInt64ByIndex(0, indexId))\", tryResult1471.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18864, mozilla::dom::quota::Severity::Error); return tryResult1471.propagateErr(); }}; return Ok{}; }))"
, tryResult1472.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18867, mozilla::dom::quota::Severity::Error); return tryResult1472
.propagateErr(); }}
18867 }))){auto tryResult1472 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store_index " "WHERE id = :index_id;"_ns
, [indexId = mIndexId](mozIStorageStatement& deleteStmt) ->
Result<Ok, nsresult> { {auto tryResult1471 = (ToResult
(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1471)::ok_type>
); if ((__builtin_expect(!!(tryResult1471.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(deleteStmt.BindInt64ByIndex(0, indexId))"
, tryResult1471.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18864, mozilla::dom::quota::Severity::Error); return tryResult1471
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1472)::ok_type>); if ((__builtin_expect
(!!(tryResult1472.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE id = :index_id;\"_ns, [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult1471 = (ToResult(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1471)::ok_type>); if ((__builtin_expect(!!(tryResult1471.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(deleteStmt.BindInt64ByIndex(0, indexId))\", tryResult1471.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18864, mozilla::dom::quota::Severity::Error); return tryResult1471.propagateErr(); }}; return Ok{}; }))"
, tryResult1472.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18867, mozilla::dom::quota::Severity::Error); return tryResult1472
.propagateErr(); }}
;
18868
18869#ifdef DEBUG1
18870 {
18871 int32_t deletedRowCount;
18872 MOZ_ALWAYS_SUCCEEDS(aConnection->MutableStorageConnection().GetAffectedRows(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(aConnection->MutableStorageConnection().GetAffectedRows( &
deletedRowCount))), 1)))), 1))) { } else { do { do { } while (
false); MOZ_ReportCrash("" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18873
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))"
")"); do { MOZ_CrashSequence(__null, 18873); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
18873 &deletedRowCount))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(aConnection->MutableStorageConnection().GetAffectedRows( &
deletedRowCount))), 1)))), 1))) { } else { do { do { } while (
false); MOZ_ReportCrash("" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18873
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))"
")"); do { MOZ_CrashSequence(__null, 18873); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
18874 MOZ_ASSERT(deletedRowCount == 1)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(deletedRowCount == 1)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(deletedRowCount == 1))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("deletedRowCount == 1"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18874
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "deletedRowCount == 1"
")"); do { MOZ_CrashSequence(__null, 18874); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18875 }
18876#endif
18877
18878 QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult1473 = (ToResult(autoSave.Commit())); static_assert
(std::is_empty_v<typename decltype(tryResult1473)::ok_type
>); if ((__builtin_expect(!!(tryResult1473.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())"
, tryResult1473.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18878, mozilla::dom::quota::Severity::Error); return tryResult1473
.propagateErr(); }}
;
18879
18880 return NS_OK;
18881}
18882
18883nsresult RenameIndexOp::DoDatabaseWork(DatabaseConnection* aConnection) {
18884 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18884); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 18884); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18885 aConnection->AssertIsOnConnectionThread();
18886
18887 AUTO_PROFILER_LABEL("RenameIndexOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject18887( "RenameIndexOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
18888
18889#ifdef DEBUG1
18890 {
18891 // Make sure that we're not renaming an index with the same name as another
18892 // that already exists. This should be impossible because we should have
18893 // thrown an error long before now...
18894 // The parameter names are not used, parameters are bound by index only
18895 // locally in the same function.
18896 QM_TRY_INSPECT(const bool& hasResult,auto tryResult1477 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id "
"AND name = :name " "AND id != :id;"_ns, [&self = *this]
(auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1474
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1474
)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1474.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18906, mozilla::dom::quota::Severity::Error); return tryResult1474
.propagateErr(); }}; {auto tryResult1475 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1475)::ok_type>); if ((__builtin_expect
(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1475
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18908, mozilla::dom::quota::Severity::Error); return tryResult1475
.propagateErr(); }}; {auto tryResult1476 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1476)::ok_type>); if ((__builtin_expect
(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1476
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18910, mozilla::dom::quota::Severity::Error); return tryResult1476
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1477.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1477.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1474 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1474.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18906, mozilla::dom::quota::Severity::Error); return tryResult1474.propagateErr(); }}; {auto tryResult1475 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1475.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18908, mozilla::dom::quota::Severity::Error); return tryResult1475.propagateErr(); }}; {auto tryResult1476 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1476.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18910, mozilla::dom::quota::Severity::Error); return tryResult1476.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18915, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1474 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1474.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18906, mozilla::dom::quota::Severity::Error); return tryResult1474.propagateErr(); }}; {auto tryResult1475 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1475.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18908, mozilla::dom::quota::Severity::Error); return tryResult1475.propagateErr(); }}; {auto tryResult1476 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1476.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18910, mozilla::dom::quota::Severity::Error); return tryResult1476.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18915); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18915); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1477.inspect();
18897 aConnectionauto tryResult1477 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id "
"AND name = :name " "AND id != :id;"_ns, [&self = *this]
(auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1474
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1474
)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1474.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18906, mozilla::dom::quota::Severity::Error); return tryResult1474
.propagateErr(); }}; {auto tryResult1475 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1475)::ok_type>); if ((__builtin_expect
(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1475
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18908, mozilla::dom::quota::Severity::Error); return tryResult1475
.propagateErr(); }}; {auto tryResult1476 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1476)::ok_type>); if ((__builtin_expect
(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1476
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18910, mozilla::dom::quota::Severity::Error); return tryResult1476
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1477.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1477.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1474 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1474.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18906, mozilla::dom::quota::Severity::Error); return tryResult1474.propagateErr(); }}; {auto tryResult1475 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1475.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18908, mozilla::dom::quota::Severity::Error); return tryResult1475.propagateErr(); }}; {auto tryResult1476 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1476.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18910, mozilla::dom::quota::Severity::Error); return tryResult1476.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18915, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1474 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1474.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18906, mozilla::dom::quota::Severity::Error); return tryResult1474.propagateErr(); }}; {auto tryResult1475 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1475.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18908, mozilla::dom::quota::Severity::Error); return tryResult1475.propagateErr(); }}; {auto tryResult1476 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1476.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18910, mozilla::dom::quota::Severity::Error); return tryResult1476.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18915); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18915); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1477.inspect();
18898 ->BorrowAndExecuteSingleStepStatement(auto tryResult1477 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id "
"AND name = :name " "AND id != :id;"_ns, [&self = *this]
(auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1474
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1474
)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1474.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18906, mozilla::dom::quota::Severity::Error); return tryResult1474
.propagateErr(); }}; {auto tryResult1475 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1475)::ok_type>); if ((__builtin_expect
(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1475
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18908, mozilla::dom::quota::Severity::Error); return tryResult1475
.propagateErr(); }}; {auto tryResult1476 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1476)::ok_type>); if ((__builtin_expect
(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1476
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18910, mozilla::dom::quota::Severity::Error); return tryResult1476
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1477.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1477.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1474 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1474.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18906, mozilla::dom::quota::Severity::Error); return tryResult1474.propagateErr(); }}; {auto tryResult1475 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1475.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18908, mozilla::dom::quota::Severity::Error); return tryResult1475.propagateErr(); }}; {auto tryResult1476 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1476.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18910, mozilla::dom::quota::Severity::Error); return tryResult1476.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18915, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1474 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1474.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18906, mozilla::dom::quota::Severity::Error); return tryResult1474.propagateErr(); }}; {auto tryResult1475 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1475.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18908, mozilla::dom::quota::Severity::Error); return tryResult1475.propagateErr(); }}; {auto tryResult1476 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1476.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18910, mozilla::dom::quota::Severity::Error); return tryResult1476.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18915); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18915); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1477.inspect();
18899 "SELECT name "auto tryResult1477 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id "
"AND name = :name " "AND id != :id;"_ns, [&self = *this]
(auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1474
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1474
)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1474.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18906, mozilla::dom::quota::Severity::Error); return tryResult1474
.propagateErr(); }}; {auto tryResult1475 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1475)::ok_type>); if ((__builtin_expect
(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1475
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18908, mozilla::dom::quota::Severity::Error); return tryResult1475
.propagateErr(); }}; {auto tryResult1476 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1476)::ok_type>); if ((__builtin_expect
(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1476
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18910, mozilla::dom::quota::Severity::Error); return tryResult1476
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1477.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1477.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1474 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1474.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18906, mozilla::dom::quota::Severity::Error); return tryResult1474.propagateErr(); }}; {auto tryResult1475 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1475.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18908, mozilla::dom::quota::Severity::Error); return tryResult1475.propagateErr(); }}; {auto tryResult1476 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1476.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18910, mozilla::dom::quota::Severity::Error); return tryResult1476.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18915, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1474 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1474.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18906, mozilla::dom::quota::Severity::Error); return tryResult1474.propagateErr(); }}; {auto tryResult1475 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1475.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18908, mozilla::dom::quota::Severity::Error); return tryResult1475.propagateErr(); }}; {auto tryResult1476 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1476.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18910, mozilla::dom::quota::Severity::Error); return tryResult1476.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18915); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18915); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1477.inspect();
18900 "FROM object_store_index "auto tryResult1477 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id "
"AND name = :name " "AND id != :id;"_ns, [&self = *this]
(auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1474
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1474
)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1474.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18906, mozilla::dom::quota::Severity::Error); return tryResult1474
.propagateErr(); }}; {auto tryResult1475 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1475)::ok_type>); if ((__builtin_expect
(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1475
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18908, mozilla::dom::quota::Severity::Error); return tryResult1475
.propagateErr(); }}; {auto tryResult1476 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1476)::ok_type>); if ((__builtin_expect
(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1476
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18910, mozilla::dom::quota::Severity::Error); return tryResult1476
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1477.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1477.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1474 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1474.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18906, mozilla::dom::quota::Severity::Error); return tryResult1474.propagateErr(); }}; {auto tryResult1475 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1475.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18908, mozilla::dom::quota::Severity::Error); return tryResult1475.propagateErr(); }}; {auto tryResult1476 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1476.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18910, mozilla::dom::quota::Severity::Error); return tryResult1476.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18915, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1474 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1474.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18906, mozilla::dom::quota::Severity::Error); return tryResult1474.propagateErr(); }}; {auto tryResult1475 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1475.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18908, mozilla::dom::quota::Severity::Error); return tryResult1475.propagateErr(); }}; {auto tryResult1476 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1476.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18910, mozilla::dom::quota::Severity::Error); return tryResult1476.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18915); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18915); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1477.inspect();
18901 "WHERE object_store_id = :object_store_id "auto tryResult1477 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id "
"AND name = :name " "AND id != :id;"_ns, [&self = *this]
(auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1474
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1474
)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1474.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18906, mozilla::dom::quota::Severity::Error); return tryResult1474
.propagateErr(); }}; {auto tryResult1475 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1475)::ok_type>); if ((__builtin_expect
(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1475
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18908, mozilla::dom::quota::Severity::Error); return tryResult1475
.propagateErr(); }}; {auto tryResult1476 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1476)::ok_type>); if ((__builtin_expect
(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1476
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18910, mozilla::dom::quota::Severity::Error); return tryResult1476
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1477.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1477.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1474 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1474.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18906, mozilla::dom::quota::Severity::Error); return tryResult1474.propagateErr(); }}; {auto tryResult1475 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1475.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18908, mozilla::dom::quota::Severity::Error); return tryResult1475.propagateErr(); }}; {auto tryResult1476 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1476.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18910, mozilla::dom::quota::Severity::Error); return tryResult1476.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18915, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1474 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1474.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18906, mozilla::dom::quota::Severity::Error); return tryResult1474.propagateErr(); }}; {auto tryResult1475 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1475.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18908, mozilla::dom::quota::Severity::Error); return tryResult1475.propagateErr(); }}; {auto tryResult1476 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1476.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18910, mozilla::dom::quota::Severity::Error); return tryResult1476.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18915); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18915); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1477.inspect();
18902 "AND name = :name "auto tryResult1477 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id "
"AND name = :name " "AND id != :id;"_ns, [&self = *this]
(auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1474
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1474
)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1474.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18906, mozilla::dom::quota::Severity::Error); return tryResult1474
.propagateErr(); }}; {auto tryResult1475 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1475)::ok_type>); if ((__builtin_expect
(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1475
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18908, mozilla::dom::quota::Severity::Error); return tryResult1475
.propagateErr(); }}; {auto tryResult1476 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1476)::ok_type>); if ((__builtin_expect
(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1476
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18910, mozilla::dom::quota::Severity::Error); return tryResult1476
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1477.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1477.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1474 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1474.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18906, mozilla::dom::quota::Severity::Error); return tryResult1474.propagateErr(); }}; {auto tryResult1475 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1475.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18908, mozilla::dom::quota::Severity::Error); return tryResult1475.propagateErr(); }}; {auto tryResult1476 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1476.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18910, mozilla::dom::quota::Severity::Error); return tryResult1476.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18915, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1474 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1474.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18906, mozilla::dom::quota::Severity::Error); return tryResult1474.propagateErr(); }}; {auto tryResult1475 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1475.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18908, mozilla::dom::quota::Severity::Error); return tryResult1475.propagateErr(); }}; {auto tryResult1476 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1476.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18910, mozilla::dom::quota::Severity::Error); return tryResult1476.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18915); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18915); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1477.inspect();
18903 "AND id != :id;"_ns,auto tryResult1477 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id "
"AND name = :name " "AND id != :id;"_ns, [&self = *this]
(auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1474
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1474
)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1474.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18906, mozilla::dom::quota::Severity::Error); return tryResult1474
.propagateErr(); }}; {auto tryResult1475 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1475)::ok_type>); if ((__builtin_expect
(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1475
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18908, mozilla::dom::quota::Severity::Error); return tryResult1475
.propagateErr(); }}; {auto tryResult1476 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1476)::ok_type>); if ((__builtin_expect
(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1476
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18910, mozilla::dom::quota::Severity::Error); return tryResult1476
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1477.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1477.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1474 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1474.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18906, mozilla::dom::quota::Severity::Error); return tryResult1474.propagateErr(); }}; {auto tryResult1475 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1475.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18908, mozilla::dom::quota::Severity::Error); return tryResult1475.propagateErr(); }}; {auto tryResult1476 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1476.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18910, mozilla::dom::quota::Severity::Error); return tryResult1476.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18915, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1474 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1474.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18906, mozilla::dom::quota::Severity::Error); return tryResult1474.propagateErr(); }}; {auto tryResult1475 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1475.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18908, mozilla::dom::quota::Severity::Error); return tryResult1475.propagateErr(); }}; {auto tryResult1476 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1476.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18910, mozilla::dom::quota::Severity::Error); return tryResult1476.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18915); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18915); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1477.inspect();
18904 [&self = *this](auto& stmt) -> Result<Ok, nsresult> {auto tryResult1477 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id "
"AND name = :name " "AND id != :id;"_ns, [&self = *this]
(auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1474
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1474
)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1474.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18906, mozilla::dom::quota::Severity::Error); return tryResult1474
.propagateErr(); }}; {auto tryResult1475 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1475)::ok_type>); if ((__builtin_expect
(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1475
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18908, mozilla::dom::quota::Severity::Error); return tryResult1475
.propagateErr(); }}; {auto tryResult1476 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1476)::ok_type>); if ((__builtin_expect
(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1476
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18910, mozilla::dom::quota::Severity::Error); return tryResult1476
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1477.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1477.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1474 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1474.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18906, mozilla::dom::quota::Severity::Error); return tryResult1474.propagateErr(); }}; {auto tryResult1475 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1475.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18908, mozilla::dom::quota::Severity::Error); return tryResult1475.propagateErr(); }}; {auto tryResult1476 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1476.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18910, mozilla::dom::quota::Severity::Error); return tryResult1476.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18915, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1474 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1474.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18906, mozilla::dom::quota::Severity::Error); return tryResult1474.propagateErr(); }}; {auto tryResult1475 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1475.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18908, mozilla::dom::quota::Severity::Error); return tryResult1475.propagateErr(); }}; {auto tryResult1476 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1476.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18910, mozilla::dom::quota::Severity::Error); return tryResult1476.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18915); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18915); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1477.inspect();
18905 QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(auto tryResult1477 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id "
"AND name = :name " "AND id != :id;"_ns, [&self = *this]
(auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1474
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1474
)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1474.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18906, mozilla::dom::quota::Severity::Error); return tryResult1474
.propagateErr(); }}; {auto tryResult1475 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1475)::ok_type>); if ((__builtin_expect
(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1475
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18908, mozilla::dom::quota::Severity::Error); return tryResult1475
.propagateErr(); }}; {auto tryResult1476 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1476)::ok_type>); if ((__builtin_expect
(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1476
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18910, mozilla::dom::quota::Severity::Error); return tryResult1476
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1477.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1477.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1474 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1474.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18906, mozilla::dom::quota::Severity::Error); return tryResult1474.propagateErr(); }}; {auto tryResult1475 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1475.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18908, mozilla::dom::quota::Severity::Error); return tryResult1475.propagateErr(); }}; {auto tryResult1476 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1476.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18910, mozilla::dom::quota::Severity::Error); return tryResult1476.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18915, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1474 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1474.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18906, mozilla::dom::quota::Severity::Error); return tryResult1474.propagateErr(); }}; {auto tryResult1475 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1475.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18908, mozilla::dom::quota::Severity::Error); return tryResult1475.propagateErr(); }}; {auto tryResult1476 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1476.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18910, mozilla::dom::quota::Severity::Error); return tryResult1476.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18915); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18915); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1477.inspect();
18906 0, self.mObjectStoreId)));auto tryResult1477 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id "
"AND name = :name " "AND id != :id;"_ns, [&self = *this]
(auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1474
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1474
)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1474.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18906, mozilla::dom::quota::Severity::Error); return tryResult1474
.propagateErr(); }}; {auto tryResult1475 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1475)::ok_type>); if ((__builtin_expect
(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1475
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18908, mozilla::dom::quota::Severity::Error); return tryResult1475
.propagateErr(); }}; {auto tryResult1476 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1476)::ok_type>); if ((__builtin_expect
(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1476
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18910, mozilla::dom::quota::Severity::Error); return tryResult1476
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1477.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1477.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1474 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1474.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18906, mozilla::dom::quota::Severity::Error); return tryResult1474.propagateErr(); }}; {auto tryResult1475 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1475.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18908, mozilla::dom::quota::Severity::Error); return tryResult1475.propagateErr(); }}; {auto tryResult1476 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1476.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18910, mozilla::dom::quota::Severity::Error); return tryResult1476.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18915, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1474 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1474.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18906, mozilla::dom::quota::Severity::Error); return tryResult1474.propagateErr(); }}; {auto tryResult1475 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1475.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18908, mozilla::dom::quota::Severity::Error); return tryResult1475.propagateErr(); }}; {auto tryResult1476 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1476.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18910, mozilla::dom::quota::Severity::Error); return tryResult1476.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18915); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18915); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1477.inspect();
18907 QM_TRY(MOZ_TO_RESULT(auto tryResult1477 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id "
"AND name = :name " "AND id != :id;"_ns, [&self = *this]
(auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1474
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1474
)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1474.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18906, mozilla::dom::quota::Severity::Error); return tryResult1474
.propagateErr(); }}; {auto tryResult1475 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1475)::ok_type>); if ((__builtin_expect
(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1475
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18908, mozilla::dom::quota::Severity::Error); return tryResult1475
.propagateErr(); }}; {auto tryResult1476 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1476)::ok_type>); if ((__builtin_expect
(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1476
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18910, mozilla::dom::quota::Severity::Error); return tryResult1476
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1477.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1477.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1474 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1474.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18906, mozilla::dom::quota::Severity::Error); return tryResult1474.propagateErr(); }}; {auto tryResult1475 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1475.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18908, mozilla::dom::quota::Severity::Error); return tryResult1475.propagateErr(); }}; {auto tryResult1476 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1476.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18910, mozilla::dom::quota::Severity::Error); return tryResult1476.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18915, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1474 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1474.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18906, mozilla::dom::quota::Severity::Error); return tryResult1474.propagateErr(); }}; {auto tryResult1475 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1475.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18908, mozilla::dom::quota::Severity::Error); return tryResult1475.propagateErr(); }}; {auto tryResult1476 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1476.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18910, mozilla::dom::quota::Severity::Error); return tryResult1476.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18915); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18915); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1477.inspect();
18908 stmt.BindStringByIndex(1, self.mNewName)));auto tryResult1477 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id "
"AND name = :name " "AND id != :id;"_ns, [&self = *this]
(auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1474
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1474
)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1474.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18906, mozilla::dom::quota::Severity::Error); return tryResult1474
.propagateErr(); }}; {auto tryResult1475 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1475)::ok_type>); if ((__builtin_expect
(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1475
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18908, mozilla::dom::quota::Severity::Error); return tryResult1475
.propagateErr(); }}; {auto tryResult1476 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1476)::ok_type>); if ((__builtin_expect
(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1476
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18910, mozilla::dom::quota::Severity::Error); return tryResult1476
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1477.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1477.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1474 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1474.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18906, mozilla::dom::quota::Severity::Error); return tryResult1474.propagateErr(); }}; {auto tryResult1475 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1475.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18908, mozilla::dom::quota::Severity::Error); return tryResult1475.propagateErr(); }}; {auto tryResult1476 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1476.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18910, mozilla::dom::quota::Severity::Error); return tryResult1476.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18915, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1474 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1474.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18906, mozilla::dom::quota::Severity::Error); return tryResult1474.propagateErr(); }}; {auto tryResult1475 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1475.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18908, mozilla::dom::quota::Severity::Error); return tryResult1475.propagateErr(); }}; {auto tryResult1476 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1476.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18910, mozilla::dom::quota::Severity::Error); return tryResult1476.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18915); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18915); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1477.inspect();
18909 QM_TRY(MOZ_TO_RESULT(auto tryResult1477 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id "
"AND name = :name " "AND id != :id;"_ns, [&self = *this]
(auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1474
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1474
)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1474.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18906, mozilla::dom::quota::Severity::Error); return tryResult1474
.propagateErr(); }}; {auto tryResult1475 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1475)::ok_type>); if ((__builtin_expect
(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1475
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18908, mozilla::dom::quota::Severity::Error); return tryResult1475
.propagateErr(); }}; {auto tryResult1476 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1476)::ok_type>); if ((__builtin_expect
(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1476
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18910, mozilla::dom::quota::Severity::Error); return tryResult1476
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1477.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1477.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1474 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1474.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18906, mozilla::dom::quota::Severity::Error); return tryResult1474.propagateErr(); }}; {auto tryResult1475 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1475.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18908, mozilla::dom::quota::Severity::Error); return tryResult1475.propagateErr(); }}; {auto tryResult1476 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1476.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18910, mozilla::dom::quota::Severity::Error); return tryResult1476.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18915, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1474 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1474.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18906, mozilla::dom::quota::Severity::Error); return tryResult1474.propagateErr(); }}; {auto tryResult1475 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1475.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18908, mozilla::dom::quota::Severity::Error); return tryResult1475.propagateErr(); }}; {auto tryResult1476 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1476.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18910, mozilla::dom::quota::Severity::Error); return tryResult1476.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18915); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18915); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1477.inspect();
18910 stmt.BindInt64ByIndex(2, self.mIndexId)));auto tryResult1477 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id "
"AND name = :name " "AND id != :id;"_ns, [&self = *this]
(auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1474
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1474
)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1474.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18906, mozilla::dom::quota::Severity::Error); return tryResult1474
.propagateErr(); }}; {auto tryResult1475 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1475)::ok_type>); if ((__builtin_expect
(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1475
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18908, mozilla::dom::quota::Severity::Error); return tryResult1475
.propagateErr(); }}; {auto tryResult1476 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1476)::ok_type>); if ((__builtin_expect
(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1476
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18910, mozilla::dom::quota::Severity::Error); return tryResult1476
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1477.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1477.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1474 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1474.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18906, mozilla::dom::quota::Severity::Error); return tryResult1474.propagateErr(); }}; {auto tryResult1475 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1475.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18908, mozilla::dom::quota::Severity::Error); return tryResult1475.propagateErr(); }}; {auto tryResult1476 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1476.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18910, mozilla::dom::quota::Severity::Error); return tryResult1476.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18915, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1474 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1474.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18906, mozilla::dom::quota::Severity::Error); return tryResult1474.propagateErr(); }}; {auto tryResult1475 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1475.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18908, mozilla::dom::quota::Severity::Error); return tryResult1475.propagateErr(); }}; {auto tryResult1476 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1476.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18910, mozilla::dom::quota::Severity::Error); return tryResult1476.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18915); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18915); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1477.inspect();
18911
18912 return Ok{};auto tryResult1477 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id "
"AND name = :name " "AND id != :id;"_ns, [&self = *this]
(auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1474
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1474
)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1474.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18906, mozilla::dom::quota::Severity::Error); return tryResult1474
.propagateErr(); }}; {auto tryResult1475 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1475)::ok_type>); if ((__builtin_expect
(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1475
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18908, mozilla::dom::quota::Severity::Error); return tryResult1475
.propagateErr(); }}; {auto tryResult1476 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1476)::ok_type>); if ((__builtin_expect
(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1476
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18910, mozilla::dom::quota::Severity::Error); return tryResult1476
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1477.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1477.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1474 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1474.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18906, mozilla::dom::quota::Severity::Error); return tryResult1474.propagateErr(); }}; {auto tryResult1475 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1475.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18908, mozilla::dom::quota::Severity::Error); return tryResult1475.propagateErr(); }}; {auto tryResult1476 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1476.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18910, mozilla::dom::quota::Severity::Error); return tryResult1476.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18915, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1474 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1474.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18906, mozilla::dom::quota::Severity::Error); return tryResult1474.propagateErr(); }}; {auto tryResult1475 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1475.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18908, mozilla::dom::quota::Severity::Error); return tryResult1475.propagateErr(); }}; {auto tryResult1476 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1476.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18910, mozilla::dom::quota::Severity::Error); return tryResult1476.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18915); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18915); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1477.inspect();
18913 })auto tryResult1477 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id "
"AND name = :name " "AND id != :id;"_ns, [&self = *this]
(auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1474
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1474
)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1474.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18906, mozilla::dom::quota::Severity::Error); return tryResult1474
.propagateErr(); }}; {auto tryResult1475 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1475)::ok_type>); if ((__builtin_expect
(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1475
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18908, mozilla::dom::quota::Severity::Error); return tryResult1475
.propagateErr(); }}; {auto tryResult1476 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1476)::ok_type>); if ((__builtin_expect
(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1476
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18910, mozilla::dom::quota::Severity::Error); return tryResult1476
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1477.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1477.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1474 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1474.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18906, mozilla::dom::quota::Severity::Error); return tryResult1474.propagateErr(); }}; {auto tryResult1475 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1475.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18908, mozilla::dom::quota::Severity::Error); return tryResult1475.propagateErr(); }}; {auto tryResult1476 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1476.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18910, mozilla::dom::quota::Severity::Error); return tryResult1476.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18915, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1474 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1474.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18906, mozilla::dom::quota::Severity::Error); return tryResult1474.propagateErr(); }}; {auto tryResult1475 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1475.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18908, mozilla::dom::quota::Severity::Error); return tryResult1475.propagateErr(); }}; {auto tryResult1476 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1476.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18910, mozilla::dom::quota::Severity::Error); return tryResult1476.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18915); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18915); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1477.inspect();
18914 .map(IsSome),auto tryResult1477 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id "
"AND name = :name " "AND id != :id;"_ns, [&self = *this]
(auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1474
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1474
)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1474.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18906, mozilla::dom::quota::Severity::Error); return tryResult1474
.propagateErr(); }}; {auto tryResult1475 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1475)::ok_type>); if ((__builtin_expect
(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1475
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18908, mozilla::dom::quota::Severity::Error); return tryResult1475
.propagateErr(); }}; {auto tryResult1476 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1476)::ok_type>); if ((__builtin_expect
(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1476
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18910, mozilla::dom::quota::Severity::Error); return tryResult1476
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1477.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1477.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1474 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1474.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18906, mozilla::dom::quota::Severity::Error); return tryResult1474.propagateErr(); }}; {auto tryResult1475 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1475.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18908, mozilla::dom::quota::Severity::Error); return tryResult1475.propagateErr(); }}; {auto tryResult1476 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1476.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18910, mozilla::dom::quota::Severity::Error); return tryResult1476.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18915, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1474 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1474.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18906, mozilla::dom::quota::Severity::Error); return tryResult1474.propagateErr(); }}; {auto tryResult1475 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1475.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18908, mozilla::dom::quota::Severity::Error); return tryResult1475.propagateErr(); }}; {auto tryResult1476 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1476.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18910, mozilla::dom::quota::Severity::Error); return tryResult1476.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18915); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18915); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1477.inspect();
18915 QM_ASSERT_UNREACHABLE)auto tryResult1477 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id "
"AND name = :name " "AND id != :id;"_ns, [&self = *this]
(auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1474
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1474
)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1474.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18906, mozilla::dom::quota::Severity::Error); return tryResult1474
.propagateErr(); }}; {auto tryResult1475 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1475)::ok_type>); if ((__builtin_expect
(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1475
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18908, mozilla::dom::quota::Severity::Error); return tryResult1475
.propagateErr(); }}; {auto tryResult1476 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1476)::ok_type>); if ((__builtin_expect
(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1476
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18910, mozilla::dom::quota::Severity::Error); return tryResult1476
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1477.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1477.unwrapErr(); mozilla::dom::quota::HandleError
("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1474 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1474.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18906, mozilla::dom::quota::Severity::Error); return tryResult1474.propagateErr(); }}; {auto tryResult1475 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1475.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18908, mozilla::dom::quota::Severity::Error); return tryResult1475.propagateErr(); }}; {auto tryResult1476 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1476.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18910, mozilla::dom::quota::Severity::Error); return tryResult1476.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18915, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1474 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1474.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18906, mozilla::dom::quota::Severity::Error); return tryResult1474.propagateErr(); }}; {auto tryResult1475 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1475.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18908, mozilla::dom::quota::Severity::Error); return tryResult1475.propagateErr(); }}; {auto tryResult1476 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1476.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18910, mozilla::dom::quota::Severity::Error); return tryResult1476.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18915); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18915); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1477.inspect();
;
18916
18917 MOZ_ASSERT(!hasResult)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!hasResult)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!hasResult))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("!hasResult", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18917); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!hasResult"
")"); do { MOZ_CrashSequence(__null, 18917); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18918 }
18919#else
18920 (void)mObjectStoreId;
18921#endif
18922
18923 DatabaseConnection::AutoSavepoint autoSave;
18924 QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult1478 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1478)::ok_type>); if ((__builtin_expect(!!(tryResult1478
.isErr()), 0))) { auto tryTempError = tryResult1478.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18929, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
18925#ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult1478 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1478)::ok_type>); if ((__builtin_expect(!!(tryResult1478
.isErr()), 0))) { auto tryTempError = tryResult1478.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18929, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
18926 ,{auto tryResult1478 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1478)::ok_type>); if ((__builtin_expect(!!(tryResult1478
.isErr()), 0))) { auto tryTempError = tryResult1478.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18929, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
18927 QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult1478 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1478)::ok_type>); if ((__builtin_expect(!!(tryResult1478
.isErr()), 0))) { auto tryTempError = tryResult1478.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18929, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
18928#endif{auto tryResult1478 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1478)::ok_type>); if ((__builtin_expect(!!(tryResult1478
.isErr()), 0))) { auto tryTempError = tryResult1478.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18929, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
18929 ){auto tryResult1478 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1478)::ok_type>); if ((__builtin_expect(!!(tryResult1478
.isErr()), 0))) { auto tryTempError = tryResult1478.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18929, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
;
18930
18931 // The parameter names are not used, parameters are bound by index only
18932 // locally in the same function.
18933 QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1481 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1479 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1479)::ok_type>); if ((__builtin_expect
(!!(tryResult1479.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1479
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18938, mozilla::dom::quota::Severity::Error); return tryResult1479
.propagateErr(); }}; {auto tryResult1480 = (ToResult(stmt.BindInt64ByIndex
(1, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1480)::ok_type>); if ((__builtin_expect
(!!(tryResult1480.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult1480
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18940, mozilla::dom::quota::Severity::Error); return tryResult1480
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1481)::ok_type>); if ((__builtin_expect
(!!(tryResult1481.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_store_index \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1479 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1479)::ok_type>); if ((__builtin_expect(!!(tryResult1479.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1479.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18938, mozilla::dom::quota::Severity::Error); return tryResult1479.propagateErr(); }}; {auto tryResult1480 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1480)::ok_type>); if ((__builtin_expect(!!(tryResult1480.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult1480.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18940, mozilla::dom::quota::Severity::Error); return tryResult1480.propagateErr(); }}; return Ok{}; }))"
, tryResult1481.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18943, mozilla::dom::quota::Severity::Error); return tryResult1481
.propagateErr(); }}
18934 "UPDATE object_store_index "{auto tryResult1481 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1479 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1479)::ok_type>); if ((__builtin_expect
(!!(tryResult1479.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1479
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18938, mozilla::dom::quota::Severity::Error); return tryResult1479
.propagateErr(); }}; {auto tryResult1480 = (ToResult(stmt.BindInt64ByIndex
(1, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1480)::ok_type>); if ((__builtin_expect
(!!(tryResult1480.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult1480
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18940, mozilla::dom::quota::Severity::Error); return tryResult1480
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1481)::ok_type>); if ((__builtin_expect
(!!(tryResult1481.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_store_index \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1479 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1479)::ok_type>); if ((__builtin_expect(!!(tryResult1479.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1479.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18938, mozilla::dom::quota::Severity::Error); return tryResult1479.propagateErr(); }}; {auto tryResult1480 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1480)::ok_type>); if ((__builtin_expect(!!(tryResult1480.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult1480.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18940, mozilla::dom::quota::Severity::Error); return tryResult1480.propagateErr(); }}; return Ok{}; }))"
, tryResult1481.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18943, mozilla::dom::quota::Severity::Error); return tryResult1481
.propagateErr(); }}
18935 "SET name = :name "{auto tryResult1481 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1479 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1479)::ok_type>); if ((__builtin_expect
(!!(tryResult1479.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1479
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18938, mozilla::dom::quota::Severity::Error); return tryResult1479
.propagateErr(); }}; {auto tryResult1480 = (ToResult(stmt.BindInt64ByIndex
(1, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1480)::ok_type>); if ((__builtin_expect
(!!(tryResult1480.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult1480
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18940, mozilla::dom::quota::Severity::Error); return tryResult1480
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1481)::ok_type>); if ((__builtin_expect
(!!(tryResult1481.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_store_index \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1479 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1479)::ok_type>); if ((__builtin_expect(!!(tryResult1479.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1479.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18938, mozilla::dom::quota::Severity::Error); return tryResult1479.propagateErr(); }}; {auto tryResult1480 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1480)::ok_type>); if ((__builtin_expect(!!(tryResult1480.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult1480.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18940, mozilla::dom::quota::Severity::Error); return tryResult1480.propagateErr(); }}; return Ok{}; }))"
, tryResult1481.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18943, mozilla::dom::quota::Severity::Error); return tryResult1481
.propagateErr(); }}
18936 "WHERE id = :id;"_ns,{auto tryResult1481 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1479 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1479)::ok_type>); if ((__builtin_expect
(!!(tryResult1479.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1479
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18938, mozilla::dom::quota::Severity::Error); return tryResult1479
.propagateErr(); }}; {auto tryResult1480 = (ToResult(stmt.BindInt64ByIndex
(1, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1480)::ok_type>); if ((__builtin_expect
(!!(tryResult1480.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult1480
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18940, mozilla::dom::quota::Severity::Error); return tryResult1480
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1481)::ok_type>); if ((__builtin_expect
(!!(tryResult1481.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_store_index \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1479 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1479)::ok_type>); if ((__builtin_expect(!!(tryResult1479.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1479.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18938, mozilla::dom::quota::Severity::Error); return tryResult1479.propagateErr(); }}; {auto tryResult1480 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1480)::ok_type>); if ((__builtin_expect(!!(tryResult1480.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult1480.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18940, mozilla::dom::quota::Severity::Error); return tryResult1480.propagateErr(); }}; return Ok{}; }))"
, tryResult1481.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18943, mozilla::dom::quota::Severity::Error); return tryResult1481
.propagateErr(); }}
18937 [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> {{auto tryResult1481 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1479 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1479)::ok_type>); if ((__builtin_expect
(!!(tryResult1479.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1479
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18938, mozilla::dom::quota::Severity::Error); return tryResult1479
.propagateErr(); }}; {auto tryResult1480 = (ToResult(stmt.BindInt64ByIndex
(1, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1480)::ok_type>); if ((__builtin_expect
(!!(tryResult1480.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult1480
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18940, mozilla::dom::quota::Severity::Error); return tryResult1480
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1481)::ok_type>); if ((__builtin_expect
(!!(tryResult1481.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_store_index \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1479 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1479)::ok_type>); if ((__builtin_expect(!!(tryResult1479.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1479.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18938, mozilla::dom::quota::Severity::Error); return tryResult1479.propagateErr(); }}; {auto tryResult1480 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1480)::ok_type>); if ((__builtin_expect(!!(tryResult1480.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult1480.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18940, mozilla::dom::quota::Severity::Error); return tryResult1480.propagateErr(); }}; return Ok{}; }))"
, tryResult1481.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18943, mozilla::dom::quota::Severity::Error); return tryResult1481
.propagateErr(); }}
18938 QM_TRY(MOZ_TO_RESULT(stmt.BindStringByIndex(0, self.mNewName)));{auto tryResult1481 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1479 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1479)::ok_type>); if ((__builtin_expect
(!!(tryResult1479.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1479
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18938, mozilla::dom::quota::Severity::Error); return tryResult1479
.propagateErr(); }}; {auto tryResult1480 = (ToResult(stmt.BindInt64ByIndex
(1, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1480)::ok_type>); if ((__builtin_expect
(!!(tryResult1480.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult1480
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18940, mozilla::dom::quota::Severity::Error); return tryResult1480
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1481)::ok_type>); if ((__builtin_expect
(!!(tryResult1481.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_store_index \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1479 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1479)::ok_type>); if ((__builtin_expect(!!(tryResult1479.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1479.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18938, mozilla::dom::quota::Severity::Error); return tryResult1479.propagateErr(); }}; {auto tryResult1480 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1480)::ok_type>); if ((__builtin_expect(!!(tryResult1480.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult1480.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18940, mozilla::dom::quota::Severity::Error); return tryResult1480.propagateErr(); }}; return Ok{}; }))"
, tryResult1481.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18943, mozilla::dom::quota::Severity::Error); return tryResult1481
.propagateErr(); }}
18939
18940 QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(1, self.mIndexId)));{auto tryResult1481 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1479 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1479)::ok_type>); if ((__builtin_expect
(!!(tryResult1479.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1479
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18938, mozilla::dom::quota::Severity::Error); return tryResult1479
.propagateErr(); }}; {auto tryResult1480 = (ToResult(stmt.BindInt64ByIndex
(1, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1480)::ok_type>); if ((__builtin_expect
(!!(tryResult1480.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult1480
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18940, mozilla::dom::quota::Severity::Error); return tryResult1480
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1481)::ok_type>); if ((__builtin_expect
(!!(tryResult1481.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_store_index \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1479 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1479)::ok_type>); if ((__builtin_expect(!!(tryResult1479.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1479.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18938, mozilla::dom::quota::Severity::Error); return tryResult1479.propagateErr(); }}; {auto tryResult1480 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1480)::ok_type>); if ((__builtin_expect(!!(tryResult1480.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult1480.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18940, mozilla::dom::quota::Severity::Error); return tryResult1480.propagateErr(); }}; return Ok{}; }))"
, tryResult1481.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18943, mozilla::dom::quota::Severity::Error); return tryResult1481
.propagateErr(); }}
18941
18942 return Ok{};{auto tryResult1481 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1479 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1479)::ok_type>); if ((__builtin_expect
(!!(tryResult1479.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1479
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18938, mozilla::dom::quota::Severity::Error); return tryResult1479
.propagateErr(); }}; {auto tryResult1480 = (ToResult(stmt.BindInt64ByIndex
(1, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1480)::ok_type>); if ((__builtin_expect
(!!(tryResult1480.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult1480
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18940, mozilla::dom::quota::Severity::Error); return tryResult1480
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1481)::ok_type>); if ((__builtin_expect
(!!(tryResult1481.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_store_index \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1479 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1479)::ok_type>); if ((__builtin_expect(!!(tryResult1479.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1479.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18938, mozilla::dom::quota::Severity::Error); return tryResult1479.propagateErr(); }}; {auto tryResult1480 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1480)::ok_type>); if ((__builtin_expect(!!(tryResult1480.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult1480.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18940, mozilla::dom::quota::Severity::Error); return tryResult1480.propagateErr(); }}; return Ok{}; }))"
, tryResult1481.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18943, mozilla::dom::quota::Severity::Error); return tryResult1481
.propagateErr(); }}
18943 }))){auto tryResult1481 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1479 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1479)::ok_type>); if ((__builtin_expect
(!!(tryResult1479.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1479
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18938, mozilla::dom::quota::Severity::Error); return tryResult1479
.propagateErr(); }}; {auto tryResult1480 = (ToResult(stmt.BindInt64ByIndex
(1, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1480)::ok_type>); if ((__builtin_expect
(!!(tryResult1480.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult1480
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18940, mozilla::dom::quota::Severity::Error); return tryResult1480
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1481)::ok_type>); if ((__builtin_expect
(!!(tryResult1481.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_store_index \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1479 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1479)::ok_type>); if ((__builtin_expect(!!(tryResult1479.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1479.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18938, mozilla::dom::quota::Severity::Error); return tryResult1479.propagateErr(); }}; {auto tryResult1480 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1480)::ok_type>); if ((__builtin_expect(!!(tryResult1480.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult1480.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18940, mozilla::dom::quota::Severity::Error); return tryResult1480.propagateErr(); }}; return Ok{}; }))"
, tryResult1481.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18943, mozilla::dom::quota::Severity::Error); return tryResult1481
.propagateErr(); }}
;
18944
18945 QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult1482 = (ToResult(autoSave.Commit())); static_assert
(std::is_empty_v<typename decltype(tryResult1482)::ok_type
>); if ((__builtin_expect(!!(tryResult1482.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())"
, tryResult1482.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18945, mozilla::dom::quota::Severity::Error); return tryResult1482
.propagateErr(); }}
;
18946
18947 return NS_OK;
18948}
18949
18950Result<bool, nsresult> NormalTransactionOp::ObjectStoreHasIndexes(
18951 DatabaseConnection& aConnection, const IndexOrObjectStoreId aObjectStoreId,
18952 const bool aMayHaveIndexes) {
18953 aConnection.AssertIsOnConnectionThread();
18954 MOZ_ASSERT(aObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aObjectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aObjectStoreId))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("aObjectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18954
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aObjectStoreId" ")"
); do { MOZ_CrashSequence(__null, 18954); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
18955
18956 if (Transaction().GetMode() == IDBTransaction::Mode::VersionChange &&
18957 aMayHaveIndexes) {
18958 // If this is a version change transaction then mObjectStoreMayHaveIndexes
18959 // could be wrong (e.g. if a unique index failed to be created due to a
18960 // constraint error). We have to check on this thread by asking the database
18961 // directly.
18962 QM_TRY_RETURN(DatabaseOperationBase::ObjectStoreHasIndexes(aConnection,{auto tryResult1483 = (DatabaseOperationBase::ObjectStoreHasIndexes
(aConnection, aObjectStoreId)); if ((__builtin_expect(!!(tryResult1483
.isErr()), 0))) { mozilla::dom::quota::HandleError("DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)"
, tryResult1483.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18963, mozilla::dom::quota::Severity::Error); } return tryResult1483
;}
18963 aObjectStoreId)){auto tryResult1483 = (DatabaseOperationBase::ObjectStoreHasIndexes
(aConnection, aObjectStoreId)); if ((__builtin_expect(!!(tryResult1483
.isErr()), 0))) { mozilla::dom::quota::HandleError("DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)"
, tryResult1483.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18963, mozilla::dom::quota::Severity::Error); } return tryResult1483
;}
;
18964 }
18965
18966#ifdef DEBUG1
18967 QM_TRY_INSPECT(auto tryResult1484 = (DatabaseOperationBase::ObjectStoreHasIndexes
(aConnection, aObjectStoreId)); if ((__builtin_expect(!!(tryResult1484
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1484
.unwrapErr(); mozilla::dom::quota::HandleError("DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18970, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18970); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18970); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasIndexes = tryResult1484.inspect();
18968 const bool& hasIndexes,auto tryResult1484 = (DatabaseOperationBase::ObjectStoreHasIndexes
(aConnection, aObjectStoreId)); if ((__builtin_expect(!!(tryResult1484
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1484
.unwrapErr(); mozilla::dom::quota::HandleError("DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18970, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18970); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18970); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasIndexes = tryResult1484.inspect();
18969 DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId),auto tryResult1484 = (DatabaseOperationBase::ObjectStoreHasIndexes
(aConnection, aObjectStoreId)); if ((__builtin_expect(!!(tryResult1484
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1484
.unwrapErr(); mozilla::dom::quota::HandleError("DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18970, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18970); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18970); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasIndexes = tryResult1484.inspect();
18970 QM_ASSERT_UNREACHABLE)auto tryResult1484 = (DatabaseOperationBase::ObjectStoreHasIndexes
(aConnection, aObjectStoreId)); if ((__builtin_expect(!!(tryResult1484
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1484
.unwrapErr(); mozilla::dom::quota::HandleError("DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18970, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18970); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18970); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasIndexes = tryResult1484.inspect();
;
18971 MOZ_ASSERT(aMayHaveIndexes == hasIndexes)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aMayHaveIndexes == hasIndexes)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aMayHaveIndexes == hasIndexes
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"aMayHaveIndexes == hasIndexes", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18971); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMayHaveIndexes == hasIndexes"
")"); do { MOZ_CrashSequence(__null, 18971); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18972#endif
18973
18974 return aMayHaveIndexes;
18975}
18976
18977Result<PreprocessParams, nsresult> NormalTransactionOp::GetPreprocessParams() {
18978 return PreprocessParams{};
18979}
18980
18981nsresult NormalTransactionOp::SendPreprocessInfo() {
18982 AssertIsOnOwningThread();
18983 MOZ_ASSERT(!IsActorDestroyed())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsActorDestroyed())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsActorDestroyed()))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("!IsActorDestroyed()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18983
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()"
")"); do { MOZ_CrashSequence(__null, 18983); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18984
18985 QM_TRY_INSPECT(const auto& params, GetPreprocessParams())auto tryResult1485 = (GetPreprocessParams()); if ((__builtin_expect
(!!(tryResult1485.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetPreprocessParams()", tryResult1485.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18985, mozilla::dom::quota::Severity::Error); return tryResult1485
.propagateErr(); } const auto& params = tryResult1485.inspect
();
;
18986
18987 MOZ_ASSERT(params.type() != PreprocessParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(params.type() != PreprocessParams::T__None)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(params.type() != PreprocessParams::T__None))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("params.type() != PreprocessParams::T__None"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18987
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "params.type() != PreprocessParams::T__None"
")"); do { MOZ_CrashSequence(__null, 18987); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18988
18989 if (NS_WARN_IF(!PBackgroundIDBRequestParent::SendPreprocess(params))NS_warn_if_impl(!PBackgroundIDBRequestParent::SendPreprocess(
params), "!PBackgroundIDBRequestParent::SendPreprocess(params)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18989
)
) {
18990 IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18990, idbInternalErrMsg.get()); } while (0)
;
18991 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
18992 }
18993
18994 return NS_OK;
18995}
18996
18997TransactionOpResult NormalTransactionOp::SendSuccessResult() {
18998 AssertIsOnOwningThread();
18999
19000 if (!IsActorDestroyed()) {
19001 static const size_t kMaxIDBMsgOverhead = 1024 * 1024 * 10; // 10MB
19002 const uint32_t maximalSizeFromPref =
19003 IndexedDatabaseManager::MaxSerializedMsgSize();
19004 MOZ_ASSERT(maximalSizeFromPref > kMaxIDBMsgOverhead)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(maximalSizeFromPref > kMaxIDBMsgOverhead)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(maximalSizeFromPref > kMaxIDBMsgOverhead))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("maximalSizeFromPref > kMaxIDBMsgOverhead"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19004
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "maximalSizeFromPref > kMaxIDBMsgOverhead"
")"); do { MOZ_CrashSequence(__null, 19004); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19005 const size_t kMaxMessageSize = maximalSizeFromPref - kMaxIDBMsgOverhead;
19006
19007 RequestResponse response;
19008 size_t responseSize = kMaxMessageSize;
19009 GetResponse(response, &responseSize);
19010
19011 // TODO: Adjust the calculation of the response size in relevant
19012 // GetResponse methods to account for the fallback to shared memory during
19013 // serialization of the primary key and index keys if their size exceeds
19014 // IPC::kMessageBufferShmemThreshold. This ensures the calculated size
19015 // accurately reflects the actual IPC message size.
19016 // See also bug 1945040.
19017
19018 if (responseSize >= kMaxMessageSize) {
19019 nsPrintfCString warning(
19020 "The serialized value is too large"
19021 " (size=%zu bytes, max=%zu bytes).",
19022 responseSize, kMaxMessageSize);
19023 NS_WARNING(warning.get())NS_DebugBreak(NS_DEBUG_WARNING, warning.get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19023)
;
19024 // Structured serialization encodings/sizes are explicitly
19025 // implementation-dependent. It's OK for us to expose the exact size
19026 // here because IndexedDB serializations cannot include any no-cors data
19027 // like opaque Responses and because the existence of this threshold is
19028 // itself already a primitive for determining sizes since there's a
19029 // boolean indicator of whether we reach the max message size.
19030 // Additionally, it's useful information for bugs and potentially more
19031 // actionable for developers encountering the problem.
19032 return TransactionOpResult(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR, warning);
19033 }
19034
19035 MOZ_ASSERT(response.type() != RequestResponse::T__None)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(response.type() != RequestResponse::T__None)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(response.type() != RequestResponse::T__None))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("response.type() != RequestResponse::T__None"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19035
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "response.type() != RequestResponse::T__None"
")"); do { MOZ_CrashSequence(__null, 19035); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19036
19037 if (response.type() == RequestResponse::TTransactionOpResult) {
19038 MOZ_ASSERT(NS_FAILED(response.get_TransactionOpResult().mCode))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(((bool)(__builtin_expect(!!(NS_FAILED_impl(response.
get_TransactionOpResult().mCode)), 0))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
NS_FAILED_impl(response.get_TransactionOpResult().mCode)), 0)
))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(NS_FAILED_impl(response.get_TransactionOpResult().mCode)), 0)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19038
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(NS_FAILED_impl(response.get_TransactionOpResult().mCode)), 0)))"
")"); do { MOZ_CrashSequence(__null, 19038); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19039
19040 return response.get_TransactionOpResult();
19041 }
19042
19043 if (NS_WARN_IF(NS_warn_if_impl(!PBackgroundIDBRequestParent::Send__delete__(
this, response), "!PBackgroundIDBRequestParent::Send__delete__(this, response)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19044
)
19044 !PBackgroundIDBRequestParent::Send__delete__(this, response))NS_warn_if_impl(!PBackgroundIDBRequestParent::Send__delete__(
this, response), "!PBackgroundIDBRequestParent::Send__delete__(this, response)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19044
)
) {
19045 IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19045, idbInternalErrMsg.get()); } while (0)
;
19046 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
19047 }
19048 }
19049
19050#ifdef DEBUG1
19051 mResponseSent = true;
19052#endif
19053
19054 return NS_OK;
19055}
19056
19057bool NormalTransactionOp::SendFailureResult(
19058 const TransactionOpResult& aResult) {
19059 AssertIsOnOwningThread();
19060 MOZ_ASSERT(NS_FAILED(aResult.mCode))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(((bool)(__builtin_expect(!!(NS_FAILED_impl(aResult.mCode
)), 0))))>::isValid, "invalid assertion condition"); if ((
__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(NS_FAILED_impl
(aResult.mCode)), 0)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(NS_FAILED_impl(aResult.mCode)), 0)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19060
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(NS_FAILED_impl(aResult.mCode)), 0)))"
")"); do { MOZ_CrashSequence(__null, 19060); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19061
19062 bool result = false;
19063
19064 if (!IsActorDestroyed()) {
19065 result = PBackgroundIDBRequestParent::Send__delete__(this, aResult);
19066 }
19067
19068#ifdef DEBUG1
19069 mResponseSent = true;
19070#endif
19071
19072 return result;
19073}
19074
19075void NormalTransactionOp::Cleanup() {
19076 AssertIsOnOwningThread();
19077 MOZ_ASSERT_IF(!IsActorDestroyed(), mResponseSent)do { if (!IsActorDestroyed()) { do { static_assert( mozilla::
detail::AssertionConditionType<decltype(mResponseSent)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mResponseSent))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mResponseSent", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19077); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponseSent"
")"); do { MOZ_CrashSequence(__null, 19077); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19078
19079 TransactionDatabaseOperationBase::Cleanup();
19080}
19081
19082void NormalTransactionOp::ActorDestroy(ActorDestroyReason aWhy) {
19083 AssertIsOnOwningThread();
19084
19085 NoteActorDestroyed();
19086
19087 // Assume ActorDestroy can happen at any time, so we can't probe the current
19088 // state since mInternalState can be modified on any thread (only one thread
19089 // at a time based on the state machine).
19090 // However we can use mWaitingForContinue which is only touched on the owning
19091 // thread. If mWaitingForContinue is true, we can also modify mInternalState
19092 // since we are guaranteed that there are no pending runnables which would
19093 // probe mInternalState to decide what code needs to run (there shouldn't be
19094 // any running runnables on other threads either).
19095
19096 if (IsWaitingForContinue()) {
19097 NoteContinueReceived();
19098 }
19099
19100 // We don't have to handle the case when mWaitingForContinue is not true since
19101 // it means that either nothing has been initialized yet, so nothing to
19102 // cleanup or there are pending runnables that will detect that the actor has
19103 // been destroyed and cleanup accordingly.
19104}
19105
19106mozilla::ipc::IPCResult NormalTransactionOp::RecvContinue(
19107 const PreprocessResponse& aResponse) {
19108 AssertIsOnOwningThread();
19109
19110 // mWaitingForContinue is only touched on the owning thread. If it is not
19111 // set, either we never sent Preprocess (child is misbehaving) or the op is
19112 // still running on the connection thread. Calling NoteContinueReceived()
19113 // in either case would race Cleanup() with DoDatabaseWork().
19114 if (NS_WARN_IF(!IsWaitingForContinue())NS_warn_if_impl(!IsWaitingForContinue(), "!IsWaitingForContinue()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19114
)
) {
19115 return IPC_FAIL(this, "Continue received when not waiting for continue")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Continue received when not waiting for continue"
))
;
19116 }
19117
19118 switch (aResponse.type()) {
19119 case PreprocessResponse::Tnsresult:
19120 SetFailureCode(aResponse.get_nsresult());
19121 break;
19122
19123 case PreprocessResponse::TObjectStoreGetPreprocessResponse:
19124 case PreprocessResponse::TObjectStoreGetAllPreprocessResponse:
19125 break;
19126
19127 default:
19128 MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19128
); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 19128); __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
19129 }
19130
19131 NoteContinueReceived();
19132
19133 return IPC_OK()mozilla::ipc::IPCResult::Ok();
19134}
19135
19136ObjectStoreAddOrPutRequestOp::ObjectStoreAddOrPutRequestOp(
19137 SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId,
19138 RequestParams&& aParams)
19139 : NormalTransactionOp(std::move(aTransaction), aRequestId),
19140 mParams(
19141 std::move(aParams.type() == RequestParams::TObjectStoreAddParams
19142 ? aParams.get_ObjectStoreAddParams().commonParams()
19143 : aParams.get_ObjectStorePutParams().commonParams())),
19144 mOriginMetadata(Transaction().GetDatabase().OriginMetadata()),
19145 mPersistenceType(Transaction().GetDatabase().Type()),
19146 mOverwrite(aParams.type() == RequestParams::TObjectStorePutParams),
19147 mObjectStoreMayHaveIndexes(false) {
19148 MOZ_ASSERT(aParams.type() == RequestParams::TObjectStoreAddParams ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() == RequestParams::TObjectStoreAddParams
|| aParams.type() == RequestParams::TObjectStorePutParams)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aParams.type() == RequestParams::TObjectStoreAddParams
|| aParams.type() == RequestParams::TObjectStorePutParams)))
, 0))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() == RequestParams::TObjectStoreAddParams || aParams.type() == RequestParams::TObjectStorePutParams"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19149
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TObjectStoreAddParams || aParams.type() == RequestParams::TObjectStorePutParams"
")"); do { MOZ_CrashSequence(__null, 19149); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
19149 aParams.type() == RequestParams::TObjectStorePutParams)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() == RequestParams::TObjectStoreAddParams
|| aParams.type() == RequestParams::TObjectStorePutParams)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aParams.type() == RequestParams::TObjectStoreAddParams
|| aParams.type() == RequestParams::TObjectStorePutParams)))
, 0))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() == RequestParams::TObjectStoreAddParams || aParams.type() == RequestParams::TObjectStorePutParams"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19149
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TObjectStoreAddParams || aParams.type() == RequestParams::TObjectStorePutParams"
")"); do { MOZ_CrashSequence(__null, 19149); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19150
19151 mMetadata =
19152 Transaction().GetMetadataForObjectStoreId(mParams.objectStoreId());
19153 MOZ_ASSERT(mMetadata)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMetadata)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mMetadata))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19153); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata"
")"); do { MOZ_CrashSequence(__null, 19153); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19154
19155 mObjectStoreMayHaveIndexes = mMetadata->HasLiveIndexes();
19156
19157 mDataOverThreshold =
19158 snappy::MaxCompressedLength(mParams.cloneInfo().data().data.Size()) >
19159 IndexedDatabaseManager::DataThreshold();
19160}
19161
19162nsresult ObjectStoreAddOrPutRequestOp::RemoveOldIndexDataValues(
19163 DatabaseConnection* aConnection) {
19164 AssertIsOnConnectionThread();
19165 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19165); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 19165); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19166 MOZ_ASSERT(mOverwrite)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mOverwrite)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOverwrite))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mOverwrite", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19166); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOverwrite"
")"); do { MOZ_CrashSequence(__null, 19166); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19167 MOZ_ASSERT(!mResponse.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mResponse.IsUnset())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mResponse.IsUnset()))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("!mResponse.IsUnset()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19167
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mResponse.IsUnset()"
")"); do { MOZ_CrashSequence(__null, 19167); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19168
19169#ifdef DEBUG1
19170 {
19171 QM_TRY_INSPECT(const bool& hasIndexes,auto tryResult1486 = (DatabaseOperationBase::ObjectStoreHasIndexes
( *aConnection, mParams.objectStoreId())); if ((__builtin_expect
(!!(tryResult1486.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1486.unwrapErr(); mozilla::dom::quota::HandleError
("DatabaseOperationBase::ObjectStoreHasIndexes( *aConnection, mParams.objectStoreId())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19174, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "DatabaseOperationBase::ObjectStoreHasIndexes( *aConnection, mParams.objectStoreId())"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19174); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 19174); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasIndexes = tryResult1486.inspect();
19172 DatabaseOperationBase::ObjectStoreHasIndexes(auto tryResult1486 = (DatabaseOperationBase::ObjectStoreHasIndexes
( *aConnection, mParams.objectStoreId())); if ((__builtin_expect
(!!(tryResult1486.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1486.unwrapErr(); mozilla::dom::quota::HandleError
("DatabaseOperationBase::ObjectStoreHasIndexes( *aConnection, mParams.objectStoreId())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19174, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "DatabaseOperationBase::ObjectStoreHasIndexes( *aConnection, mParams.objectStoreId())"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19174); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 19174); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasIndexes = tryResult1486.inspect();
19173 *aConnection, mParams.objectStoreId()),auto tryResult1486 = (DatabaseOperationBase::ObjectStoreHasIndexes
( *aConnection, mParams.objectStoreId())); if ((__builtin_expect
(!!(tryResult1486.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1486.unwrapErr(); mozilla::dom::quota::HandleError
("DatabaseOperationBase::ObjectStoreHasIndexes( *aConnection, mParams.objectStoreId())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19174, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "DatabaseOperationBase::ObjectStoreHasIndexes( *aConnection, mParams.objectStoreId())"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19174); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 19174); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasIndexes = tryResult1486.inspect();
19174 QM_ASSERT_UNREACHABLE)auto tryResult1486 = (DatabaseOperationBase::ObjectStoreHasIndexes
( *aConnection, mParams.objectStoreId())); if ((__builtin_expect
(!!(tryResult1486.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1486.unwrapErr(); mozilla::dom::quota::HandleError
("DatabaseOperationBase::ObjectStoreHasIndexes( *aConnection, mParams.objectStoreId())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19174, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "DatabaseOperationBase::ObjectStoreHasIndexes( *aConnection, mParams.objectStoreId())"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19174); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 19174); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasIndexes = tryResult1486.inspect();
;
19175
19176 MOZ_ASSERT(hasIndexes,do { static_assert( mozilla::detail::AssertionConditionType<
decltype(hasIndexes)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(hasIndexes))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("hasIndexes" " (" "Don't use this slow method if there are no indexes!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19177
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "hasIndexes" ") ("
"Don't use this slow method if there are no indexes!" ")"); do
{ MOZ_CrashSequence(__null, 19177); __attribute__((nomerge))
::abort(); } while (false); } } while (false)
19177 "Don't use this slow method if there are no indexes!")do { static_assert( mozilla::detail::AssertionConditionType<
decltype(hasIndexes)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(hasIndexes))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("hasIndexes" " (" "Don't use this slow method if there are no indexes!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19177
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "hasIndexes" ") ("
"Don't use this slow method if there are no indexes!" ")"); do
{ MOZ_CrashSequence(__null, 19177); __attribute__((nomerge))
::abort(); } while (false); } } while (false)
;
19178 }
19179#endif
19180
19181 QM_TRY_INSPECT(auto tryResult1489 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns, [&self = *this](auto& stmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1487 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1487)::ok_type>); if ((__builtin_expect
(!!(tryResult1487.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1487.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19191, mozilla::dom::quota::Severity::Error); return tryResult1487
.propagateErr(); }}; {auto tryResult1488 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1488)::ok_type
>); if ((__builtin_expect(!!(tryResult1488.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1488.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19194, mozilla::dom::quota::Severity::Error); return tryResult1488
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1489.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1487 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1487)::ok_type>); if ((__builtin_expect(!!(tryResult1487.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1487.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19191, mozilla::dom::quota::Severity::Error); return tryResult1487.propagateErr(); }}; {auto tryResult1488 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1488)::ok_type>); if ((__builtin_expect(!!(tryResult1488.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1488.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19194, mozilla::dom::quota::Severity::Error); return tryResult1488.propagateErr(); }}; return Ok{}; })"
, tryResult1489.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19197, mozilla::dom::quota::Severity::Error); return tryResult1489
.propagateErr(); } const auto& indexValuesStmt = tryResult1489
.inspect();
19182 const auto& indexValuesStmt,auto tryResult1489 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns, [&self = *this](auto& stmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1487 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1487)::ok_type>); if ((__builtin_expect
(!!(tryResult1487.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1487.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19191, mozilla::dom::quota::Severity::Error); return tryResult1487
.propagateErr(); }}; {auto tryResult1488 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1488)::ok_type
>); if ((__builtin_expect(!!(tryResult1488.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1488.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19194, mozilla::dom::quota::Severity::Error); return tryResult1488
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1489.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1487 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1487)::ok_type>); if ((__builtin_expect(!!(tryResult1487.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1487.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19191, mozilla::dom::quota::Severity::Error); return tryResult1487.propagateErr(); }}; {auto tryResult1488 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1488)::ok_type>); if ((__builtin_expect(!!(tryResult1488.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1488.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19194, mozilla::dom::quota::Severity::Error); return tryResult1488.propagateErr(); }}; return Ok{}; })"
, tryResult1489.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19197, mozilla::dom::quota::Severity::Error); return tryResult1489
.propagateErr(); } const auto& indexValuesStmt = tryResult1489
.inspect();
19183 aConnection->BorrowAndExecuteSingleStepStatement(auto tryResult1489 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns, [&self = *this](auto& stmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1487 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1487)::ok_type>); if ((__builtin_expect
(!!(tryResult1487.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1487.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19191, mozilla::dom::quota::Severity::Error); return tryResult1487
.propagateErr(); }}; {auto tryResult1488 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1488)::ok_type
>); if ((__builtin_expect(!!(tryResult1488.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1488.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19194, mozilla::dom::quota::Severity::Error); return tryResult1488
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1489.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1487 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1487)::ok_type>); if ((__builtin_expect(!!(tryResult1487.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1487.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19191, mozilla::dom::quota::Severity::Error); return tryResult1487.propagateErr(); }}; {auto tryResult1488 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1488)::ok_type>); if ((__builtin_expect(!!(tryResult1488.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1488.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19194, mozilla::dom::quota::Severity::Error); return tryResult1488.propagateErr(); }}; return Ok{}; })"
, tryResult1489.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19197, mozilla::dom::quota::Severity::Error); return tryResult1489
.propagateErr(); } const auto& indexValuesStmt = tryResult1489
.inspect();
19184 "SELECT index_data_values "auto tryResult1489 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns, [&self = *this](auto& stmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1487 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1487)::ok_type>); if ((__builtin_expect
(!!(tryResult1487.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1487.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19191, mozilla::dom::quota::Severity::Error); return tryResult1487
.propagateErr(); }}; {auto tryResult1488 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1488)::ok_type
>); if ((__builtin_expect(!!(tryResult1488.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1488.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19194, mozilla::dom::quota::Severity::Error); return tryResult1488
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1489.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1487 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1487)::ok_type>); if ((__builtin_expect(!!(tryResult1487.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1487.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19191, mozilla::dom::quota::Severity::Error); return tryResult1487.propagateErr(); }}; {auto tryResult1488 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1488)::ok_type>); if ((__builtin_expect(!!(tryResult1488.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1488.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19194, mozilla::dom::quota::Severity::Error); return tryResult1488.propagateErr(); }}; return Ok{}; })"
, tryResult1489.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19197, mozilla::dom::quota::Severity::Error); return tryResult1489
.propagateErr(); } const auto& indexValuesStmt = tryResult1489
.inspect();
19185 "FROM object_data "auto tryResult1489 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns, [&self = *this](auto& stmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1487 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1487)::ok_type>); if ((__builtin_expect
(!!(tryResult1487.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1487.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19191, mozilla::dom::quota::Severity::Error); return tryResult1487
.propagateErr(); }}; {auto tryResult1488 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1488)::ok_type
>); if ((__builtin_expect(!!(tryResult1488.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1488.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19194, mozilla::dom::quota::Severity::Error); return tryResult1488
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1489.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1487 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1487)::ok_type>); if ((__builtin_expect(!!(tryResult1487.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1487.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19191, mozilla::dom::quota::Severity::Error); return tryResult1487.propagateErr(); }}; {auto tryResult1488 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1488)::ok_type>); if ((__builtin_expect(!!(tryResult1488.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1488.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19194, mozilla::dom::quota::Severity::Error); return tryResult1488.propagateErr(); }}; return Ok{}; })"
, tryResult1489.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19197, mozilla::dom::quota::Severity::Error); return tryResult1489
.propagateErr(); } const auto& indexValuesStmt = tryResult1489
.inspect();
19186 "WHERE object_store_id = :"_ns +auto tryResult1489 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns, [&self = *this](auto& stmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1487 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1487)::ok_type>); if ((__builtin_expect
(!!(tryResult1487.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1487.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19191, mozilla::dom::quota::Severity::Error); return tryResult1487
.propagateErr(); }}; {auto tryResult1488 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1488)::ok_type
>); if ((__builtin_expect(!!(tryResult1488.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1488.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19194, mozilla::dom::quota::Severity::Error); return tryResult1488
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1489.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1487 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1487)::ok_type>); if ((__builtin_expect(!!(tryResult1487.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1487.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19191, mozilla::dom::quota::Severity::Error); return tryResult1487.propagateErr(); }}; {auto tryResult1488 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1488)::ok_type>); if ((__builtin_expect(!!(tryResult1488.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1488.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19194, mozilla::dom::quota::Severity::Error); return tryResult1488.propagateErr(); }}; return Ok{}; })"
, tryResult1489.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19197, mozilla::dom::quota::Severity::Error); return tryResult1489
.propagateErr(); } const auto& indexValuesStmt = tryResult1489
.inspect();
19187 kStmtParamNameObjectStoreId + " AND key = :"_ns +auto tryResult1489 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns, [&self = *this](auto& stmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1487 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1487)::ok_type>); if ((__builtin_expect
(!!(tryResult1487.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1487.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19191, mozilla::dom::quota::Severity::Error); return tryResult1487
.propagateErr(); }}; {auto tryResult1488 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1488)::ok_type
>); if ((__builtin_expect(!!(tryResult1488.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1488.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19194, mozilla::dom::quota::Severity::Error); return tryResult1488
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1489.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1487 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1487)::ok_type>); if ((__builtin_expect(!!(tryResult1487.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1487.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19191, mozilla::dom::quota::Severity::Error); return tryResult1487.propagateErr(); }}; {auto tryResult1488 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1488)::ok_type>); if ((__builtin_expect(!!(tryResult1488.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1488.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19194, mozilla::dom::quota::Severity::Error); return tryResult1488.propagateErr(); }}; return Ok{}; })"
, tryResult1489.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19197, mozilla::dom::quota::Severity::Error); return tryResult1489
.propagateErr(); } const auto& indexValuesStmt = tryResult1489
.inspect();
19188 kStmtParamNameKey + ";"_ns,auto tryResult1489 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns, [&self = *this](auto& stmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1487 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1487)::ok_type>); if ((__builtin_expect
(!!(tryResult1487.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1487.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19191, mozilla::dom::quota::Severity::Error); return tryResult1487
.propagateErr(); }}; {auto tryResult1488 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1488)::ok_type
>); if ((__builtin_expect(!!(tryResult1488.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1488.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19194, mozilla::dom::quota::Severity::Error); return tryResult1488
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1489.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1487 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1487)::ok_type>); if ((__builtin_expect(!!(tryResult1487.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1487.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19191, mozilla::dom::quota::Severity::Error); return tryResult1487.propagateErr(); }}; {auto tryResult1488 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1488)::ok_type>); if ((__builtin_expect(!!(tryResult1488.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1488.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19194, mozilla::dom::quota::Severity::Error); return tryResult1488.propagateErr(); }}; return Ok{}; })"
, tryResult1489.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19197, mozilla::dom::quota::Severity::Error); return tryResult1489
.propagateErr(); } const auto& indexValuesStmt = tryResult1489
.inspect();
19189 [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> {auto tryResult1489 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns, [&self = *this](auto& stmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1487 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1487)::ok_type>); if ((__builtin_expect
(!!(tryResult1487.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1487.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19191, mozilla::dom::quota::Severity::Error); return tryResult1487
.propagateErr(); }}; {auto tryResult1488 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1488)::ok_type
>); if ((__builtin_expect(!!(tryResult1488.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1488.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19194, mozilla::dom::quota::Severity::Error); return tryResult1488
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1489.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1487 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1487)::ok_type>); if ((__builtin_expect(!!(tryResult1487.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1487.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19191, mozilla::dom::quota::Severity::Error); return tryResult1487.propagateErr(); }}; {auto tryResult1488 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1488)::ok_type>); if ((__builtin_expect(!!(tryResult1488.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1488.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19194, mozilla::dom::quota::Severity::Error); return tryResult1488.propagateErr(); }}; return Ok{}; })"
, tryResult1489.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19197, mozilla::dom::quota::Severity::Error); return tryResult1489
.propagateErr(); } const auto& indexValuesStmt = tryResult1489
.inspect();
19190 QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByName(auto tryResult1489 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns, [&self = *this](auto& stmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1487 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1487)::ok_type>); if ((__builtin_expect
(!!(tryResult1487.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1487.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19191, mozilla::dom::quota::Severity::Error); return tryResult1487
.propagateErr(); }}; {auto tryResult1488 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1488)::ok_type
>); if ((__builtin_expect(!!(tryResult1488.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1488.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19194, mozilla::dom::quota::Severity::Error); return tryResult1488
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1489.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1487 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1487)::ok_type>); if ((__builtin_expect(!!(tryResult1487.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1487.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19191, mozilla::dom::quota::Severity::Error); return tryResult1487.propagateErr(); }}; {auto tryResult1488 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1488)::ok_type>); if ((__builtin_expect(!!(tryResult1488.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1488.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19194, mozilla::dom::quota::Severity::Error); return tryResult1488.propagateErr(); }}; return Ok{}; })"
, tryResult1489.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19197, mozilla::dom::quota::Severity::Error); return tryResult1489
.propagateErr(); } const auto& indexValuesStmt = tryResult1489
.inspect();
19191 kStmtParamNameObjectStoreId, self.mParams.objectStoreId())));auto tryResult1489 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns, [&self = *this](auto& stmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1487 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1487)::ok_type>); if ((__builtin_expect
(!!(tryResult1487.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1487.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19191, mozilla::dom::quota::Severity::Error); return tryResult1487
.propagateErr(); }}; {auto tryResult1488 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1488)::ok_type
>); if ((__builtin_expect(!!(tryResult1488.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1488.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19194, mozilla::dom::quota::Severity::Error); return tryResult1488
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1489.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1487 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1487)::ok_type>); if ((__builtin_expect(!!(tryResult1487.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1487.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19191, mozilla::dom::quota::Severity::Error); return tryResult1487.propagateErr(); }}; {auto tryResult1488 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1488)::ok_type>); if ((__builtin_expect(!!(tryResult1488.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1488.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19194, mozilla::dom::quota::Severity::Error); return tryResult1488.propagateErr(); }}; return Ok{}; })"
, tryResult1489.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19197, mozilla::dom::quota::Severity::Error); return tryResult1489
.propagateErr(); } const auto& indexValuesStmt = tryResult1489
.inspect();
19192
19193 QM_TRY(MOZ_TO_RESULT(auto tryResult1489 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns, [&self = *this](auto& stmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1487 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1487)::ok_type>); if ((__builtin_expect
(!!(tryResult1487.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1487.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19191, mozilla::dom::quota::Severity::Error); return tryResult1487
.propagateErr(); }}; {auto tryResult1488 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1488)::ok_type
>); if ((__builtin_expect(!!(tryResult1488.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1488.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19194, mozilla::dom::quota::Severity::Error); return tryResult1488
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1489.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1487 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1487)::ok_type>); if ((__builtin_expect(!!(tryResult1487.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1487.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19191, mozilla::dom::quota::Severity::Error); return tryResult1487.propagateErr(); }}; {auto tryResult1488 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1488)::ok_type>); if ((__builtin_expect(!!(tryResult1488.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1488.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19194, mozilla::dom::quota::Severity::Error); return tryResult1488.propagateErr(); }}; return Ok{}; })"
, tryResult1489.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19197, mozilla::dom::quota::Severity::Error); return tryResult1489
.propagateErr(); } const auto& indexValuesStmt = tryResult1489
.inspect();
19194 self.mResponse.BindToStatement(&stmt, kStmtParamNameKey)));auto tryResult1489 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns, [&self = *this](auto& stmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1487 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1487)::ok_type>); if ((__builtin_expect
(!!(tryResult1487.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1487.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19191, mozilla::dom::quota::Severity::Error); return tryResult1487
.propagateErr(); }}; {auto tryResult1488 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1488)::ok_type
>); if ((__builtin_expect(!!(tryResult1488.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1488.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19194, mozilla::dom::quota::Severity::Error); return tryResult1488
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1489.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1487 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1487)::ok_type>); if ((__builtin_expect(!!(tryResult1487.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1487.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19191, mozilla::dom::quota::Severity::Error); return tryResult1487.propagateErr(); }}; {auto tryResult1488 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1488)::ok_type>); if ((__builtin_expect(!!(tryResult1488.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1488.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19194, mozilla::dom::quota::Severity::Error); return tryResult1488.propagateErr(); }}; return Ok{}; })"
, tryResult1489.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19197, mozilla::dom::quota::Severity::Error); return tryResult1489
.propagateErr(); } const auto& indexValuesStmt = tryResult1489
.inspect();
19195
19196 return Ok{};auto tryResult1489 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns, [&self = *this](auto& stmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1487 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1487)::ok_type>); if ((__builtin_expect
(!!(tryResult1487.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1487.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19191, mozilla::dom::quota::Severity::Error); return tryResult1487
.propagateErr(); }}; {auto tryResult1488 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1488)::ok_type
>); if ((__builtin_expect(!!(tryResult1488.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1488.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19194, mozilla::dom::quota::Severity::Error); return tryResult1488
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1489.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1487 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1487)::ok_type>); if ((__builtin_expect(!!(tryResult1487.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1487.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19191, mozilla::dom::quota::Severity::Error); return tryResult1487.propagateErr(); }}; {auto tryResult1488 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1488)::ok_type>); if ((__builtin_expect(!!(tryResult1488.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1488.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19194, mozilla::dom::quota::Severity::Error); return tryResult1488.propagateErr(); }}; return Ok{}; })"
, tryResult1489.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19197, mozilla::dom::quota::Severity::Error); return tryResult1489
.propagateErr(); } const auto& indexValuesStmt = tryResult1489
.inspect();
19197 }))auto tryResult1489 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns, [&self = *this](auto& stmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1487 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1487)::ok_type>); if ((__builtin_expect
(!!(tryResult1487.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1487.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19191, mozilla::dom::quota::Severity::Error); return tryResult1487
.propagateErr(); }}; {auto tryResult1488 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1488)::ok_type
>); if ((__builtin_expect(!!(tryResult1488.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1488.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19194, mozilla::dom::quota::Severity::Error); return tryResult1488
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1489.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1487 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1487)::ok_type>); if ((__builtin_expect(!!(tryResult1487.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1487.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19191, mozilla::dom::quota::Severity::Error); return tryResult1487.propagateErr(); }}; {auto tryResult1488 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1488)::ok_type>); if ((__builtin_expect(!!(tryResult1488.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1488.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19194, mozilla::dom::quota::Severity::Error); return tryResult1488.propagateErr(); }}; return Ok{}; })"
, tryResult1489.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19197, mozilla::dom::quota::Severity::Error); return tryResult1489
.propagateErr(); } const auto& indexValuesStmt = tryResult1489
.inspect();
;
19198
19199 if (indexValuesStmt) {
19200 QM_TRY_INSPECT(const auto& existingIndexValues,auto tryResult1490 = (ReadCompressedIndexDataValues(**indexValuesStmt
, 0)); if ((__builtin_expect(!!(tryResult1490.isErr()), 0))) {
mozilla::dom::quota::HandleError("ReadCompressedIndexDataValues(**indexValuesStmt, 0)"
, tryResult1490.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19201, mozilla::dom::quota::Severity::Error); return tryResult1490
.propagateErr(); } const auto& existingIndexValues = tryResult1490
.inspect();
19201 ReadCompressedIndexDataValues(**indexValuesStmt, 0))auto tryResult1490 = (ReadCompressedIndexDataValues(**indexValuesStmt
, 0)); if ((__builtin_expect(!!(tryResult1490.isErr()), 0))) {
mozilla::dom::quota::HandleError("ReadCompressedIndexDataValues(**indexValuesStmt, 0)"
, tryResult1490.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19201, mozilla::dom::quota::Severity::Error); return tryResult1490
.propagateErr(); } const auto& existingIndexValues = tryResult1490
.inspect();
;
19202
19203 QM_TRY(MOZ_TO_RESULT({auto tryResult1491 = (ToResult(DeleteIndexDataTableRows(aConnection
, mResponse, existingIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1491)::ok_type>); if ((__builtin_expect
(!!(tryResult1491.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DeleteIndexDataTableRows(aConnection, mResponse, existingIndexValues))"
, tryResult1491.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19204, mozilla::dom::quota::Severity::Error); return tryResult1491
.propagateErr(); }}
19204 DeleteIndexDataTableRows(aConnection, mResponse, existingIndexValues))){auto tryResult1491 = (ToResult(DeleteIndexDataTableRows(aConnection
, mResponse, existingIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1491)::ok_type>); if ((__builtin_expect
(!!(tryResult1491.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DeleteIndexDataTableRows(aConnection, mResponse, existingIndexValues))"
, tryResult1491.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19204, mozilla::dom::quota::Severity::Error); return tryResult1491
.propagateErr(); }}
;
19205 }
19206
19207 return NS_OK;
19208}
19209
19210bool ObjectStoreAddOrPutRequestOp::Init(TransactionBase& aTransaction) {
19211 AssertIsOnOwningThread();
19212
19213 const nsTArray<IndexUpdateInfo>& indexUpdateInfos =
19214 mParams.indexUpdateInfos();
19215
19216 if (!indexUpdateInfos.IsEmpty()) {
19217 mUniqueIndexTable.emplace();
19218
19219 for (const auto& updateInfo : indexUpdateInfos) {
19220 auto indexMetadata = mMetadata->mIndexes.Lookup(updateInfo.indexId());
19221 MOZ_ALWAYS_TRUE(indexMetadata)do { if ((__builtin_expect(!!(indexMetadata), 1))) { } else {
do { do { } while (false); MOZ_ReportCrash("" "indexMetadata"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19221
); AnnotateMozCrashReason("MOZ_CRASH(" "indexMetadata" ")"); do
{ MOZ_CrashSequence(__null, 19221); __attribute__((nomerge))
::abort(); } while (false); } while (false); } } while (false
)
;
19222
19223 MOZ_ASSERT(!(*indexMetadata)->mDeleted)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!(*indexMetadata)->mDeleted)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!(*indexMetadata)->mDeleted
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"!(*indexMetadata)->mDeleted", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19223); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!(*indexMetadata)->mDeleted"
")"); do { MOZ_CrashSequence(__null, 19223); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19224
19225 const IndexOrObjectStoreId& indexId =
19226 (*indexMetadata)->mCommonMetadata.id();
19227 const bool& unique = (*indexMetadata)->mCommonMetadata.unique();
19228
19229 MOZ_ASSERT(indexId == updateInfo.indexId())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(indexId == updateInfo.indexId())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(indexId == updateInfo.indexId
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("indexId == updateInfo.indexId()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19229); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexId == updateInfo.indexId()"
")"); do { MOZ_CrashSequence(__null, 19229); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19230 MOZ_ASSERT_IF(!(*indexMetadata)->mCommonMetadata.multiEntry(),do { if (!(*indexMetadata)->mCommonMetadata.multiEntry()) {
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mUniqueIndexTable.ref().Contains(indexId))>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(!mUniqueIndexTable.ref().Contains(indexId)))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("!mUniqueIndexTable.ref().Contains(indexId)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19231
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mUniqueIndexTable.ref().Contains(indexId)"
")"); do { MOZ_CrashSequence(__null, 19231); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
19231 !mUniqueIndexTable.ref().Contains(indexId))do { if (!(*indexMetadata)->mCommonMetadata.multiEntry()) {
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mUniqueIndexTable.ref().Contains(indexId))>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(!mUniqueIndexTable.ref().Contains(indexId)))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("!mUniqueIndexTable.ref().Contains(indexId)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19231
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mUniqueIndexTable.ref().Contains(indexId)"
")"); do { MOZ_CrashSequence(__null, 19231); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19232
19233 if (NS_WARN_IF(!mUniqueIndexTable.ref().InsertOrUpdate(indexId, unique,NS_warn_if_impl(!mUniqueIndexTable.ref().InsertOrUpdate(indexId
, unique, fallible), "!mUniqueIndexTable.ref().InsertOrUpdate(indexId, unique, fallible)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19234
)
19234 fallible))NS_warn_if_impl(!mUniqueIndexTable.ref().InsertOrUpdate(indexId
, unique, fallible), "!mUniqueIndexTable.ref().InsertOrUpdate(indexId, unique, fallible)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19234
)
) {
19235 return false;
19236 }
19237 }
19238 } else if (mOverwrite) {
19239 mUniqueIndexTable.emplace();
19240 }
19241
19242 if (mUniqueIndexTable.isSome()) {
19243 mUniqueIndexTable.ref().MarkImmutable();
19244 }
19245
19246 if (!mStoredFileInfos.SetCapacity(mParams.fileAddInfos().Length(),
19247 fallible)) {
19248 return false;
19249 }
19250 for (const auto& fileAddInfo : mParams.fileAddInfos()) {
19251 MOZ_ASSERT(fileAddInfo.type() == StructuredCloneFileBase::eBlob ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob
|| fileAddInfo.type() == StructuredCloneFileBase::eMutableFile
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob
|| fileAddInfo.type() == StructuredCloneFileBase::eMutableFile
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19252
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { MOZ_CrashSequence(__null, 19252); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
19252 fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob
|| fileAddInfo.type() == StructuredCloneFileBase::eMutableFile
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob
|| fileAddInfo.type() == StructuredCloneFileBase::eMutableFile
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19252
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { MOZ_CrashSequence(__null, 19252); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19253
19254 switch (fileAddInfo.type()) {
19255 case StructuredCloneFileBase::eBlob: {
19256 PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent();
19257 MOZ_ASSERT(file)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(file)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("file", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19257); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { MOZ_CrashSequence(__null, 19257); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
19258
19259 auto* const fileActor = static_cast<DatabaseFile*>(file);
19260 MOZ_ASSERT(fileActor)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileActor)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("fileActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19260); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { MOZ_CrashSequence(__null, 19260); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19261
19262 QM_TRY_UNWRAP(auto info,auto tryResult1492 = (StoredFileInfo::CreateForBlob(fileActor
->GetFileInfoPtr(), fileActor)); if ((__builtin_expect(!!(
tryResult1492.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1492.unwrapErr(); mozilla::dom::quota::HandleError
("StoredFileInfo::CreateForBlob(fileActor->GetFileInfoPtr(), fileActor)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19265, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "StoredFileInfo::CreateForBlob(fileActor->GetFileInfoPtr(), fileActor)"
, tryTempError, false); } auto info = tryResult1492.unwrap();
19263 StoredFileInfo::CreateForBlob(fileActor->GetFileInfoPtr(),auto tryResult1492 = (StoredFileInfo::CreateForBlob(fileActor
->GetFileInfoPtr(), fileActor)); if ((__builtin_expect(!!(
tryResult1492.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1492.unwrapErr(); mozilla::dom::quota::HandleError
("StoredFileInfo::CreateForBlob(fileActor->GetFileInfoPtr(), fileActor)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19265, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "StoredFileInfo::CreateForBlob(fileActor->GetFileInfoPtr(), fileActor)"
, tryTempError, false); } auto info = tryResult1492.unwrap();
19264 fileActor),auto tryResult1492 = (StoredFileInfo::CreateForBlob(fileActor
->GetFileInfoPtr(), fileActor)); if ((__builtin_expect(!!(
tryResult1492.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1492.unwrapErr(); mozilla::dom::quota::HandleError
("StoredFileInfo::CreateForBlob(fileActor->GetFileInfoPtr(), fileActor)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19265, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "StoredFileInfo::CreateForBlob(fileActor->GetFileInfoPtr(), fileActor)"
, tryTempError, false); } auto info = tryResult1492.unwrap();
19265 false)auto tryResult1492 = (StoredFileInfo::CreateForBlob(fileActor
->GetFileInfoPtr(), fileActor)); if ((__builtin_expect(!!(
tryResult1492.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1492.unwrapErr(); mozilla::dom::quota::HandleError
("StoredFileInfo::CreateForBlob(fileActor->GetFileInfoPtr(), fileActor)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19265, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "StoredFileInfo::CreateForBlob(fileActor->GetFileInfoPtr(), fileActor)"
, tryTempError, false); } auto info = tryResult1492.unwrap();
;
19266 mStoredFileInfos.AppendElement(std::move(info));
19267 break;
19268 }
19269
19270 default:
19271 MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19271
); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 19271); __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
19272 }
19273 }
19274
19275 if (mDataOverThreshold) {
19276 auto fileInfo =
19277 aTransaction.GetDatabase().GetFileManager().CreateFileInfo();
19278 if (NS_WARN_IF(!fileInfo)NS_warn_if_impl(!fileInfo, "!fileInfo", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19278)
) {
19279 return false;
19280 }
19281
19282 QM_TRY_UNWRAP(auto tryResult1493 = (StoredFileInfo::CreateForStructuredClone
( std::move(fileInfo), MakeRefPtr<SCInputStream>(mParams
.cloneInfo().data().data))); if ((__builtin_expect(!!(tryResult1493
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1493
.unwrapErr(); mozilla::dom::quota::HandleError("StoredFileInfo::CreateForStructuredClone( std::move(fileInfo), MakeRefPtr<SCInputStream>(mParams.cloneInfo().data().data))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19287, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "StoredFileInfo::CreateForStructuredClone( std::move(fileInfo), MakeRefPtr<SCInputStream>(mParams.cloneInfo().data().data))"
, tryTempError, false); } auto info = tryResult1493.unwrap();
19283 auto info,auto tryResult1493 = (StoredFileInfo::CreateForStructuredClone
( std::move(fileInfo), MakeRefPtr<SCInputStream>(mParams
.cloneInfo().data().data))); if ((__builtin_expect(!!(tryResult1493
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1493
.unwrapErr(); mozilla::dom::quota::HandleError("StoredFileInfo::CreateForStructuredClone( std::move(fileInfo), MakeRefPtr<SCInputStream>(mParams.cloneInfo().data().data))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19287, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "StoredFileInfo::CreateForStructuredClone( std::move(fileInfo), MakeRefPtr<SCInputStream>(mParams.cloneInfo().data().data))"
, tryTempError, false); } auto info = tryResult1493.unwrap();
19284 StoredFileInfo::CreateForStructuredClone(auto tryResult1493 = (StoredFileInfo::CreateForStructuredClone
( std::move(fileInfo), MakeRefPtr<SCInputStream>(mParams
.cloneInfo().data().data))); if ((__builtin_expect(!!(tryResult1493
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1493
.unwrapErr(); mozilla::dom::quota::HandleError("StoredFileInfo::CreateForStructuredClone( std::move(fileInfo), MakeRefPtr<SCInputStream>(mParams.cloneInfo().data().data))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19287, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "StoredFileInfo::CreateForStructuredClone( std::move(fileInfo), MakeRefPtr<SCInputStream>(mParams.cloneInfo().data().data))"
, tryTempError, false); } auto info = tryResult1493.unwrap();
19285 std::move(fileInfo),auto tryResult1493 = (StoredFileInfo::CreateForStructuredClone
( std::move(fileInfo), MakeRefPtr<SCInputStream>(mParams
.cloneInfo().data().data))); if ((__builtin_expect(!!(tryResult1493
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1493
.unwrapErr(); mozilla::dom::quota::HandleError("StoredFileInfo::CreateForStructuredClone( std::move(fileInfo), MakeRefPtr<SCInputStream>(mParams.cloneInfo().data().data))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19287, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "StoredFileInfo::CreateForStructuredClone( std::move(fileInfo), MakeRefPtr<SCInputStream>(mParams.cloneInfo().data().data))"
, tryTempError, false); } auto info = tryResult1493.unwrap();
19286 MakeRefPtr<SCInputStream>(mParams.cloneInfo().data().data)),auto tryResult1493 = (StoredFileInfo::CreateForStructuredClone
( std::move(fileInfo), MakeRefPtr<SCInputStream>(mParams
.cloneInfo().data().data))); if ((__builtin_expect(!!(tryResult1493
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1493
.unwrapErr(); mozilla::dom::quota::HandleError("StoredFileInfo::CreateForStructuredClone( std::move(fileInfo), MakeRefPtr<SCInputStream>(mParams.cloneInfo().data().data))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19287, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "StoredFileInfo::CreateForStructuredClone( std::move(fileInfo), MakeRefPtr<SCInputStream>(mParams.cloneInfo().data().data))"
, tryTempError, false); } auto info = tryResult1493.unwrap();
19287 false)auto tryResult1493 = (StoredFileInfo::CreateForStructuredClone
( std::move(fileInfo), MakeRefPtr<SCInputStream>(mParams
.cloneInfo().data().data))); if ((__builtin_expect(!!(tryResult1493
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1493
.unwrapErr(); mozilla::dom::quota::HandleError("StoredFileInfo::CreateForStructuredClone( std::move(fileInfo), MakeRefPtr<SCInputStream>(mParams.cloneInfo().data().data))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19287, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "StoredFileInfo::CreateForStructuredClone( std::move(fileInfo), MakeRefPtr<SCInputStream>(mParams.cloneInfo().data().data))"
, tryTempError, false); } auto info = tryResult1493.unwrap();
;
19288 mStoredFileInfos.EmplaceBack(std::move(info));
19289 }
19290
19291 return true;
19292}
19293
19294nsresult ObjectStoreAddOrPutRequestOp::DoDatabaseWork(
19295 DatabaseConnection* aConnection) {
19296 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19296); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 19296); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19297 aConnection->AssertIsOnConnectionThread();
19298 MOZ_ASSERT(aConnection->HasStorageConnection())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection->HasStorageConnection())>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(aConnection->HasStorageConnection()))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aConnection->HasStorageConnection()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19298
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection->HasStorageConnection()"
")"); do { MOZ_CrashSequence(__null, 19298); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19299
19300 AUTO_PROFILER_LABEL("ObjectStoreAddOrPutRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject19300( "ObjectStoreAddOrPutRequestOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
19301
19302 DatabaseConnection::AutoSavepoint autoSave;
19303 QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult1494 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1494)::ok_type>); if ((__builtin_expect(!!(tryResult1494
.isErr()), 0))) { auto tryTempError = tryResult1494.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19308, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
19304#ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult1494 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1494)::ok_type>); if ((__builtin_expect(!!(tryResult1494
.isErr()), 0))) { auto tryTempError = tryResult1494.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19308, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
19305 ,{auto tryResult1494 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1494)::ok_type>); if ((__builtin_expect(!!(tryResult1494
.isErr()), 0))) { auto tryTempError = tryResult1494.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19308, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
19306 QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult1494 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1494)::ok_type>); if ((__builtin_expect(!!(tryResult1494
.isErr()), 0))) { auto tryTempError = tryResult1494.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19308, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
19307#endif{auto tryResult1494 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1494)::ok_type>); if ((__builtin_expect(!!(tryResult1494
.isErr()), 0))) { auto tryTempError = tryResult1494.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19308, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
19308 ){auto tryResult1494 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1494)::ok_type>); if ((__builtin_expect(!!(tryResult1494
.isErr()), 0))) { auto tryTempError = tryResult1494.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19308, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
;
19309
19310 QM_TRY_INSPECT(const bool& objectStoreHasIndexes,auto tryResult1495 = (ObjectStoreHasIndexes(*aConnection, mParams
.objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect
(!!(tryResult1495.isErr()), 0))) { mozilla::dom::quota::HandleError
("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)"
, tryResult1495.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19312, mozilla::dom::quota::Severity::Error); return tryResult1495
.propagateErr(); } const bool& objectStoreHasIndexes = tryResult1495
.inspect();
19311 ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(),auto tryResult1495 = (ObjectStoreHasIndexes(*aConnection, mParams
.objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect
(!!(tryResult1495.isErr()), 0))) { mozilla::dom::quota::HandleError
("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)"
, tryResult1495.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19312, mozilla::dom::quota::Severity::Error); return tryResult1495
.propagateErr(); } const bool& objectStoreHasIndexes = tryResult1495
.inspect();
19312 mObjectStoreMayHaveIndexes))auto tryResult1495 = (ObjectStoreHasIndexes(*aConnection, mParams
.objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect
(!!(tryResult1495.isErr()), 0))) { mozilla::dom::quota::HandleError
("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)"
, tryResult1495.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19312, mozilla::dom::quota::Severity::Error); return tryResult1495
.propagateErr(); } const bool& objectStoreHasIndexes = tryResult1495
.inspect();
;
19313
19314 // This will be the final key we use.
19315 Key& key = mResponse;
19316 key = mParams.key();
19317
19318 const bool keyUnset = key.IsUnset();
19319 const IndexOrObjectStoreId osid = mParams.objectStoreId();
19320
19321 // First delete old index_data_values if we're overwriting something and we
19322 // have indexes.
19323 if (mOverwrite && !keyUnset && objectStoreHasIndexes) {
19324 QM_TRY(MOZ_TO_RESULT(RemoveOldIndexDataValues(aConnection))){auto tryResult1496 = (ToResult(RemoveOldIndexDataValues(aConnection
))); static_assert(std::is_empty_v<typename decltype(tryResult1496
)::ok_type>); if ((__builtin_expect(!!(tryResult1496.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveOldIndexDataValues(aConnection))"
, tryResult1496.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19324, mozilla::dom::quota::Severity::Error); return tryResult1496
.propagateErr(); }}
;
19325 }
19326
19327 int64_t autoIncrementNum = 0;
19328
19329 {
19330 // The "|| keyUnset" here is mostly a debugging tool. If a key isn't
19331 // specified we should never have a collision and so it shouldn't matter
19332 // if we allow overwrite or not. By not allowing overwrite we raise
19333 // detectable errors rather than corrupting data.
19334 const auto optReplaceDirective =
19335 (!mOverwrite || keyUnset) ? ""_ns : "OR REPLACE "_ns;
19336 QM_TRY_INSPECT(const auto& stmt,auto tryResult1497 = (aConnection->BorrowCachedStatement( "INSERT "_ns
+ optReplaceDirective + "INTO object_data " "(object_store_id, key, file_ids, data) "
"VALUES (:"_ns + kStmtParamNameObjectStoreId + ", :"_ns + kStmtParamNameKey
+ ", :"_ns + kStmtParamNameFileIds + ", :"_ns + kStmtParamNameData
+ ");"_ns)); if ((__builtin_expect(!!(tryResult1497.isErr())
, 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"INSERT \"_ns + optReplaceDirective + \"INTO object_data \" \"(object_store_id, key, file_ids, data) \" \"VALUES (:\"_ns + kStmtParamNameObjectStoreId + \", :\"_ns + kStmtParamNameKey + \", :\"_ns + kStmtParamNameFileIds + \", :\"_ns + kStmtParamNameData + \");\"_ns)"
, tryResult1497.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19344, mozilla::dom::quota::Severity::Error); return tryResult1497
.propagateErr(); } const auto& stmt = tryResult1497.inspect
();
19337 aConnection->BorrowCachedStatement(auto tryResult1497 = (aConnection->BorrowCachedStatement( "INSERT "_ns
+ optReplaceDirective + "INTO object_data " "(object_store_id, key, file_ids, data) "
"VALUES (:"_ns + kStmtParamNameObjectStoreId + ", :"_ns + kStmtParamNameKey
+ ", :"_ns + kStmtParamNameFileIds + ", :"_ns + kStmtParamNameData
+ ");"_ns)); if ((__builtin_expect(!!(tryResult1497.isErr())
, 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"INSERT \"_ns + optReplaceDirective + \"INTO object_data \" \"(object_store_id, key, file_ids, data) \" \"VALUES (:\"_ns + kStmtParamNameObjectStoreId + \", :\"_ns + kStmtParamNameKey + \", :\"_ns + kStmtParamNameFileIds + \", :\"_ns + kStmtParamNameData + \");\"_ns)"
, tryResult1497.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19344, mozilla::dom::quota::Severity::Error); return tryResult1497
.propagateErr(); } const auto& stmt = tryResult1497.inspect
();
19338 "INSERT "_ns + optReplaceDirective +auto tryResult1497 = (aConnection->BorrowCachedStatement( "INSERT "_ns
+ optReplaceDirective + "INTO object_data " "(object_store_id, key, file_ids, data) "
"VALUES (:"_ns + kStmtParamNameObjectStoreId + ", :"_ns + kStmtParamNameKey
+ ", :"_ns + kStmtParamNameFileIds + ", :"_ns + kStmtParamNameData
+ ");"_ns)); if ((__builtin_expect(!!(tryResult1497.isErr())
, 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"INSERT \"_ns + optReplaceDirective + \"INTO object_data \" \"(object_store_id, key, file_ids, data) \" \"VALUES (:\"_ns + kStmtParamNameObjectStoreId + \", :\"_ns + kStmtParamNameKey + \", :\"_ns + kStmtParamNameFileIds + \", :\"_ns + kStmtParamNameData + \");\"_ns)"
, tryResult1497.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19344, mozilla::dom::quota::Severity::Error); return tryResult1497
.propagateErr(); } const auto& stmt = tryResult1497.inspect
();
19339 "INTO object_data "auto tryResult1497 = (aConnection->BorrowCachedStatement( "INSERT "_ns
+ optReplaceDirective + "INTO object_data " "(object_store_id, key, file_ids, data) "
"VALUES (:"_ns + kStmtParamNameObjectStoreId + ", :"_ns + kStmtParamNameKey
+ ", :"_ns + kStmtParamNameFileIds + ", :"_ns + kStmtParamNameData
+ ");"_ns)); if ((__builtin_expect(!!(tryResult1497.isErr())
, 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"INSERT \"_ns + optReplaceDirective + \"INTO object_data \" \"(object_store_id, key, file_ids, data) \" \"VALUES (:\"_ns + kStmtParamNameObjectStoreId + \", :\"_ns + kStmtParamNameKey + \", :\"_ns + kStmtParamNameFileIds + \", :\"_ns + kStmtParamNameData + \");\"_ns)"
, tryResult1497.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19344, mozilla::dom::quota::Severity::Error); return tryResult1497
.propagateErr(); } const auto& stmt = tryResult1497.inspect
();
19340 "(object_store_id, key, file_ids, data) "auto tryResult1497 = (aConnection->BorrowCachedStatement( "INSERT "_ns
+ optReplaceDirective + "INTO object_data " "(object_store_id, key, file_ids, data) "
"VALUES (:"_ns + kStmtParamNameObjectStoreId + ", :"_ns + kStmtParamNameKey
+ ", :"_ns + kStmtParamNameFileIds + ", :"_ns + kStmtParamNameData
+ ");"_ns)); if ((__builtin_expect(!!(tryResult1497.isErr())
, 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"INSERT \"_ns + optReplaceDirective + \"INTO object_data \" \"(object_store_id, key, file_ids, data) \" \"VALUES (:\"_ns + kStmtParamNameObjectStoreId + \", :\"_ns + kStmtParamNameKey + \", :\"_ns + kStmtParamNameFileIds + \", :\"_ns + kStmtParamNameData + \");\"_ns)"
, tryResult1497.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19344, mozilla::dom::quota::Severity::Error); return tryResult1497
.propagateErr(); } const auto& stmt = tryResult1497.inspect
();
19341 "VALUES (:"_ns +auto tryResult1497 = (aConnection->BorrowCachedStatement( "INSERT "_ns
+ optReplaceDirective + "INTO object_data " "(object_store_id, key, file_ids, data) "
"VALUES (:"_ns + kStmtParamNameObjectStoreId + ", :"_ns + kStmtParamNameKey
+ ", :"_ns + kStmtParamNameFileIds + ", :"_ns + kStmtParamNameData
+ ");"_ns)); if ((__builtin_expect(!!(tryResult1497.isErr())
, 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"INSERT \"_ns + optReplaceDirective + \"INTO object_data \" \"(object_store_id, key, file_ids, data) \" \"VALUES (:\"_ns + kStmtParamNameObjectStoreId + \", :\"_ns + kStmtParamNameKey + \", :\"_ns + kStmtParamNameFileIds + \", :\"_ns + kStmtParamNameData + \");\"_ns)"
, tryResult1497.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19344, mozilla::dom::quota::Severity::Error); return tryResult1497
.propagateErr(); } const auto& stmt = tryResult1497.inspect
();
19342 kStmtParamNameObjectStoreId + ", :"_ns +auto tryResult1497 = (aConnection->BorrowCachedStatement( "INSERT "_ns
+ optReplaceDirective + "INTO object_data " "(object_store_id, key, file_ids, data) "
"VALUES (:"_ns + kStmtParamNameObjectStoreId + ", :"_ns + kStmtParamNameKey
+ ", :"_ns + kStmtParamNameFileIds + ", :"_ns + kStmtParamNameData
+ ");"_ns)); if ((__builtin_expect(!!(tryResult1497.isErr())
, 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"INSERT \"_ns + optReplaceDirective + \"INTO object_data \" \"(object_store_id, key, file_ids, data) \" \"VALUES (:\"_ns + kStmtParamNameObjectStoreId + \", :\"_ns + kStmtParamNameKey + \", :\"_ns + kStmtParamNameFileIds + \", :\"_ns + kStmtParamNameData + \");\"_ns)"
, tryResult1497.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19344, mozilla::dom::quota::Severity::Error); return tryResult1497
.propagateErr(); } const auto& stmt = tryResult1497.inspect
();
19343 kStmtParamNameKey + ", :"_ns + kStmtParamNameFileIds +auto tryResult1497 = (aConnection->BorrowCachedStatement( "INSERT "_ns
+ optReplaceDirective + "INTO object_data " "(object_store_id, key, file_ids, data) "
"VALUES (:"_ns + kStmtParamNameObjectStoreId + ", :"_ns + kStmtParamNameKey
+ ", :"_ns + kStmtParamNameFileIds + ", :"_ns + kStmtParamNameData
+ ");"_ns)); if ((__builtin_expect(!!(tryResult1497.isErr())
, 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"INSERT \"_ns + optReplaceDirective + \"INTO object_data \" \"(object_store_id, key, file_ids, data) \" \"VALUES (:\"_ns + kStmtParamNameObjectStoreId + \", :\"_ns + kStmtParamNameKey + \", :\"_ns + kStmtParamNameFileIds + \", :\"_ns + kStmtParamNameData + \");\"_ns)"
, tryResult1497.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19344, mozilla::dom::quota::Severity::Error); return tryResult1497
.propagateErr(); } const auto& stmt = tryResult1497.inspect
();
19344 ", :"_ns + kStmtParamNameData + ");"_ns))auto tryResult1497 = (aConnection->BorrowCachedStatement( "INSERT "_ns
+ optReplaceDirective + "INTO object_data " "(object_store_id, key, file_ids, data) "
"VALUES (:"_ns + kStmtParamNameObjectStoreId + ", :"_ns + kStmtParamNameKey
+ ", :"_ns + kStmtParamNameFileIds + ", :"_ns + kStmtParamNameData
+ ");"_ns)); if ((__builtin_expect(!!(tryResult1497.isErr())
, 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"INSERT \"_ns + optReplaceDirective + \"INTO object_data \" \"(object_store_id, key, file_ids, data) \" \"VALUES (:\"_ns + kStmtParamNameObjectStoreId + \", :\"_ns + kStmtParamNameKey + \", :\"_ns + kStmtParamNameFileIds + \", :\"_ns + kStmtParamNameData + \");\"_ns)"
, tryResult1497.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19344, mozilla::dom::quota::Severity::Error); return tryResult1497
.propagateErr(); } const auto& stmt = tryResult1497.inspect
();
;
19345
19346 QM_TRY(MOZ_TO_RESULT({auto tryResult1498 = (ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId
, osid))); static_assert(std::is_empty_v<typename decltype
(tryResult1498)::ok_type>); if ((__builtin_expect(!!(tryResult1498
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId, osid))"
, tryResult1498.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19347, mozilla::dom::quota::Severity::Error); return tryResult1498
.propagateErr(); }}
19347 stmt->BindInt64ByName(kStmtParamNameObjectStoreId, osid))){auto tryResult1498 = (ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId
, osid))); static_assert(std::is_empty_v<typename decltype
(tryResult1498)::ok_type>); if ((__builtin_expect(!!(tryResult1498
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId, osid))"
, tryResult1498.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19347, mozilla::dom::quota::Severity::Error); return tryResult1498
.propagateErr(); }}
;
19348
19349 const SerializedStructuredCloneWriteInfo& cloneInfo = mParams.cloneInfo();
19350 const JSStructuredCloneData& cloneData = cloneInfo.data().data;
19351 const size_t cloneDataSize = cloneData.Size();
19352
19353 MOZ_ASSERT(!keyUnset || mMetadata->mCommonMetadata.autoIncrement(),do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!keyUnset || mMetadata->mCommonMetadata.autoIncrement
())>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!keyUnset || mMetadata->mCommonMetadata.autoIncrement
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!keyUnset || mMetadata->mCommonMetadata.autoIncrement()"
" (" "Should have key unless autoIncrement" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19354); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!keyUnset || mMetadata->mCommonMetadata.autoIncrement()"
") (" "Should have key unless autoIncrement" ")"); do { MOZ_CrashSequence
(__null, 19354); __attribute__((nomerge)) ::abort(); } while (
false); } } while (false)
19354 "Should have key unless autoIncrement")do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!keyUnset || mMetadata->mCommonMetadata.autoIncrement
())>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!keyUnset || mMetadata->mCommonMetadata.autoIncrement
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!keyUnset || mMetadata->mCommonMetadata.autoIncrement()"
" (" "Should have key unless autoIncrement" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19354); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!keyUnset || mMetadata->mCommonMetadata.autoIncrement()"
") (" "Should have key unless autoIncrement" ")"); do { MOZ_CrashSequence
(__null, 19354); __attribute__((nomerge)) ::abort(); } while (
false); } } while (false)
;
19355
19356 if (mMetadata->mCommonMetadata.autoIncrement()) {
19357 if (keyUnset) {
19358 {
19359 const auto&& lockedAutoIncrementIds =
19360 mMetadata->mAutoIncrementIds.Lock();
19361
19362 autoIncrementNum = lockedAutoIncrementIds->next;
19363 }
19364
19365 MOZ_ASSERT(autoIncrementNum > 0)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(autoIncrementNum > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(autoIncrementNum > 0))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("autoIncrementNum > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19365
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "autoIncrementNum > 0"
")"); do { MOZ_CrashSequence(__null, 19365); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19366
19367 if (autoIncrementNum > (1LL << 53)) {
19368 return NS_ERROR_DOM_INDEXEDDB_CONSTRAINT_ERR;
19369 }
19370
19371 QM_TRY(key.SetFromInteger(autoIncrementNum)){auto tryResult1499 = (key.SetFromInteger(autoIncrementNum));
static_assert(std::is_empty_v<typename decltype(tryResult1499
)::ok_type>); if ((__builtin_expect(!!(tryResult1499.isErr
()), 0))) { mozilla::dom::quota::HandleError("key.SetFromInteger(autoIncrementNum)"
, tryResult1499.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19371, mozilla::dom::quota::Severity::Error); return tryResult1499
.propagateErr(); }}
;
19372
19373 // Update index keys if primary key is preserved in child.
19374 for (auto& updateInfo : mParams.indexUpdateInfos()) {
19375 QM_TRY({auto tryResult1500 = (updateInfo.value().MaybeUpdateAutoIncrementKey
(autoIncrementNum)); static_assert(std::is_empty_v<typename
decltype(tryResult1500)::ok_type>); if ((__builtin_expect
(!!(tryResult1500.isErr()), 0))) { mozilla::dom::quota::HandleError
("updateInfo.value().MaybeUpdateAutoIncrementKey(autoIncrementNum)"
, tryResult1500.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19376, mozilla::dom::quota::Severity::Error); return tryResult1500
.propagateErr(); }}
19376 updateInfo.value().MaybeUpdateAutoIncrementKey(autoIncrementNum)){auto tryResult1500 = (updateInfo.value().MaybeUpdateAutoIncrementKey
(autoIncrementNum)); static_assert(std::is_empty_v<typename
decltype(tryResult1500)::ok_type>); if ((__builtin_expect
(!!(tryResult1500.isErr()), 0))) { mozilla::dom::quota::HandleError
("updateInfo.value().MaybeUpdateAutoIncrementKey(autoIncrementNum)"
, tryResult1500.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19376, mozilla::dom::quota::Severity::Error); return tryResult1500
.propagateErr(); }}
;
19377 }
19378 } else if (key.IsFloat()) {
19379 double numericKey = key.ToFloat();
19380 numericKey = std::min(numericKey, double(1LL << 53));
19381 numericKey = floor(numericKey);
19382
19383 const auto&& lockedAutoIncrementIds =
19384 mMetadata->mAutoIncrementIds.Lock();
19385 if (numericKey >= lockedAutoIncrementIds->next) {
19386 autoIncrementNum = numericKey;
19387 }
19388 }
19389
19390 if (keyUnset && mMetadata->mCommonMetadata.keyPath().IsValid()) {
19391 const SerializedStructuredCloneWriteInfo& cloneInfo =
19392 mParams.cloneInfo();
19393 MOZ_ASSERT(cloneInfo.offsetToKeyProp())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(cloneInfo.offsetToKeyProp())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(cloneInfo.offsetToKeyProp())
)), 0))) { do { } while (false); MOZ_ReportAssertionFailure("cloneInfo.offsetToKeyProp()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19393
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "cloneInfo.offsetToKeyProp()"
")"); do { MOZ_CrashSequence(__null, 19393); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19394 MOZ_ASSERT(cloneDataSize > sizeof(uint64_t))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(cloneDataSize > sizeof(uint64_t))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(cloneDataSize > sizeof(uint64_t
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("cloneDataSize > sizeof(uint64_t)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19394); AnnotateMozCrashReason("MOZ_ASSERT" "(" "cloneDataSize > sizeof(uint64_t)"
")"); do { MOZ_CrashSequence(__null, 19394); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19395 MOZ_ASSERT(cloneInfo.offsetToKeyProp() <=do { static_assert( mozilla::detail::AssertionConditionType<
decltype(cloneInfo.offsetToKeyProp() <= (cloneDataSize - sizeof
(uint64_t)))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(cloneInfo.offsetToKeyProp() <=
(cloneDataSize - sizeof(uint64_t))))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("cloneInfo.offsetToKeyProp() <= (cloneDataSize - sizeof(uint64_t))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19396
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "cloneInfo.offsetToKeyProp() <= (cloneDataSize - sizeof(uint64_t))"
")"); do { MOZ_CrashSequence(__null, 19396); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
19396 (cloneDataSize - sizeof(uint64_t)))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(cloneInfo.offsetToKeyProp() <= (cloneDataSize - sizeof
(uint64_t)))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(cloneInfo.offsetToKeyProp() <=
(cloneDataSize - sizeof(uint64_t))))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("cloneInfo.offsetToKeyProp() <= (cloneDataSize - sizeof(uint64_t))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19396
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "cloneInfo.offsetToKeyProp() <= (cloneDataSize - sizeof(uint64_t))"
")"); do { MOZ_CrashSequence(__null, 19396); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19397
19398 // Special case where someone put an object into an autoIncrement'ing
19399 // objectStore with no key in its keyPath set. We needed to figure out
19400 // which row id we would get above before we could set that properly.
19401 uint64_t keyPropValue =
19402 ReinterpretDoubleAsUInt64(static_cast<double>(autoIncrementNum));
19403
19404 static const size_t keyPropSize = sizeof(uint64_t);
19405
19406 char keyPropBuffer[keyPropSize];
19407 LittleEndian::writeUint64(keyPropBuffer, keyPropValue);
19408
19409 auto iter = cloneData.Start();
19410 MOZ_ALWAYS_TRUE(cloneData.Advance(iter, cloneInfo.offsetToKeyProp()))do { if ((__builtin_expect(!!(cloneData.Advance(iter, cloneInfo
.offsetToKeyProp())), 1))) { } else { do { do { } while (false
); MOZ_ReportCrash("" "cloneData.Advance(iter, cloneInfo.offsetToKeyProp())"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19410
); AnnotateMozCrashReason("MOZ_CRASH(" "cloneData.Advance(iter, cloneInfo.offsetToKeyProp())"
")"); do { MOZ_CrashSequence(__null, 19410); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
19411 MOZ_ALWAYS_TRUE(do { if ((__builtin_expect(!!(cloneData.UpdateBytes(iter, keyPropBuffer
, keyPropSize)), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "cloneData.UpdateBytes(iter, keyPropBuffer, keyPropSize)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19412
); AnnotateMozCrashReason("MOZ_CRASH(" "cloneData.UpdateBytes(iter, keyPropBuffer, keyPropSize)"
")"); do { MOZ_CrashSequence(__null, 19412); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
19412 cloneData.UpdateBytes(iter, keyPropBuffer, keyPropSize))do { if ((__builtin_expect(!!(cloneData.UpdateBytes(iter, keyPropBuffer
, keyPropSize)), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "cloneData.UpdateBytes(iter, keyPropBuffer, keyPropSize)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19412
); AnnotateMozCrashReason("MOZ_CRASH(" "cloneData.UpdateBytes(iter, keyPropBuffer, keyPropSize)"
")"); do { MOZ_CrashSequence(__null, 19412); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
19413 }
19414 }
19415
19416 key.BindToStatement(&*stmt, kStmtParamNameKey);
19417
19418 if (mDataOverThreshold) {
19419 // The data we store in the SQLite database is a (signed) 64-bit integer.
19420 // The flags are left-shifted 32 bits so the max value is 0xFFFFFFFF.
19421 // The file_ids index occupies the lower 32 bits and its max is
19422 // 0xFFFFFFFF.
19423 static const uint32_t kCompressedFlag = (1 << 0);
19424
19425 uint32_t flags = 0;
19426 flags |= kCompressedFlag;
19427
19428 const uint32_t index = mStoredFileInfos.Length() - 1;
19429
19430 const int64_t data = (uint64_t(flags) << 32) | index;
19431
19432 QM_TRY(MOZ_TO_RESULT(stmt->BindInt64ByName(kStmtParamNameData, data))){auto tryResult1501 = (ToResult(stmt->BindInt64ByName(kStmtParamNameData
, data))); static_assert(std::is_empty_v<typename decltype
(tryResult1501)::ok_type>); if ((__builtin_expect(!!(tryResult1501
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByName(kStmtParamNameData, data))"
, tryResult1501.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19432, mozilla::dom::quota::Severity::Error); return tryResult1501
.propagateErr(); }}
;
19433 } else {
19434 AutoTArray<char, 4096> flatCloneData; // 4096 from JSStructuredCloneData
19435 QM_TRY(OkIf(flatCloneData.SetLength(cloneDataSize, fallible)),{auto tryResult1502 = (OkIf(flatCloneData.SetLength(cloneDataSize
, fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1502)::ok_type>); if ((__builtin_expect(!!(tryResult1502
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1502
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(flatCloneData.SetLength(cloneDataSize, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19436, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(flatCloneData.SetLength(cloneDataSize, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}
19436 Err(NS_ERROR_OUT_OF_MEMORY)){auto tryResult1502 = (OkIf(flatCloneData.SetLength(cloneDataSize
, fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1502)::ok_type>); if ((__builtin_expect(!!(tryResult1502
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1502
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(flatCloneData.SetLength(cloneDataSize, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19436, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(flatCloneData.SetLength(cloneDataSize, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}
;
19437
19438 {
19439 auto iter = cloneData.Start();
19440 MOZ_ALWAYS_TRUE(do { if ((__builtin_expect(!!(cloneData.ReadBytes(iter, flatCloneData
.Elements(), cloneDataSize)), 1))) { } else { do { do { } while
(false); MOZ_ReportCrash("" "cloneData.ReadBytes(iter, flatCloneData.Elements(), cloneDataSize)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19441
); AnnotateMozCrashReason("MOZ_CRASH(" "cloneData.ReadBytes(iter, flatCloneData.Elements(), cloneDataSize)"
")"); do { MOZ_CrashSequence(__null, 19441); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
19441 cloneData.ReadBytes(iter, flatCloneData.Elements(), cloneDataSize))do { if ((__builtin_expect(!!(cloneData.ReadBytes(iter, flatCloneData
.Elements(), cloneDataSize)), 1))) { } else { do { do { } while
(false); MOZ_ReportCrash("" "cloneData.ReadBytes(iter, flatCloneData.Elements(), cloneDataSize)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19441
); AnnotateMozCrashReason("MOZ_CRASH(" "cloneData.ReadBytes(iter, flatCloneData.Elements(), cloneDataSize)"
")"); do { MOZ_CrashSequence(__null, 19441); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
19442 }
19443
19444 // Compress the bytes before adding into the database.
19445 const char* const uncompressed = flatCloneData.Elements();
19446 const size_t uncompressedLength = cloneDataSize;
19447
19448 size_t compressedLength = snappy::MaxCompressedLength(uncompressedLength);
19449
19450 UniqueFreePtr<char> compressed(
19451 static_cast<char*>(malloc(compressedLength)));
19452 if (NS_WARN_IF(!compressed)NS_warn_if_impl(!compressed, "!compressed", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19452)
) {
19453 return NS_ERROR_OUT_OF_MEMORY;
19454 }
19455
19456 snappy::RawCompress(uncompressed, uncompressedLength, compressed.get(),
19457 &compressedLength);
19458
19459 uint8_t* const dataBuffer =
19460 reinterpret_cast<uint8_t*>(compressed.release());
19461 const size_t dataBufferLength = compressedLength;
19462
19463 QM_TRY(MOZ_TO_RESULT(stmt->BindAdoptedBlobByName({auto tryResult1503 = (ToResult(stmt->BindAdoptedBlobByName
( kStmtParamNameData, dataBuffer, dataBufferLength))); static_assert
(std::is_empty_v<typename decltype(tryResult1503)::ok_type
>); if ((__builtin_expect(!!(tryResult1503.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt->BindAdoptedBlobByName( kStmtParamNameData, dataBuffer, dataBufferLength))"
, tryResult1503.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19464, mozilla::dom::quota::Severity::Error); return tryResult1503
.propagateErr(); }}
19464 kStmtParamNameData, dataBuffer, dataBufferLength))){auto tryResult1503 = (ToResult(stmt->BindAdoptedBlobByName
( kStmtParamNameData, dataBuffer, dataBufferLength))); static_assert
(std::is_empty_v<typename decltype(tryResult1503)::ok_type
>); if ((__builtin_expect(!!(tryResult1503.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt->BindAdoptedBlobByName( kStmtParamNameData, dataBuffer, dataBufferLength))"
, tryResult1503.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19464, mozilla::dom::quota::Severity::Error); return tryResult1503
.propagateErr(); }}
;
19465 }
19466
19467 if (!mStoredFileInfos.IsEmpty()) {
19468 // Moved outside the loop to allow it to be cached when demanded by the
19469 // first write. (We may have mStoredFileInfos without any required
19470 // writes.)
19471 Maybe<FileHelper> fileHelper;
19472 nsAutoString fileIds;
19473
19474 for (auto& storedFileInfo : mStoredFileInfos) {
19475 MOZ_ASSERT(storedFileInfo.IsValid())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(storedFileInfo.IsValid())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(storedFileInfo.IsValid()))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("storedFileInfo.IsValid()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19475
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "storedFileInfo.IsValid()"
")"); do { MOZ_CrashSequence(__null, 19475); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19476
19477 QM_TRY_INSPECT(const auto& inputStream,auto tryResult1504 = (storedFileInfo.GetInputStream()); if ((
__builtin_expect(!!(tryResult1504.isErr()), 0))) { mozilla::dom
::quota::HandleError("storedFileInfo.GetInputStream()", tryResult1504
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19478, mozilla::dom::quota::Severity::Error); return tryResult1504
.propagateErr(); } const auto& inputStream = tryResult1504
.inspect();
19478 storedFileInfo.GetInputStream())auto tryResult1504 = (storedFileInfo.GetInputStream()); if ((
__builtin_expect(!!(tryResult1504.isErr()), 0))) { mozilla::dom
::quota::HandleError("storedFileInfo.GetInputStream()", tryResult1504
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19478, mozilla::dom::quota::Severity::Error); return tryResult1504
.propagateErr(); } const auto& inputStream = tryResult1504
.inspect();
;
19479
19480 if (inputStream) {
19481 if (fileHelper.isNothing()) {
19482 fileHelper.emplace(Transaction().GetDatabase().GetFileManagerPtr());
19483 QM_TRY(MOZ_TO_RESULT(fileHelper->Init()),{auto tryResult1505 = (ToResult(fileHelper->Init())); static_assert
(std::is_empty_v<typename decltype(tryResult1505)::ok_type
>); if ((__builtin_expect(!!(tryResult1505.isErr()), 0))) {
auto tryTempError = tryResult1505.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(fileHelper->Init())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19485
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19485, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(fileHelper->Init())"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
19484 NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR,{auto tryResult1505 = (ToResult(fileHelper->Init())); static_assert
(std::is_empty_v<typename decltype(tryResult1505)::ok_type
>); if ((__builtin_expect(!!(tryResult1505.isErr()), 0))) {
auto tryTempError = tryResult1505.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(fileHelper->Init())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19485
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19485, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(fileHelper->Init())"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
19485 IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult1505 = (ToResult(fileHelper->Init())); static_assert
(std::is_empty_v<typename decltype(tryResult1505)::ok_type
>); if ((__builtin_expect(!!(tryResult1505.isErr()), 0))) {
auto tryTempError = tryResult1505.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(fileHelper->Init())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19485
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19485, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(fileHelper->Init())"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
;
19486 }
19487
19488 const DatabaseFileInfo& fileInfo = storedFileInfo.GetFileInfo();
19489 const DatabaseFileManager& fileManager = fileInfo.Manager();
19490
19491 const auto file = fileHelper->GetFile(fileInfo);
19492 QM_TRY(OkIf(file), NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR,{auto tryResult1506 = (OkIf(file)); static_assert(std::is_empty_v
<typename decltype(tryResult1506)::ok_type>); if ((__builtin_expect
(!!(tryResult1506.isErr()), 0))) { auto tryTempError = tryResult1506
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(file)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19493
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19493, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(file)"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
19493 IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult1506 = (OkIf(file)); static_assert(std::is_empty_v
<typename decltype(tryResult1506)::ok_type>); if ((__builtin_expect
(!!(tryResult1506.isErr()), 0))) { auto tryTempError = tryResult1506
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(file)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19493
, mozilla::dom::quota::Severity::Error); [](const auto&) {
do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19493, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(file)"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
;
19494
19495 const auto journalFile = fileHelper->GetJournalFile(fileInfo);
19496 QM_TRY(OkIf(journalFile), NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR,{auto tryResult1507 = (OkIf(journalFile)); static_assert(std::
is_empty_v<typename decltype(tryResult1507)::ok_type>);
if ((__builtin_expect(!!(tryResult1507.isErr()), 0))) { auto
tryTempError = tryResult1507.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(journalFile)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19497, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19497, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(journalFile)"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
19497 IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult1507 = (OkIf(journalFile)); static_assert(std::
is_empty_v<typename decltype(tryResult1507)::ok_type>);
if ((__builtin_expect(!!(tryResult1507.isErr()), 0))) { auto
tryTempError = tryResult1507.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(journalFile)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19497, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19497, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(journalFile)"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
;
19498
19499 Maybe<CipherKey> maybeKey;
19500 if (fileManager.UsesEncryption()) {
19501 QM_TRY_UNWRAP(auto key,auto tryResult1508 = (fileManager.MutableCipherKeyManagerRef(
).Ensure( fileManager.CipherKeyIdForFile(fileInfo.Id()))); if
((__builtin_expect(!!(tryResult1508.isErr()), 0))) { mozilla
::dom::quota::HandleError("fileManager.MutableCipherKeyManagerRef().Ensure( fileManager.CipherKeyIdForFile(fileInfo.Id()))"
, tryResult1508.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19503, mozilla::dom::quota::Severity::Error); return tryResult1508
.propagateErr(); } auto key = tryResult1508.unwrap();
19502 fileManager.MutableCipherKeyManagerRef().Ensure(auto tryResult1508 = (fileManager.MutableCipherKeyManagerRef(
).Ensure( fileManager.CipherKeyIdForFile(fileInfo.Id()))); if
((__builtin_expect(!!(tryResult1508.isErr()), 0))) { mozilla
::dom::quota::HandleError("fileManager.MutableCipherKeyManagerRef().Ensure( fileManager.CipherKeyIdForFile(fileInfo.Id()))"
, tryResult1508.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19503, mozilla::dom::quota::Severity::Error); return tryResult1508
.propagateErr(); } auto key = tryResult1508.unwrap();
19503 fileManager.CipherKeyIdForFile(fileInfo.Id())))auto tryResult1508 = (fileManager.MutableCipherKeyManagerRef(
).Ensure( fileManager.CipherKeyIdForFile(fileInfo.Id()))); if
((__builtin_expect(!!(tryResult1508.isErr()), 0))) { mozilla
::dom::quota::HandleError("fileManager.MutableCipherKeyManagerRef().Ensure( fileManager.CipherKeyIdForFile(fileInfo.Id()))"
, tryResult1508.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19503, mozilla::dom::quota::Severity::Error); return tryResult1508
.propagateErr(); } auto key = tryResult1508.unwrap();
;
19504 maybeKey = Some(key);
19505 }
19506
19507 QM_TRY(MOZ_TO_RESULT(fileHelper->CreateFileFromStream({auto tryResult1510 = (ToResult(fileHelper->CreateFileFromStream
( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress
(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE
(rv) != 33) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19513, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1510)::ok_type>); if ((__builtin_expect
(!!(tryResult1510.isErr()), 0))) { auto tryTempError = tryResult1510
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19513, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19525, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1509 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1509)::ok_type>); if ((__builtin_expect
(!!(tryResult1509.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1509.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(fileManager.SyncDeleteFile(file, journalFile))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19524
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return ; }}; })(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19513, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
19508 *file, *journalFile, *inputStream,{auto tryResult1510 = (ToResult(fileHelper->CreateFileFromStream
( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress
(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE
(rv) != 33) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19513, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1510)::ok_type>); if ((__builtin_expect
(!!(tryResult1510.isErr()), 0))) { auto tryTempError = tryResult1510
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19513, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19525, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1509 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1509)::ok_type>); if ((__builtin_expect
(!!(tryResult1509.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1509.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(fileManager.SyncDeleteFile(file, journalFile))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19524
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return ; }}; })(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19513, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
19509 storedFileInfo.ShouldCompress(), maybeKey)){auto tryResult1510 = (ToResult(fileHelper->CreateFileFromStream
( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress
(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE
(rv) != 33) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19513, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1510)::ok_type>); if ((__builtin_expect
(!!(tryResult1510.isErr()), 0))) { auto tryTempError = tryResult1510
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19513, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19525, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1509 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1509)::ok_type>); if ((__builtin_expect
(!!(tryResult1509.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1509.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(fileManager.SyncDeleteFile(file, journalFile))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19524
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return ; }}; })(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19513, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
19510 .mapErr([](const nsresult rv) {{auto tryResult1510 = (ToResult(fileHelper->CreateFileFromStream
( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress
(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE
(rv) != 33) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19513, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1510)::ok_type>); if ((__builtin_expect
(!!(tryResult1510.isErr()), 0))) { auto tryTempError = tryResult1510
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19513, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19525, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1509 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1509)::ok_type>); if ((__builtin_expect
(!!(tryResult1509.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1509.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(fileManager.SyncDeleteFile(file, journalFile))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19524
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return ; }}; })(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19513, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
19511 if (NS_ERROR_GET_MODULE(rv) !={auto tryResult1510 = (ToResult(fileHelper->CreateFileFromStream
( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress
(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE
(rv) != 33) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19513, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1510)::ok_type>); if ((__builtin_expect
(!!(tryResult1510.isErr()), 0))) { auto tryTempError = tryResult1510
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19513, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19525, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1509 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1509)::ok_type>); if ((__builtin_expect
(!!(tryResult1509.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1509.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(fileManager.SyncDeleteFile(file, journalFile))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19524
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return ; }}; })(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19513, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
19512 NS_ERROR_MODULE_DOM_INDEXEDDB) {{auto tryResult1510 = (ToResult(fileHelper->CreateFileFromStream
( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress
(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE
(rv) != 33) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19513, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1510)::ok_type>); if ((__builtin_expect
(!!(tryResult1510.isErr()), 0))) { auto tryTempError = tryResult1510
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19513, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19525, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1509 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1509)::ok_type>); if ((__builtin_expect
(!!(tryResult1509.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1509.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(fileManager.SyncDeleteFile(file, journalFile))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19524
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return ; }}; })(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19513, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
19513 IDB_REPORT_INTERNAL_ERR();{auto tryResult1510 = (ToResult(fileHelper->CreateFileFromStream
( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress
(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE
(rv) != 33) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19513, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1510)::ok_type>); if ((__builtin_expect
(!!(tryResult1510.isErr()), 0))) { auto tryTempError = tryResult1510
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19513, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19525, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1509 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1509)::ok_type>); if ((__builtin_expect
(!!(tryResult1509.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1509.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(fileManager.SyncDeleteFile(file, journalFile))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19524
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return ; }}; })(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19513, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
19514 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;{auto tryResult1510 = (ToResult(fileHelper->CreateFileFromStream
( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress
(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE
(rv) != 33) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19513, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1510)::ok_type>); if ((__builtin_expect
(!!(tryResult1510.isErr()), 0))) { auto tryTempError = tryResult1510
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19513, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19525, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1509 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1509)::ok_type>); if ((__builtin_expect
(!!(tryResult1509.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1509.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(fileManager.SyncDeleteFile(file, journalFile))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19524
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return ; }}; })(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19513, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
19515 }{auto tryResult1510 = (ToResult(fileHelper->CreateFileFromStream
( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress
(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE
(rv) != 33) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19513, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1510)::ok_type>); if ((__builtin_expect
(!!(tryResult1510.isErr()), 0))) { auto tryTempError = tryResult1510
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19513, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19525, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1509 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1509)::ok_type>); if ((__builtin_expect
(!!(tryResult1509.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1509.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(fileManager.SyncDeleteFile(file, journalFile))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19524
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return ; }}; })(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19513, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
19516 return rv;{auto tryResult1510 = (ToResult(fileHelper->CreateFileFromStream
( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress
(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE
(rv) != 33) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19513, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1510)::ok_type>); if ((__builtin_expect
(!!(tryResult1510.isErr()), 0))) { auto tryTempError = tryResult1510
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19513, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19525, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1509 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1509)::ok_type>); if ((__builtin_expect
(!!(tryResult1509.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1509.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(fileManager.SyncDeleteFile(file, journalFile))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19524
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return ; }}; })(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19513, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
19517 }),{auto tryResult1510 = (ToResult(fileHelper->CreateFileFromStream
( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress
(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE
(rv) != 33) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19513, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1510)::ok_type>); if ((__builtin_expect
(!!(tryResult1510.isErr()), 0))) { auto tryTempError = tryResult1510
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19513, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19525, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1509 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1509)::ok_type>); if ((__builtin_expect
(!!(tryResult1509.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1509.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(fileManager.SyncDeleteFile(file, journalFile))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19524
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return ; }}; })(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19513, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
19518 QM_PROPAGATE,{auto tryResult1510 = (ToResult(fileHelper->CreateFileFromStream
( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress
(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE
(rv) != 33) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19513, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1510)::ok_type>); if ((__builtin_expect
(!!(tryResult1510.isErr()), 0))) { auto tryTempError = tryResult1510
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19513, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19525, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1509 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1509)::ok_type>); if ((__builtin_expect
(!!(tryResult1509.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1509.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(fileManager.SyncDeleteFile(file, journalFile))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19524
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return ; }}; })(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19513, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
19519 ([&fileManager, &file = *file,{auto tryResult1510 = (ToResult(fileHelper->CreateFileFromStream
( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress
(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE
(rv) != 33) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19513, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1510)::ok_type>); if ((__builtin_expect
(!!(tryResult1510.isErr()), 0))) { auto tryTempError = tryResult1510
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19513, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19525, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1509 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1509)::ok_type>); if ((__builtin_expect
(!!(tryResult1509.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1509.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(fileManager.SyncDeleteFile(file, journalFile))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19524
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return ; }}; })(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19513, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
19520 &journalFile = *journalFile](const auto) {{auto tryResult1510 = (ToResult(fileHelper->CreateFileFromStream
( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress
(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE
(rv) != 33) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19513, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1510)::ok_type>); if ((__builtin_expect
(!!(tryResult1510.isErr()), 0))) { auto tryTempError = tryResult1510
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19513, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19525, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1509 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1509)::ok_type>); if ((__builtin_expect
(!!(tryResult1509.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1509.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(fileManager.SyncDeleteFile(file, journalFile))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19524
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return ; }}; })(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19513, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
19521 // Try to remove the file if the copy failed.{auto tryResult1510 = (ToResult(fileHelper->CreateFileFromStream
( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress
(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE
(rv) != 33) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19513, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1510)::ok_type>); if ((__builtin_expect
(!!(tryResult1510.isErr()), 0))) { auto tryTempError = tryResult1510
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19513, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19525, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1509 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1509)::ok_type>); if ((__builtin_expect
(!!(tryResult1509.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1509.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(fileManager.SyncDeleteFile(file, journalFile))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19524
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return ; }}; })(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19513, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
19522 QM_TRY(MOZ_TO_RESULT({auto tryResult1510 = (ToResult(fileHelper->CreateFileFromStream
( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress
(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE
(rv) != 33) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19513, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1510)::ok_type>); if ((__builtin_expect
(!!(tryResult1510.isErr()), 0))) { auto tryTempError = tryResult1510
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19513, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19525, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1509 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1509)::ok_type>); if ((__builtin_expect
(!!(tryResult1509.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1509.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(fileManager.SyncDeleteFile(file, journalFile))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19524
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return ; }}; })(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19513, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
19523 fileManager.SyncDeleteFile(file, journalFile)),{auto tryResult1510 = (ToResult(fileHelper->CreateFileFromStream
( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress
(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE
(rv) != 33) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19513, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1510)::ok_type>); if ((__builtin_expect
(!!(tryResult1510.isErr()), 0))) { auto tryTempError = tryResult1510
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19513, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19525, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1509 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1509)::ok_type>); if ((__builtin_expect
(!!(tryResult1509.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1509.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(fileManager.SyncDeleteFile(file, journalFile))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19524
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return ; }}; })(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19513, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
19524 QM_VOID);{auto tryResult1510 = (ToResult(fileHelper->CreateFileFromStream
( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress
(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE
(rv) != 33) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19513, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1510)::ok_type>); if ((__builtin_expect
(!!(tryResult1510.isErr()), 0))) { auto tryTempError = tryResult1510
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19513, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19525, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1509 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1509)::ok_type>); if ((__builtin_expect
(!!(tryResult1509.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1509.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(fileManager.SyncDeleteFile(file, journalFile))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19524
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return ; }}; })(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19513, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
19525 })){auto tryResult1510 = (ToResult(fileHelper->CreateFileFromStream
( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress
(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE
(rv) != 33) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s"
, __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19513, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1510)::ok_type>); if ((__builtin_expect
(!!(tryResult1510.isErr()), 0))) { auto tryTempError = tryResult1510
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19513, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19525, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1509 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1509)::ok_type>); if ((__builtin_expect
(!!(tryResult1509.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1509.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(fileManager.SyncDeleteFile(file, journalFile))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19524
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return ; }}; })(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19513, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
;
19526
19527 storedFileInfo.NotifyWriteSucceeded();
19528 }
19529
19530 if (!fileIds.IsEmpty()) {
19531 fileIds.Append(' ');
19532 }
19533 storedFileInfo.Serialize(fileIds);
19534 }
19535
19536 QM_TRY(MOZ_TO_RESULT({auto tryResult1511 = (ToResult(stmt->BindStringByName(kStmtParamNameFileIds
, fileIds))); static_assert(std::is_empty_v<typename decltype
(tryResult1511)::ok_type>); if ((__builtin_expect(!!(tryResult1511
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindStringByName(kStmtParamNameFileIds, fileIds))"
, tryResult1511.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19537, mozilla::dom::quota::Severity::Error); return tryResult1511
.propagateErr(); }}
19537 stmt->BindStringByName(kStmtParamNameFileIds, fileIds))){auto tryResult1511 = (ToResult(stmt->BindStringByName(kStmtParamNameFileIds
, fileIds))); static_assert(std::is_empty_v<typename decltype
(tryResult1511)::ok_type>); if ((__builtin_expect(!!(tryResult1511
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindStringByName(kStmtParamNameFileIds, fileIds))"
, tryResult1511.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19537, mozilla::dom::quota::Severity::Error); return tryResult1511
.propagateErr(); }}
;
19538 } else {
19539 QM_TRY(MOZ_TO_RESULT(stmt->BindNullByName(kStmtParamNameFileIds))){auto tryResult1512 = (ToResult(stmt->BindNullByName(kStmtParamNameFileIds
))); static_assert(std::is_empty_v<typename decltype(tryResult1512
)::ok_type>); if ((__builtin_expect(!!(tryResult1512.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindNullByName(kStmtParamNameFileIds))"
, tryResult1512.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19539, mozilla::dom::quota::Severity::Error); return tryResult1512
.propagateErr(); }}
;
19540 }
19541
19542 QM_TRY(MOZ_TO_RESULT(stmt->Execute()), QM_PROPAGATE,{auto tryResult1513 = (ToResult(stmt->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult1513)::ok_type
>); if ((__builtin_expect(!!(tryResult1513.isErr()), 0))) {
auto tryTempError = tryResult1513.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(stmt->Execute())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19547
, mozilla::dom::quota::Severity::Error); [keyUnset = DebugOnly
{keyUnset}](const nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(!keyUnset)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!keyUnset))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!keyUnset" " (" "Generated key had a collision!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19545
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!keyUnset" ") (" "Generated key had a collision!"
")"); do { MOZ_CrashSequence(__null, 19545); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } }(
tryTempError); [[maybe_unused]] constexpr const auto& func
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "ToResult(stmt->Execute())", tryTempError, Err(tryTempError
)); }}
19543 [keyUnset = DebugOnly{keyUnset}](const nsresult rv) {{auto tryResult1513 = (ToResult(stmt->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult1513)::ok_type
>); if ((__builtin_expect(!!(tryResult1513.isErr()), 0))) {
auto tryTempError = tryResult1513.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(stmt->Execute())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19547
, mozilla::dom::quota::Severity::Error); [keyUnset = DebugOnly
{keyUnset}](const nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(!keyUnset)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!keyUnset))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!keyUnset" " (" "Generated key had a collision!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19545
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!keyUnset" ") (" "Generated key had a collision!"
")"); do { MOZ_CrashSequence(__null, 19545); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } }(
tryTempError); [[maybe_unused]] constexpr const auto& func
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "ToResult(stmt->Execute())", tryTempError, Err(tryTempError
)); }}
19544 if (rv == NS_ERROR_STORAGE_CONSTRAINT) {{auto tryResult1513 = (ToResult(stmt->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult1513)::ok_type
>); if ((__builtin_expect(!!(tryResult1513.isErr()), 0))) {
auto tryTempError = tryResult1513.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(stmt->Execute())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19547
, mozilla::dom::quota::Severity::Error); [keyUnset = DebugOnly
{keyUnset}](const nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(!keyUnset)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!keyUnset))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!keyUnset" " (" "Generated key had a collision!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19545
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!keyUnset" ") (" "Generated key had a collision!"
")"); do { MOZ_CrashSequence(__null, 19545); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } }(
tryTempError); [[maybe_unused]] constexpr const auto& func
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "ToResult(stmt->Execute())", tryTempError, Err(tryTempError
)); }}
19545 MOZ_ASSERT(!keyUnset, "Generated key had a collision!");{auto tryResult1513 = (ToResult(stmt->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult1513)::ok_type
>); if ((__builtin_expect(!!(tryResult1513.isErr()), 0))) {
auto tryTempError = tryResult1513.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(stmt->Execute())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19547
, mozilla::dom::quota::Severity::Error); [keyUnset = DebugOnly
{keyUnset}](const nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(!keyUnset)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!keyUnset))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!keyUnset" " (" "Generated key had a collision!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19545
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!keyUnset" ") (" "Generated key had a collision!"
")"); do { MOZ_CrashSequence(__null, 19545); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } }(
tryTempError); [[maybe_unused]] constexpr const auto& func
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "ToResult(stmt->Execute())", tryTempError, Err(tryTempError
)); }}
19546 }{auto tryResult1513 = (ToResult(stmt->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult1513)::ok_type
>); if ((__builtin_expect(!!(tryResult1513.isErr()), 0))) {
auto tryTempError = tryResult1513.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(stmt->Execute())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19547
, mozilla::dom::quota::Severity::Error); [keyUnset = DebugOnly
{keyUnset}](const nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(!keyUnset)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!keyUnset))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!keyUnset" " (" "Generated key had a collision!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19545
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!keyUnset" ") (" "Generated key had a collision!"
")"); do { MOZ_CrashSequence(__null, 19545); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } }(
tryTempError); [[maybe_unused]] constexpr const auto& func
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "ToResult(stmt->Execute())", tryTempError, Err(tryTempError
)); }}
19547 }){auto tryResult1513 = (ToResult(stmt->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult1513)::ok_type
>); if ((__builtin_expect(!!(tryResult1513.isErr()), 0))) {
auto tryTempError = tryResult1513.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(stmt->Execute())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19547
, mozilla::dom::quota::Severity::Error); [keyUnset = DebugOnly
{keyUnset}](const nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(!keyUnset)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!keyUnset))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!keyUnset" " (" "Generated key had a collision!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19545
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!keyUnset" ") (" "Generated key had a collision!"
")"); do { MOZ_CrashSequence(__null, 19545); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } }(
tryTempError); [[maybe_unused]] constexpr const auto& func
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "ToResult(stmt->Execute())", tryTempError, Err(tryTempError
)); }}
;
19548 }
19549
19550 // Update our indexes if needed.
19551 if (!mParams.indexUpdateInfos().IsEmpty()) {
19552 MOZ_ASSERT(mUniqueIndexTable.isSome())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mUniqueIndexTable.isSome())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mUniqueIndexTable.isSome()))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mUniqueIndexTable.isSome()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19552
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mUniqueIndexTable.isSome()"
")"); do { MOZ_CrashSequence(__null, 19552); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19553
19554 // Write the index_data_values column.
19555 QM_TRY_INSPECT(const auto& indexValues,auto tryResult1514 = (IndexDataValuesFromUpdateInfos(mParams.
indexUpdateInfos(), mUniqueIndexTable.ref())); if ((__builtin_expect
(!!(tryResult1514.isErr()), 0))) { mozilla::dom::quota::HandleError
("IndexDataValuesFromUpdateInfos(mParams.indexUpdateInfos(), mUniqueIndexTable.ref())"
, tryResult1514.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19557, mozilla::dom::quota::Severity::Error); return tryResult1514
.propagateErr(); } const auto& indexValues = tryResult1514
.inspect();
19556 IndexDataValuesFromUpdateInfos(mParams.indexUpdateInfos(),auto tryResult1514 = (IndexDataValuesFromUpdateInfos(mParams.
indexUpdateInfos(), mUniqueIndexTable.ref())); if ((__builtin_expect
(!!(tryResult1514.isErr()), 0))) { mozilla::dom::quota::HandleError
("IndexDataValuesFromUpdateInfos(mParams.indexUpdateInfos(), mUniqueIndexTable.ref())"
, tryResult1514.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19557, mozilla::dom::quota::Severity::Error); return tryResult1514
.propagateErr(); } const auto& indexValues = tryResult1514
.inspect();
19557 mUniqueIndexTable.ref()))auto tryResult1514 = (IndexDataValuesFromUpdateInfos(mParams.
indexUpdateInfos(), mUniqueIndexTable.ref())); if ((__builtin_expect
(!!(tryResult1514.isErr()), 0))) { mozilla::dom::quota::HandleError
("IndexDataValuesFromUpdateInfos(mParams.indexUpdateInfos(), mUniqueIndexTable.ref())"
, tryResult1514.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19557, mozilla::dom::quota::Severity::Error); return tryResult1514
.propagateErr(); } const auto& indexValues = tryResult1514
.inspect();
;
19558
19559 QM_TRY({auto tryResult1515 = (ToResult(UpdateIndexValues(aConnection
, osid, key, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1515)::ok_type>); if ((__builtin_expect
(!!(tryResult1515.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(UpdateIndexValues(aConnection, osid, key, indexValues))"
, tryResult1515.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19560, mozilla::dom::quota::Severity::Error); return tryResult1515
.propagateErr(); }}
19560 MOZ_TO_RESULT(UpdateIndexValues(aConnection, osid, key, indexValues))){auto tryResult1515 = (ToResult(UpdateIndexValues(aConnection
, osid, key, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1515)::ok_type>); if ((__builtin_expect
(!!(tryResult1515.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(UpdateIndexValues(aConnection, osid, key, indexValues))"
, tryResult1515.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19560, mozilla::dom::quota::Severity::Error); return tryResult1515
.propagateErr(); }}
;
19561
19562 QM_TRY(MOZ_TO_RESULT({auto tryResult1516 = (ToResult(InsertIndexTableRows(aConnection
, osid, key, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1516)::ok_type>); if ((__builtin_expect
(!!(tryResult1516.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(InsertIndexTableRows(aConnection, osid, key, indexValues))"
, tryResult1516.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19563, mozilla::dom::quota::Severity::Error); return tryResult1516
.propagateErr(); }}
19563 InsertIndexTableRows(aConnection, osid, key, indexValues))){auto tryResult1516 = (ToResult(InsertIndexTableRows(aConnection
, osid, key, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1516)::ok_type>); if ((__builtin_expect
(!!(tryResult1516.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(InsertIndexTableRows(aConnection, osid, key, indexValues))"
, tryResult1516.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19563, mozilla::dom::quota::Severity::Error); return tryResult1516
.propagateErr(); }}
;
19564 }
19565
19566 QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult1517 = (ToResult(autoSave.Commit())); static_assert
(std::is_empty_v<typename decltype(tryResult1517)::ok_type
>); if ((__builtin_expect(!!(tryResult1517.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())"
, tryResult1517.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19566, mozilla::dom::quota::Severity::Error); return tryResult1517
.propagateErr(); }}
;
19567
19568 if (autoIncrementNum) {
19569 {
19570 auto&& lockedAutoIncrementIds = mMetadata->mAutoIncrementIds.Lock();
19571
19572 lockedAutoIncrementIds->next = autoIncrementNum + 1;
19573 }
19574
19575 Transaction().NoteModifiedAutoIncrementObjectStore(mMetadata);
19576 }
19577
19578 return NS_OK;
19579}
19580
19581void ObjectStoreAddOrPutRequestOp::GetResponse(RequestResponse& aResponse,
19582 size_t* aResponseSize) {
19583 AssertIsOnOwningThread();
19584
19585 if (mOverwrite) {
19586 aResponse = ObjectStorePutResponse(mResponse);
19587 *aResponseSize = mResponse.GetBuffer().Length();
19588 } else {
19589 aResponse = ObjectStoreAddResponse(mResponse);
19590 *aResponseSize = mResponse.GetBuffer().Length();
19591 }
19592}
19593
19594void ObjectStoreAddOrPutRequestOp::Cleanup() {
19595 AssertIsOnOwningThread();
19596
19597 mStoredFileInfos.Clear();
19598
19599 NormalTransactionOp::Cleanup();
19600}
19601
19602NS_IMPL_ISUPPORTS(ObjectStoreAddOrPutRequestOp::SCInputStream, nsIInputStream)MozExternalRefCountType ObjectStoreAddOrPutRequestOp::SCInputStream
::AddRef(void) { static_assert(!std::is_destructible_v<ObjectStoreAddOrPutRequestOp
::SCInputStream>, "Reference-counted class " "ObjectStoreAddOrPutRequestOp::SCInputStream"
" should not have a public destructor. " "Make this class's destructor non-public"
); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(int32_t(mRefCnt) >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0"
" (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 19602
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); do { static_assert( mozilla::detail::AssertionConditionType
<decltype("ObjectStoreAddOrPutRequestOp::SCInputStream" !=
nullptr)>::isValid, "invalid assertion condition"); if ((
__builtin_expect(!!(!(!!("ObjectStoreAddOrPutRequestOp::SCInputStream"
!= nullptr))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("\"ObjectStoreAddOrPutRequestOp::SCInputStream\" != nullptr"
" (" "Must specify a name" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"ObjectStoreAddOrPutRequestOp::SCInputStream\" != nullptr"
") (" "Must specify a name" ")"); do { MOZ_CrashSequence(__null
, 19602); __attribute__((nomerge)) ::abort(); } while (false)
; } } while (false); if (!mRefCnt.isThreadSafe) _mOwningThread
.AssertOwnership("ObjectStoreAddOrPutRequestOp::SCInputStream"
" not thread-safe"); nsrefcnt count = ++mRefCnt; NS_LogAddRef
((this), (count), ("ObjectStoreAddOrPutRequestOp::SCInputStream"
), (uint32_t)(sizeof(*this))); return count; } MozExternalRefCountType
ObjectStoreAddOrPutRequestOp::SCInputStream::Release(void) {
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0"
" (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 19602
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); do { static_assert( mozilla::detail::AssertionConditionType
<decltype("ObjectStoreAddOrPutRequestOp::SCInputStream" !=
nullptr)>::isValid, "invalid assertion condition"); if ((
__builtin_expect(!!(!(!!("ObjectStoreAddOrPutRequestOp::SCInputStream"
!= nullptr))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("\"ObjectStoreAddOrPutRequestOp::SCInputStream\" != nullptr"
" (" "Must specify a name" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"ObjectStoreAddOrPutRequestOp::SCInputStream\" != nullptr"
") (" "Must specify a name" ")"); do { MOZ_CrashSequence(__null
, 19602); __attribute__((nomerge)) ::abort(); } while (false)
; } } while (false); if (!mRefCnt.isThreadSafe) _mOwningThread
.AssertOwnership("ObjectStoreAddOrPutRequestOp::SCInputStream"
" not thread-safe"); const char* const nametmp = "ObjectStoreAddOrPutRequestOp::SCInputStream"
; nsrefcnt count = --mRefCnt; NS_LogRelease((this), (count), (
nametmp)); if (count == 0) { mRefCnt = 1; delete (this); return
0; } return count; } nsresult ObjectStoreAddOrPutRequestOp::
SCInputStream::QueryInterface(const nsIID& aIID, void** aInstancePtr
) { do { if (!(aInstancePtr)) { NS_DebugBreak(NS_DEBUG_ASSERTION
, "QueryInterface requires a non-NULL destination!", "aInstancePtr"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19602
); MOZ_PretendNoReturn(); } } while (0); nsresult rv = NS_ERROR_FAILURE
; static_assert(1 > 0, "Need more arguments to NS_INTERFACE_TABLE"
); static const QITableEntry table[] = { {&mozilla::detail
::kImplementedIID<ObjectStoreAddOrPutRequestOp::SCInputStream
, nsIInputStream>, int32_t( reinterpret_cast<char*>(
static_cast<nsIInputStream*>((ObjectStoreAddOrPutRequestOp
::SCInputStream*)0x1000)) - reinterpret_cast<char*>((ObjectStoreAddOrPutRequestOp
::SCInputStream*)0x1000))}, {&mozilla::detail::kImplementedIID
<ObjectStoreAddOrPutRequestOp::SCInputStream, nsISupports>
, int32_t(reinterpret_cast<char*>(static_cast<nsISupports
*>( static_cast<nsIInputStream*>((ObjectStoreAddOrPutRequestOp
::SCInputStream*)0x1000))) - reinterpret_cast<char*>((ObjectStoreAddOrPutRequestOp
::SCInputStream*)0x1000))}, { nullptr, 0 } } ; static_assert(
std::size(table) > 1, "need at least 1 interface"); rv = NS_TableDrivenQI
(static_cast<void*>(this), aIID, aInstancePtr, table); return
rv; }
19603
19604NS_IMETHODIMPnsresult
19605ObjectStoreAddOrPutRequestOp::SCInputStream::Close() { return NS_OK; }
19606
19607NS_IMETHODIMPnsresult
19608ObjectStoreAddOrPutRequestOp::SCInputStream::Available(uint64_t* _retval) {
19609 return NS_ERROR_NOT_IMPLEMENTED;
19610}
19611
19612NS_IMETHODIMPnsresult
19613ObjectStoreAddOrPutRequestOp::SCInputStream::StreamStatus() { return NS_OK; }
19614
19615NS_IMETHODIMPnsresult
19616ObjectStoreAddOrPutRequestOp::SCInputStream::Read(char* aBuf, uint32_t aCount,
19617 uint32_t* _retval) {
19618 return ReadSegments(NS_CopySegmentToBuffer, aBuf, aCount, _retval);
19619}
19620
19621NS_IMETHODIMPnsresult
19622ObjectStoreAddOrPutRequestOp::SCInputStream::ReadSegments(
19623 nsWriteSegmentFun aWriter, void* aClosure, uint32_t aCount,
19624 uint32_t* _retval) {
19625 *_retval = 0;
19626
19627 while (aCount) {
19628 uint32_t count = std::min(uint32_t(mIter.RemainingInSegment()), aCount);
19629 if (!count) {
19630 // We've run out of data in the last segment.
19631 break;
19632 }
19633
19634 uint32_t written;
19635 nsresult rv =
19636 aWriter(this, aClosure, mIter.Data(), *_retval, count, &written);
19637 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19637)
) {
19638 // InputStreams do not propagate errors to caller.
19639 return NS_OK;
19640 }
19641
19642 // Writer should write what we asked it to write.
19643 MOZ_ASSERT(written == count)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(written == count)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(written == count))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("written == count"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19643
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "written == count"
")"); do { MOZ_CrashSequence(__null, 19643); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19644
19645 *_retval += count;
19646 aCount -= count;
19647
19648 if (NS_WARN_IF(!mData.Advance(mIter, count))NS_warn_if_impl(!mData.Advance(mIter, count), "!mData.Advance(mIter, count)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19648
)
) {
19649 // InputStreams do not propagate errors to caller.
19650 return NS_OK;
19651 }
19652 }
19653
19654 return NS_OK;
19655}
19656
19657NS_IMETHODIMPnsresult
19658ObjectStoreAddOrPutRequestOp::SCInputStream::IsNonBlocking(bool* _retval) {
19659 *_retval = false;
19660 return NS_OK;
19661}
19662
19663ObjectStoreGetRequestOp::ObjectStoreGetRequestOp(
19664 SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId,
19665 const RequestParams& aParams, bool aGetAll)
19666 : NormalTransactionOp(std::move(aTransaction), aRequestId),
19667 mObjectStoreId(aGetAll
19668 ? aParams.get_ObjectStoreGetAllParams().objectStoreId()
19669 : aParams.get_ObjectStoreGetParams().objectStoreId()),
19670 mDatabase(Transaction().GetDatabasePtr()),
19671 mOptionalKeyRange(
19672 aGetAll ? aParams.get_ObjectStoreGetAllParams()
19673 .options()
19674 .optionalKeyRange()
19675 : Some(aParams.get_ObjectStoreGetParams().keyRange())),
19676 mBackgroundParent(Transaction().GetBackgroundParent()),
19677 mPreprocessInfoCount(0),
19678 mLimit(aGetAll ? aParams.get_ObjectStoreGetAllParams().options().limit()
19679 : 1),
19680 mDirection(
19681 aGetAll ? aParams.get_ObjectStoreGetAllParams().options().direction()
19682 : IDBCursorDirection::Next),
19683 mGetAll(aGetAll) {
19684 MOZ_ASSERT(aParams.type() == RequestParams::TObjectStoreGetParams ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() == RequestParams::TObjectStoreGetParams
|| aParams.type() == RequestParams::TObjectStoreGetAllParams
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aParams.type() == RequestParams::TObjectStoreGetParams
|| aParams.type() == RequestParams::TObjectStoreGetAllParams
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"aParams.type() == RequestParams::TObjectStoreGetParams || aParams.type() == RequestParams::TObjectStoreGetAllParams"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19685
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TObjectStoreGetParams || aParams.type() == RequestParams::TObjectStoreGetAllParams"
")"); do { MOZ_CrashSequence(__null, 19685); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
19685 aParams.type() == RequestParams::TObjectStoreGetAllParams)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() == RequestParams::TObjectStoreGetParams
|| aParams.type() == RequestParams::TObjectStoreGetAllParams
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aParams.type() == RequestParams::TObjectStoreGetParams
|| aParams.type() == RequestParams::TObjectStoreGetAllParams
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"aParams.type() == RequestParams::TObjectStoreGetParams || aParams.type() == RequestParams::TObjectStoreGetAllParams"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19685
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TObjectStoreGetParams || aParams.type() == RequestParams::TObjectStoreGetAllParams"
")"); do { MOZ_CrashSequence(__null, 19685); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19686 MOZ_ASSERT(mObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mObjectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mObjectStoreId))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mObjectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19686
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mObjectStoreId" ")"
); do { MOZ_CrashSequence(__null, 19686); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
19687 MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDatabase)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19687); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase"
")"); do { MOZ_CrashSequence(__null, 19687); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19688 MOZ_ASSERT_IF(!aGetAll, mOptionalKeyRange.isSome())do { if (!aGetAll) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(mOptionalKeyRange.isSome())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOptionalKeyRange.isSome()))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOptionalKeyRange.isSome()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19688
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOptionalKeyRange.isSome()"
")"); do { MOZ_CrashSequence(__null, 19688); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19689 MOZ_ASSERT(mBackgroundParent)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mBackgroundParent)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mBackgroundParent))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("mBackgroundParent"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19689
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mBackgroundParent"
")"); do { MOZ_CrashSequence(__null, 19689); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19690}
19691
19692template <typename T>
19693Result<T, nsresult> ConvertResponse(const SafeRefPtr<Database>& aDatabase,
19694 StructuredCloneReadInfoParent&& aInfo) {
19695 static_assert(std::is_same_v<T, SerializedStructuredCloneReadInfo> ||
19696 std::is_same_v<T, PreprocessInfo>);
19697
19698 T result;
19699
19700 if constexpr (std::is_same_v<T, SerializedStructuredCloneReadInfo>) {
19701 result.data().data = aInfo.ReleaseData();
19702 result.hasPreprocessInfo() = aInfo.HasPreprocessInfo();
19703 }
19704
19705 QM_TRY_UNWRAP(result.files(), SerializeStructuredCloneFiles(auto tryResult1518 = (SerializeStructuredCloneFiles( aDatabase
, aInfo.Files(), std::is_same_v<T, PreprocessInfo>)); if
((__builtin_expect(!!(tryResult1518.isErr()), 0))) { mozilla
::dom::quota::HandleError("SerializeStructuredCloneFiles( aDatabase, aInfo.Files(), std::is_same_v<T, PreprocessInfo>)"
, tryResult1518.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19707, mozilla::dom::quota::Severity::Error); return tryResult1518
.propagateErr(); } result.files() = tryResult1518.unwrap();
19706 aDatabase, aInfo.Files(),auto tryResult1518 = (SerializeStructuredCloneFiles( aDatabase
, aInfo.Files(), std::is_same_v<T, PreprocessInfo>)); if
((__builtin_expect(!!(tryResult1518.isErr()), 0))) { mozilla
::dom::quota::HandleError("SerializeStructuredCloneFiles( aDatabase, aInfo.Files(), std::is_same_v<T, PreprocessInfo>)"
, tryResult1518.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19707, mozilla::dom::quota::Severity::Error); return tryResult1518
.propagateErr(); } result.files() = tryResult1518.unwrap();
19707 std::is_same_v<T, PreprocessInfo>))auto tryResult1518 = (SerializeStructuredCloneFiles( aDatabase
, aInfo.Files(), std::is_same_v<T, PreprocessInfo>)); if
((__builtin_expect(!!(tryResult1518.isErr()), 0))) { mozilla
::dom::quota::HandleError("SerializeStructuredCloneFiles( aDatabase, aInfo.Files(), std::is_same_v<T, PreprocessInfo>)"
, tryResult1518.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19707, mozilla::dom::quota::Severity::Error); return tryResult1518
.propagateErr(); } result.files() = tryResult1518.unwrap();
;
19708
19709 return result;
19710}
19711
19712nsresult ObjectStoreGetRequestOp::DoDatabaseWork(
19713 DatabaseConnection* aConnection) {
19714 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19714); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 19714); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19715 aConnection->AssertIsOnConnectionThread();
19716 MOZ_ASSERT_IF(!mGetAll, mOptionalKeyRange.isSome())do { if (!mGetAll) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(mOptionalKeyRange.isSome())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOptionalKeyRange.isSome()))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOptionalKeyRange.isSome()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19716
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOptionalKeyRange.isSome()"
")"); do { MOZ_CrashSequence(__null, 19716); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19717 MOZ_ASSERT_IF(!mGetAll, mLimit == 1)do { if (!mGetAll) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(mLimit == 1)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mLimit == 1))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mLimit == 1", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19717); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLimit == 1"
")"); do { MOZ_CrashSequence(__null, 19717); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19718 MOZ_ASSERT_IF(!mGetAll, mDirection == IDBCursorDirection::Next)do { if (!mGetAll) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(mDirection == IDBCursorDirection::Next)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mDirection == IDBCursorDirection::Next))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mDirection == IDBCursorDirection::Next"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19718
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirection == IDBCursorDirection::Next"
")"); do { MOZ_CrashSequence(__null, 19718); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19719
19720 AUTO_PROFILER_LABEL("ObjectStoreGetRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject19720( "ObjectStoreGetRequestOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
19721
19722 const nsCString query =
19723 "SELECT file_ids, data "
19724 "FROM object_data "
19725 "WHERE object_store_id = :"_ns +
19726 kStmtParamNameObjectStoreId +
19727 MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameKey) +
19728 MakeDirectionClause(mDirection) +
19729 (mLimit ? " LIMIT "_ns + IntToCString(mLimit) : EmptyCString());
19730
19731 QM_TRY_INSPECT(const auto& stmt, aConnection->BorrowCachedStatement(query))auto tryResult1519 = (aConnection->BorrowCachedStatement(query
)); if ((__builtin_expect(!!(tryResult1519.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement(query)"
, tryResult1519.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19731, mozilla::dom::quota::Severity::Error); return tryResult1519
.propagateErr(); } const auto& stmt = tryResult1519.inspect
();
;
19732
19733 QM_TRY(MOZ_TO_RESULT({auto tryResult1520 = (ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId
, mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1520)::ok_type>); if ((__builtin_expect
(!!(tryResult1520.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId, mObjectStoreId))"
, tryResult1520.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19734, mozilla::dom::quota::Severity::Error); return tryResult1520
.propagateErr(); }}
19734 stmt->BindInt64ByName(kStmtParamNameObjectStoreId, mObjectStoreId))){auto tryResult1520 = (ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId
, mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1520)::ok_type>); if ((__builtin_expect
(!!(tryResult1520.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId, mObjectStoreId))"
, tryResult1520.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19734, mozilla::dom::quota::Severity::Error); return tryResult1520
.propagateErr(); }}
;
19735
19736 if (mOptionalKeyRange.isSome()) {
19737 QM_TRY(MOZ_TO_RESULT({auto tryResult1521 = (ToResult(BindKeyRangeToStatement(mOptionalKeyRange
.ref(), &*stmt))); static_assert(std::is_empty_v<typename
decltype(tryResult1521)::ok_type>); if ((__builtin_expect
(!!(tryResult1521.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))"
, tryResult1521.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19738, mozilla::dom::quota::Severity::Error); return tryResult1521
.propagateErr(); }}
19738 BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))){auto tryResult1521 = (ToResult(BindKeyRangeToStatement(mOptionalKeyRange
.ref(), &*stmt))); static_assert(std::is_empty_v<typename
decltype(tryResult1521)::ok_type>); if ((__builtin_expect
(!!(tryResult1521.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))"
, tryResult1521.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19738, mozilla::dom::quota::Severity::Error); return tryResult1521
.propagateErr(); }}
;
19739 }
19740
19741 QM_TRY(CollectWhileHasResult({auto tryResult1524 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1522 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1522.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1522.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19745, mozilla::dom::quota::Severity::Error); return tryResult1522
.propagateErr(); } auto cloneInfo = tryResult1522.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {
auto tryResult1523 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1523)::ok_type>); if ((__builtin_expect
(!!(tryResult1523.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1523.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19752, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1524
)::ok_type>); if ((__builtin_expect(!!(tryResult1524.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1522 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1522.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19745, mozilla::dom::quota::Severity::Error); return tryResult1522.propagateErr(); } auto cloneInfo = tryResult1522.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1523 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1523)::ok_type>); if ((__builtin_expect(!!(tryResult1523.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1523.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19752, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1524.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19755, mozilla::dom::quota::Severity::Error); return tryResult1524
.propagateErr(); }}
19742 *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> {{auto tryResult1524 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1522 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1522.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1522.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19745, mozilla::dom::quota::Severity::Error); return tryResult1522
.propagateErr(); } auto cloneInfo = tryResult1522.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {
auto tryResult1523 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1523)::ok_type>); if ((__builtin_expect
(!!(tryResult1523.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1523.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19752, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1524
)::ok_type>); if ((__builtin_expect(!!(tryResult1524.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1522 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1522.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19745, mozilla::dom::quota::Severity::Error); return tryResult1522.propagateErr(); } auto cloneInfo = tryResult1522.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1523 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1523)::ok_type>); if ((__builtin_expect(!!(tryResult1523.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1523.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19752, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1524.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19755, mozilla::dom::quota::Severity::Error); return tryResult1524
.propagateErr(); }}
19743 QM_TRY_UNWRAP(auto cloneInfo,{auto tryResult1524 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1522 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1522.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1522.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19745, mozilla::dom::quota::Severity::Error); return tryResult1522
.propagateErr(); } auto cloneInfo = tryResult1522.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {
auto tryResult1523 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1523)::ok_type>); if ((__builtin_expect
(!!(tryResult1523.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1523.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19752, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1524
)::ok_type>); if ((__builtin_expect(!!(tryResult1524.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1522 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1522.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19745, mozilla::dom::quota::Severity::Error); return tryResult1522.propagateErr(); } auto cloneInfo = tryResult1522.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1523 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1523)::ok_type>); if ((__builtin_expect(!!(tryResult1523.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1523.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19752, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1524.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19755, mozilla::dom::quota::Severity::Error); return tryResult1524
.propagateErr(); }}
19744 GetStructuredCloneReadInfoFromStatement({auto tryResult1524 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1522 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1522.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1522.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19745, mozilla::dom::quota::Severity::Error); return tryResult1522
.propagateErr(); } auto cloneInfo = tryResult1522.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {
auto tryResult1523 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1523)::ok_type>); if ((__builtin_expect
(!!(tryResult1523.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1523.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19752, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1524
)::ok_type>); if ((__builtin_expect(!!(tryResult1524.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1522 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1522.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19745, mozilla::dom::quota::Severity::Error); return tryResult1522.propagateErr(); } auto cloneInfo = tryResult1522.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1523 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1523)::ok_type>); if ((__builtin_expect(!!(tryResult1523.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1523.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19752, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1524.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19755, mozilla::dom::quota::Severity::Error); return tryResult1524
.propagateErr(); }}
19745 &stmt, 1, 0, mDatabase->GetFileManager()));{auto tryResult1524 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1522 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1522.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1522.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19745, mozilla::dom::quota::Severity::Error); return tryResult1522
.propagateErr(); } auto cloneInfo = tryResult1522.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {
auto tryResult1523 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1523)::ok_type>); if ((__builtin_expect
(!!(tryResult1523.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1523.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19752, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1524
)::ok_type>); if ((__builtin_expect(!!(tryResult1524.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1522 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1522.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19745, mozilla::dom::quota::Severity::Error); return tryResult1522.propagateErr(); } auto cloneInfo = tryResult1522.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1523 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1523)::ok_type>); if ((__builtin_expect(!!(tryResult1523.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1523.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19752, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1524.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19755, mozilla::dom::quota::Severity::Error); return tryResult1524
.propagateErr(); }}
19746
19747 if (cloneInfo.HasPreprocessInfo()) {{auto tryResult1524 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1522 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1522.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1522.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19745, mozilla::dom::quota::Severity::Error); return tryResult1522
.propagateErr(); } auto cloneInfo = tryResult1522.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {
auto tryResult1523 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1523)::ok_type>); if ((__builtin_expect
(!!(tryResult1523.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1523.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19752, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1524
)::ok_type>); if ((__builtin_expect(!!(tryResult1524.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1522 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1522.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19745, mozilla::dom::quota::Severity::Error); return tryResult1522.propagateErr(); } auto cloneInfo = tryResult1522.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1523 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1523)::ok_type>); if ((__builtin_expect(!!(tryResult1523.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1523.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19752, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1524.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19755, mozilla::dom::quota::Severity::Error); return tryResult1524
.propagateErr(); }}
19748 mPreprocessInfoCount++;{auto tryResult1524 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1522 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1522.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1522.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19745, mozilla::dom::quota::Severity::Error); return tryResult1522
.propagateErr(); } auto cloneInfo = tryResult1522.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {
auto tryResult1523 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1523)::ok_type>); if ((__builtin_expect
(!!(tryResult1523.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1523.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19752, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1524
)::ok_type>); if ((__builtin_expect(!!(tryResult1524.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1522 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1522.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19745, mozilla::dom::quota::Severity::Error); return tryResult1522.propagateErr(); } auto cloneInfo = tryResult1522.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1523 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1523)::ok_type>); if ((__builtin_expect(!!(tryResult1523.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1523.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19752, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1524.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19755, mozilla::dom::quota::Severity::Error); return tryResult1524
.propagateErr(); }}
19749 }{auto tryResult1524 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1522 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1522.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1522.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19745, mozilla::dom::quota::Severity::Error); return tryResult1522
.propagateErr(); } auto cloneInfo = tryResult1522.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {
auto tryResult1523 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1523)::ok_type>); if ((__builtin_expect
(!!(tryResult1523.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1523.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19752, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1524
)::ok_type>); if ((__builtin_expect(!!(tryResult1524.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1522 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1522.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19745, mozilla::dom::quota::Severity::Error); return tryResult1522.propagateErr(); } auto cloneInfo = tryResult1522.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1523 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1523)::ok_type>); if ((__builtin_expect(!!(tryResult1523.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1523.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19752, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1524.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19755, mozilla::dom::quota::Severity::Error); return tryResult1524
.propagateErr(); }}
19750
19751 QM_TRY(OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo))),{auto tryResult1524 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1522 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1522.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1522.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19745, mozilla::dom::quota::Severity::Error); return tryResult1522
.propagateErr(); } auto cloneInfo = tryResult1522.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {
auto tryResult1523 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1523)::ok_type>); if ((__builtin_expect
(!!(tryResult1523.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1523.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19752, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1524
)::ok_type>); if ((__builtin_expect(!!(tryResult1524.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1522 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1522.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19745, mozilla::dom::quota::Severity::Error); return tryResult1522.propagateErr(); } auto cloneInfo = tryResult1522.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1523 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1523)::ok_type>); if ((__builtin_expect(!!(tryResult1523.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1523.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19752, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1524.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19755, mozilla::dom::quota::Severity::Error); return tryResult1524
.propagateErr(); }}
19752 Err(NS_ERROR_OUT_OF_MEMORY));{auto tryResult1524 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1522 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1522.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1522.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19745, mozilla::dom::quota::Severity::Error); return tryResult1522
.propagateErr(); } auto cloneInfo = tryResult1522.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {
auto tryResult1523 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1523)::ok_type>); if ((__builtin_expect
(!!(tryResult1523.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1523.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19752, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1524
)::ok_type>); if ((__builtin_expect(!!(tryResult1524.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1522 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1522.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19745, mozilla::dom::quota::Severity::Error); return tryResult1522.propagateErr(); } auto cloneInfo = tryResult1522.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1523 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1523)::ok_type>); if ((__builtin_expect(!!(tryResult1523.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1523.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19752, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1524.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19755, mozilla::dom::quota::Severity::Error); return tryResult1524
.propagateErr(); }}
19753
19754 return Ok{};{auto tryResult1524 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1522 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1522.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1522.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19745, mozilla::dom::quota::Severity::Error); return tryResult1522
.propagateErr(); } auto cloneInfo = tryResult1522.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {
auto tryResult1523 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1523)::ok_type>); if ((__builtin_expect
(!!(tryResult1523.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1523.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19752, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1524
)::ok_type>); if ((__builtin_expect(!!(tryResult1524.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1522 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1522.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19745, mozilla::dom::quota::Severity::Error); return tryResult1522.propagateErr(); } auto cloneInfo = tryResult1522.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1523 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1523)::ok_type>); if ((__builtin_expect(!!(tryResult1523.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1523.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19752, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1524.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19755, mozilla::dom::quota::Severity::Error); return tryResult1524
.propagateErr(); }}
19755 })){auto tryResult1524 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1522 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1522.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1522.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19745, mozilla::dom::quota::Severity::Error); return tryResult1522
.propagateErr(); } auto cloneInfo = tryResult1522.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {
auto tryResult1523 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1523)::ok_type>); if ((__builtin_expect
(!!(tryResult1523.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1523.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19752, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1524
)::ok_type>); if ((__builtin_expect(!!(tryResult1524.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1522 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1522.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19745, mozilla::dom::quota::Severity::Error); return tryResult1522.propagateErr(); } auto cloneInfo = tryResult1522.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1523 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1523)::ok_type>); if ((__builtin_expect(!!(tryResult1523.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1523.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19752, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1524.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19755, mozilla::dom::quota::Severity::Error); return tryResult1524
.propagateErr(); }}
;
19756
19757 MOZ_ASSERT_IF(!mGetAll, mResponse.Length() <= 1)do { if (!mGetAll) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(mResponse.Length() <= 1)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mResponse.Length() <= 1))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mResponse.Length() <= 1"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19757
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.Length() <= 1"
")"); do { MOZ_CrashSequence(__null, 19757); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19758
19759 return NS_OK;
19760}
19761
19762bool ObjectStoreGetRequestOp::HasPreprocessInfo() {
19763 return mPreprocessInfoCount > 0;
19764}
19765
19766Result<PreprocessParams, nsresult>
19767ObjectStoreGetRequestOp::GetPreprocessParams() {
19768 AssertIsOnOwningThread();
19769 MOZ_ASSERT(!mResponse.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mResponse.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mResponse.IsEmpty()))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("!mResponse.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19769
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mResponse.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 19769); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19770
19771 if (mGetAll) {
19772 auto params = ObjectStoreGetAllPreprocessParams();
19773
19774 auto& preprocessInfos = params.preprocessInfos();
19775 if (NS_WARN_IF(NS_warn_if_impl(!preprocessInfos.SetCapacity(mPreprocessInfoCount
, fallible), "!preprocessInfos.SetCapacity(mPreprocessInfoCount, fallible)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19776
)
19776 !preprocessInfos.SetCapacity(mPreprocessInfoCount, fallible))NS_warn_if_impl(!preprocessInfos.SetCapacity(mPreprocessInfoCount
, fallible), "!preprocessInfos.SetCapacity(mPreprocessInfoCount, fallible)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19776
)
) {
19777 return Err(NS_ERROR_OUT_OF_MEMORY);
19778 }
19779
19780 QM_TRY(TransformIfAbortOnErr({auto tryResult1525 = (TransformIfAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, MakeBackInserter(preprocessInfos), [](const auto& info)
{ return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent
&& info) { return ConvertResponse<PreprocessInfo>
(self.mDatabase, std::move(info)); })); static_assert(std::is_empty_v
<typename decltype(tryResult1525)::ok_type>); if ((__builtin_expect
(!!(tryResult1525.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIfAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), MakeBackInserter(preprocessInfos), [](const auto& info) { return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent&& info) { return ConvertResponse<PreprocessInfo>(self.mDatabase, std::move(info)); })"
, tryResult1525.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19788, mozilla::dom::quota::Severity::Error); return tryResult1525
.propagateErr(); }}
19781 std::make_move_iterator(mResponse.begin()),{auto tryResult1525 = (TransformIfAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, MakeBackInserter(preprocessInfos), [](const auto& info)
{ return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent
&& info) { return ConvertResponse<PreprocessInfo>
(self.mDatabase, std::move(info)); })); static_assert(std::is_empty_v
<typename decltype(tryResult1525)::ok_type>); if ((__builtin_expect
(!!(tryResult1525.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIfAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), MakeBackInserter(preprocessInfos), [](const auto& info) { return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent&& info) { return ConvertResponse<PreprocessInfo>(self.mDatabase, std::move(info)); })"
, tryResult1525.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19788, mozilla::dom::quota::Severity::Error); return tryResult1525
.propagateErr(); }}
19782 std::make_move_iterator(mResponse.end()),{auto tryResult1525 = (TransformIfAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, MakeBackInserter(preprocessInfos), [](const auto& info)
{ return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent
&& info) { return ConvertResponse<PreprocessInfo>
(self.mDatabase, std::move(info)); })); static_assert(std::is_empty_v
<typename decltype(tryResult1525)::ok_type>); if ((__builtin_expect
(!!(tryResult1525.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIfAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), MakeBackInserter(preprocessInfos), [](const auto& info) { return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent&& info) { return ConvertResponse<PreprocessInfo>(self.mDatabase, std::move(info)); })"
, tryResult1525.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19788, mozilla::dom::quota::Severity::Error); return tryResult1525
.propagateErr(); }}
19783 MakeBackInserter(preprocessInfos),{auto tryResult1525 = (TransformIfAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, MakeBackInserter(preprocessInfos), [](const auto& info)
{ return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent
&& info) { return ConvertResponse<PreprocessInfo>
(self.mDatabase, std::move(info)); })); static_assert(std::is_empty_v
<typename decltype(tryResult1525)::ok_type>); if ((__builtin_expect
(!!(tryResult1525.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIfAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), MakeBackInserter(preprocessInfos), [](const auto& info) { return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent&& info) { return ConvertResponse<PreprocessInfo>(self.mDatabase, std::move(info)); })"
, tryResult1525.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19788, mozilla::dom::quota::Severity::Error); return tryResult1525
.propagateErr(); }}
19784 [](const auto& info) { return info.HasPreprocessInfo(); },{auto tryResult1525 = (TransformIfAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, MakeBackInserter(preprocessInfos), [](const auto& info)
{ return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent
&& info) { return ConvertResponse<PreprocessInfo>
(self.mDatabase, std::move(info)); })); static_assert(std::is_empty_v
<typename decltype(tryResult1525)::ok_type>); if ((__builtin_expect
(!!(tryResult1525.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIfAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), MakeBackInserter(preprocessInfos), [](const auto& info) { return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent&& info) { return ConvertResponse<PreprocessInfo>(self.mDatabase, std::move(info)); })"
, tryResult1525.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19788, mozilla::dom::quota::Severity::Error); return tryResult1525
.propagateErr(); }}
19785 [&self = *this](StructuredCloneReadInfoParent&& info) {{auto tryResult1525 = (TransformIfAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, MakeBackInserter(preprocessInfos), [](const auto& info)
{ return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent
&& info) { return ConvertResponse<PreprocessInfo>
(self.mDatabase, std::move(info)); })); static_assert(std::is_empty_v
<typename decltype(tryResult1525)::ok_type>); if ((__builtin_expect
(!!(tryResult1525.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIfAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), MakeBackInserter(preprocessInfos), [](const auto& info) { return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent&& info) { return ConvertResponse<PreprocessInfo>(self.mDatabase, std::move(info)); })"
, tryResult1525.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19788, mozilla::dom::quota::Severity::Error); return tryResult1525
.propagateErr(); }}
19786 return ConvertResponse<PreprocessInfo>(self.mDatabase,{auto tryResult1525 = (TransformIfAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, MakeBackInserter(preprocessInfos), [](const auto& info)
{ return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent
&& info) { return ConvertResponse<PreprocessInfo>
(self.mDatabase, std::move(info)); })); static_assert(std::is_empty_v
<typename decltype(tryResult1525)::ok_type>); if ((__builtin_expect
(!!(tryResult1525.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIfAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), MakeBackInserter(preprocessInfos), [](const auto& info) { return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent&& info) { return ConvertResponse<PreprocessInfo>(self.mDatabase, std::move(info)); })"
, tryResult1525.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19788, mozilla::dom::quota::Severity::Error); return tryResult1525
.propagateErr(); }}
19787 std::move(info));{auto tryResult1525 = (TransformIfAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, MakeBackInserter(preprocessInfos), [](const auto& info)
{ return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent
&& info) { return ConvertResponse<PreprocessInfo>
(self.mDatabase, std::move(info)); })); static_assert(std::is_empty_v
<typename decltype(tryResult1525)::ok_type>); if ((__builtin_expect
(!!(tryResult1525.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIfAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), MakeBackInserter(preprocessInfos), [](const auto& info) { return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent&& info) { return ConvertResponse<PreprocessInfo>(self.mDatabase, std::move(info)); })"
, tryResult1525.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19788, mozilla::dom::quota::Severity::Error); return tryResult1525
.propagateErr(); }}
19788 })){auto tryResult1525 = (TransformIfAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, MakeBackInserter(preprocessInfos), [](const auto& info)
{ return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent
&& info) { return ConvertResponse<PreprocessInfo>
(self.mDatabase, std::move(info)); })); static_assert(std::is_empty_v
<typename decltype(tryResult1525)::ok_type>); if ((__builtin_expect
(!!(tryResult1525.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIfAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), MakeBackInserter(preprocessInfos), [](const auto& info) { return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent&& info) { return ConvertResponse<PreprocessInfo>(self.mDatabase, std::move(info)); })"
, tryResult1525.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19788, mozilla::dom::quota::Severity::Error); return tryResult1525
.propagateErr(); }}
;
19789
19790 return PreprocessParams{std::move(params)};
19791 }
19792
19793 auto params = ObjectStoreGetPreprocessParams();
19794
19795 QM_TRY_UNWRAP(auto tryResult1526 = (ConvertResponse<PreprocessInfo>(mDatabase
, std::move(mResponse[0]))); if ((__builtin_expect(!!(tryResult1526
.isErr()), 0))) { mozilla::dom::quota::HandleError("ConvertResponse<PreprocessInfo>(mDatabase, std::move(mResponse[0]))"
, tryResult1526.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19797, mozilla::dom::quota::Severity::Error); return tryResult1526
.propagateErr(); } params.preprocessInfo() = tryResult1526.unwrap
();
19796 params.preprocessInfo(),auto tryResult1526 = (ConvertResponse<PreprocessInfo>(mDatabase
, std::move(mResponse[0]))); if ((__builtin_expect(!!(tryResult1526
.isErr()), 0))) { mozilla::dom::quota::HandleError("ConvertResponse<PreprocessInfo>(mDatabase, std::move(mResponse[0]))"
, tryResult1526.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19797, mozilla::dom::quota::Severity::Error); return tryResult1526
.propagateErr(); } params.preprocessInfo() = tryResult1526.unwrap
();
19797 ConvertResponse<PreprocessInfo>(mDatabase, std::move(mResponse[0])))auto tryResult1526 = (ConvertResponse<PreprocessInfo>(mDatabase
, std::move(mResponse[0]))); if ((__builtin_expect(!!(tryResult1526
.isErr()), 0))) { mozilla::dom::quota::HandleError("ConvertResponse<PreprocessInfo>(mDatabase, std::move(mResponse[0]))"
, tryResult1526.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19797, mozilla::dom::quota::Severity::Error); return tryResult1526
.propagateErr(); } params.preprocessInfo() = tryResult1526.unwrap
();
;
19798
19799 return PreprocessParams{std::move(params)};
19800}
19801
19802void ObjectStoreGetRequestOp::GetResponse(RequestResponse& aResponse,
19803 size_t* aResponseSize) {
19804 MOZ_ASSERT_IF(mLimit, mResponse.Length() <= mLimit)do { if (mLimit) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(mResponse.Length() <= mLimit)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mResponse.Length() <= mLimit
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mResponse.Length() <= mLimit", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19804); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.Length() <= mLimit"
")"); do { MOZ_CrashSequence(__null, 19804); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19805
19806 if (mGetAll) {
19807 aResponse = ObjectStoreGetAllResponse();
19808 *aResponseSize = 0;
19809
19810 if (!mResponse.IsEmpty()) {
19811 QM_TRY_UNWRAP(auto tryResult1527 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [this, &aResponseSize](StructuredCloneReadInfoParent&&
info) { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( mDatabase, std::move
(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1527
.isErr()), 0))) { auto tryTempError = tryResult1527.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19824, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } aResponse.get_ObjectStoreGetAllResponse
().cloneInfos() = tryResult1527.unwrap();
19812 aResponse.get_ObjectStoreGetAllResponse().cloneInfos(),auto tryResult1527 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [this, &aResponseSize](StructuredCloneReadInfoParent&&
info) { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( mDatabase, std::move
(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1527
.isErr()), 0))) { auto tryTempError = tryResult1527.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19824, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } aResponse.get_ObjectStoreGetAllResponse
().cloneInfos() = tryResult1527.unwrap();
19813 TransformIntoNewArrayAbortOnErr(auto tryResult1527 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [this, &aResponseSize](StructuredCloneReadInfoParent&&
info) { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( mDatabase, std::move
(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1527
.isErr()), 0))) { auto tryTempError = tryResult1527.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19824, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } aResponse.get_ObjectStoreGetAllResponse
().cloneInfos() = tryResult1527.unwrap();
19814 std::make_move_iterator(mResponse.begin()),auto tryResult1527 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [this, &aResponseSize](StructuredCloneReadInfoParent&&
info) { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( mDatabase, std::move
(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1527
.isErr()), 0))) { auto tryTempError = tryResult1527.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19824, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } aResponse.get_ObjectStoreGetAllResponse
().cloneInfos() = tryResult1527.unwrap();
19815 std::make_move_iterator(mResponse.end()),auto tryResult1527 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [this, &aResponseSize](StructuredCloneReadInfoParent&&
info) { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( mDatabase, std::move
(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1527
.isErr()), 0))) { auto tryTempError = tryResult1527.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19824, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } aResponse.get_ObjectStoreGetAllResponse
().cloneInfos() = tryResult1527.unwrap();
19816 [this, &aResponseSize](StructuredCloneReadInfoParent&& info) {auto tryResult1527 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [this, &aResponseSize](StructuredCloneReadInfoParent&&
info) { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( mDatabase, std::move
(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1527
.isErr()), 0))) { auto tryTempError = tryResult1527.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19824, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } aResponse.get_ObjectStoreGetAllResponse
().cloneInfos() = tryResult1527.unwrap();
19817 *aResponseSize += info.Size();auto tryResult1527 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [this, &aResponseSize](StructuredCloneReadInfoParent&&
info) { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( mDatabase, std::move
(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1527
.isErr()), 0))) { auto tryTempError = tryResult1527.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19824, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } aResponse.get_ObjectStoreGetAllResponse
().cloneInfos() = tryResult1527.unwrap();
19818 return ConvertResponse<SerializedStructuredCloneReadInfo>(auto tryResult1527 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [this, &aResponseSize](StructuredCloneReadInfoParent&&
info) { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( mDatabase, std::move
(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1527
.isErr()), 0))) { auto tryTempError = tryResult1527.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19824, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } aResponse.get_ObjectStoreGetAllResponse
().cloneInfos() = tryResult1527.unwrap();
19819 mDatabase, std::move(info));auto tryResult1527 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [this, &aResponseSize](StructuredCloneReadInfoParent&&
info) { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( mDatabase, std::move
(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1527
.isErr()), 0))) { auto tryTempError = tryResult1527.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19824, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } aResponse.get_ObjectStoreGetAllResponse
().cloneInfos() = tryResult1527.unwrap();
19820 },auto tryResult1527 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [this, &aResponseSize](StructuredCloneReadInfoParent&&
info) { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( mDatabase, std::move
(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1527
.isErr()), 0))) { auto tryTempError = tryResult1527.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19824, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } aResponse.get_ObjectStoreGetAllResponse
().cloneInfos() = tryResult1527.unwrap();
19821 fallible),auto tryResult1527 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [this, &aResponseSize](StructuredCloneReadInfoParent&&
info) { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( mDatabase, std::move
(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1527
.isErr()), 0))) { auto tryTempError = tryResult1527.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19824, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } aResponse.get_ObjectStoreGetAllResponse
().cloneInfos() = tryResult1527.unwrap();
19822 QM_VOID, [&aResponse](const nsresult result) {auto tryResult1527 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [this, &aResponseSize](StructuredCloneReadInfoParent&&
info) { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( mDatabase, std::move
(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1527
.isErr()), 0))) { auto tryTempError = tryResult1527.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19824, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } aResponse.get_ObjectStoreGetAllResponse
().cloneInfos() = tryResult1527.unwrap();
19823 aResponse = TransactionOpResult(result);auto tryResult1527 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [this, &aResponseSize](StructuredCloneReadInfoParent&&
info) { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( mDatabase, std::move
(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1527
.isErr()), 0))) { auto tryTempError = tryResult1527.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19824, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } aResponse.get_ObjectStoreGetAllResponse
().cloneInfos() = tryResult1527.unwrap();
19824 })auto tryResult1527 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [this, &aResponseSize](StructuredCloneReadInfoParent&&
info) { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( mDatabase, std::move
(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1527
.isErr()), 0))) { auto tryTempError = tryResult1527.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19824, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } aResponse.get_ObjectStoreGetAllResponse
().cloneInfos() = tryResult1527.unwrap();
;
19825 }
19826
19827 return;
19828 }
19829
19830 aResponse = ObjectStoreGetResponse();
19831 *aResponseSize = 0;
19832
19833 if (!mResponse.IsEmpty()) {
19834 SerializedStructuredCloneReadInfo& serializedInfo =
19835 aResponse.get_ObjectStoreGetResponse().cloneInfo();
19836
19837 *aResponseSize += mResponse[0].Size();
19838 QM_TRY_UNWRAP(serializedInfo,auto tryResult1528 = (ConvertResponse<SerializedStructuredCloneReadInfo
>( mDatabase, std::move(mResponse[0]))); if ((__builtin_expect
(!!(tryResult1528.isErr()), 0))) { auto tryTempError = tryResult1528
.unwrapErr(); mozilla::dom::quota::HandleError("ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(mResponse[0]))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19843, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } serializedInfo = tryResult1528.unwrap
();
19839 ConvertResponse<SerializedStructuredCloneReadInfo>(auto tryResult1528 = (ConvertResponse<SerializedStructuredCloneReadInfo
>( mDatabase, std::move(mResponse[0]))); if ((__builtin_expect
(!!(tryResult1528.isErr()), 0))) { auto tryTempError = tryResult1528
.unwrapErr(); mozilla::dom::quota::HandleError("ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(mResponse[0]))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19843, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } serializedInfo = tryResult1528.unwrap
();
19840 mDatabase, std::move(mResponse[0])),auto tryResult1528 = (ConvertResponse<SerializedStructuredCloneReadInfo
>( mDatabase, std::move(mResponse[0]))); if ((__builtin_expect
(!!(tryResult1528.isErr()), 0))) { auto tryTempError = tryResult1528
.unwrapErr(); mozilla::dom::quota::HandleError("ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(mResponse[0]))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19843, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } serializedInfo = tryResult1528.unwrap
();
19841 QM_VOID, [&aResponse](const nsresult result) {auto tryResult1528 = (ConvertResponse<SerializedStructuredCloneReadInfo
>( mDatabase, std::move(mResponse[0]))); if ((__builtin_expect
(!!(tryResult1528.isErr()), 0))) { auto tryTempError = tryResult1528
.unwrapErr(); mozilla::dom::quota::HandleError("ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(mResponse[0]))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19843, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } serializedInfo = tryResult1528.unwrap
();
19842 aResponse = TransactionOpResult(result);auto tryResult1528 = (ConvertResponse<SerializedStructuredCloneReadInfo
>( mDatabase, std::move(mResponse[0]))); if ((__builtin_expect
(!!(tryResult1528.isErr()), 0))) { auto tryTempError = tryResult1528
.unwrapErr(); mozilla::dom::quota::HandleError("ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(mResponse[0]))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19843, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } serializedInfo = tryResult1528.unwrap
();
19843 })auto tryResult1528 = (ConvertResponse<SerializedStructuredCloneReadInfo
>( mDatabase, std::move(mResponse[0]))); if ((__builtin_expect
(!!(tryResult1528.isErr()), 0))) { auto tryTempError = tryResult1528
.unwrapErr(); mozilla::dom::quota::HandleError("ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(mResponse[0]))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19843, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } serializedInfo = tryResult1528.unwrap
();
;
19844 }
19845}
19846
19847ObjectStoreGetKeyRequestOp::ObjectStoreGetKeyRequestOp(
19848 SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId,
19849 const RequestParams& aParams, bool aGetAll)
19850 : NormalTransactionOp(std::move(aTransaction), aRequestId),
19851 mObjectStoreId(
19852 aGetAll ? aParams.get_ObjectStoreGetAllKeysParams().objectStoreId()
19853 : aParams.get_ObjectStoreGetKeyParams().objectStoreId()),
19854 mOptionalKeyRange(
19855 aGetAll ? aParams.get_ObjectStoreGetAllKeysParams()
19856 .options()
19857 .optionalKeyRange()
19858 : Some(aParams.get_ObjectStoreGetKeyParams().keyRange())),
19859 mLimit(aGetAll
19860 ? aParams.get_ObjectStoreGetAllKeysParams().options().limit()
19861 : 1),
19862 mDirection(
19863 aGetAll
19864 ? aParams.get_ObjectStoreGetAllKeysParams().options().direction()
19865 : IDBCursorDirection::Next),
19866 mGetAll(aGetAll) {
19867 MOZ_ASSERT(aParams.type() == RequestParams::TObjectStoreGetKeyParams ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() == RequestParams::TObjectStoreGetKeyParams
|| aParams.type() == RequestParams::TObjectStoreGetAllKeysParams
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aParams.type() == RequestParams::TObjectStoreGetKeyParams
|| aParams.type() == RequestParams::TObjectStoreGetAllKeysParams
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"aParams.type() == RequestParams::TObjectStoreGetKeyParams || aParams.type() == RequestParams::TObjectStoreGetAllKeysParams"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19868
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TObjectStoreGetKeyParams || aParams.type() == RequestParams::TObjectStoreGetAllKeysParams"
")"); do { MOZ_CrashSequence(__null, 19868); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
19868 aParams.type() == RequestParams::TObjectStoreGetAllKeysParams)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() == RequestParams::TObjectStoreGetKeyParams
|| aParams.type() == RequestParams::TObjectStoreGetAllKeysParams
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aParams.type() == RequestParams::TObjectStoreGetKeyParams
|| aParams.type() == RequestParams::TObjectStoreGetAllKeysParams
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"aParams.type() == RequestParams::TObjectStoreGetKeyParams || aParams.type() == RequestParams::TObjectStoreGetAllKeysParams"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19868
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TObjectStoreGetKeyParams || aParams.type() == RequestParams::TObjectStoreGetAllKeysParams"
")"); do { MOZ_CrashSequence(__null, 19868); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19869 MOZ_ASSERT(mObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mObjectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mObjectStoreId))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mObjectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19869
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mObjectStoreId" ")"
); do { MOZ_CrashSequence(__null, 19869); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
19870 MOZ_ASSERT_IF(!aGetAll, mOptionalKeyRange.isSome())do { if (!aGetAll) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(mOptionalKeyRange.isSome())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOptionalKeyRange.isSome()))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOptionalKeyRange.isSome()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19870
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOptionalKeyRange.isSome()"
")"); do { MOZ_CrashSequence(__null, 19870); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19871}
19872
19873nsresult ObjectStoreGetKeyRequestOp::DoDatabaseWork(
19874 DatabaseConnection* aConnection) {
19875 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19875); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 19875); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19876 aConnection->AssertIsOnConnectionThread();
19877
19878 AUTO_PROFILER_LABEL("ObjectStoreGetKeyRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject19878( "ObjectStoreGetKeyRequestOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
19879
19880 const nsCString query =
19881 "SELECT key "
19882 "FROM object_data "
19883 "WHERE object_store_id = :"_ns +
19884 kStmtParamNameObjectStoreId +
19885 MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameKey) +
19886 MakeDirectionClause(mDirection) +
19887 (mLimit ? " LIMIT "_ns + IntToCString(mLimit) : EmptyCString());
19888
19889 QM_TRY_INSPECT(const auto& stmt, aConnection->BorrowCachedStatement(query))auto tryResult1529 = (aConnection->BorrowCachedStatement(query
)); if ((__builtin_expect(!!(tryResult1529.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement(query)"
, tryResult1529.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19889, mozilla::dom::quota::Severity::Error); return tryResult1529
.propagateErr(); } const auto& stmt = tryResult1529.inspect
();
;
19890
19891 nsresult rv =
19892 stmt->BindInt64ByName(kStmtParamNameObjectStoreId, mObjectStoreId);
19893 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19893)
) {
19894 return rv;
19895 }
19896
19897 if (mOptionalKeyRange.isSome()) {
19898 rv = BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt);
19899 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19899)
) {
19900 return rv;
19901 }
19902 }
19903
19904 QM_TRY(CollectWhileHasResult({auto tryResult1532 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mResponse.AppendElement(fallible); {auto tryResult1530
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1530)::ok_type>); if ((__builtin_expect(!!(tryResult1530
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1530
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19907
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY
)); }}; {auto tryResult1531 = (ToResult(key->SetFromStatement
(&stmt, 0))); static_assert(std::is_empty_v<typename decltype
(tryResult1531)::ok_type>); if ((__builtin_expect(!!(tryResult1531
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1531.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19908, mozilla::dom::quota::Severity::Error); return tryResult1531
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1532)::ok_type>); if ((__builtin_expect
(!!(tryResult1532.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1530 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1530)::ok_type>); if ((__builtin_expect(!!(tryResult1530.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1530.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19907, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1531 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1531)::ok_type>); if ((__builtin_expect(!!(tryResult1531.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1531.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19908, mozilla::dom::quota::Severity::Error); return tryResult1531.propagateErr(); }}; return Ok{}; })"
, tryResult1532.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19911, mozilla::dom::quota::Severity::Error); return tryResult1532
.propagateErr(); }}
19905 *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> {{auto tryResult1532 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mResponse.AppendElement(fallible); {auto tryResult1530
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1530)::ok_type>); if ((__builtin_expect(!!(tryResult1530
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1530
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19907
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY
)); }}; {auto tryResult1531 = (ToResult(key->SetFromStatement
(&stmt, 0))); static_assert(std::is_empty_v<typename decltype
(tryResult1531)::ok_type>); if ((__builtin_expect(!!(tryResult1531
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1531.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19908, mozilla::dom::quota::Severity::Error); return tryResult1531
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1532)::ok_type>); if ((__builtin_expect
(!!(tryResult1532.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1530 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1530)::ok_type>); if ((__builtin_expect(!!(tryResult1530.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1530.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19907, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1531 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1531)::ok_type>); if ((__builtin_expect(!!(tryResult1531.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1531.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19908, mozilla::dom::quota::Severity::Error); return tryResult1531.propagateErr(); }}; return Ok{}; })"
, tryResult1532.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19911, mozilla::dom::quota::Severity::Error); return tryResult1532
.propagateErr(); }}
19906 Key* const key = mResponse.AppendElement(fallible);{auto tryResult1532 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mResponse.AppendElement(fallible); {auto tryResult1530
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1530)::ok_type>); if ((__builtin_expect(!!(tryResult1530
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1530
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19907
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY
)); }}; {auto tryResult1531 = (ToResult(key->SetFromStatement
(&stmt, 0))); static_assert(std::is_empty_v<typename decltype
(tryResult1531)::ok_type>); if ((__builtin_expect(!!(tryResult1531
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1531.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19908, mozilla::dom::quota::Severity::Error); return tryResult1531
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1532)::ok_type>); if ((__builtin_expect
(!!(tryResult1532.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1530 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1530)::ok_type>); if ((__builtin_expect(!!(tryResult1530.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1530.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19907, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1531 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1531)::ok_type>); if ((__builtin_expect(!!(tryResult1531.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1531.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19908, mozilla::dom::quota::Severity::Error); return tryResult1531.propagateErr(); }}; return Ok{}; })"
, tryResult1532.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19911, mozilla::dom::quota::Severity::Error); return tryResult1532
.propagateErr(); }}
19907 QM_TRY(OkIf(key), Err(NS_ERROR_OUT_OF_MEMORY));{auto tryResult1532 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mResponse.AppendElement(fallible); {auto tryResult1530
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1530)::ok_type>); if ((__builtin_expect(!!(tryResult1530
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1530
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19907
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY
)); }}; {auto tryResult1531 = (ToResult(key->SetFromStatement
(&stmt, 0))); static_assert(std::is_empty_v<typename decltype
(tryResult1531)::ok_type>); if ((__builtin_expect(!!(tryResult1531
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1531.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19908, mozilla::dom::quota::Severity::Error); return tryResult1531
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1532)::ok_type>); if ((__builtin_expect
(!!(tryResult1532.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1530 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1530)::ok_type>); if ((__builtin_expect(!!(tryResult1530.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1530.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19907, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1531 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1531)::ok_type>); if ((__builtin_expect(!!(tryResult1531.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1531.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19908, mozilla::dom::quota::Severity::Error); return tryResult1531.propagateErr(); }}; return Ok{}; })"
, tryResult1532.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19911, mozilla::dom::quota::Severity::Error); return tryResult1532
.propagateErr(); }}
19908 QM_TRY(MOZ_TO_RESULT(key->SetFromStatement(&stmt, 0)));{auto tryResult1532 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mResponse.AppendElement(fallible); {auto tryResult1530
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1530)::ok_type>); if ((__builtin_expect(!!(tryResult1530
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1530
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19907
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY
)); }}; {auto tryResult1531 = (ToResult(key->SetFromStatement
(&stmt, 0))); static_assert(std::is_empty_v<typename decltype
(tryResult1531)::ok_type>); if ((__builtin_expect(!!(tryResult1531
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1531.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19908, mozilla::dom::quota::Severity::Error); return tryResult1531
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1532)::ok_type>); if ((__builtin_expect
(!!(tryResult1532.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1530 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1530)::ok_type>); if ((__builtin_expect(!!(tryResult1530.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1530.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19907, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1531 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1531)::ok_type>); if ((__builtin_expect(!!(tryResult1531.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1531.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19908, mozilla::dom::quota::Severity::Error); return tryResult1531.propagateErr(); }}; return Ok{}; })"
, tryResult1532.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19911, mozilla::dom::quota::Severity::Error); return tryResult1532
.propagateErr(); }}
19909
19910 return Ok{};{auto tryResult1532 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mResponse.AppendElement(fallible); {auto tryResult1530
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1530)::ok_type>); if ((__builtin_expect(!!(tryResult1530
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1530
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19907
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY
)); }}; {auto tryResult1531 = (ToResult(key->SetFromStatement
(&stmt, 0))); static_assert(std::is_empty_v<typename decltype
(tryResult1531)::ok_type>); if ((__builtin_expect(!!(tryResult1531
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1531.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19908, mozilla::dom::quota::Severity::Error); return tryResult1531
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1532)::ok_type>); if ((__builtin_expect
(!!(tryResult1532.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1530 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1530)::ok_type>); if ((__builtin_expect(!!(tryResult1530.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1530.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19907, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1531 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1531)::ok_type>); if ((__builtin_expect(!!(tryResult1531.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1531.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19908, mozilla::dom::quota::Severity::Error); return tryResult1531.propagateErr(); }}; return Ok{}; })"
, tryResult1532.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19911, mozilla::dom::quota::Severity::Error); return tryResult1532
.propagateErr(); }}
19911 })){auto tryResult1532 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mResponse.AppendElement(fallible); {auto tryResult1530
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1530)::ok_type>); if ((__builtin_expect(!!(tryResult1530
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1530
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19907
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY
)); }}; {auto tryResult1531 = (ToResult(key->SetFromStatement
(&stmt, 0))); static_assert(std::is_empty_v<typename decltype
(tryResult1531)::ok_type>); if ((__builtin_expect(!!(tryResult1531
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1531.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19908, mozilla::dom::quota::Severity::Error); return tryResult1531
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1532)::ok_type>); if ((__builtin_expect
(!!(tryResult1532.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1530 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1530)::ok_type>); if ((__builtin_expect(!!(tryResult1530.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1530.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19907, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1531 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1531)::ok_type>); if ((__builtin_expect(!!(tryResult1531.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1531.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19908, mozilla::dom::quota::Severity::Error); return tryResult1531.propagateErr(); }}; return Ok{}; })"
, tryResult1532.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19911, mozilla::dom::quota::Severity::Error); return tryResult1532
.propagateErr(); }}
;
19912
19913 MOZ_ASSERT_IF(!mGetAll, mResponse.Length() <= 1)do { if (!mGetAll) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(mResponse.Length() <= 1)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mResponse.Length() <= 1))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mResponse.Length() <= 1"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19913
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.Length() <= 1"
")"); do { MOZ_CrashSequence(__null, 19913); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19914
19915 return NS_OK;
19916}
19917
19918void ObjectStoreGetKeyRequestOp::GetResponse(RequestResponse& aResponse,
19919 size_t* aResponseSize) {
19920 MOZ_ASSERT_IF(mLimit, mResponse.Length() <= mLimit)do { if (mLimit) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(mResponse.Length() <= mLimit)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mResponse.Length() <= mLimit
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mResponse.Length() <= mLimit", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19920); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.Length() <= mLimit"
")"); do { MOZ_CrashSequence(__null, 19920); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19921
19922 if (mGetAll) {
19923 aResponse = ObjectStoreGetAllKeysResponse();
19924 *aResponseSize = std::accumulate(mResponse.begin(), mResponse.end(), 0u,
19925 [](size_t old, const auto& entry) {
19926 return old + entry.GetBuffer().Length();
19927 });
19928
19929 aResponse.get_ObjectStoreGetAllKeysResponse().keys() = std::move(mResponse);
19930
19931 return;
19932 }
19933
19934 aResponse = ObjectStoreGetKeyResponse();
19935 *aResponseSize = 0;
19936
19937 if (!mResponse.IsEmpty()) {
19938 *aResponseSize = mResponse[0].GetBuffer().Length();
19939 aResponse.get_ObjectStoreGetKeyResponse().key() = std::move(mResponse[0]);
19940 }
19941}
19942
19943ObjectStoreDeleteRequestOp::ObjectStoreDeleteRequestOp(
19944 SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId,
19945 const ObjectStoreDeleteParams& aParams)
19946 : NormalTransactionOp(std::move(aTransaction), aRequestId),
19947 mParams(aParams),
19948 mObjectStoreMayHaveIndexes(false) {
19949 AssertIsOnBackgroundThread();
19950
19951 SafeRefPtr<FullObjectStoreMetadata> metadata =
19952 Transaction().GetMetadataForObjectStoreId(mParams.objectStoreId());
19953 MOZ_ASSERT(metadata)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(metadata)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19953); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 19953); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
19954
19955 mObjectStoreMayHaveIndexes = metadata->HasLiveIndexes();
19956}
19957
19958nsresult ObjectStoreDeleteRequestOp::DoDatabaseWork(
19959 DatabaseConnection* aConnection) {
19960 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19960); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 19960); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19961 aConnection->AssertIsOnConnectionThread();
19962 AUTO_PROFILER_LABEL("ObjectStoreDeleteRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject19962( "ObjectStoreDeleteRequestOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
19963
19964 DatabaseConnection::AutoSavepoint autoSave;
19965 QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult1533 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1533)::ok_type>); if ((__builtin_expect(!!(tryResult1533
.isErr()), 0))) { auto tryTempError = tryResult1533.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19970, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
19966#ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult1533 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1533)::ok_type>); if ((__builtin_expect(!!(tryResult1533
.isErr()), 0))) { auto tryTempError = tryResult1533.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19970, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
19967 ,{auto tryResult1533 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1533)::ok_type>); if ((__builtin_expect(!!(tryResult1533
.isErr()), 0))) { auto tryTempError = tryResult1533.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19970, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
19968 QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult1533 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1533)::ok_type>); if ((__builtin_expect(!!(tryResult1533
.isErr()), 0))) { auto tryTempError = tryResult1533.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19970, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
19969#endif{auto tryResult1533 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1533)::ok_type>); if ((__builtin_expect(!!(tryResult1533
.isErr()), 0))) { auto tryTempError = tryResult1533.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19970, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
19970 ){auto tryResult1533 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1533)::ok_type>); if ((__builtin_expect(!!(tryResult1533
.isErr()), 0))) { auto tryTempError = tryResult1533.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19970, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
;
19971
19972 QM_TRY_INSPECT(const bool& objectStoreHasIndexes,auto tryResult1534 = (ObjectStoreHasIndexes(*aConnection, mParams
.objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect
(!!(tryResult1534.isErr()), 0))) { mozilla::dom::quota::HandleError
("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)"
, tryResult1534.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19974, mozilla::dom::quota::Severity::Error); return tryResult1534
.propagateErr(); } const bool& objectStoreHasIndexes = tryResult1534
.inspect();
19973 ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(),auto tryResult1534 = (ObjectStoreHasIndexes(*aConnection, mParams
.objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect
(!!(tryResult1534.isErr()), 0))) { mozilla::dom::quota::HandleError
("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)"
, tryResult1534.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19974, mozilla::dom::quota::Severity::Error); return tryResult1534
.propagateErr(); } const bool& objectStoreHasIndexes = tryResult1534
.inspect();
19974 mObjectStoreMayHaveIndexes))auto tryResult1534 = (ObjectStoreHasIndexes(*aConnection, mParams
.objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect
(!!(tryResult1534.isErr()), 0))) { mozilla::dom::quota::HandleError
("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)"
, tryResult1534.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19974, mozilla::dom::quota::Severity::Error); return tryResult1534
.propagateErr(); } const bool& objectStoreHasIndexes = tryResult1534
.inspect();
;
19975
19976 if (objectStoreHasIndexes) {
19977 QM_TRY(MOZ_TO_RESULT(DeleteObjectStoreDataTableRowsWithIndexes({auto tryResult1535 = (ToResult(DeleteObjectStoreDataTableRowsWithIndexes
( aConnection, mParams.objectStoreId(), Some(mParams.keyRange
())))); static_assert(std::is_empty_v<typename decltype(tryResult1535
)::ok_type>); if ((__builtin_expect(!!(tryResult1535.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mParams.objectStoreId(), Some(mParams.keyRange())))"
, tryResult1535.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19978, mozilla::dom::quota::Severity::Error); return tryResult1535
.propagateErr(); }}
19978 aConnection, mParams.objectStoreId(), Some(mParams.keyRange())))){auto tryResult1535 = (ToResult(DeleteObjectStoreDataTableRowsWithIndexes
( aConnection, mParams.objectStoreId(), Some(mParams.keyRange
())))); static_assert(std::is_empty_v<typename decltype(tryResult1535
)::ok_type>); if ((__builtin_expect(!!(tryResult1535.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mParams.objectStoreId(), Some(mParams.keyRange())))"
, tryResult1535.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19978, mozilla::dom::quota::Severity::Error); return tryResult1535
.propagateErr(); }}
;
19979 } else {
19980 const auto keyRangeClause =
19981 GetBindingClauseForKeyRange(mParams.keyRange(), kColumnNameKey);
19982
19983 QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1538 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :"_ns +
kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [&
params = mParams]( mozIStorageStatement& stmt) -> mozilla
::Result<Ok, nsresult> { {auto tryResult1536 = (ToResult
(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId
()))); static_assert(std::is_empty_v<typename decltype(tryResult1536
)::ok_type>); if ((__builtin_expect(!!(tryResult1536.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1536.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19990, mozilla::dom::quota::Severity::Error); return tryResult1536
.propagateErr(); }}; {auto tryResult1537 = (ToResult(BindKeyRangeToStatement
(params.keyRange(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1537)::ok_type>); if ((__builtin_expect
(!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))"
, tryResult1537.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19993, mozilla::dom::quota::Severity::Error); return tryResult1537
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1538)::ok_type>); if ((__builtin_expect
(!!(tryResult1538.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns, [&params = mParams]( mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1536 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1536)::ok_type>); if ((__builtin_expect(!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1536.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19990, mozilla::dom::quota::Severity::Error); return tryResult1536.propagateErr(); }}; {auto tryResult1537 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1537)::ok_type>); if ((__builtin_expect(!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1537.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19993, mozilla::dom::quota::Severity::Error); return tryResult1537.propagateErr(); }}; return Ok{}; }))"
, tryResult1538.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19996, mozilla::dom::quota::Severity::Error); return tryResult1538
.propagateErr(); }}
19984 "DELETE FROM object_data "{auto tryResult1538 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :"_ns +
kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [&
params = mParams]( mozIStorageStatement& stmt) -> mozilla
::Result<Ok, nsresult> { {auto tryResult1536 = (ToResult
(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId
()))); static_assert(std::is_empty_v<typename decltype(tryResult1536
)::ok_type>); if ((__builtin_expect(!!(tryResult1536.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1536.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19990, mozilla::dom::quota::Severity::Error); return tryResult1536
.propagateErr(); }}; {auto tryResult1537 = (ToResult(BindKeyRangeToStatement
(params.keyRange(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1537)::ok_type>); if ((__builtin_expect
(!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))"
, tryResult1537.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19993, mozilla::dom::quota::Severity::Error); return tryResult1537
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1538)::ok_type>); if ((__builtin_expect
(!!(tryResult1538.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns, [&params = mParams]( mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1536 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1536)::ok_type>); if ((__builtin_expect(!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1536.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19990, mozilla::dom::quota::Severity::Error); return tryResult1536.propagateErr(); }}; {auto tryResult1537 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1537)::ok_type>); if ((__builtin_expect(!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1537.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19993, mozilla::dom::quota::Severity::Error); return tryResult1537.propagateErr(); }}; return Ok{}; }))"
, tryResult1538.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19996, mozilla::dom::quota::Severity::Error); return tryResult1538
.propagateErr(); }}
19985 "WHERE object_store_id = :"_ns +{auto tryResult1538 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :"_ns +
kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [&
params = mParams]( mozIStorageStatement& stmt) -> mozilla
::Result<Ok, nsresult> { {auto tryResult1536 = (ToResult
(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId
()))); static_assert(std::is_empty_v<typename decltype(tryResult1536
)::ok_type>); if ((__builtin_expect(!!(tryResult1536.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1536.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19990, mozilla::dom::quota::Severity::Error); return tryResult1536
.propagateErr(); }}; {auto tryResult1537 = (ToResult(BindKeyRangeToStatement
(params.keyRange(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1537)::ok_type>); if ((__builtin_expect
(!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))"
, tryResult1537.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19993, mozilla::dom::quota::Severity::Error); return tryResult1537
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1538)::ok_type>); if ((__builtin_expect
(!!(tryResult1538.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns, [&params = mParams]( mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1536 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1536)::ok_type>); if ((__builtin_expect(!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1536.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19990, mozilla::dom::quota::Severity::Error); return tryResult1536.propagateErr(); }}; {auto tryResult1537 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1537)::ok_type>); if ((__builtin_expect(!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1537.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19993, mozilla::dom::quota::Severity::Error); return tryResult1537.propagateErr(); }}; return Ok{}; }))"
, tryResult1538.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19996, mozilla::dom::quota::Severity::Error); return tryResult1538
.propagateErr(); }}
19986 kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns,{auto tryResult1538 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :"_ns +
kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [&
params = mParams]( mozIStorageStatement& stmt) -> mozilla
::Result<Ok, nsresult> { {auto tryResult1536 = (ToResult
(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId
()))); static_assert(std::is_empty_v<typename decltype(tryResult1536
)::ok_type>); if ((__builtin_expect(!!(tryResult1536.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1536.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19990, mozilla::dom::quota::Severity::Error); return tryResult1536
.propagateErr(); }}; {auto tryResult1537 = (ToResult(BindKeyRangeToStatement
(params.keyRange(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1537)::ok_type>); if ((__builtin_expect
(!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))"
, tryResult1537.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19993, mozilla::dom::quota::Severity::Error); return tryResult1537
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1538)::ok_type>); if ((__builtin_expect
(!!(tryResult1538.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns, [&params = mParams]( mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1536 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1536)::ok_type>); if ((__builtin_expect(!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1536.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19990, mozilla::dom::quota::Severity::Error); return tryResult1536.propagateErr(); }}; {auto tryResult1537 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1537)::ok_type>); if ((__builtin_expect(!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1537.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19993, mozilla::dom::quota::Severity::Error); return tryResult1537.propagateErr(); }}; return Ok{}; }))"
, tryResult1538.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19996, mozilla::dom::quota::Severity::Error); return tryResult1538
.propagateErr(); }}
19987 [&params = mParams]({auto tryResult1538 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :"_ns +
kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [&
params = mParams]( mozIStorageStatement& stmt) -> mozilla
::Result<Ok, nsresult> { {auto tryResult1536 = (ToResult
(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId
()))); static_assert(std::is_empty_v<typename decltype(tryResult1536
)::ok_type>); if ((__builtin_expect(!!(tryResult1536.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1536.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19990, mozilla::dom::quota::Severity::Error); return tryResult1536
.propagateErr(); }}; {auto tryResult1537 = (ToResult(BindKeyRangeToStatement
(params.keyRange(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1537)::ok_type>); if ((__builtin_expect
(!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))"
, tryResult1537.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19993, mozilla::dom::quota::Severity::Error); return tryResult1537
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1538)::ok_type>); if ((__builtin_expect
(!!(tryResult1538.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns, [&params = mParams]( mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1536 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1536)::ok_type>); if ((__builtin_expect(!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1536.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19990, mozilla::dom::quota::Severity::Error); return tryResult1536.propagateErr(); }}; {auto tryResult1537 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1537)::ok_type>); if ((__builtin_expect(!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1537.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19993, mozilla::dom::quota::Severity::Error); return tryResult1537.propagateErr(); }}; return Ok{}; }))"
, tryResult1538.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19996, mozilla::dom::quota::Severity::Error); return tryResult1538
.propagateErr(); }}
19988 mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> {{auto tryResult1538 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :"_ns +
kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [&
params = mParams]( mozIStorageStatement& stmt) -> mozilla
::Result<Ok, nsresult> { {auto tryResult1536 = (ToResult
(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId
()))); static_assert(std::is_empty_v<typename decltype(tryResult1536
)::ok_type>); if ((__builtin_expect(!!(tryResult1536.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1536.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19990, mozilla::dom::quota::Severity::Error); return tryResult1536
.propagateErr(); }}; {auto tryResult1537 = (ToResult(BindKeyRangeToStatement
(params.keyRange(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1537)::ok_type>); if ((__builtin_expect
(!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))"
, tryResult1537.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19993, mozilla::dom::quota::Severity::Error); return tryResult1537
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1538)::ok_type>); if ((__builtin_expect
(!!(tryResult1538.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns, [&params = mParams]( mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1536 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1536)::ok_type>); if ((__builtin_expect(!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1536.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19990, mozilla::dom::quota::Severity::Error); return tryResult1536.propagateErr(); }}; {auto tryResult1537 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1537)::ok_type>); if ((__builtin_expect(!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1537.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19993, mozilla::dom::quota::Severity::Error); return tryResult1537.propagateErr(); }}; return Ok{}; }))"
, tryResult1538.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19996, mozilla::dom::quota::Severity::Error); return tryResult1538
.propagateErr(); }}
19989 QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByName(kStmtParamNameObjectStoreId,{auto tryResult1538 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :"_ns +
kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [&
params = mParams]( mozIStorageStatement& stmt) -> mozilla
::Result<Ok, nsresult> { {auto tryResult1536 = (ToResult
(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId
()))); static_assert(std::is_empty_v<typename decltype(tryResult1536
)::ok_type>); if ((__builtin_expect(!!(tryResult1536.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1536.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19990, mozilla::dom::quota::Severity::Error); return tryResult1536
.propagateErr(); }}; {auto tryResult1537 = (ToResult(BindKeyRangeToStatement
(params.keyRange(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1537)::ok_type>); if ((__builtin_expect
(!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))"
, tryResult1537.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19993, mozilla::dom::quota::Severity::Error); return tryResult1537
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1538)::ok_type>); if ((__builtin_expect
(!!(tryResult1538.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns, [&params = mParams]( mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1536 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1536)::ok_type>); if ((__builtin_expect(!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1536.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19990, mozilla::dom::quota::Severity::Error); return tryResult1536.propagateErr(); }}; {auto tryResult1537 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1537)::ok_type>); if ((__builtin_expect(!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1537.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19993, mozilla::dom::quota::Severity::Error); return tryResult1537.propagateErr(); }}; return Ok{}; }))"
, tryResult1538.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19996, mozilla::dom::quota::Severity::Error); return tryResult1538
.propagateErr(); }}
19990 params.objectStoreId())));{auto tryResult1538 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :"_ns +
kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [&
params = mParams]( mozIStorageStatement& stmt) -> mozilla
::Result<Ok, nsresult> { {auto tryResult1536 = (ToResult
(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId
()))); static_assert(std::is_empty_v<typename decltype(tryResult1536
)::ok_type>); if ((__builtin_expect(!!(tryResult1536.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1536.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19990, mozilla::dom::quota::Severity::Error); return tryResult1536
.propagateErr(); }}; {auto tryResult1537 = (ToResult(BindKeyRangeToStatement
(params.keyRange(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1537)::ok_type>); if ((__builtin_expect
(!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))"
, tryResult1537.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19993, mozilla::dom::quota::Severity::Error); return tryResult1537
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1538)::ok_type>); if ((__builtin_expect
(!!(tryResult1538.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns, [&params = mParams]( mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1536 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1536)::ok_type>); if ((__builtin_expect(!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1536.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19990, mozilla::dom::quota::Severity::Error); return tryResult1536.propagateErr(); }}; {auto tryResult1537 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1537)::ok_type>); if ((__builtin_expect(!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1537.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19993, mozilla::dom::quota::Severity::Error); return tryResult1537.propagateErr(); }}; return Ok{}; }))"
, tryResult1538.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19996, mozilla::dom::quota::Severity::Error); return tryResult1538
.propagateErr(); }}
19991
19992 QM_TRY({auto tryResult1538 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :"_ns +
kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [&
params = mParams]( mozIStorageStatement& stmt) -> mozilla
::Result<Ok, nsresult> { {auto tryResult1536 = (ToResult
(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId
()))); static_assert(std::is_empty_v<typename decltype(tryResult1536
)::ok_type>); if ((__builtin_expect(!!(tryResult1536.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1536.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19990, mozilla::dom::quota::Severity::Error); return tryResult1536
.propagateErr(); }}; {auto tryResult1537 = (ToResult(BindKeyRangeToStatement
(params.keyRange(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1537)::ok_type>); if ((__builtin_expect
(!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))"
, tryResult1537.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19993, mozilla::dom::quota::Severity::Error); return tryResult1537
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1538)::ok_type>); if ((__builtin_expect
(!!(tryResult1538.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns, [&params = mParams]( mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1536 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1536)::ok_type>); if ((__builtin_expect(!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1536.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19990, mozilla::dom::quota::Severity::Error); return tryResult1536.propagateErr(); }}; {auto tryResult1537 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1537)::ok_type>); if ((__builtin_expect(!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1537.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19993, mozilla::dom::quota::Severity::Error); return tryResult1537.propagateErr(); }}; return Ok{}; }))"
, tryResult1538.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19996, mozilla::dom::quota::Severity::Error); return tryResult1538
.propagateErr(); }}
19993 MOZ_TO_RESULT(BindKeyRangeToStatement(params.keyRange(), &stmt)));{auto tryResult1538 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :"_ns +
kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [&
params = mParams]( mozIStorageStatement& stmt) -> mozilla
::Result<Ok, nsresult> { {auto tryResult1536 = (ToResult
(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId
()))); static_assert(std::is_empty_v<typename decltype(tryResult1536
)::ok_type>); if ((__builtin_expect(!!(tryResult1536.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1536.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19990, mozilla::dom::quota::Severity::Error); return tryResult1536
.propagateErr(); }}; {auto tryResult1537 = (ToResult(BindKeyRangeToStatement
(params.keyRange(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1537)::ok_type>); if ((__builtin_expect
(!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))"
, tryResult1537.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19993, mozilla::dom::quota::Severity::Error); return tryResult1537
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1538)::ok_type>); if ((__builtin_expect
(!!(tryResult1538.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns, [&params = mParams]( mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1536 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1536)::ok_type>); if ((__builtin_expect(!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1536.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19990, mozilla::dom::quota::Severity::Error); return tryResult1536.propagateErr(); }}; {auto tryResult1537 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1537)::ok_type>); if ((__builtin_expect(!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1537.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19993, mozilla::dom::quota::Severity::Error); return tryResult1537.propagateErr(); }}; return Ok{}; }))"
, tryResult1538.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19996, mozilla::dom::quota::Severity::Error); return tryResult1538
.propagateErr(); }}
19994
19995 return Ok{};{auto tryResult1538 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :"_ns +
kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [&
params = mParams]( mozIStorageStatement& stmt) -> mozilla
::Result<Ok, nsresult> { {auto tryResult1536 = (ToResult
(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId
()))); static_assert(std::is_empty_v<typename decltype(tryResult1536
)::ok_type>); if ((__builtin_expect(!!(tryResult1536.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1536.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19990, mozilla::dom::quota::Severity::Error); return tryResult1536
.propagateErr(); }}; {auto tryResult1537 = (ToResult(BindKeyRangeToStatement
(params.keyRange(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1537)::ok_type>); if ((__builtin_expect
(!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))"
, tryResult1537.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19993, mozilla::dom::quota::Severity::Error); return tryResult1537
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1538)::ok_type>); if ((__builtin_expect
(!!(tryResult1538.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns, [&params = mParams]( mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1536 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1536)::ok_type>); if ((__builtin_expect(!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1536.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19990, mozilla::dom::quota::Severity::Error); return tryResult1536.propagateErr(); }}; {auto tryResult1537 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1537)::ok_type>); if ((__builtin_expect(!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1537.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19993, mozilla::dom::quota::Severity::Error); return tryResult1537.propagateErr(); }}; return Ok{}; }))"
, tryResult1538.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19996, mozilla::dom::quota::Severity::Error); return tryResult1538
.propagateErr(); }}
19996 }))){auto tryResult1538 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :"_ns +
kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [&
params = mParams]( mozIStorageStatement& stmt) -> mozilla
::Result<Ok, nsresult> { {auto tryResult1536 = (ToResult
(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId
()))); static_assert(std::is_empty_v<typename decltype(tryResult1536
)::ok_type>); if ((__builtin_expect(!!(tryResult1536.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1536.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19990, mozilla::dom::quota::Severity::Error); return tryResult1536
.propagateErr(); }}; {auto tryResult1537 = (ToResult(BindKeyRangeToStatement
(params.keyRange(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1537)::ok_type>); if ((__builtin_expect
(!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))"
, tryResult1537.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19993, mozilla::dom::quota::Severity::Error); return tryResult1537
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1538)::ok_type>); if ((__builtin_expect
(!!(tryResult1538.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns, [&params = mParams]( mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1536 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1536)::ok_type>); if ((__builtin_expect(!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1536.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19990, mozilla::dom::quota::Severity::Error); return tryResult1536.propagateErr(); }}; {auto tryResult1537 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1537)::ok_type>); if ((__builtin_expect(!!(tryResult1537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1537.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19993, mozilla::dom::quota::Severity::Error); return tryResult1537.propagateErr(); }}; return Ok{}; }))"
, tryResult1538.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19996, mozilla::dom::quota::Severity::Error); return tryResult1538
.propagateErr(); }}
;
19997 }
19998
19999 QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult1539 = (ToResult(autoSave.Commit())); static_assert
(std::is_empty_v<typename decltype(tryResult1539)::ok_type
>); if ((__builtin_expect(!!(tryResult1539.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())"
, tryResult1539.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19999, mozilla::dom::quota::Severity::Error); return tryResult1539
.propagateErr(); }}
;
20000
20001 return NS_OK;
20002}
20003
20004ObjectStoreClearRequestOp::ObjectStoreClearRequestOp(
20005 SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId,
20006 const ObjectStoreClearParams& aParams)
20007 : NormalTransactionOp(std::move(aTransaction), aRequestId),
20008 mParams(aParams),
20009 mObjectStoreMayHaveIndexes(false) {
20010 AssertIsOnBackgroundThread();
20011
20012 SafeRefPtr<FullObjectStoreMetadata> metadata =
20013 Transaction().GetMetadataForObjectStoreId(mParams.objectStoreId());
20014 MOZ_ASSERT(metadata)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(metadata)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20014); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 20014); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
20015
20016 mObjectStoreMayHaveIndexes = metadata->HasLiveIndexes();
20017}
20018
20019nsresult ObjectStoreClearRequestOp::DoDatabaseWork(
20020 DatabaseConnection* aConnection) {
20021 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20021); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 20021); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20022 aConnection->AssertIsOnConnectionThread();
20023
20024 AUTO_PROFILER_LABEL("ObjectStoreClearRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject20024( "ObjectStoreClearRequestOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
20025
20026 DatabaseConnection::AutoSavepoint autoSave;
20027 QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult1540 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1540)::ok_type>); if ((__builtin_expect(!!(tryResult1540
.isErr()), 0))) { auto tryTempError = tryResult1540.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20032, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
20028#ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult1540 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1540)::ok_type>); if ((__builtin_expect(!!(tryResult1540
.isErr()), 0))) { auto tryTempError = tryResult1540.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20032, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
20029 ,{auto tryResult1540 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1540)::ok_type>); if ((__builtin_expect(!!(tryResult1540
.isErr()), 0))) { auto tryTempError = tryResult1540.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20032, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
20030 QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult1540 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1540)::ok_type>); if ((__builtin_expect(!!(tryResult1540
.isErr()), 0))) { auto tryTempError = tryResult1540.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20032, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
20031#endif{auto tryResult1540 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1540)::ok_type>); if ((__builtin_expect(!!(tryResult1540
.isErr()), 0))) { auto tryTempError = tryResult1540.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20032, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
20032 ){auto tryResult1540 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1540)::ok_type>); if ((__builtin_expect(!!(tryResult1540
.isErr()), 0))) { auto tryTempError = tryResult1540.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20032, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
;
20033
20034 QM_TRY_INSPECT(const bool& objectStoreHasIndexes,auto tryResult1541 = (ObjectStoreHasIndexes(*aConnection, mParams
.objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect
(!!(tryResult1541.isErr()), 0))) { mozilla::dom::quota::HandleError
("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)"
, tryResult1541.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20036, mozilla::dom::quota::Severity::Error); return tryResult1541
.propagateErr(); } const bool& objectStoreHasIndexes = tryResult1541
.inspect();
20035 ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(),auto tryResult1541 = (ObjectStoreHasIndexes(*aConnection, mParams
.objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect
(!!(tryResult1541.isErr()), 0))) { mozilla::dom::quota::HandleError
("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)"
, tryResult1541.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20036, mozilla::dom::quota::Severity::Error); return tryResult1541
.propagateErr(); } const bool& objectStoreHasIndexes = tryResult1541
.inspect();
20036 mObjectStoreMayHaveIndexes))auto tryResult1541 = (ObjectStoreHasIndexes(*aConnection, mParams
.objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect
(!!(tryResult1541.isErr()), 0))) { mozilla::dom::quota::HandleError
("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)"
, tryResult1541.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20036, mozilla::dom::quota::Severity::Error); return tryResult1541
.propagateErr(); } const bool& objectStoreHasIndexes = tryResult1541
.inspect();
;
20037
20038 // The parameter names are not used, parameters are bound by index only
20039 // locally in the same function.
20040 QM_TRY(MOZ_TO_RESULT({auto tryResult1543 = (ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes
( aConnection, mParams.objectStoreId(), Nothing()) : aConnection
->ExecuteCachedStatement( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns
, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement
& stmt) -> mozilla::Result<Ok, nsresult> { {auto
tryResult1542 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1542
)::ok_type>); if ((__builtin_expect(!!(tryResult1542.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))"
, tryResult1542.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20051, mozilla::dom::quota::Severity::Error); return tryResult1542
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1543)::ok_type>); if ((__builtin_expect
(!!(tryResult1543.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mParams.objectStoreId(), Nothing()) : aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1542 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1542)::ok_type>); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1542.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20051, mozilla::dom::quota::Severity::Error); return tryResult1542.propagateErr(); }}; return Ok{}; }))"
, tryResult1543.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20054, mozilla::dom::quota::Severity::Error); return tryResult1543
.propagateErr(); }}
20041 objectStoreHasIndexes{auto tryResult1543 = (ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes
( aConnection, mParams.objectStoreId(), Nothing()) : aConnection
->ExecuteCachedStatement( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns
, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement
& stmt) -> mozilla::Result<Ok, nsresult> { {auto
tryResult1542 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1542
)::ok_type>); if ((__builtin_expect(!!(tryResult1542.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))"
, tryResult1542.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20051, mozilla::dom::quota::Severity::Error); return tryResult1542
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1543)::ok_type>); if ((__builtin_expect
(!!(tryResult1543.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mParams.objectStoreId(), Nothing()) : aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1542 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1542)::ok_type>); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1542.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20051, mozilla::dom::quota::Severity::Error); return tryResult1542.propagateErr(); }}; return Ok{}; }))"
, tryResult1543.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20054, mozilla::dom::quota::Severity::Error); return tryResult1543
.propagateErr(); }}
20042 ? DeleteObjectStoreDataTableRowsWithIndexes({auto tryResult1543 = (ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes
( aConnection, mParams.objectStoreId(), Nothing()) : aConnection
->ExecuteCachedStatement( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns
, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement
& stmt) -> mozilla::Result<Ok, nsresult> { {auto
tryResult1542 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1542
)::ok_type>); if ((__builtin_expect(!!(tryResult1542.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))"
, tryResult1542.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20051, mozilla::dom::quota::Severity::Error); return tryResult1542
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1543)::ok_type>); if ((__builtin_expect
(!!(tryResult1543.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mParams.objectStoreId(), Nothing()) : aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1542 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1542)::ok_type>); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1542.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20051, mozilla::dom::quota::Severity::Error); return tryResult1542.propagateErr(); }}; return Ok{}; }))"
, tryResult1543.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20054, mozilla::dom::quota::Severity::Error); return tryResult1543
.propagateErr(); }}
20043 aConnection, mParams.objectStoreId(), Nothing()){auto tryResult1543 = (ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes
( aConnection, mParams.objectStoreId(), Nothing()) : aConnection
->ExecuteCachedStatement( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns
, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement
& stmt) -> mozilla::Result<Ok, nsresult> { {auto
tryResult1542 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1542
)::ok_type>); if ((__builtin_expect(!!(tryResult1542.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))"
, tryResult1542.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20051, mozilla::dom::quota::Severity::Error); return tryResult1542
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1543)::ok_type>); if ((__builtin_expect
(!!(tryResult1543.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mParams.objectStoreId(), Nothing()) : aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1542 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1542)::ok_type>); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1542.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20051, mozilla::dom::quota::Severity::Error); return tryResult1542.propagateErr(); }}; return Ok{}; }))"
, tryResult1543.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20054, mozilla::dom::quota::Severity::Error); return tryResult1543
.propagateErr(); }}
20044 : aConnection->ExecuteCachedStatement({auto tryResult1543 = (ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes
( aConnection, mParams.objectStoreId(), Nothing()) : aConnection
->ExecuteCachedStatement( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns
, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement
& stmt) -> mozilla::Result<Ok, nsresult> { {auto
tryResult1542 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1542
)::ok_type>); if ((__builtin_expect(!!(tryResult1542.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))"
, tryResult1542.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20051, mozilla::dom::quota::Severity::Error); return tryResult1542
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1543)::ok_type>); if ((__builtin_expect
(!!(tryResult1543.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mParams.objectStoreId(), Nothing()) : aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1542 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1542)::ok_type>); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1542.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20051, mozilla::dom::quota::Severity::Error); return tryResult1542.propagateErr(); }}; return Ok{}; }))"
, tryResult1543.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20054, mozilla::dom::quota::Severity::Error); return tryResult1543
.propagateErr(); }}
20045 "DELETE FROM object_data "{auto tryResult1543 = (ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes
( aConnection, mParams.objectStoreId(), Nothing()) : aConnection
->ExecuteCachedStatement( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns
, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement
& stmt) -> mozilla::Result<Ok, nsresult> { {auto
tryResult1542 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1542
)::ok_type>); if ((__builtin_expect(!!(tryResult1542.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))"
, tryResult1542.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20051, mozilla::dom::quota::Severity::Error); return tryResult1542
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1543)::ok_type>); if ((__builtin_expect
(!!(tryResult1543.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mParams.objectStoreId(), Nothing()) : aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1542 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1542)::ok_type>); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1542.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20051, mozilla::dom::quota::Severity::Error); return tryResult1542.propagateErr(); }}; return Ok{}; }))"
, tryResult1543.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20054, mozilla::dom::quota::Severity::Error); return tryResult1543
.propagateErr(); }}
20046 "WHERE object_store_id = :object_store_id;"_ns,{auto tryResult1543 = (ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes
( aConnection, mParams.objectStoreId(), Nothing()) : aConnection
->ExecuteCachedStatement( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns
, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement
& stmt) -> mozilla::Result<Ok, nsresult> { {auto
tryResult1542 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1542
)::ok_type>); if ((__builtin_expect(!!(tryResult1542.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))"
, tryResult1542.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20051, mozilla::dom::quota::Severity::Error); return tryResult1542
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1543)::ok_type>); if ((__builtin_expect
(!!(tryResult1543.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mParams.objectStoreId(), Nothing()) : aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1542 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1542)::ok_type>); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1542.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20051, mozilla::dom::quota::Severity::Error); return tryResult1542.propagateErr(); }}; return Ok{}; }))"
, tryResult1543.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20054, mozilla::dom::quota::Severity::Error); return tryResult1543
.propagateErr(); }}
20047 [objectStoreId ={auto tryResult1543 = (ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes
( aConnection, mParams.objectStoreId(), Nothing()) : aConnection
->ExecuteCachedStatement( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns
, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement
& stmt) -> mozilla::Result<Ok, nsresult> { {auto
tryResult1542 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1542
)::ok_type>); if ((__builtin_expect(!!(tryResult1542.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))"
, tryResult1542.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20051, mozilla::dom::quota::Severity::Error); return tryResult1542
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1543)::ok_type>); if ((__builtin_expect
(!!(tryResult1543.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mParams.objectStoreId(), Nothing()) : aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1542 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1542)::ok_type>); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1542.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20051, mozilla::dom::quota::Severity::Error); return tryResult1542.propagateErr(); }}; return Ok{}; }))"
, tryResult1543.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20054, mozilla::dom::quota::Severity::Error); return tryResult1543
.propagateErr(); }}
20048 mParams.objectStoreId()](mozIStorageStatement& stmt){auto tryResult1543 = (ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes
( aConnection, mParams.objectStoreId(), Nothing()) : aConnection
->ExecuteCachedStatement( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns
, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement
& stmt) -> mozilla::Result<Ok, nsresult> { {auto
tryResult1542 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1542
)::ok_type>); if ((__builtin_expect(!!(tryResult1542.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))"
, tryResult1542.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20051, mozilla::dom::quota::Severity::Error); return tryResult1542
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1543)::ok_type>); if ((__builtin_expect
(!!(tryResult1543.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mParams.objectStoreId(), Nothing()) : aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1542 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1542)::ok_type>); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1542.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20051, mozilla::dom::quota::Severity::Error); return tryResult1542.propagateErr(); }}; return Ok{}; }))"
, tryResult1543.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20054, mozilla::dom::quota::Severity::Error); return tryResult1543
.propagateErr(); }}
20049 -> mozilla::Result<Ok, nsresult> {{auto tryResult1543 = (ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes
( aConnection, mParams.objectStoreId(), Nothing()) : aConnection
->ExecuteCachedStatement( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns
, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement
& stmt) -> mozilla::Result<Ok, nsresult> { {auto
tryResult1542 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1542
)::ok_type>); if ((__builtin_expect(!!(tryResult1542.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))"
, tryResult1542.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20051, mozilla::dom::quota::Severity::Error); return tryResult1542
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1543)::ok_type>); if ((__builtin_expect
(!!(tryResult1543.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mParams.objectStoreId(), Nothing()) : aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1542 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1542)::ok_type>); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1542.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20051, mozilla::dom::quota::Severity::Error); return tryResult1542.propagateErr(); }}; return Ok{}; }))"
, tryResult1543.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20054, mozilla::dom::quota::Severity::Error); return tryResult1543
.propagateErr(); }}
20050 QM_TRY({auto tryResult1543 = (ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes
( aConnection, mParams.objectStoreId(), Nothing()) : aConnection
->ExecuteCachedStatement( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns
, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement
& stmt) -> mozilla::Result<Ok, nsresult> { {auto
tryResult1542 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1542
)::ok_type>); if ((__builtin_expect(!!(tryResult1542.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))"
, tryResult1542.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20051, mozilla::dom::quota::Severity::Error); return tryResult1542
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1543)::ok_type>); if ((__builtin_expect
(!!(tryResult1543.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mParams.objectStoreId(), Nothing()) : aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1542 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1542)::ok_type>); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1542.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20051, mozilla::dom::quota::Severity::Error); return tryResult1542.propagateErr(); }}; return Ok{}; }))"
, tryResult1543.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20054, mozilla::dom::quota::Severity::Error); return tryResult1543
.propagateErr(); }}
20051 MOZ_TO_RESULT(stmt.BindInt64ByIndex(0, objectStoreId)));{auto tryResult1543 = (ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes
( aConnection, mParams.objectStoreId(), Nothing()) : aConnection
->ExecuteCachedStatement( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns
, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement
& stmt) -> mozilla::Result<Ok, nsresult> { {auto
tryResult1542 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1542
)::ok_type>); if ((__builtin_expect(!!(tryResult1542.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))"
, tryResult1542.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20051, mozilla::dom::quota::Severity::Error); return tryResult1542
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1543)::ok_type>); if ((__builtin_expect
(!!(tryResult1543.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mParams.objectStoreId(), Nothing()) : aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1542 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1542)::ok_type>); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1542.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20051, mozilla::dom::quota::Severity::Error); return tryResult1542.propagateErr(); }}; return Ok{}; }))"
, tryResult1543.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20054, mozilla::dom::quota::Severity::Error); return tryResult1543
.propagateErr(); }}
20052
20053 return Ok{};{auto tryResult1543 = (ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes
( aConnection, mParams.objectStoreId(), Nothing()) : aConnection
->ExecuteCachedStatement( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns
, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement
& stmt) -> mozilla::Result<Ok, nsresult> { {auto
tryResult1542 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1542
)::ok_type>); if ((__builtin_expect(!!(tryResult1542.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))"
, tryResult1542.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20051, mozilla::dom::quota::Severity::Error); return tryResult1542
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1543)::ok_type>); if ((__builtin_expect
(!!(tryResult1543.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mParams.objectStoreId(), Nothing()) : aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1542 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1542)::ok_type>); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1542.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20051, mozilla::dom::quota::Severity::Error); return tryResult1542.propagateErr(); }}; return Ok{}; }))"
, tryResult1543.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20054, mozilla::dom::quota::Severity::Error); return tryResult1543
.propagateErr(); }}
20054 }))){auto tryResult1543 = (ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes
( aConnection, mParams.objectStoreId(), Nothing()) : aConnection
->ExecuteCachedStatement( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns
, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement
& stmt) -> mozilla::Result<Ok, nsresult> { {auto
tryResult1542 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1542
)::ok_type>); if ((__builtin_expect(!!(tryResult1542.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))"
, tryResult1542.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20051, mozilla::dom::quota::Severity::Error); return tryResult1542
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1543)::ok_type>); if ((__builtin_expect
(!!(tryResult1543.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mParams.objectStoreId(), Nothing()) : aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1542 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1542)::ok_type>); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1542.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20051, mozilla::dom::quota::Severity::Error); return tryResult1542.propagateErr(); }}; return Ok{}; }))"
, tryResult1543.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20054, mozilla::dom::quota::Severity::Error); return tryResult1543
.propagateErr(); }}
;
20055
20056 QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult1544 = (ToResult(autoSave.Commit())); static_assert
(std::is_empty_v<typename decltype(tryResult1544)::ok_type
>); if ((__builtin_expect(!!(tryResult1544.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())"
, tryResult1544.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20056, mozilla::dom::quota::Severity::Error); return tryResult1544
.propagateErr(); }}
;
20057
20058 return NS_OK;
20059}
20060
20061nsresult ObjectStoreCountRequestOp::DoDatabaseWork(
20062 DatabaseConnection* aConnection) {
20063 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20063); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 20063); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20064 aConnection->AssertIsOnConnectionThread();
20065
20066 AUTO_PROFILER_LABEL("ObjectStoreCountRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject20066( "ObjectStoreCountRequestOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
20067
20068 const auto keyRangeClause = MaybeGetBindingClauseForKeyRange(
20069 mParams.optionalKeyRange(), kColumnNameKey);
20070
20071 QM_TRY_INSPECT(auto tryResult1547 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1545 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1545)::ok_type>); if ((__builtin_expect
(!!(tryResult1545.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1545.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20080, mozilla::dom::quota::Severity::Error); return tryResult1545
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1546 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1546)::ok_type>); if ((__builtin_expect
(!!(tryResult1546.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1546.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20084, mozilla::dom::quota::Severity::Error); return tryResult1546
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1547.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [&params = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1545 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1545)::ok_type>); if ((__builtin_expect(!!(tryResult1545.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1545.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20080, mozilla::dom::quota::Severity::Error); return tryResult1545.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1546 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1546)::ok_type>); if ((__builtin_expect(!!(tryResult1546.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1546.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20084, mozilla::dom::quota::Severity::Error); return tryResult1546.propagateErr(); }}; } return Ok{}; })"
, tryResult1547.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20088, mozilla::dom::quota::Severity::Error); return tryResult1547
.propagateErr(); } const auto& maybeStmt = tryResult1547.
inspect();
20072 const auto& maybeStmt,auto tryResult1547 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1545 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1545)::ok_type>); if ((__builtin_expect
(!!(tryResult1545.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1545.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20080, mozilla::dom::quota::Severity::Error); return tryResult1545
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1546 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1546)::ok_type>); if ((__builtin_expect
(!!(tryResult1546.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1546.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20084, mozilla::dom::quota::Severity::Error); return tryResult1546
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1547.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [&params = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1545 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1545)::ok_type>); if ((__builtin_expect(!!(tryResult1545.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1545.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20080, mozilla::dom::quota::Severity::Error); return tryResult1545.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1546 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1546)::ok_type>); if ((__builtin_expect(!!(tryResult1546.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1546.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20084, mozilla::dom::quota::Severity::Error); return tryResult1546.propagateErr(); }}; } return Ok{}; })"
, tryResult1547.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20088, mozilla::dom::quota::Severity::Error); return tryResult1547
.propagateErr(); } const auto& maybeStmt = tryResult1547.
inspect();
20073 aConnection->BorrowAndExecuteSingleStepStatement(auto tryResult1547 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1545 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1545)::ok_type>); if ((__builtin_expect
(!!(tryResult1545.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1545.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20080, mozilla::dom::quota::Severity::Error); return tryResult1545
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1546 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1546)::ok_type>); if ((__builtin_expect
(!!(tryResult1546.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1546.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20084, mozilla::dom::quota::Severity::Error); return tryResult1546
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1547.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [&params = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1545 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1545)::ok_type>); if ((__builtin_expect(!!(tryResult1545.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1545.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20080, mozilla::dom::quota::Severity::Error); return tryResult1545.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1546 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1546)::ok_type>); if ((__builtin_expect(!!(tryResult1546.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1546.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20084, mozilla::dom::quota::Severity::Error); return tryResult1546.propagateErr(); }}; } return Ok{}; })"
, tryResult1547.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20088, mozilla::dom::quota::Severity::Error); return tryResult1547
.propagateErr(); } const auto& maybeStmt = tryResult1547.
inspect();
20074 "SELECT count(*) "auto tryResult1547 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1545 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1545)::ok_type>); if ((__builtin_expect
(!!(tryResult1545.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1545.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20080, mozilla::dom::quota::Severity::Error); return tryResult1545
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1546 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1546)::ok_type>); if ((__builtin_expect
(!!(tryResult1546.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1546.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20084, mozilla::dom::quota::Severity::Error); return tryResult1546
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1547.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [&params = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1545 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1545)::ok_type>); if ((__builtin_expect(!!(tryResult1545.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1545.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20080, mozilla::dom::quota::Severity::Error); return tryResult1545.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1546 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1546)::ok_type>); if ((__builtin_expect(!!(tryResult1546.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1546.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20084, mozilla::dom::quota::Severity::Error); return tryResult1546.propagateErr(); }}; } return Ok{}; })"
, tryResult1547.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20088, mozilla::dom::quota::Severity::Error); return tryResult1547
.propagateErr(); } const auto& maybeStmt = tryResult1547.
inspect();
20075 "FROM object_data "auto tryResult1547 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1545 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1545)::ok_type>); if ((__builtin_expect
(!!(tryResult1545.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1545.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20080, mozilla::dom::quota::Severity::Error); return tryResult1545
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1546 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1546)::ok_type>); if ((__builtin_expect
(!!(tryResult1546.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1546.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20084, mozilla::dom::quota::Severity::Error); return tryResult1546
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1547.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [&params = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1545 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1545)::ok_type>); if ((__builtin_expect(!!(tryResult1545.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1545.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20080, mozilla::dom::quota::Severity::Error); return tryResult1545.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1546 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1546)::ok_type>); if ((__builtin_expect(!!(tryResult1546.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1546.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20084, mozilla::dom::quota::Severity::Error); return tryResult1546.propagateErr(); }}; } return Ok{}; })"
, tryResult1547.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20088, mozilla::dom::quota::Severity::Error); return tryResult1547
.propagateErr(); } const auto& maybeStmt = tryResult1547.
inspect();
20076 "WHERE object_store_id = :"_ns +auto tryResult1547 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1545 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1545)::ok_type>); if ((__builtin_expect
(!!(tryResult1545.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1545.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20080, mozilla::dom::quota::Severity::Error); return tryResult1545
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1546 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1546)::ok_type>); if ((__builtin_expect
(!!(tryResult1546.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1546.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20084, mozilla::dom::quota::Severity::Error); return tryResult1546
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1547.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [&params = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1545 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1545)::ok_type>); if ((__builtin_expect(!!(tryResult1545.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1545.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20080, mozilla::dom::quota::Severity::Error); return tryResult1545.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1546 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1546)::ok_type>); if ((__builtin_expect(!!(tryResult1546.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1546.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20084, mozilla::dom::quota::Severity::Error); return tryResult1546.propagateErr(); }}; } return Ok{}; })"
, tryResult1547.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20088, mozilla::dom::quota::Severity::Error); return tryResult1547
.propagateErr(); } const auto& maybeStmt = tryResult1547.
inspect();
20077 kStmtParamNameObjectStoreId + keyRangeClause,auto tryResult1547 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1545 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1545)::ok_type>); if ((__builtin_expect
(!!(tryResult1545.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1545.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20080, mozilla::dom::quota::Severity::Error); return tryResult1545
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1546 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1546)::ok_type>); if ((__builtin_expect
(!!(tryResult1546.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1546.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20084, mozilla::dom::quota::Severity::Error); return tryResult1546
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1547.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [&params = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1545 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1545)::ok_type>); if ((__builtin_expect(!!(tryResult1545.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1545.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20080, mozilla::dom::quota::Severity::Error); return tryResult1545.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1546 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1546)::ok_type>); if ((__builtin_expect(!!(tryResult1546.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1546.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20084, mozilla::dom::quota::Severity::Error); return tryResult1546.propagateErr(); }}; } return Ok{}; })"
, tryResult1547.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20088, mozilla::dom::quota::Severity::Error); return tryResult1547
.propagateErr(); } const auto& maybeStmt = tryResult1547.
inspect();
20078 [&params = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> {auto tryResult1547 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1545 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1545)::ok_type>); if ((__builtin_expect
(!!(tryResult1545.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1545.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20080, mozilla::dom::quota::Severity::Error); return tryResult1545
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1546 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1546)::ok_type>); if ((__builtin_expect
(!!(tryResult1546.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1546.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20084, mozilla::dom::quota::Severity::Error); return tryResult1546
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1547.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [&params = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1545 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1545)::ok_type>); if ((__builtin_expect(!!(tryResult1545.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1545.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20080, mozilla::dom::quota::Severity::Error); return tryResult1545.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1546 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1546)::ok_type>); if ((__builtin_expect(!!(tryResult1546.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1546.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20084, mozilla::dom::quota::Severity::Error); return tryResult1546.propagateErr(); }}; } return Ok{}; })"
, tryResult1547.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20088, mozilla::dom::quota::Severity::Error); return tryResult1547
.propagateErr(); } const auto& maybeStmt = tryResult1547.
inspect();
20079 QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByName(auto tryResult1547 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1545 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1545)::ok_type>); if ((__builtin_expect
(!!(tryResult1545.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1545.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20080, mozilla::dom::quota::Severity::Error); return tryResult1545
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1546 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1546)::ok_type>); if ((__builtin_expect
(!!(tryResult1546.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1546.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20084, mozilla::dom::quota::Severity::Error); return tryResult1546
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1547.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [&params = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1545 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1545)::ok_type>); if ((__builtin_expect(!!(tryResult1545.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1545.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20080, mozilla::dom::quota::Severity::Error); return tryResult1545.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1546 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1546)::ok_type>); if ((__builtin_expect(!!(tryResult1546.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1546.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20084, mozilla::dom::quota::Severity::Error); return tryResult1546.propagateErr(); }}; } return Ok{}; })"
, tryResult1547.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20088, mozilla::dom::quota::Severity::Error); return tryResult1547
.propagateErr(); } const auto& maybeStmt = tryResult1547.
inspect();
20080 kStmtParamNameObjectStoreId, params.objectStoreId())));auto tryResult1547 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1545 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1545)::ok_type>); if ((__builtin_expect
(!!(tryResult1545.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1545.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20080, mozilla::dom::quota::Severity::Error); return tryResult1545
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1546 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1546)::ok_type>); if ((__builtin_expect
(!!(tryResult1546.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1546.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20084, mozilla::dom::quota::Severity::Error); return tryResult1546
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1547.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [&params = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1545 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1545)::ok_type>); if ((__builtin_expect(!!(tryResult1545.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1545.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20080, mozilla::dom::quota::Severity::Error); return tryResult1545.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1546 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1546)::ok_type>); if ((__builtin_expect(!!(tryResult1546.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1546.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20084, mozilla::dom::quota::Severity::Error); return tryResult1546.propagateErr(); }}; } return Ok{}; })"
, tryResult1547.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20088, mozilla::dom::quota::Severity::Error); return tryResult1547
.propagateErr(); } const auto& maybeStmt = tryResult1547.
inspect();
20081
20082 if (params.optionalKeyRange().isSome()) {auto tryResult1547 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1545 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1545)::ok_type>); if ((__builtin_expect
(!!(tryResult1545.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1545.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20080, mozilla::dom::quota::Severity::Error); return tryResult1545
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1546 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1546)::ok_type>); if ((__builtin_expect
(!!(tryResult1546.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1546.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20084, mozilla::dom::quota::Severity::Error); return tryResult1546
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1547.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [&params = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1545 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1545)::ok_type>); if ((__builtin_expect(!!(tryResult1545.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1545.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20080, mozilla::dom::quota::Severity::Error); return tryResult1545.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1546 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1546)::ok_type>); if ((__builtin_expect(!!(tryResult1546.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1546.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20084, mozilla::dom::quota::Severity::Error); return tryResult1546.propagateErr(); }}; } return Ok{}; })"
, tryResult1547.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20088, mozilla::dom::quota::Severity::Error); return tryResult1547
.propagateErr(); } const auto& maybeStmt = tryResult1547.
inspect();
20083 QM_TRY(MOZ_TO_RESULT(BindKeyRangeToStatement(auto tryResult1547 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1545 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1545)::ok_type>); if ((__builtin_expect
(!!(tryResult1545.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1545.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20080, mozilla::dom::quota::Severity::Error); return tryResult1545
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1546 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1546)::ok_type>); if ((__builtin_expect
(!!(tryResult1546.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1546.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20084, mozilla::dom::quota::Severity::Error); return tryResult1546
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1547.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [&params = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1545 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1545)::ok_type>); if ((__builtin_expect(!!(tryResult1545.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1545.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20080, mozilla::dom::quota::Severity::Error); return tryResult1545.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1546 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1546)::ok_type>); if ((__builtin_expect(!!(tryResult1546.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1546.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20084, mozilla::dom::quota::Severity::Error); return tryResult1546.propagateErr(); }}; } return Ok{}; })"
, tryResult1547.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20088, mozilla::dom::quota::Severity::Error); return tryResult1547
.propagateErr(); } const auto& maybeStmt = tryResult1547.
inspect();
20084 params.optionalKeyRange().ref(), &stmt)));auto tryResult1547 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1545 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1545)::ok_type>); if ((__builtin_expect
(!!(tryResult1545.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1545.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20080, mozilla::dom::quota::Severity::Error); return tryResult1545
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1546 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1546)::ok_type>); if ((__builtin_expect
(!!(tryResult1546.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1546.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20084, mozilla::dom::quota::Severity::Error); return tryResult1546
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1547.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [&params = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1545 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1545)::ok_type>); if ((__builtin_expect(!!(tryResult1545.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1545.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20080, mozilla::dom::quota::Severity::Error); return tryResult1545.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1546 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1546)::ok_type>); if ((__builtin_expect(!!(tryResult1546.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1546.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20084, mozilla::dom::quota::Severity::Error); return tryResult1546.propagateErr(); }}; } return Ok{}; })"
, tryResult1547.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20088, mozilla::dom::quota::Severity::Error); return tryResult1547
.propagateErr(); } const auto& maybeStmt = tryResult1547.
inspect();
20085 }auto tryResult1547 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1545 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1545)::ok_type>); if ((__builtin_expect
(!!(tryResult1545.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1545.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20080, mozilla::dom::quota::Severity::Error); return tryResult1545
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1546 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1546)::ok_type>); if ((__builtin_expect
(!!(tryResult1546.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1546.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20084, mozilla::dom::quota::Severity::Error); return tryResult1546
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1547.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [&params = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1545 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1545)::ok_type>); if ((__builtin_expect(!!(tryResult1545.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1545.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20080, mozilla::dom::quota::Severity::Error); return tryResult1545.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1546 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1546)::ok_type>); if ((__builtin_expect(!!(tryResult1546.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1546.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20084, mozilla::dom::quota::Severity::Error); return tryResult1546.propagateErr(); }}; } return Ok{}; })"
, tryResult1547.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20088, mozilla::dom::quota::Severity::Error); return tryResult1547
.propagateErr(); } const auto& maybeStmt = tryResult1547.
inspect();
20086
20087 return Ok{};auto tryResult1547 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1545 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1545)::ok_type>); if ((__builtin_expect
(!!(tryResult1545.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1545.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20080, mozilla::dom::quota::Severity::Error); return tryResult1545
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1546 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1546)::ok_type>); if ((__builtin_expect
(!!(tryResult1546.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1546.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20084, mozilla::dom::quota::Severity::Error); return tryResult1546
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1547.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [&params = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1545 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1545)::ok_type>); if ((__builtin_expect(!!(tryResult1545.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1545.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20080, mozilla::dom::quota::Severity::Error); return tryResult1545.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1546 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1546)::ok_type>); if ((__builtin_expect(!!(tryResult1546.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1546.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20084, mozilla::dom::quota::Severity::Error); return tryResult1546.propagateErr(); }}; } return Ok{}; })"
, tryResult1547.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20088, mozilla::dom::quota::Severity::Error); return tryResult1547
.propagateErr(); } const auto& maybeStmt = tryResult1547.
inspect();
20088 }))auto tryResult1547 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1545 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1545)::ok_type>); if ((__builtin_expect
(!!(tryResult1545.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1545.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20080, mozilla::dom::quota::Severity::Error); return tryResult1545
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1546 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1546)::ok_type>); if ((__builtin_expect
(!!(tryResult1546.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1546.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20084, mozilla::dom::quota::Severity::Error); return tryResult1546
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1547.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [&params = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1545 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1545)::ok_type>); if ((__builtin_expect(!!(tryResult1545.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1545.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20080, mozilla::dom::quota::Severity::Error); return tryResult1545.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1546 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1546)::ok_type>); if ((__builtin_expect(!!(tryResult1546.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1546.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20084, mozilla::dom::quota::Severity::Error); return tryResult1546.propagateErr(); }}; } return Ok{}; })"
, tryResult1547.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20088, mozilla::dom::quota::Severity::Error); return tryResult1547
.propagateErr(); } const auto& maybeStmt = tryResult1547.
inspect();
;
20089
20090 QM_TRY(OkIf(maybeStmt.isSome()), NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR,{auto tryResult1548 = (OkIf(maybeStmt.isSome())); static_assert
(std::is_empty_v<typename decltype(tryResult1548)::ok_type
>); if ((__builtin_expect(!!(tryResult1548.isErr()), 0))) {
auto tryTempError = tryResult1548.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20096, mozilla::dom::quota::Severity::Error); [](const auto
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20094
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!"
")"); do { MOZ_CrashSequence(__null, 20094); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20095, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
20091 [](const auto) {{auto tryResult1548 = (OkIf(maybeStmt.isSome())); static_assert
(std::is_empty_v<typename decltype(tryResult1548)::ok_type
>); if ((__builtin_expect(!!(tryResult1548.isErr()), 0))) {
auto tryTempError = tryResult1548.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20096, mozilla::dom::quota::Severity::Error); [](const auto
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20094
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!"
")"); do { MOZ_CrashSequence(__null, 20094); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20095, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
20092 // XXX Why do we have an assertion here, but not at most other{auto tryResult1548 = (OkIf(maybeStmt.isSome())); static_assert
(std::is_empty_v<typename decltype(tryResult1548)::ok_type
>); if ((__builtin_expect(!!(tryResult1548.isErr()), 0))) {
auto tryTempError = tryResult1548.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20096, mozilla::dom::quota::Severity::Error); [](const auto
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20094
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!"
")"); do { MOZ_CrashSequence(__null, 20094); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20095, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
20093 // places using IDB_REPORT_INTERNAL_ERR(_LAMBDA)?{auto tryResult1548 = (OkIf(maybeStmt.isSome())); static_assert
(std::is_empty_v<typename decltype(tryResult1548)::ok_type
>); if ((__builtin_expect(!!(tryResult1548.isErr()), 0))) {
auto tryTempError = tryResult1548.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20096, mozilla::dom::quota::Severity::Error); [](const auto
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20094
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!"
")"); do { MOZ_CrashSequence(__null, 20094); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20095, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
20094 MOZ_ASSERT(false, "This should never be possible!");{auto tryResult1548 = (OkIf(maybeStmt.isSome())); static_assert
(std::is_empty_v<typename decltype(tryResult1548)::ok_type
>); if ((__builtin_expect(!!(tryResult1548.isErr()), 0))) {
auto tryTempError = tryResult1548.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20096, mozilla::dom::quota::Severity::Error); [](const auto
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20094
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!"
")"); do { MOZ_CrashSequence(__null, 20094); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20095, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
20095 IDB_REPORT_INTERNAL_ERR();{auto tryResult1548 = (OkIf(maybeStmt.isSome())); static_assert
(std::is_empty_v<typename decltype(tryResult1548)::ok_type
>); if ((__builtin_expect(!!(tryResult1548.isErr()), 0))) {
auto tryTempError = tryResult1548.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20096, mozilla::dom::quota::Severity::Error); [](const auto
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20094
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!"
")"); do { MOZ_CrashSequence(__null, 20094); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20095, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
20096 }){auto tryResult1548 = (OkIf(maybeStmt.isSome())); static_assert
(std::is_empty_v<typename decltype(tryResult1548)::ok_type
>); if ((__builtin_expect(!!(tryResult1548.isErr()), 0))) {
auto tryTempError = tryResult1548.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20096, mozilla::dom::quota::Severity::Error); [](const auto
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20094
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!"
")"); do { MOZ_CrashSequence(__null, 20094); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20095, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
;
20097
20098 const auto& stmt = *maybeStmt;
20099
20100 const int64_t count = stmt->AsInt64(0);
20101 QM_TRY(OkIf(count >= 0), NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR, [](const auto) {{auto tryResult1549 = (OkIf(count >= 0)); static_assert(std
::is_empty_v<typename decltype(tryResult1549)::ok_type>
); if ((__builtin_expect(!!(tryResult1549.isErr()), 0))) { auto
tryTempError = tryResult1549.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(count >= 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20106, mozilla::dom::quota::Severity::Error); [](const auto
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20104
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!"
")"); do { MOZ_CrashSequence(__null, 20104); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20105, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
20102 // XXX Why do we have an assertion here, but not at most other places using{auto tryResult1549 = (OkIf(count >= 0)); static_assert(std
::is_empty_v<typename decltype(tryResult1549)::ok_type>
); if ((__builtin_expect(!!(tryResult1549.isErr()), 0))) { auto
tryTempError = tryResult1549.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(count >= 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20106, mozilla::dom::quota::Severity::Error); [](const auto
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20104
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!"
")"); do { MOZ_CrashSequence(__null, 20104); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20105, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
20103 // IDB_REPORT_INTERNAL_ERR(_LAMBDA)?{auto tryResult1549 = (OkIf(count >= 0)); static_assert(std
::is_empty_v<typename decltype(tryResult1549)::ok_type>
); if ((__builtin_expect(!!(tryResult1549.isErr()), 0))) { auto
tryTempError = tryResult1549.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(count >= 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20106, mozilla::dom::quota::Severity::Error); [](const auto
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20104
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!"
")"); do { MOZ_CrashSequence(__null, 20104); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20105, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
20104 MOZ_ASSERT(false, "This should never be possible!");{auto tryResult1549 = (OkIf(count >= 0)); static_assert(std
::is_empty_v<typename decltype(tryResult1549)::ok_type>
); if ((__builtin_expect(!!(tryResult1549.isErr()), 0))) { auto
tryTempError = tryResult1549.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(count >= 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20106, mozilla::dom::quota::Severity::Error); [](const auto
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20104
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!"
")"); do { MOZ_CrashSequence(__null, 20104); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20105, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
20105 IDB_REPORT_INTERNAL_ERR();{auto tryResult1549 = (OkIf(count >= 0)); static_assert(std
::is_empty_v<typename decltype(tryResult1549)::ok_type>
); if ((__builtin_expect(!!(tryResult1549.isErr()), 0))) { auto
tryTempError = tryResult1549.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(count >= 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20106, mozilla::dom::quota::Severity::Error); [](const auto
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20104
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!"
")"); do { MOZ_CrashSequence(__null, 20104); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20105, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
20106 }){auto tryResult1549 = (OkIf(count >= 0)); static_assert(std
::is_empty_v<typename decltype(tryResult1549)::ok_type>
); if ((__builtin_expect(!!(tryResult1549.isErr()), 0))) { auto
tryTempError = tryResult1549.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(count >= 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20106, mozilla::dom::quota::Severity::Error); [](const auto
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20104
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!"
")"); do { MOZ_CrashSequence(__null, 20104); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20105, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
;
20107
20108 mResponse.count() = count;
20109
20110 return NS_OK;
20111}
20112
20113// static
20114SafeRefPtr<FullIndexMetadata> IndexRequestOpBase::IndexMetadataForParams(
20115 const TransactionBase& aTransaction, const RequestParams& aParams) {
20116 AssertIsOnBackgroundThread();
20117 MOZ_ASSERT(aParams.type() == RequestParams::TIndexGetParams ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() == RequestParams::TIndexGetParams || aParams
.type() == RequestParams::TIndexGetKeyParams || aParams.type(
) == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams
::TIndexGetAllKeysParams || aParams.type() == RequestParams::
TIndexGetAllRecordsParams || aParams.type() == RequestParams::
TIndexCountParams)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aParams.type() == RequestParams
::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams
|| aParams.type() == RequestParams::TIndexGetAllParams || aParams
.type() == RequestParams::TIndexGetAllKeysParams || aParams.type
() == RequestParams::TIndexGetAllRecordsParams || aParams.type
() == RequestParams::TIndexCountParams))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams::TIndexGetAllKeysParams || aParams.type() == RequestParams::TIndexGetAllRecordsParams || aParams.type() == RequestParams::TIndexCountParams"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20122
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams::TIndexGetAllKeysParams || aParams.type() == RequestParams::TIndexGetAllRecordsParams || aParams.type() == RequestParams::TIndexCountParams"
")"); do { MOZ_CrashSequence(__null, 20122); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
20118 aParams.type() == RequestParams::TIndexGetKeyParams ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() == RequestParams::TIndexGetParams || aParams
.type() == RequestParams::TIndexGetKeyParams || aParams.type(
) == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams
::TIndexGetAllKeysParams || aParams.type() == RequestParams::
TIndexGetAllRecordsParams || aParams.type() == RequestParams::
TIndexCountParams)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aParams.type() == RequestParams
::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams
|| aParams.type() == RequestParams::TIndexGetAllParams || aParams
.type() == RequestParams::TIndexGetAllKeysParams || aParams.type
() == RequestParams::TIndexGetAllRecordsParams || aParams.type
() == RequestParams::TIndexCountParams))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams::TIndexGetAllKeysParams || aParams.type() == RequestParams::TIndexGetAllRecordsParams || aParams.type() == RequestParams::TIndexCountParams"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20122
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams::TIndexGetAllKeysParams || aParams.type() == RequestParams::TIndexGetAllRecordsParams || aParams.type() == RequestParams::TIndexCountParams"
")"); do { MOZ_CrashSequence(__null, 20122); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
20119 aParams.type() == RequestParams::TIndexGetAllParams ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() == RequestParams::TIndexGetParams || aParams
.type() == RequestParams::TIndexGetKeyParams || aParams.type(
) == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams
::TIndexGetAllKeysParams || aParams.type() == RequestParams::
TIndexGetAllRecordsParams || aParams.type() == RequestParams::
TIndexCountParams)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aParams.type() == RequestParams
::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams
|| aParams.type() == RequestParams::TIndexGetAllParams || aParams
.type() == RequestParams::TIndexGetAllKeysParams || aParams.type
() == RequestParams::TIndexGetAllRecordsParams || aParams.type
() == RequestParams::TIndexCountParams))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams::TIndexGetAllKeysParams || aParams.type() == RequestParams::TIndexGetAllRecordsParams || aParams.type() == RequestParams::TIndexCountParams"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20122
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams::TIndexGetAllKeysParams || aParams.type() == RequestParams::TIndexGetAllRecordsParams || aParams.type() == RequestParams::TIndexCountParams"
")"); do { MOZ_CrashSequence(__null, 20122); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
20120 aParams.type() == RequestParams::TIndexGetAllKeysParams ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() == RequestParams::TIndexGetParams || aParams
.type() == RequestParams::TIndexGetKeyParams || aParams.type(
) == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams
::TIndexGetAllKeysParams || aParams.type() == RequestParams::
TIndexGetAllRecordsParams || aParams.type() == RequestParams::
TIndexCountParams)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aParams.type() == RequestParams
::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams
|| aParams.type() == RequestParams::TIndexGetAllParams || aParams
.type() == RequestParams::TIndexGetAllKeysParams || aParams.type
() == RequestParams::TIndexGetAllRecordsParams || aParams.type
() == RequestParams::TIndexCountParams))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams::TIndexGetAllKeysParams || aParams.type() == RequestParams::TIndexGetAllRecordsParams || aParams.type() == RequestParams::TIndexCountParams"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20122
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams::TIndexGetAllKeysParams || aParams.type() == RequestParams::TIndexGetAllRecordsParams || aParams.type() == RequestParams::TIndexCountParams"
")"); do { MOZ_CrashSequence(__null, 20122); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
20121 aParams.type() == RequestParams::TIndexGetAllRecordsParams ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() == RequestParams::TIndexGetParams || aParams
.type() == RequestParams::TIndexGetKeyParams || aParams.type(
) == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams
::TIndexGetAllKeysParams || aParams.type() == RequestParams::
TIndexGetAllRecordsParams || aParams.type() == RequestParams::
TIndexCountParams)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aParams.type() == RequestParams
::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams
|| aParams.type() == RequestParams::TIndexGetAllParams || aParams
.type() == RequestParams::TIndexGetAllKeysParams || aParams.type
() == RequestParams::TIndexGetAllRecordsParams || aParams.type
() == RequestParams::TIndexCountParams))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams::TIndexGetAllKeysParams || aParams.type() == RequestParams::TIndexGetAllRecordsParams || aParams.type() == RequestParams::TIndexCountParams"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20122
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams::TIndexGetAllKeysParams || aParams.type() == RequestParams::TIndexGetAllRecordsParams || aParams.type() == RequestParams::TIndexCountParams"
")"); do { MOZ_CrashSequence(__null, 20122); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
20122 aParams.type() == RequestParams::TIndexCountParams)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() == RequestParams::TIndexGetParams || aParams
.type() == RequestParams::TIndexGetKeyParams || aParams.type(
) == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams
::TIndexGetAllKeysParams || aParams.type() == RequestParams::
TIndexGetAllRecordsParams || aParams.type() == RequestParams::
TIndexCountParams)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aParams.type() == RequestParams
::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams
|| aParams.type() == RequestParams::TIndexGetAllParams || aParams
.type() == RequestParams::TIndexGetAllKeysParams || aParams.type
() == RequestParams::TIndexGetAllRecordsParams || aParams.type
() == RequestParams::TIndexCountParams))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams::TIndexGetAllKeysParams || aParams.type() == RequestParams::TIndexGetAllRecordsParams || aParams.type() == RequestParams::TIndexCountParams"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20122
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams::TIndexGetAllKeysParams || aParams.type() == RequestParams::TIndexGetAllRecordsParams || aParams.type() == RequestParams::TIndexCountParams"
")"); do { MOZ_CrashSequence(__null, 20122); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20123
20124 IndexOrObjectStoreId objectStoreId;
20125 IndexOrObjectStoreId indexId;
20126
20127 switch (aParams.type()) {
20128 case RequestParams::TIndexGetParams: {
20129 const IndexGetParams& params = aParams.get_IndexGetParams();
20130 objectStoreId = params.objectStoreId();
20131 indexId = params.indexId();
20132 break;
20133 }
20134
20135 case RequestParams::TIndexGetKeyParams: {
20136 const IndexGetKeyParams& params = aParams.get_IndexGetKeyParams();
20137 objectStoreId = params.objectStoreId();
20138 indexId = params.indexId();
20139 break;
20140 }
20141
20142 case RequestParams::TIndexGetAllParams: {
20143 const IndexGetAllParams& params = aParams.get_IndexGetAllParams();
20144 objectStoreId = params.objectStoreId();
20145 indexId = params.indexId();
20146 break;
20147 }
20148
20149 case RequestParams::TIndexGetAllKeysParams: {
20150 const IndexGetAllKeysParams& params = aParams.get_IndexGetAllKeysParams();
20151 objectStoreId = params.objectStoreId();
20152 indexId = params.indexId();
20153 break;
20154 }
20155
20156 case RequestParams::TIndexGetAllRecordsParams: {
20157 const IndexGetAllRecordsParams& params =
20158 aParams.get_IndexGetAllRecordsParams();
20159 objectStoreId = params.objectStoreId();
20160 indexId = params.indexId();
20161 break;
20162 }
20163
20164 case RequestParams::TIndexCountParams: {
20165 const IndexCountParams& params = aParams.get_IndexCountParams();
20166 objectStoreId = params.objectStoreId();
20167 indexId = params.indexId();
20168 break;
20169 }
20170
20171 default:
20172 MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20172
); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 20172); __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
20173 }
20174
20175 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
20176 aTransaction.GetMetadataForObjectStoreId(objectStoreId);
20177 MOZ_ASSERT(objectStoreMetadata)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(objectStoreMetadata)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(objectStoreMetadata))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("objectStoreMetadata"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20177
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreMetadata"
")"); do { MOZ_CrashSequence(__null, 20177); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20178
20179 SafeRefPtr<FullIndexMetadata> indexMetadata =
20180 aTransaction.GetMetadataForIndexId(*objectStoreMetadata, indexId);
20181 MOZ_ASSERT(indexMetadata)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(indexMetadata)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("indexMetadata",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20181)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"
); do { MOZ_CrashSequence(__null, 20181); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
20182
20183 return indexMetadata;
20184}
20185
20186IndexGetRequestOp::IndexGetRequestOp(SafeRefPtr<TransactionBase> aTransaction,
20187 const int64_t aRequestId,
20188 const RequestParams& aParams, bool aGetAll)
20189 : IndexRequestOpBase(std::move(aTransaction), aRequestId, aParams),
20190 mDatabase(Transaction().GetDatabasePtr()),
20191 mOptionalKeyRange(
20192 aGetAll ? aParams.get_IndexGetAllParams().options().optionalKeyRange()
20193 : Some(aParams.get_IndexGetParams().keyRange())),
20194 mBackgroundParent(Transaction().GetBackgroundParent()),
20195 mLimit(aGetAll ? aParams.get_IndexGetAllParams().options().limit() : 1),
20196 mDirection(aGetAll ? aParams.get_IndexGetAllParams().options().direction()
20197 : IDBCursorDirection::Next),
20198 mGetAll(aGetAll) {
20199 MOZ_ASSERT(aParams.type() == RequestParams::TIndexGetParams ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() == RequestParams::TIndexGetParams || aParams
.type() == RequestParams::TIndexGetAllParams)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aParams.type() == RequestParams
::TIndexGetParams || aParams.type() == RequestParams::TIndexGetAllParams
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetAllParams"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20200
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetAllParams"
")"); do { MOZ_CrashSequence(__null, 20200); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
20200 aParams.type() == RequestParams::TIndexGetAllParams)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() == RequestParams::TIndexGetParams || aParams
.type() == RequestParams::TIndexGetAllParams)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aParams.type() == RequestParams
::TIndexGetParams || aParams.type() == RequestParams::TIndexGetAllParams
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetAllParams"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20200
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetAllParams"
")"); do { MOZ_CrashSequence(__null, 20200); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20201 MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDatabase)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20201); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase"
")"); do { MOZ_CrashSequence(__null, 20201); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20202 MOZ_ASSERT_IF(!aGetAll, mOptionalKeyRange.isSome())do { if (!aGetAll) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(mOptionalKeyRange.isSome())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOptionalKeyRange.isSome()))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOptionalKeyRange.isSome()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20202
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOptionalKeyRange.isSome()"
")"); do { MOZ_CrashSequence(__null, 20202); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
20203 MOZ_ASSERT(mBackgroundParent)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mBackgroundParent)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mBackgroundParent))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("mBackgroundParent"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20203
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mBackgroundParent"
")"); do { MOZ_CrashSequence(__null, 20203); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20204}
20205
20206nsCString IndexGetRequestOp::MakeQuery() const {
20207 const auto indexTable = mMetadata->mCommonMetadata.unique()
20208 ? "unique_index_data "_ns
20209 : "index_data "_ns;
20210 if (IsUnique(mDirection) && !mMetadata->mCommonMetadata.unique()) {
20211 // For nextunique/prevunique on a non-unique index, deduplicate by index key
20212 // by selecting only the record with the minimum primary key for each index
20213 // key. unique_index_data (mMetadata->mCommonMetadata.unique()) already
20214 // enforces one record per index key, so this is only needed for
20215 // index_data.
20216 // Note we always use MIN regardless of the direction because we always
20217 // walk the items in the same order: the difference is that prevunique
20218 // prepend record while nextunique append it. See step 3 at
20219 // https://w3c.github.io/IndexedDB/#retrieve-multiple-items-from-an-index
20220 // nextunique: "append |rangeRecords[i]| to records."
20221 // prevunique: "prepend |rangeRecords[i]| to records."
20222 return "SELECT file_ids, data "
20223 "FROM object_data "
20224 "INNER JOIN ("
20225 "SELECT object_store_id, MIN(object_data_key) AS object_data_key, "
20226 "value "
20227 "FROM "_ns +
20228 indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId +
20229 MaybeGetBindingClauseForKeyRange(mOptionalKeyRange,
20230 kColumnNameValue) +
20231 " GROUP BY value, object_store_id) AS index_table "
20232 "ON object_data.object_store_id = "
20233 "index_table.object_store_id "
20234 "AND object_data.key = "
20235 "index_table.object_data_key"_ns +
20236 MakeDirectionClause(mDirection, "index_table.value"_ns) +
20237 (mLimit ? " LIMIT "_ns + IntToCString(mLimit) : EmptyCString());
20238 }
20239 return "SELECT file_ids, data "
20240 "FROM object_data "
20241 "INNER JOIN "_ns +
20242 indexTable +
20243 "AS index_table "
20244 "ON object_data.object_store_id = "
20245 "index_table.object_store_id "
20246 "AND object_data.key = "
20247 "index_table.object_data_key "
20248 "WHERE index_id = :"_ns +
20249 kStmtParamNameIndexId +
20250 MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) +
20251 MakeDirectionClause(mDirection, "index_table.value"_ns) +
20252 (mLimit ? " LIMIT "_ns + IntToCString(mLimit) : EmptyCString());
20253}
20254
20255nsresult IndexGetRequestOp::DoDatabaseWork(DatabaseConnection* aConnection) {
20256 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 20256); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20257 aConnection->AssertIsOnConnectionThread();
20258 MOZ_ASSERT_IF(!mGetAll, mOptionalKeyRange.isSome())do { if (!mGetAll) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(mOptionalKeyRange.isSome())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOptionalKeyRange.isSome()))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOptionalKeyRange.isSome()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20258
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOptionalKeyRange.isSome()"
")"); do { MOZ_CrashSequence(__null, 20258); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
20259 MOZ_ASSERT_IF(!mGetAll, mLimit == 1)do { if (!mGetAll) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(mLimit == 1)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mLimit == 1))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mLimit == 1", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20259); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLimit == 1"
")"); do { MOZ_CrashSequence(__null, 20259); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
20260 MOZ_ASSERT_IF(!mGetAll, mDirection == IDBCursorDirection::Next)do { if (!mGetAll) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(mDirection == IDBCursorDirection::Next)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mDirection == IDBCursorDirection::Next))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mDirection == IDBCursorDirection::Next"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20260
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirection == IDBCursorDirection::Next"
")"); do { MOZ_CrashSequence(__null, 20260); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
20261
20262 AUTO_PROFILER_LABEL("IndexGetRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject20262( "IndexGetRequestOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
20263
20264 QM_TRY_INSPECT(const auto& stmt,auto tryResult1550 = (aConnection->BorrowCachedStatement(MakeQuery
())); if ((__builtin_expect(!!(tryResult1550.isErr()), 0))) {
mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement(MakeQuery())"
, tryResult1550.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20265, mozilla::dom::quota::Severity::Error); return tryResult1550
.propagateErr(); } const auto& stmt = tryResult1550.inspect
();
20265 aConnection->BorrowCachedStatement(MakeQuery()))auto tryResult1550 = (aConnection->BorrowCachedStatement(MakeQuery
())); if ((__builtin_expect(!!(tryResult1550.isErr()), 0))) {
mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement(MakeQuery())"
, tryResult1550.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20265, mozilla::dom::quota::Severity::Error); return tryResult1550
.propagateErr(); } const auto& stmt = tryResult1550.inspect
();
;
20266
20267 QM_TRY(MOZ_TO_RESULT(stmt->BindInt64ByName(kStmtParamNameIndexId,{auto tryResult1551 = (ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId
, mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v
<typename decltype(tryResult1551)::ok_type>); if ((__builtin_expect
(!!(tryResult1551.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId, mMetadata->mCommonMetadata.id()))"
, tryResult1551.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20268, mozilla::dom::quota::Severity::Error); return tryResult1551
.propagateErr(); }}
20268 mMetadata->mCommonMetadata.id()))){auto tryResult1551 = (ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId
, mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v
<typename decltype(tryResult1551)::ok_type>); if ((__builtin_expect
(!!(tryResult1551.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId, mMetadata->mCommonMetadata.id()))"
, tryResult1551.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20268, mozilla::dom::quota::Severity::Error); return tryResult1551
.propagateErr(); }}
;
20269
20270 if (mOptionalKeyRange.isSome()) {
20271 QM_TRY(MOZ_TO_RESULT({auto tryResult1552 = (ToResult(BindKeyRangeToStatement(mOptionalKeyRange
.ref(), &*stmt))); static_assert(std::is_empty_v<typename
decltype(tryResult1552)::ok_type>); if ((__builtin_expect
(!!(tryResult1552.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))"
, tryResult1552.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20272, mozilla::dom::quota::Severity::Error); return tryResult1552
.propagateErr(); }}
20272 BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))){auto tryResult1552 = (ToResult(BindKeyRangeToStatement(mOptionalKeyRange
.ref(), &*stmt))); static_assert(std::is_empty_v<typename
decltype(tryResult1552)::ok_type>); if ((__builtin_expect
(!!(tryResult1552.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))"
, tryResult1552.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20272, mozilla::dom::quota::Severity::Error); return tryResult1552
.propagateErr(); }}
;
20273 }
20274
20275 QM_TRY(CollectWhileHasResult({auto tryResult1555 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1553.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20279, mozilla::dom::quota::Severity::Error); return tryResult1553
.propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20282, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20282
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1554 = (OkIf(mResponse.EmplaceBack(fallible, std::move
(cloneInfo)))); static_assert(std::is_empty_v<typename decltype
(tryResult1554)::ok_type>); if ((__builtin_expect(!!(tryResult1554
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20287, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1555
)::ok_type>); if ((__builtin_expect(!!(tryResult1555.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1553.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20279, mozilla::dom::quota::Severity::Error); return tryResult1553.propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20282, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20282); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1554 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1554)::ok_type>); if ((__builtin_expect(!!(tryResult1554.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20287, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1555.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20290, mozilla::dom::quota::Severity::Error); return tryResult1555
.propagateErr(); }}
20276 *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> {{auto tryResult1555 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1553.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20279, mozilla::dom::quota::Severity::Error); return tryResult1553
.propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20282, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20282
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1554 = (OkIf(mResponse.EmplaceBack(fallible, std::move
(cloneInfo)))); static_assert(std::is_empty_v<typename decltype
(tryResult1554)::ok_type>); if ((__builtin_expect(!!(tryResult1554
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20287, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1555
)::ok_type>); if ((__builtin_expect(!!(tryResult1555.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1553.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20279, mozilla::dom::quota::Severity::Error); return tryResult1553.propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20282, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20282); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1554 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1554)::ok_type>); if ((__builtin_expect(!!(tryResult1554.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20287, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1555.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20290, mozilla::dom::quota::Severity::Error); return tryResult1555
.propagateErr(); }}
20277 QM_TRY_UNWRAP(auto cloneInfo,{auto tryResult1555 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1553.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20279, mozilla::dom::quota::Severity::Error); return tryResult1553
.propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20282, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20282
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1554 = (OkIf(mResponse.EmplaceBack(fallible, std::move
(cloneInfo)))); static_assert(std::is_empty_v<typename decltype
(tryResult1554)::ok_type>); if ((__builtin_expect(!!(tryResult1554
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20287, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1555
)::ok_type>); if ((__builtin_expect(!!(tryResult1555.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1553.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20279, mozilla::dom::quota::Severity::Error); return tryResult1553.propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20282, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20282); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1554 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1554)::ok_type>); if ((__builtin_expect(!!(tryResult1554.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20287, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1555.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20290, mozilla::dom::quota::Severity::Error); return tryResult1555
.propagateErr(); }}
20278 GetStructuredCloneReadInfoFromStatement({auto tryResult1555 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1553.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20279, mozilla::dom::quota::Severity::Error); return tryResult1553
.propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20282, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20282
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1554 = (OkIf(mResponse.EmplaceBack(fallible, std::move
(cloneInfo)))); static_assert(std::is_empty_v<typename decltype
(tryResult1554)::ok_type>); if ((__builtin_expect(!!(tryResult1554
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20287, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1555
)::ok_type>); if ((__builtin_expect(!!(tryResult1555.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1553.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20279, mozilla::dom::quota::Severity::Error); return tryResult1553.propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20282, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20282); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1554 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1554)::ok_type>); if ((__builtin_expect(!!(tryResult1554.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20287, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1555.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20290, mozilla::dom::quota::Severity::Error); return tryResult1555
.propagateErr(); }}
20279 &stmt, 1, 0, mDatabase->GetFileManager()));{auto tryResult1555 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1553.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20279, mozilla::dom::quota::Severity::Error); return tryResult1553
.propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20282, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20282
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1554 = (OkIf(mResponse.EmplaceBack(fallible, std::move
(cloneInfo)))); static_assert(std::is_empty_v<typename decltype
(tryResult1554)::ok_type>); if ((__builtin_expect(!!(tryResult1554
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20287, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1555
)::ok_type>); if ((__builtin_expect(!!(tryResult1555.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1553.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20279, mozilla::dom::quota::Severity::Error); return tryResult1553.propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20282, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20282); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1554 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1554)::ok_type>); if ((__builtin_expect(!!(tryResult1554.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20287, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1555.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20290, mozilla::dom::quota::Severity::Error); return tryResult1555
.propagateErr(); }}
20280
20281 if (cloneInfo.HasPreprocessInfo()) {{auto tryResult1555 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1553.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20279, mozilla::dom::quota::Severity::Error); return tryResult1553
.propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20282, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20282
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1554 = (OkIf(mResponse.EmplaceBack(fallible, std::move
(cloneInfo)))); static_assert(std::is_empty_v<typename decltype
(tryResult1554)::ok_type>); if ((__builtin_expect(!!(tryResult1554
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20287, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1555
)::ok_type>); if ((__builtin_expect(!!(tryResult1555.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1553.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20279, mozilla::dom::quota::Severity::Error); return tryResult1553.propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20282, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20282); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1554 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1554)::ok_type>); if ((__builtin_expect(!!(tryResult1554.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20287, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1555.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20290, mozilla::dom::quota::Severity::Error); return tryResult1555
.propagateErr(); }}
20282 IDB_WARNING("Preprocessing for indexes not yet implemented!");{auto tryResult1555 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1553.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20279, mozilla::dom::quota::Severity::Error); return tryResult1553
.propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20282, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20282
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1554 = (OkIf(mResponse.EmplaceBack(fallible, std::move
(cloneInfo)))); static_assert(std::is_empty_v<typename decltype
(tryResult1554)::ok_type>); if ((__builtin_expect(!!(tryResult1554
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20287, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1555
)::ok_type>); if ((__builtin_expect(!!(tryResult1555.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1553.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20279, mozilla::dom::quota::Severity::Error); return tryResult1553.propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20282, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20282); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1554 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1554)::ok_type>); if ((__builtin_expect(!!(tryResult1554.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20287, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1555.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20290, mozilla::dom::quota::Severity::Error); return tryResult1555
.propagateErr(); }}
20283 return Err(NS_ERROR_NOT_IMPLEMENTED);{auto tryResult1555 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1553.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20279, mozilla::dom::quota::Severity::Error); return tryResult1553
.propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20282, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20282
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1554 = (OkIf(mResponse.EmplaceBack(fallible, std::move
(cloneInfo)))); static_assert(std::is_empty_v<typename decltype
(tryResult1554)::ok_type>); if ((__builtin_expect(!!(tryResult1554
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20287, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1555
)::ok_type>); if ((__builtin_expect(!!(tryResult1555.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1553.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20279, mozilla::dom::quota::Severity::Error); return tryResult1553.propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20282, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20282); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1554 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1554)::ok_type>); if ((__builtin_expect(!!(tryResult1554.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20287, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1555.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20290, mozilla::dom::quota::Severity::Error); return tryResult1555
.propagateErr(); }}
20284 }{auto tryResult1555 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1553.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20279, mozilla::dom::quota::Severity::Error); return tryResult1553
.propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20282, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20282
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1554 = (OkIf(mResponse.EmplaceBack(fallible, std::move
(cloneInfo)))); static_assert(std::is_empty_v<typename decltype
(tryResult1554)::ok_type>); if ((__builtin_expect(!!(tryResult1554
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20287, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1555
)::ok_type>); if ((__builtin_expect(!!(tryResult1555.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1553.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20279, mozilla::dom::quota::Severity::Error); return tryResult1553.propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20282, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20282); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1554 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1554)::ok_type>); if ((__builtin_expect(!!(tryResult1554.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20287, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1555.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20290, mozilla::dom::quota::Severity::Error); return tryResult1555
.propagateErr(); }}
20285
20286 QM_TRY(OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo))),{auto tryResult1555 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1553.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20279, mozilla::dom::quota::Severity::Error); return tryResult1553
.propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20282, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20282
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1554 = (OkIf(mResponse.EmplaceBack(fallible, std::move
(cloneInfo)))); static_assert(std::is_empty_v<typename decltype
(tryResult1554)::ok_type>); if ((__builtin_expect(!!(tryResult1554
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20287, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1555
)::ok_type>); if ((__builtin_expect(!!(tryResult1555.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1553.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20279, mozilla::dom::quota::Severity::Error); return tryResult1553.propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20282, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20282); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1554 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1554)::ok_type>); if ((__builtin_expect(!!(tryResult1554.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20287, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1555.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20290, mozilla::dom::quota::Severity::Error); return tryResult1555
.propagateErr(); }}
20287 Err(NS_ERROR_OUT_OF_MEMORY));{auto tryResult1555 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1553.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20279, mozilla::dom::quota::Severity::Error); return tryResult1553
.propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20282, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20282
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1554 = (OkIf(mResponse.EmplaceBack(fallible, std::move
(cloneInfo)))); static_assert(std::is_empty_v<typename decltype
(tryResult1554)::ok_type>); if ((__builtin_expect(!!(tryResult1554
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20287, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1555
)::ok_type>); if ((__builtin_expect(!!(tryResult1555.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1553.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20279, mozilla::dom::quota::Severity::Error); return tryResult1553.propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20282, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20282); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1554 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1554)::ok_type>); if ((__builtin_expect(!!(tryResult1554.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20287, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1555.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20290, mozilla::dom::quota::Severity::Error); return tryResult1555
.propagateErr(); }}
20288
20289 return Ok{};{auto tryResult1555 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1553.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20279, mozilla::dom::quota::Severity::Error); return tryResult1553
.propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20282, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20282
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1554 = (OkIf(mResponse.EmplaceBack(fallible, std::move
(cloneInfo)))); static_assert(std::is_empty_v<typename decltype
(tryResult1554)::ok_type>); if ((__builtin_expect(!!(tryResult1554
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20287, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1555
)::ok_type>); if ((__builtin_expect(!!(tryResult1555.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1553.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20279, mozilla::dom::quota::Severity::Error); return tryResult1553.propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20282, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20282); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1554 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1554)::ok_type>); if ((__builtin_expect(!!(tryResult1554.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20287, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1555.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20290, mozilla::dom::quota::Severity::Error); return tryResult1555
.propagateErr(); }}
20290 })){auto tryResult1555 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1553.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20279, mozilla::dom::quota::Severity::Error); return tryResult1553
.propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20282, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20282
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1554 = (OkIf(mResponse.EmplaceBack(fallible, std::move
(cloneInfo)))); static_assert(std::is_empty_v<typename decltype
(tryResult1554)::ok_type>); if ((__builtin_expect(!!(tryResult1554
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20287, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1555
)::ok_type>); if ((__builtin_expect(!!(tryResult1555.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1553.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20279, mozilla::dom::quota::Severity::Error); return tryResult1553.propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20282, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20282); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1554 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1554)::ok_type>); if ((__builtin_expect(!!(tryResult1554.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20287, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1555.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20290, mozilla::dom::quota::Severity::Error); return tryResult1555
.propagateErr(); }}
;
20291
20292 MOZ_ASSERT_IF(!mGetAll, mResponse.Length() <= 1)do { if (!mGetAll) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(mResponse.Length() <= 1)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mResponse.Length() <= 1))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mResponse.Length() <= 1"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20292
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.Length() <= 1"
")"); do { MOZ_CrashSequence(__null, 20292); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
20293
20294 return NS_OK;
20295}
20296
20297// XXX This is more or less a duplicate of ObjectStoreGetRequestOp::GetResponse
20298void IndexGetRequestOp::GetResponse(RequestResponse& aResponse,
20299 size_t* aResponseSize) {
20300 MOZ_ASSERT_IF(!mGetAll, mResponse.Length() <= 1)do { if (!mGetAll) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(mResponse.Length() <= 1)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mResponse.Length() <= 1))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mResponse.Length() <= 1"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20300
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.Length() <= 1"
")"); do { MOZ_CrashSequence(__null, 20300); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
20301
20302 auto convertResponse = [this](StructuredCloneReadInfoParent&& info)
20303 -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> {
20304 SerializedStructuredCloneReadInfo result;
20305
20306 result.data().data = info.ReleaseData();
20307
20308 QM_TRY_UNWRAP(result.files(), SerializeStructuredCloneFiles(auto tryResult1556 = (SerializeStructuredCloneFiles( mDatabase
, info.Files(), false)); if ((__builtin_expect(!!(tryResult1556
.isErr()), 0))) { mozilla::dom::quota::HandleError("SerializeStructuredCloneFiles( mDatabase, info.Files(), false)"
, tryResult1556.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20309, mozilla::dom::quota::Severity::Error); return tryResult1556
.propagateErr(); } result.files() = tryResult1556.unwrap();
20309 mDatabase, info.Files(), false))auto tryResult1556 = (SerializeStructuredCloneFiles( mDatabase
, info.Files(), false)); if ((__builtin_expect(!!(tryResult1556
.isErr()), 0))) { mozilla::dom::quota::HandleError("SerializeStructuredCloneFiles( mDatabase, info.Files(), false)"
, tryResult1556.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20309, mozilla::dom::quota::Severity::Error); return tryResult1556
.propagateErr(); } result.files() = tryResult1556.unwrap();
;
20310
20311 return result;
20312 };
20313
20314 if (mGetAll) {
20315 aResponse = IndexGetAllResponse();
20316 *aResponseSize = 0;
20317
20318 if (!mResponse.IsEmpty()) {
20319 QM_TRY_UNWRAP(aResponse.get_IndexGetAllResponse().cloneInfos(),auto tryResult1557 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [convertResponse, &aResponseSize](StructuredCloneReadInfoParent
&& info) { *aResponseSize += info.Size(); return convertResponse
(std::move(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1557
.isErr()), 0))) { auto tryTempError = tryResult1557.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [convertResponse, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return convertResponse(std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20331, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } aResponse.get_IndexGetAllResponse
().cloneInfos() = tryResult1557.unwrap();
20320 TransformIntoNewArrayAbortOnErr(auto tryResult1557 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [convertResponse, &aResponseSize](StructuredCloneReadInfoParent
&& info) { *aResponseSize += info.Size(); return convertResponse
(std::move(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1557
.isErr()), 0))) { auto tryTempError = tryResult1557.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [convertResponse, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return convertResponse(std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20331, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } aResponse.get_IndexGetAllResponse
().cloneInfos() = tryResult1557.unwrap();
20321 std::make_move_iterator(mResponse.begin()),auto tryResult1557 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [convertResponse, &aResponseSize](StructuredCloneReadInfoParent
&& info) { *aResponseSize += info.Size(); return convertResponse
(std::move(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1557
.isErr()), 0))) { auto tryTempError = tryResult1557.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [convertResponse, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return convertResponse(std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20331, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } aResponse.get_IndexGetAllResponse
().cloneInfos() = tryResult1557.unwrap();
20322 std::make_move_iterator(mResponse.end()),auto tryResult1557 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [convertResponse, &aResponseSize](StructuredCloneReadInfoParent
&& info) { *aResponseSize += info.Size(); return convertResponse
(std::move(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1557
.isErr()), 0))) { auto tryTempError = tryResult1557.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [convertResponse, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return convertResponse(std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20331, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } aResponse.get_IndexGetAllResponse
().cloneInfos() = tryResult1557.unwrap();
20323 [convertResponse,auto tryResult1557 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [convertResponse, &aResponseSize](StructuredCloneReadInfoParent
&& info) { *aResponseSize += info.Size(); return convertResponse
(std::move(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1557
.isErr()), 0))) { auto tryTempError = tryResult1557.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [convertResponse, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return convertResponse(std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20331, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } aResponse.get_IndexGetAllResponse
().cloneInfos() = tryResult1557.unwrap();
20324 &aResponseSize](StructuredCloneReadInfoParent&& info) {auto tryResult1557 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [convertResponse, &aResponseSize](StructuredCloneReadInfoParent
&& info) { *aResponseSize += info.Size(); return convertResponse
(std::move(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1557
.isErr()), 0))) { auto tryTempError = tryResult1557.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [convertResponse, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return convertResponse(std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20331, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } aResponse.get_IndexGetAllResponse
().cloneInfos() = tryResult1557.unwrap();
20325 *aResponseSize += info.Size();auto tryResult1557 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [convertResponse, &aResponseSize](StructuredCloneReadInfoParent
&& info) { *aResponseSize += info.Size(); return convertResponse
(std::move(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1557
.isErr()), 0))) { auto tryTempError = tryResult1557.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [convertResponse, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return convertResponse(std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20331, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } aResponse.get_IndexGetAllResponse
().cloneInfos() = tryResult1557.unwrap();
20326 return convertResponse(std::move(info));auto tryResult1557 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [convertResponse, &aResponseSize](StructuredCloneReadInfoParent
&& info) { *aResponseSize += info.Size(); return convertResponse
(std::move(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1557
.isErr()), 0))) { auto tryTempError = tryResult1557.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [convertResponse, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return convertResponse(std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20331, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } aResponse.get_IndexGetAllResponse
().cloneInfos() = tryResult1557.unwrap();
20327 },auto tryResult1557 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [convertResponse, &aResponseSize](StructuredCloneReadInfoParent
&& info) { *aResponseSize += info.Size(); return convertResponse
(std::move(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1557
.isErr()), 0))) { auto tryTempError = tryResult1557.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [convertResponse, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return convertResponse(std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20331, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } aResponse.get_IndexGetAllResponse
().cloneInfos() = tryResult1557.unwrap();
20328 fallible),auto tryResult1557 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [convertResponse, &aResponseSize](StructuredCloneReadInfoParent
&& info) { *aResponseSize += info.Size(); return convertResponse
(std::move(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1557
.isErr()), 0))) { auto tryTempError = tryResult1557.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [convertResponse, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return convertResponse(std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20331, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } aResponse.get_IndexGetAllResponse
().cloneInfos() = tryResult1557.unwrap();
20329 QM_VOID, [&aResponse](const nsresult result) {auto tryResult1557 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [convertResponse, &aResponseSize](StructuredCloneReadInfoParent
&& info) { *aResponseSize += info.Size(); return convertResponse
(std::move(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1557
.isErr()), 0))) { auto tryTempError = tryResult1557.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [convertResponse, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return convertResponse(std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20331, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } aResponse.get_IndexGetAllResponse
().cloneInfos() = tryResult1557.unwrap();
20330 aResponse = TransactionOpResult(result);auto tryResult1557 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [convertResponse, &aResponseSize](StructuredCloneReadInfoParent
&& info) { *aResponseSize += info.Size(); return convertResponse
(std::move(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1557
.isErr()), 0))) { auto tryTempError = tryResult1557.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [convertResponse, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return convertResponse(std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20331, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } aResponse.get_IndexGetAllResponse
().cloneInfos() = tryResult1557.unwrap();
20331 })auto tryResult1557 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [convertResponse, &aResponseSize](StructuredCloneReadInfoParent
&& info) { *aResponseSize += info.Size(); return convertResponse
(std::move(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1557
.isErr()), 0))) { auto tryTempError = tryResult1557.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [convertResponse, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return convertResponse(std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20331, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } aResponse.get_IndexGetAllResponse
().cloneInfos() = tryResult1557.unwrap();
;
20332 }
20333
20334 return;
20335 }
20336
20337 aResponse = IndexGetResponse();
20338 *aResponseSize = 0;
20339
20340 if (!mResponse.IsEmpty()) {
20341 SerializedStructuredCloneReadInfo& serializedInfo =
20342 aResponse.get_IndexGetResponse().cloneInfo();
20343
20344 *aResponseSize += mResponse[0].Size();
20345 QM_TRY_UNWRAP(serializedInfo, convertResponse(std::move(mResponse[0])),auto tryResult1558 = (convertResponse(std::move(mResponse[0])
)); if ((__builtin_expect(!!(tryResult1558.isErr()), 0))) { auto
tryTempError = tryResult1558.unwrapErr(); mozilla::dom::quota
::HandleError("convertResponse(std::move(mResponse[0]))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20348
, mozilla::dom::quota::Severity::Error); [&aResponse](const
nsresult result) { aResponse = TransactionOpResult(result); }
(tryTempError); [[maybe_unused]] constexpr const auto& func
= __func__; return ; } serializedInfo = tryResult1558.unwrap
();
20346 QM_VOID, [&aResponse](const nsresult result) {auto tryResult1558 = (convertResponse(std::move(mResponse[0])
)); if ((__builtin_expect(!!(tryResult1558.isErr()), 0))) { auto
tryTempError = tryResult1558.unwrapErr(); mozilla::dom::quota
::HandleError("convertResponse(std::move(mResponse[0]))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20348
, mozilla::dom::quota::Severity::Error); [&aResponse](const
nsresult result) { aResponse = TransactionOpResult(result); }
(tryTempError); [[maybe_unused]] constexpr const auto& func
= __func__; return ; } serializedInfo = tryResult1558.unwrap
();
20347 aResponse = TransactionOpResult(result);auto tryResult1558 = (convertResponse(std::move(mResponse[0])
)); if ((__builtin_expect(!!(tryResult1558.isErr()), 0))) { auto
tryTempError = tryResult1558.unwrapErr(); mozilla::dom::quota
::HandleError("convertResponse(std::move(mResponse[0]))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20348
, mozilla::dom::quota::Severity::Error); [&aResponse](const
nsresult result) { aResponse = TransactionOpResult(result); }
(tryTempError); [[maybe_unused]] constexpr const auto& func
= __func__; return ; } serializedInfo = tryResult1558.unwrap
();
20348 })auto tryResult1558 = (convertResponse(std::move(mResponse[0])
)); if ((__builtin_expect(!!(tryResult1558.isErr()), 0))) { auto
tryTempError = tryResult1558.unwrapErr(); mozilla::dom::quota
::HandleError("convertResponse(std::move(mResponse[0]))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20348
, mozilla::dom::quota::Severity::Error); [&aResponse](const
nsresult result) { aResponse = TransactionOpResult(result); }
(tryTempError); [[maybe_unused]] constexpr const auto& func
= __func__; return ; } serializedInfo = tryResult1558.unwrap
();
;
20349 }
20350}
20351
20352nsCString IndexGetKeyRequestOp::MakeQuery() const {
20353 const auto indexTable = mMetadata->mCommonMetadata.unique()
20354 ? "unique_index_data "_ns
20355 : "index_data "_ns;
20356
20357 if (IsUnique(mDirection) && !mMetadata->mCommonMetadata.unique()) {
20358 // For nextunique/prevunique on a non-unique index, deduplicate by index key
20359 // by selecting only the record with the minimum primary key for each index
20360 // key. unique_index_data (mMetadata->mCommonMetadata.unique()) already
20361 // enforces one record per index key, so this is only needed for
20362 // index_data.
20363 // Note we always use MIN regardless of the direction because we always
20364 // walk the items in the same order: the difference is that prevunique
20365 // prepend record while nextunique append it. See step 3 at
20366 // https://w3c.github.io/IndexedDB/#retrieve-multiple-items-from-an-index
20367 // nextunique: "append |rangeRecords[i]| to records."
20368 // prevunique: "prepend |rangeRecords[i]| to records."
20369 return "SELECT MIN(object_data_key) "
20370 "FROM "_ns +
20371 indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId +
20372 MaybeGetBindingClauseForKeyRange(mOptionalKeyRange,
20373 kColumnNameValue) +
20374 " GROUP BY value"_ns +
20375 MakeDirectionClause(mDirection, kColumnNameValue) +
20376 (mLimit ? " LIMIT "_ns + IntToCString(mLimit) : EmptyCString());
20377 }
20378 return "SELECT object_data_key "
20379 "FROM "_ns +
20380 indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId +
20381 MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) +
20382 MakeDirectionClause(mDirection, kColumnNameValue) +
20383 (mLimit ? " LIMIT "_ns + IntToCString(mLimit) : EmptyCString());
20384}
20385
20386IndexGetKeyRequestOp::IndexGetKeyRequestOp(
20387 SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId,
20388 const RequestParams& aParams, bool aGetAll)
20389 : IndexRequestOpBase(std::move(aTransaction), aRequestId, aParams),
20390 mOptionalKeyRange(
20391 aGetAll
20392 ? aParams.get_IndexGetAllKeysParams().options().optionalKeyRange()
20393 : Some(aParams.get_IndexGetKeyParams().keyRange())),
20394 mLimit(aGetAll ? aParams.get_IndexGetAllKeysParams().options().limit()
20395 : 1),
20396 mDirection(aGetAll
20397 ? aParams.get_IndexGetAllKeysParams().options().direction()
20398 : IDBCursorDirection::Next),
20399 mGetAll(aGetAll) {
20400 MOZ_ASSERT(aParams.type() == RequestParams::TIndexGetKeyParams ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() == RequestParams::TIndexGetKeyParams ||
aParams.type() == RequestParams::TIndexGetAllKeysParams)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aParams.type() == RequestParams::TIndexGetKeyParams ||
aParams.type() == RequestParams::TIndexGetAllKeysParams))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllKeysParams"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20401
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllKeysParams"
")"); do { MOZ_CrashSequence(__null, 20401); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
20401 aParams.type() == RequestParams::TIndexGetAllKeysParams)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() == RequestParams::TIndexGetKeyParams ||
aParams.type() == RequestParams::TIndexGetAllKeysParams)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aParams.type() == RequestParams::TIndexGetKeyParams ||
aParams.type() == RequestParams::TIndexGetAllKeysParams))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllKeysParams"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20401
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllKeysParams"
")"); do { MOZ_CrashSequence(__null, 20401); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20402 MOZ_ASSERT_IF(!aGetAll, mOptionalKeyRange.isSome())do { if (!aGetAll) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(mOptionalKeyRange.isSome())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOptionalKeyRange.isSome()))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOptionalKeyRange.isSome()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20402
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOptionalKeyRange.isSome()"
")"); do { MOZ_CrashSequence(__null, 20402); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
20403}
20404
20405nsresult IndexGetKeyRequestOp::DoDatabaseWork(DatabaseConnection* aConnection) {
20406 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20406); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 20406); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20407 aConnection->AssertIsOnConnectionThread();
20408 MOZ_ASSERT_IF(!mGetAll, mOptionalKeyRange.isSome())do { if (!mGetAll) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(mOptionalKeyRange.isSome())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOptionalKeyRange.isSome()))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOptionalKeyRange.isSome()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20408
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOptionalKeyRange.isSome()"
")"); do { MOZ_CrashSequence(__null, 20408); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
20409 MOZ_ASSERT_IF(!mGetAll, mLimit == 1)do { if (!mGetAll) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(mLimit == 1)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mLimit == 1))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mLimit == 1", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20409); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLimit == 1"
")"); do { MOZ_CrashSequence(__null, 20409); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
20410
20411 AUTO_PROFILER_LABEL("IndexGetKeyRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject20411( "IndexGetKeyRequestOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
20412
20413 const bool hasKeyRange = mOptionalKeyRange.isSome();
20414
20415 QM_TRY_INSPECT(const auto& stmt,auto tryResult1559 = (aConnection->BorrowCachedStatement(MakeQuery
())); if ((__builtin_expect(!!(tryResult1559.isErr()), 0))) {
mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement(MakeQuery())"
, tryResult1559.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20416, mozilla::dom::quota::Severity::Error); return tryResult1559
.propagateErr(); } const auto& stmt = tryResult1559.inspect
();
20416 aConnection->BorrowCachedStatement(MakeQuery()))auto tryResult1559 = (aConnection->BorrowCachedStatement(MakeQuery
())); if ((__builtin_expect(!!(tryResult1559.isErr()), 0))) {
mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement(MakeQuery())"
, tryResult1559.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20416, mozilla::dom::quota::Severity::Error); return tryResult1559
.propagateErr(); } const auto& stmt = tryResult1559.inspect
();
;
20417
20418 QM_TRY(MOZ_TO_RESULT(stmt->BindInt64ByName(kStmtParamNameIndexId,{auto tryResult1560 = (ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId
, mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v
<typename decltype(tryResult1560)::ok_type>); if ((__builtin_expect
(!!(tryResult1560.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId, mMetadata->mCommonMetadata.id()))"
, tryResult1560.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20419, mozilla::dom::quota::Severity::Error); return tryResult1560
.propagateErr(); }}
20419 mMetadata->mCommonMetadata.id()))){auto tryResult1560 = (ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId
, mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v
<typename decltype(tryResult1560)::ok_type>); if ((__builtin_expect
(!!(tryResult1560.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId, mMetadata->mCommonMetadata.id()))"
, tryResult1560.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20419, mozilla::dom::quota::Severity::Error); return tryResult1560
.propagateErr(); }}
;
20420
20421 if (hasKeyRange) {
20422 QM_TRY(MOZ_TO_RESULT({auto tryResult1561 = (ToResult(BindKeyRangeToStatement(mOptionalKeyRange
.ref(), &*stmt))); static_assert(std::is_empty_v<typename
decltype(tryResult1561)::ok_type>); if ((__builtin_expect
(!!(tryResult1561.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))"
, tryResult1561.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20423, mozilla::dom::quota::Severity::Error); return tryResult1561
.propagateErr(); }}
20423 BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))){auto tryResult1561 = (ToResult(BindKeyRangeToStatement(mOptionalKeyRange
.ref(), &*stmt))); static_assert(std::is_empty_v<typename
decltype(tryResult1561)::ok_type>); if ((__builtin_expect
(!!(tryResult1561.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))"
, tryResult1561.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20423, mozilla::dom::quota::Severity::Error); return tryResult1561
.propagateErr(); }}
;
20424 }
20425
20426 QM_TRY(CollectWhileHasResult({auto tryResult1564 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mResponse.AppendElement(fallible); {auto tryResult1562
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1562)::ok_type>); if ((__builtin_expect(!!(tryResult1562
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1562
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20429
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY
)); }}; {auto tryResult1563 = (ToResult(key->SetFromStatement
(&stmt, 0))); static_assert(std::is_empty_v<typename decltype
(tryResult1563)::ok_type>); if ((__builtin_expect(!!(tryResult1563
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1563.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20430, mozilla::dom::quota::Severity::Error); return tryResult1563
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1564)::ok_type>); if ((__builtin_expect
(!!(tryResult1564.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1562 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1562)::ok_type>); if ((__builtin_expect(!!(tryResult1562.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1562.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20429, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1563 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1563)::ok_type>); if ((__builtin_expect(!!(tryResult1563.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1563.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20430, mozilla::dom::quota::Severity::Error); return tryResult1563.propagateErr(); }}; return Ok{}; })"
, tryResult1564.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20433, mozilla::dom::quota::Severity::Error); return tryResult1564
.propagateErr(); }}
20427 *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> {{auto tryResult1564 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mResponse.AppendElement(fallible); {auto tryResult1562
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1562)::ok_type>); if ((__builtin_expect(!!(tryResult1562
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1562
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20429
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY
)); }}; {auto tryResult1563 = (ToResult(key->SetFromStatement
(&stmt, 0))); static_assert(std::is_empty_v<typename decltype
(tryResult1563)::ok_type>); if ((__builtin_expect(!!(tryResult1563
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1563.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20430, mozilla::dom::quota::Severity::Error); return tryResult1563
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1564)::ok_type>); if ((__builtin_expect
(!!(tryResult1564.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1562 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1562)::ok_type>); if ((__builtin_expect(!!(tryResult1562.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1562.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20429, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1563 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1563)::ok_type>); if ((__builtin_expect(!!(tryResult1563.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1563.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20430, mozilla::dom::quota::Severity::Error); return tryResult1563.propagateErr(); }}; return Ok{}; })"
, tryResult1564.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20433, mozilla::dom::quota::Severity::Error); return tryResult1564
.propagateErr(); }}
20428 Key* const key = mResponse.AppendElement(fallible);{auto tryResult1564 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mResponse.AppendElement(fallible); {auto tryResult1562
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1562)::ok_type>); if ((__builtin_expect(!!(tryResult1562
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1562
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20429
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY
)); }}; {auto tryResult1563 = (ToResult(key->SetFromStatement
(&stmt, 0))); static_assert(std::is_empty_v<typename decltype
(tryResult1563)::ok_type>); if ((__builtin_expect(!!(tryResult1563
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1563.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20430, mozilla::dom::quota::Severity::Error); return tryResult1563
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1564)::ok_type>); if ((__builtin_expect
(!!(tryResult1564.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1562 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1562)::ok_type>); if ((__builtin_expect(!!(tryResult1562.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1562.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20429, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1563 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1563)::ok_type>); if ((__builtin_expect(!!(tryResult1563.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1563.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20430, mozilla::dom::quota::Severity::Error); return tryResult1563.propagateErr(); }}; return Ok{}; })"
, tryResult1564.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20433, mozilla::dom::quota::Severity::Error); return tryResult1564
.propagateErr(); }}
20429 QM_TRY(OkIf(key), Err(NS_ERROR_OUT_OF_MEMORY));{auto tryResult1564 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mResponse.AppendElement(fallible); {auto tryResult1562
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1562)::ok_type>); if ((__builtin_expect(!!(tryResult1562
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1562
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20429
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY
)); }}; {auto tryResult1563 = (ToResult(key->SetFromStatement
(&stmt, 0))); static_assert(std::is_empty_v<typename decltype
(tryResult1563)::ok_type>); if ((__builtin_expect(!!(tryResult1563
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1563.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20430, mozilla::dom::quota::Severity::Error); return tryResult1563
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1564)::ok_type>); if ((__builtin_expect
(!!(tryResult1564.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1562 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1562)::ok_type>); if ((__builtin_expect(!!(tryResult1562.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1562.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20429, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1563 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1563)::ok_type>); if ((__builtin_expect(!!(tryResult1563.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1563.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20430, mozilla::dom::quota::Severity::Error); return tryResult1563.propagateErr(); }}; return Ok{}; })"
, tryResult1564.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20433, mozilla::dom::quota::Severity::Error); return tryResult1564
.propagateErr(); }}
20430 QM_TRY(MOZ_TO_RESULT(key->SetFromStatement(&stmt, 0)));{auto tryResult1564 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mResponse.AppendElement(fallible); {auto tryResult1562
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1562)::ok_type>); if ((__builtin_expect(!!(tryResult1562
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1562
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20429
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY
)); }}; {auto tryResult1563 = (ToResult(key->SetFromStatement
(&stmt, 0))); static_assert(std::is_empty_v<typename decltype
(tryResult1563)::ok_type>); if ((__builtin_expect(!!(tryResult1563
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1563.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20430, mozilla::dom::quota::Severity::Error); return tryResult1563
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1564)::ok_type>); if ((__builtin_expect
(!!(tryResult1564.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1562 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1562)::ok_type>); if ((__builtin_expect(!!(tryResult1562.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1562.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20429, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1563 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1563)::ok_type>); if ((__builtin_expect(!!(tryResult1563.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1563.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20430, mozilla::dom::quota::Severity::Error); return tryResult1563.propagateErr(); }}; return Ok{}; })"
, tryResult1564.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20433, mozilla::dom::quota::Severity::Error); return tryResult1564
.propagateErr(); }}
20431
20432 return Ok{};{auto tryResult1564 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mResponse.AppendElement(fallible); {auto tryResult1562
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1562)::ok_type>); if ((__builtin_expect(!!(tryResult1562
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1562
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20429
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY
)); }}; {auto tryResult1563 = (ToResult(key->SetFromStatement
(&stmt, 0))); static_assert(std::is_empty_v<typename decltype
(tryResult1563)::ok_type>); if ((__builtin_expect(!!(tryResult1563
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1563.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20430, mozilla::dom::quota::Severity::Error); return tryResult1563
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1564)::ok_type>); if ((__builtin_expect
(!!(tryResult1564.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1562 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1562)::ok_type>); if ((__builtin_expect(!!(tryResult1562.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1562.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20429, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1563 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1563)::ok_type>); if ((__builtin_expect(!!(tryResult1563.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1563.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20430, mozilla::dom::quota::Severity::Error); return tryResult1563.propagateErr(); }}; return Ok{}; })"
, tryResult1564.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20433, mozilla::dom::quota::Severity::Error); return tryResult1564
.propagateErr(); }}
20433 })){auto tryResult1564 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mResponse.AppendElement(fallible); {auto tryResult1562
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1562)::ok_type>); if ((__builtin_expect(!!(tryResult1562
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1562
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20429
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY
)); }}; {auto tryResult1563 = (ToResult(key->SetFromStatement
(&stmt, 0))); static_assert(std::is_empty_v<typename decltype
(tryResult1563)::ok_type>); if ((__builtin_expect(!!(tryResult1563
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1563.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20430, mozilla::dom::quota::Severity::Error); return tryResult1563
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1564)::ok_type>); if ((__builtin_expect
(!!(tryResult1564.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1562 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1562)::ok_type>); if ((__builtin_expect(!!(tryResult1562.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1562.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20429, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1563 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1563)::ok_type>); if ((__builtin_expect(!!(tryResult1563.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1563.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20430, mozilla::dom::quota::Severity::Error); return tryResult1563.propagateErr(); }}; return Ok{}; })"
, tryResult1564.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20433, mozilla::dom::quota::Severity::Error); return tryResult1564
.propagateErr(); }}
;
20434
20435 MOZ_ASSERT_IF(!mGetAll, mResponse.Length() <= 1)do { if (!mGetAll) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(mResponse.Length() <= 1)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mResponse.Length() <= 1))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mResponse.Length() <= 1"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20435
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.Length() <= 1"
")"); do { MOZ_CrashSequence(__null, 20435); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
20436
20437 return NS_OK;
20438}
20439
20440void IndexGetKeyRequestOp::GetResponse(RequestResponse& aResponse,
20441 size_t* aResponseSize) {
20442 MOZ_ASSERT_IF(!mGetAll, mResponse.Length() <= 1)do { if (!mGetAll) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(mResponse.Length() <= 1)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mResponse.Length() <= 1))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mResponse.Length() <= 1"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20442
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.Length() <= 1"
")"); do { MOZ_CrashSequence(__null, 20442); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
20443
20444 if (mGetAll) {
20445 aResponse = IndexGetAllKeysResponse();
20446 *aResponseSize = std::accumulate(mResponse.begin(), mResponse.end(), 0u,
20447 [](size_t old, const auto& entry) {
20448 return old + entry.GetBuffer().Length();
20449 });
20450
20451 aResponse.get_IndexGetAllKeysResponse().keys() = std::move(mResponse);
20452
20453 return;
20454 }
20455
20456 aResponse = IndexGetKeyResponse();
20457 *aResponseSize = 0;
20458
20459 if (!mResponse.IsEmpty()) {
20460 *aResponseSize = mResponse[0].GetBuffer().Length();
20461 aResponse.get_IndexGetKeyResponse().key() = std::move(mResponse[0]);
20462 }
20463}
20464
20465ObjectStoreGetAllRecordsRequestOp::ObjectStoreGetAllRecordsRequestOp(
20466 SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId,
20467 const RequestParams& aParams)
20468 : NormalTransactionOp(std::move(aTransaction), aRequestId),
20469 mObjectStoreId(
20470 aParams.get_ObjectStoreGetAllRecordsParams().objectStoreId()),
20471 mDatabase(Transaction().GetDatabasePtr()),
20472 mOptionalKeyRange(aParams.get_ObjectStoreGetAllRecordsParams()
20473 .options()
20474 .optionalKeyRange()),
20475 mBackgroundParent(Transaction().GetBackgroundParent()),
20476 mLimit(aParams.get_ObjectStoreGetAllRecordsParams().options().limit()),
20477 mDirection(
20478 aParams.get_ObjectStoreGetAllRecordsParams().options().direction()) {
20479 MOZ_ASSERT(aParams.type() == RequestParams::TObjectStoreGetAllRecordsParams)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() == RequestParams::TObjectStoreGetAllRecordsParams
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aParams.type() == RequestParams::TObjectStoreGetAllRecordsParams
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"aParams.type() == RequestParams::TObjectStoreGetAllRecordsParams"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20479
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TObjectStoreGetAllRecordsParams"
")"); do { MOZ_CrashSequence(__null, 20479); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20480 MOZ_ASSERT(mObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mObjectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mObjectStoreId))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mObjectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20480
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mObjectStoreId" ")"
); do { MOZ_CrashSequence(__null, 20480); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
20481 MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDatabase)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase"
")"); do { MOZ_CrashSequence(__null, 20481); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20482 MOZ_ASSERT(mBackgroundParent)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mBackgroundParent)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mBackgroundParent))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("mBackgroundParent"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20482
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mBackgroundParent"
")"); do { MOZ_CrashSequence(__null, 20482); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20483}
20484
20485nsresult ObjectStoreGetAllRecordsRequestOp::DoDatabaseWork(
20486 DatabaseConnection* aConnection) {
20487 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20487); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 20487); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20488 aConnection->AssertIsOnConnectionThread();
20489
20490 AUTO_PROFILER_LABEL("ObjectStoreGetAllRecordsRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject20490( "ObjectStoreGetAllRecordsRequestOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
20491
20492 const nsCString query =
20493 "SELECT key, file_ids, data "
20494 "FROM object_data "
20495 "WHERE object_store_id = :"_ns +
20496 kStmtParamNameObjectStoreId +
20497 MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameKey) +
20498 MakeDirectionClause(mDirection) +
20499 (mLimit ? " LIMIT "_ns + IntToCString(mLimit) : EmptyCString());
20500
20501 QM_TRY_INSPECT(const auto& stmt, aConnection->BorrowCachedStatement(query))auto tryResult1565 = (aConnection->BorrowCachedStatement(query
)); if ((__builtin_expect(!!(tryResult1565.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement(query)"
, tryResult1565.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20501, mozilla::dom::quota::Severity::Error); return tryResult1565
.propagateErr(); } const auto& stmt = tryResult1565.inspect
();
;
20502
20503 QM_TRY(MOZ_TO_RESULT({auto tryResult1566 = (ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId
, mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1566)::ok_type>); if ((__builtin_expect
(!!(tryResult1566.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId, mObjectStoreId))"
, tryResult1566.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20504, mozilla::dom::quota::Severity::Error); return tryResult1566
.propagateErr(); }}
20504 stmt->BindInt64ByName(kStmtParamNameObjectStoreId, mObjectStoreId))){auto tryResult1566 = (ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId
, mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1566)::ok_type>); if ((__builtin_expect
(!!(tryResult1566.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId, mObjectStoreId))"
, tryResult1566.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20504, mozilla::dom::quota::Severity::Error); return tryResult1566
.propagateErr(); }}
;
20505
20506 if (mOptionalKeyRange.isSome()) {
20507 QM_TRY(MOZ_TO_RESULT({auto tryResult1567 = (ToResult(BindKeyRangeToStatement(mOptionalKeyRange
.ref(), &*stmt))); static_assert(std::is_empty_v<typename
decltype(tryResult1567)::ok_type>); if ((__builtin_expect
(!!(tryResult1567.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))"
, tryResult1567.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20508, mozilla::dom::quota::Severity::Error); return tryResult1567
.propagateErr(); }}
20508 BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))){auto tryResult1567 = (ToResult(BindKeyRangeToStatement(mOptionalKeyRange
.ref(), &*stmt))); static_assert(std::is_empty_v<typename
decltype(tryResult1567)::ok_type>); if ((__builtin_expect
(!!(tryResult1567.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))"
, tryResult1567.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20508, mozilla::dom::quota::Severity::Error); return tryResult1567
.propagateErr(); }}
;
20509 }
20510
20511 QM_TRY(CollectWhileHasResult({auto tryResult1572 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mKeys.AppendElement(fallible); {auto tryResult1568
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1568)::ok_type>); if ((__builtin_expect(!!(tryResult1568
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1568
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20514
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY
)); }}; {auto tryResult1569 = (ToResult(key->SetFromStatement
(&stmt, 0))); static_assert(std::is_empty_v<typename decltype
(tryResult1569)::ok_type>); if ((__builtin_expect(!!(tryResult1569
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1569.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20516, mozilla::dom::quota::Severity::Error); return tryResult1569
.propagateErr(); }}; auto tryResult1570 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1570.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())"
, tryResult1570.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20520, mozilla::dom::quota::Severity::Error); return tryResult1570
.propagateErr(); } auto cloneInfo = tryResult1570.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for getAllRecords not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20523, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20523
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1571 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::
move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1571)::ok_type>); if ((__builtin_expect
(!!(tryResult1571.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1571.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20527, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1572
)::ok_type>); if ((__builtin_expect(!!(tryResult1572.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1568 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1568)::ok_type>); if ((__builtin_expect(!!(tryResult1568.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1568.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20514, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1569 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1569)::ok_type>); if ((__builtin_expect(!!(tryResult1569.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1569.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20516, mozilla::dom::quota::Severity::Error); return tryResult1569.propagateErr(); }}; auto tryResult1570 = (GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1570.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())\", tryResult1570.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20520, mozilla::dom::quota::Severity::Error); return tryResult1570.propagateErr(); } auto cloneInfo = tryResult1570.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for getAllRecords not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20523, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20523); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1571 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1571)::ok_type>); if ((__builtin_expect(!!(tryResult1571.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1571.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20527, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1572.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20530, mozilla::dom::quota::Severity::Error); return tryResult1572
.propagateErr(); }}
20512 *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> {{auto tryResult1572 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mKeys.AppendElement(fallible); {auto tryResult1568
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1568)::ok_type>); if ((__builtin_expect(!!(tryResult1568
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1568
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20514
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY
)); }}; {auto tryResult1569 = (ToResult(key->SetFromStatement
(&stmt, 0))); static_assert(std::is_empty_v<typename decltype
(tryResult1569)::ok_type>); if ((__builtin_expect(!!(tryResult1569
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1569.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20516, mozilla::dom::quota::Severity::Error); return tryResult1569
.propagateErr(); }}; auto tryResult1570 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1570.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())"
, tryResult1570.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20520, mozilla::dom::quota::Severity::Error); return tryResult1570
.propagateErr(); } auto cloneInfo = tryResult1570.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for getAllRecords not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20523, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20523
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1571 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::
move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1571)::ok_type>); if ((__builtin_expect
(!!(tryResult1571.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1571.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20527, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1572
)::ok_type>); if ((__builtin_expect(!!(tryResult1572.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1568 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1568)::ok_type>); if ((__builtin_expect(!!(tryResult1568.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1568.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20514, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1569 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1569)::ok_type>); if ((__builtin_expect(!!(tryResult1569.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1569.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20516, mozilla::dom::quota::Severity::Error); return tryResult1569.propagateErr(); }}; auto tryResult1570 = (GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1570.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())\", tryResult1570.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20520, mozilla::dom::quota::Severity::Error); return tryResult1570.propagateErr(); } auto cloneInfo = tryResult1570.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for getAllRecords not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20523, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20523); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1571 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1571)::ok_type>); if ((__builtin_expect(!!(tryResult1571.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1571.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20527, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1572.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20530, mozilla::dom::quota::Severity::Error); return tryResult1572
.propagateErr(); }}
20513 Key* const key = mKeys.AppendElement(fallible);{auto tryResult1572 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mKeys.AppendElement(fallible); {auto tryResult1568
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1568)::ok_type>); if ((__builtin_expect(!!(tryResult1568
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1568
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20514
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY
)); }}; {auto tryResult1569 = (ToResult(key->SetFromStatement
(&stmt, 0))); static_assert(std::is_empty_v<typename decltype
(tryResult1569)::ok_type>); if ((__builtin_expect(!!(tryResult1569
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1569.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20516, mozilla::dom::quota::Severity::Error); return tryResult1569
.propagateErr(); }}; auto tryResult1570 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1570.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())"
, tryResult1570.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20520, mozilla::dom::quota::Severity::Error); return tryResult1570
.propagateErr(); } auto cloneInfo = tryResult1570.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for getAllRecords not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20523, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20523
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1571 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::
move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1571)::ok_type>); if ((__builtin_expect
(!!(tryResult1571.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1571.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20527, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1572
)::ok_type>); if ((__builtin_expect(!!(tryResult1572.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1568 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1568)::ok_type>); if ((__builtin_expect(!!(tryResult1568.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1568.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20514, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1569 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1569)::ok_type>); if ((__builtin_expect(!!(tryResult1569.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1569.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20516, mozilla::dom::quota::Severity::Error); return tryResult1569.propagateErr(); }}; auto tryResult1570 = (GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1570.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())\", tryResult1570.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20520, mozilla::dom::quota::Severity::Error); return tryResult1570.propagateErr(); } auto cloneInfo = tryResult1570.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for getAllRecords not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20523, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20523); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1571 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1571)::ok_type>); if ((__builtin_expect(!!(tryResult1571.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1571.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20527, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1572.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20530, mozilla::dom::quota::Severity::Error); return tryResult1572
.propagateErr(); }}
20514 QM_TRY(OkIf(key), Err(NS_ERROR_OUT_OF_MEMORY));{auto tryResult1572 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mKeys.AppendElement(fallible); {auto tryResult1568
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1568)::ok_type>); if ((__builtin_expect(!!(tryResult1568
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1568
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20514
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY
)); }}; {auto tryResult1569 = (ToResult(key->SetFromStatement
(&stmt, 0))); static_assert(std::is_empty_v<typename decltype
(tryResult1569)::ok_type>); if ((__builtin_expect(!!(tryResult1569
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1569.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20516, mozilla::dom::quota::Severity::Error); return tryResult1569
.propagateErr(); }}; auto tryResult1570 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1570.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())"
, tryResult1570.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20520, mozilla::dom::quota::Severity::Error); return tryResult1570
.propagateErr(); } auto cloneInfo = tryResult1570.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for getAllRecords not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20523, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20523
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1571 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::
move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1571)::ok_type>); if ((__builtin_expect
(!!(tryResult1571.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1571.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20527, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1572
)::ok_type>); if ((__builtin_expect(!!(tryResult1572.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1568 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1568)::ok_type>); if ((__builtin_expect(!!(tryResult1568.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1568.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20514, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1569 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1569)::ok_type>); if ((__builtin_expect(!!(tryResult1569.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1569.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20516, mozilla::dom::quota::Severity::Error); return tryResult1569.propagateErr(); }}; auto tryResult1570 = (GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1570.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())\", tryResult1570.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20520, mozilla::dom::quota::Severity::Error); return tryResult1570.propagateErr(); } auto cloneInfo = tryResult1570.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for getAllRecords not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20523, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20523); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1571 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1571)::ok_type>); if ((__builtin_expect(!!(tryResult1571.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1571.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20527, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1572.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20530, mozilla::dom::quota::Severity::Error); return tryResult1572
.propagateErr(); }}
20515
20516 QM_TRY(MOZ_TO_RESULT(key->SetFromStatement(&stmt, 0)));{auto tryResult1572 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mKeys.AppendElement(fallible); {auto tryResult1568
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1568)::ok_type>); if ((__builtin_expect(!!(tryResult1568
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1568
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20514
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY
)); }}; {auto tryResult1569 = (ToResult(key->SetFromStatement
(&stmt, 0))); static_assert(std::is_empty_v<typename decltype
(tryResult1569)::ok_type>); if ((__builtin_expect(!!(tryResult1569
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1569.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20516, mozilla::dom::quota::Severity::Error); return tryResult1569
.propagateErr(); }}; auto tryResult1570 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1570.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())"
, tryResult1570.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20520, mozilla::dom::quota::Severity::Error); return tryResult1570
.propagateErr(); } auto cloneInfo = tryResult1570.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for getAllRecords not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20523, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20523
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1571 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::
move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1571)::ok_type>); if ((__builtin_expect
(!!(tryResult1571.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1571.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20527, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1572
)::ok_type>); if ((__builtin_expect(!!(tryResult1572.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1568 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1568)::ok_type>); if ((__builtin_expect(!!(tryResult1568.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1568.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20514, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1569 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1569)::ok_type>); if ((__builtin_expect(!!(tryResult1569.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1569.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20516, mozilla::dom::quota::Severity::Error); return tryResult1569.propagateErr(); }}; auto tryResult1570 = (GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1570.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())\", tryResult1570.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20520, mozilla::dom::quota::Severity::Error); return tryResult1570.propagateErr(); } auto cloneInfo = tryResult1570.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for getAllRecords not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20523, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20523); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1571 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1571)::ok_type>); if ((__builtin_expect(!!(tryResult1571.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1571.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20527, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1572.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20530, mozilla::dom::quota::Severity::Error); return tryResult1572
.propagateErr(); }}
20517
20518 QM_TRY_UNWRAP(auto cloneInfo,{auto tryResult1572 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mKeys.AppendElement(fallible); {auto tryResult1568
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1568)::ok_type>); if ((__builtin_expect(!!(tryResult1568
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1568
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20514
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY
)); }}; {auto tryResult1569 = (ToResult(key->SetFromStatement
(&stmt, 0))); static_assert(std::is_empty_v<typename decltype
(tryResult1569)::ok_type>); if ((__builtin_expect(!!(tryResult1569
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1569.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20516, mozilla::dom::quota::Severity::Error); return tryResult1569
.propagateErr(); }}; auto tryResult1570 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1570.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())"
, tryResult1570.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20520, mozilla::dom::quota::Severity::Error); return tryResult1570
.propagateErr(); } auto cloneInfo = tryResult1570.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for getAllRecords not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20523, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20523
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1571 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::
move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1571)::ok_type>); if ((__builtin_expect
(!!(tryResult1571.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1571.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20527, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1572
)::ok_type>); if ((__builtin_expect(!!(tryResult1572.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1568 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1568)::ok_type>); if ((__builtin_expect(!!(tryResult1568.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1568.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20514, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1569 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1569)::ok_type>); if ((__builtin_expect(!!(tryResult1569.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1569.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20516, mozilla::dom::quota::Severity::Error); return tryResult1569.propagateErr(); }}; auto tryResult1570 = (GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1570.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())\", tryResult1570.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20520, mozilla::dom::quota::Severity::Error); return tryResult1570.propagateErr(); } auto cloneInfo = tryResult1570.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for getAllRecords not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20523, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20523); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1571 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1571)::ok_type>); if ((__builtin_expect(!!(tryResult1571.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1571.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20527, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1572.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20530, mozilla::dom::quota::Severity::Error); return tryResult1572
.propagateErr(); }}
20519 GetStructuredCloneReadInfoFromStatement({auto tryResult1572 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mKeys.AppendElement(fallible); {auto tryResult1568
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1568)::ok_type>); if ((__builtin_expect(!!(tryResult1568
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1568
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20514
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY
)); }}; {auto tryResult1569 = (ToResult(key->SetFromStatement
(&stmt, 0))); static_assert(std::is_empty_v<typename decltype
(tryResult1569)::ok_type>); if ((__builtin_expect(!!(tryResult1569
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1569.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20516, mozilla::dom::quota::Severity::Error); return tryResult1569
.propagateErr(); }}; auto tryResult1570 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1570.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())"
, tryResult1570.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20520, mozilla::dom::quota::Severity::Error); return tryResult1570
.propagateErr(); } auto cloneInfo = tryResult1570.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for getAllRecords not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20523, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20523
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1571 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::
move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1571)::ok_type>); if ((__builtin_expect
(!!(tryResult1571.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1571.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20527, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1572
)::ok_type>); if ((__builtin_expect(!!(tryResult1572.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1568 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1568)::ok_type>); if ((__builtin_expect(!!(tryResult1568.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1568.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20514, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1569 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1569)::ok_type>); if ((__builtin_expect(!!(tryResult1569.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1569.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20516, mozilla::dom::quota::Severity::Error); return tryResult1569.propagateErr(); }}; auto tryResult1570 = (GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1570.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())\", tryResult1570.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20520, mozilla::dom::quota::Severity::Error); return tryResult1570.propagateErr(); } auto cloneInfo = tryResult1570.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for getAllRecords not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20523, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20523); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1571 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1571)::ok_type>); if ((__builtin_expect(!!(tryResult1571.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1571.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20527, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1572.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20530, mozilla::dom::quota::Severity::Error); return tryResult1572
.propagateErr(); }}
20520 &stmt, 2, 1, mDatabase->GetFileManager()));{auto tryResult1572 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mKeys.AppendElement(fallible); {auto tryResult1568
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1568)::ok_type>); if ((__builtin_expect(!!(tryResult1568
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1568
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20514
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY
)); }}; {auto tryResult1569 = (ToResult(key->SetFromStatement
(&stmt, 0))); static_assert(std::is_empty_v<typename decltype
(tryResult1569)::ok_type>); if ((__builtin_expect(!!(tryResult1569
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1569.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20516, mozilla::dom::quota::Severity::Error); return tryResult1569
.propagateErr(); }}; auto tryResult1570 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1570.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())"
, tryResult1570.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20520, mozilla::dom::quota::Severity::Error); return tryResult1570
.propagateErr(); } auto cloneInfo = tryResult1570.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for getAllRecords not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20523, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20523
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1571 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::
move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1571)::ok_type>); if ((__builtin_expect
(!!(tryResult1571.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1571.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20527, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1572
)::ok_type>); if ((__builtin_expect(!!(tryResult1572.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1568 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1568)::ok_type>); if ((__builtin_expect(!!(tryResult1568.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1568.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20514, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1569 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1569)::ok_type>); if ((__builtin_expect(!!(tryResult1569.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1569.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20516, mozilla::dom::quota::Severity::Error); return tryResult1569.propagateErr(); }}; auto tryResult1570 = (GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1570.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())\", tryResult1570.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20520, mozilla::dom::quota::Severity::Error); return tryResult1570.propagateErr(); } auto cloneInfo = tryResult1570.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for getAllRecords not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20523, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20523); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1571 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1571)::ok_type>); if ((__builtin_expect(!!(tryResult1571.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1571.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20527, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1572.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20530, mozilla::dom::quota::Severity::Error); return tryResult1572
.propagateErr(); }}
20521 if (cloneInfo.HasPreprocessInfo()) {{auto tryResult1572 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mKeys.AppendElement(fallible); {auto tryResult1568
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1568)::ok_type>); if ((__builtin_expect(!!(tryResult1568
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1568
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20514
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY
)); }}; {auto tryResult1569 = (ToResult(key->SetFromStatement
(&stmt, 0))); static_assert(std::is_empty_v<typename decltype
(tryResult1569)::ok_type>); if ((__builtin_expect(!!(tryResult1569
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1569.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20516, mozilla::dom::quota::Severity::Error); return tryResult1569
.propagateErr(); }}; auto tryResult1570 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1570.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())"
, tryResult1570.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20520, mozilla::dom::quota::Severity::Error); return tryResult1570
.propagateErr(); } auto cloneInfo = tryResult1570.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for getAllRecords not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20523, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20523
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1571 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::
move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1571)::ok_type>); if ((__builtin_expect
(!!(tryResult1571.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1571.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20527, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1572
)::ok_type>); if ((__builtin_expect(!!(tryResult1572.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1568 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1568)::ok_type>); if ((__builtin_expect(!!(tryResult1568.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1568.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20514, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1569 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1569)::ok_type>); if ((__builtin_expect(!!(tryResult1569.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1569.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20516, mozilla::dom::quota::Severity::Error); return tryResult1569.propagateErr(); }}; auto tryResult1570 = (GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1570.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())\", tryResult1570.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20520, mozilla::dom::quota::Severity::Error); return tryResult1570.propagateErr(); } auto cloneInfo = tryResult1570.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for getAllRecords not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20523, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20523); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1571 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1571)::ok_type>); if ((__builtin_expect(!!(tryResult1571.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1571.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20527, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1572.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20530, mozilla::dom::quota::Severity::Error); return tryResult1572
.propagateErr(); }}
20522 // Bug 1942995: not implemented yet{auto tryResult1572 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mKeys.AppendElement(fallible); {auto tryResult1568
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1568)::ok_type>); if ((__builtin_expect(!!(tryResult1568
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1568
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20514
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY
)); }}; {auto tryResult1569 = (ToResult(key->SetFromStatement
(&stmt, 0))); static_assert(std::is_empty_v<typename decltype
(tryResult1569)::ok_type>); if ((__builtin_expect(!!(tryResult1569
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1569.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20516, mozilla::dom::quota::Severity::Error); return tryResult1569
.propagateErr(); }}; auto tryResult1570 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1570.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())"
, tryResult1570.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20520, mozilla::dom::quota::Severity::Error); return tryResult1570
.propagateErr(); } auto cloneInfo = tryResult1570.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for getAllRecords not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20523, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20523
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1571 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::
move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1571)::ok_type>); if ((__builtin_expect
(!!(tryResult1571.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1571.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20527, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1572
)::ok_type>); if ((__builtin_expect(!!(tryResult1572.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1568 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1568)::ok_type>); if ((__builtin_expect(!!(tryResult1568.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1568.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20514, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1569 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1569)::ok_type>); if ((__builtin_expect(!!(tryResult1569.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1569.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20516, mozilla::dom::quota::Severity::Error); return tryResult1569.propagateErr(); }}; auto tryResult1570 = (GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1570.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())\", tryResult1570.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20520, mozilla::dom::quota::Severity::Error); return tryResult1570.propagateErr(); } auto cloneInfo = tryResult1570.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for getAllRecords not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20523, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20523); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1571 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1571)::ok_type>); if ((__builtin_expect(!!(tryResult1571.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1571.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20527, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1572.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20530, mozilla::dom::quota::Severity::Error); return tryResult1572
.propagateErr(); }}
20523 IDB_WARNING("Preprocessing for getAllRecords not yet implemented!");{auto tryResult1572 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mKeys.AppendElement(fallible); {auto tryResult1568
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1568)::ok_type>); if ((__builtin_expect(!!(tryResult1568
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1568
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20514
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY
)); }}; {auto tryResult1569 = (ToResult(key->SetFromStatement
(&stmt, 0))); static_assert(std::is_empty_v<typename decltype
(tryResult1569)::ok_type>); if ((__builtin_expect(!!(tryResult1569
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1569.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20516, mozilla::dom::quota::Severity::Error); return tryResult1569
.propagateErr(); }}; auto tryResult1570 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1570.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())"
, tryResult1570.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20520, mozilla::dom::quota::Severity::Error); return tryResult1570
.propagateErr(); } auto cloneInfo = tryResult1570.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for getAllRecords not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20523, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20523
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1571 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::
move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1571)::ok_type>); if ((__builtin_expect
(!!(tryResult1571.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1571.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20527, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1572
)::ok_type>); if ((__builtin_expect(!!(tryResult1572.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1568 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1568)::ok_type>); if ((__builtin_expect(!!(tryResult1568.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1568.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20514, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1569 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1569)::ok_type>); if ((__builtin_expect(!!(tryResult1569.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1569.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20516, mozilla::dom::quota::Severity::Error); return tryResult1569.propagateErr(); }}; auto tryResult1570 = (GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1570.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())\", tryResult1570.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20520, mozilla::dom::quota::Severity::Error); return tryResult1570.propagateErr(); } auto cloneInfo = tryResult1570.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for getAllRecords not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20523, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20523); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1571 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1571)::ok_type>); if ((__builtin_expect(!!(tryResult1571.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1571.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20527, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1572.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20530, mozilla::dom::quota::Severity::Error); return tryResult1572
.propagateErr(); }}
20524 return Err(NS_ERROR_NOT_IMPLEMENTED);{auto tryResult1572 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mKeys.AppendElement(fallible); {auto tryResult1568
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1568)::ok_type>); if ((__builtin_expect(!!(tryResult1568
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1568
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20514
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY
)); }}; {auto tryResult1569 = (ToResult(key->SetFromStatement
(&stmt, 0))); static_assert(std::is_empty_v<typename decltype
(tryResult1569)::ok_type>); if ((__builtin_expect(!!(tryResult1569
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1569.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20516, mozilla::dom::quota::Severity::Error); return tryResult1569
.propagateErr(); }}; auto tryResult1570 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1570.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())"
, tryResult1570.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20520, mozilla::dom::quota::Severity::Error); return tryResult1570
.propagateErr(); } auto cloneInfo = tryResult1570.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for getAllRecords not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20523, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20523
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1571 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::
move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1571)::ok_type>); if ((__builtin_expect
(!!(tryResult1571.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1571.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20527, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1572
)::ok_type>); if ((__builtin_expect(!!(tryResult1572.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1568 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1568)::ok_type>); if ((__builtin_expect(!!(tryResult1568.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1568.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20514, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1569 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1569)::ok_type>); if ((__builtin_expect(!!(tryResult1569.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1569.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20516, mozilla::dom::quota::Severity::Error); return tryResult1569.propagateErr(); }}; auto tryResult1570 = (GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1570.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())\", tryResult1570.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20520, mozilla::dom::quota::Severity::Error); return tryResult1570.propagateErr(); } auto cloneInfo = tryResult1570.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for getAllRecords not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20523, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20523); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1571 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1571)::ok_type>); if ((__builtin_expect(!!(tryResult1571.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1571.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20527, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1572.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20530, mozilla::dom::quota::Severity::Error); return tryResult1572
.propagateErr(); }}
20525 }{auto tryResult1572 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mKeys.AppendElement(fallible); {auto tryResult1568
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1568)::ok_type>); if ((__builtin_expect(!!(tryResult1568
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1568
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20514
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY
)); }}; {auto tryResult1569 = (ToResult(key->SetFromStatement
(&stmt, 0))); static_assert(std::is_empty_v<typename decltype
(tryResult1569)::ok_type>); if ((__builtin_expect(!!(tryResult1569
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1569.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20516, mozilla::dom::quota::Severity::Error); return tryResult1569
.propagateErr(); }}; auto tryResult1570 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1570.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())"
, tryResult1570.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20520, mozilla::dom::quota::Severity::Error); return tryResult1570
.propagateErr(); } auto cloneInfo = tryResult1570.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for getAllRecords not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20523, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20523
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1571 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::
move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1571)::ok_type>); if ((__builtin_expect
(!!(tryResult1571.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1571.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20527, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1572
)::ok_type>); if ((__builtin_expect(!!(tryResult1572.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1568 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1568)::ok_type>); if ((__builtin_expect(!!(tryResult1568.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1568.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20514, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1569 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1569)::ok_type>); if ((__builtin_expect(!!(tryResult1569.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1569.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20516, mozilla::dom::quota::Severity::Error); return tryResult1569.propagateErr(); }}; auto tryResult1570 = (GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1570.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())\", tryResult1570.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20520, mozilla::dom::quota::Severity::Error); return tryResult1570.propagateErr(); } auto cloneInfo = tryResult1570.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for getAllRecords not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20523, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20523); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1571 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1571)::ok_type>); if ((__builtin_expect(!!(tryResult1571.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1571.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20527, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1572.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20530, mozilla::dom::quota::Severity::Error); return tryResult1572
.propagateErr(); }}
20526 QM_TRY(OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo))),{auto tryResult1572 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mKeys.AppendElement(fallible); {auto tryResult1568
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1568)::ok_type>); if ((__builtin_expect(!!(tryResult1568
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1568
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20514
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY
)); }}; {auto tryResult1569 = (ToResult(key->SetFromStatement
(&stmt, 0))); static_assert(std::is_empty_v<typename decltype
(tryResult1569)::ok_type>); if ((__builtin_expect(!!(tryResult1569
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1569.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20516, mozilla::dom::quota::Severity::Error); return tryResult1569
.propagateErr(); }}; auto tryResult1570 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1570.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())"
, tryResult1570.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20520, mozilla::dom::quota::Severity::Error); return tryResult1570
.propagateErr(); } auto cloneInfo = tryResult1570.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for getAllRecords not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20523, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20523
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1571 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::
move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1571)::ok_type>); if ((__builtin_expect
(!!(tryResult1571.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1571.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20527, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1572
)::ok_type>); if ((__builtin_expect(!!(tryResult1572.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1568 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1568)::ok_type>); if ((__builtin_expect(!!(tryResult1568.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1568.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20514, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1569 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1569)::ok_type>); if ((__builtin_expect(!!(tryResult1569.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1569.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20516, mozilla::dom::quota::Severity::Error); return tryResult1569.propagateErr(); }}; auto tryResult1570 = (GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1570.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())\", tryResult1570.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20520, mozilla::dom::quota::Severity::Error); return tryResult1570.propagateErr(); } auto cloneInfo = tryResult1570.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for getAllRecords not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20523, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20523); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1571 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1571)::ok_type>); if ((__builtin_expect(!!(tryResult1571.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1571.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20527, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1572.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20530, mozilla::dom::quota::Severity::Error); return tryResult1572
.propagateErr(); }}
20527 Err(NS_ERROR_OUT_OF_MEMORY));{auto tryResult1572 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mKeys.AppendElement(fallible); {auto tryResult1568
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1568)::ok_type>); if ((__builtin_expect(!!(tryResult1568
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1568
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20514
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY
)); }}; {auto tryResult1569 = (ToResult(key->SetFromStatement
(&stmt, 0))); static_assert(std::is_empty_v<typename decltype
(tryResult1569)::ok_type>); if ((__builtin_expect(!!(tryResult1569
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1569.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20516, mozilla::dom::quota::Severity::Error); return tryResult1569
.propagateErr(); }}; auto tryResult1570 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1570.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())"
, tryResult1570.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20520, mozilla::dom::quota::Severity::Error); return tryResult1570
.propagateErr(); } auto cloneInfo = tryResult1570.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for getAllRecords not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20523, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20523
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1571 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::
move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1571)::ok_type>); if ((__builtin_expect
(!!(tryResult1571.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1571.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20527, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1572
)::ok_type>); if ((__builtin_expect(!!(tryResult1572.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1568 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1568)::ok_type>); if ((__builtin_expect(!!(tryResult1568.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1568.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20514, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1569 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1569)::ok_type>); if ((__builtin_expect(!!(tryResult1569.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1569.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20516, mozilla::dom::quota::Severity::Error); return tryResult1569.propagateErr(); }}; auto tryResult1570 = (GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1570.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())\", tryResult1570.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20520, mozilla::dom::quota::Severity::Error); return tryResult1570.propagateErr(); } auto cloneInfo = tryResult1570.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for getAllRecords not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20523, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20523); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1571 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1571)::ok_type>); if ((__builtin_expect(!!(tryResult1571.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1571.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20527, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1572.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20530, mozilla::dom::quota::Severity::Error); return tryResult1572
.propagateErr(); }}
20528
20529 return Ok{};{auto tryResult1572 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mKeys.AppendElement(fallible); {auto tryResult1568
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1568)::ok_type>); if ((__builtin_expect(!!(tryResult1568
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1568
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20514
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY
)); }}; {auto tryResult1569 = (ToResult(key->SetFromStatement
(&stmt, 0))); static_assert(std::is_empty_v<typename decltype
(tryResult1569)::ok_type>); if ((__builtin_expect(!!(tryResult1569
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1569.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20516, mozilla::dom::quota::Severity::Error); return tryResult1569
.propagateErr(); }}; auto tryResult1570 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1570.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())"
, tryResult1570.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20520, mozilla::dom::quota::Severity::Error); return tryResult1570
.propagateErr(); } auto cloneInfo = tryResult1570.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for getAllRecords not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20523, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20523
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1571 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::
move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1571)::ok_type>); if ((__builtin_expect
(!!(tryResult1571.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1571.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20527, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1572
)::ok_type>); if ((__builtin_expect(!!(tryResult1572.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1568 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1568)::ok_type>); if ((__builtin_expect(!!(tryResult1568.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1568.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20514, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1569 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1569)::ok_type>); if ((__builtin_expect(!!(tryResult1569.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1569.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20516, mozilla::dom::quota::Severity::Error); return tryResult1569.propagateErr(); }}; auto tryResult1570 = (GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1570.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())\", tryResult1570.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20520, mozilla::dom::quota::Severity::Error); return tryResult1570.propagateErr(); } auto cloneInfo = tryResult1570.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for getAllRecords not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20523, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20523); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1571 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1571)::ok_type>); if ((__builtin_expect(!!(tryResult1571.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1571.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20527, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1572.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20530, mozilla::dom::quota::Severity::Error); return tryResult1572
.propagateErr(); }}
20530 })){auto tryResult1572 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mKeys.AppendElement(fallible); {auto tryResult1568
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1568)::ok_type>); if ((__builtin_expect(!!(tryResult1568
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1568
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20514
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY
)); }}; {auto tryResult1569 = (ToResult(key->SetFromStatement
(&stmt, 0))); static_assert(std::is_empty_v<typename decltype
(tryResult1569)::ok_type>); if ((__builtin_expect(!!(tryResult1569
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1569.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20516, mozilla::dom::quota::Severity::Error); return tryResult1569
.propagateErr(); }}; auto tryResult1570 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1570.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())"
, tryResult1570.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20520, mozilla::dom::quota::Severity::Error); return tryResult1570
.propagateErr(); } auto cloneInfo = tryResult1570.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for getAllRecords not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20523, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20523
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1571 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::
move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1571)::ok_type>); if ((__builtin_expect
(!!(tryResult1571.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1571.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20527, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1572
)::ok_type>); if ((__builtin_expect(!!(tryResult1572.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1568 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1568)::ok_type>); if ((__builtin_expect(!!(tryResult1568.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1568.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20514, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1569 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1569)::ok_type>); if ((__builtin_expect(!!(tryResult1569.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1569.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20516, mozilla::dom::quota::Severity::Error); return tryResult1569.propagateErr(); }}; auto tryResult1570 = (GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1570.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())\", tryResult1570.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20520, mozilla::dom::quota::Severity::Error); return tryResult1570.propagateErr(); } auto cloneInfo = tryResult1570.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for getAllRecords not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20523, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20523); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1571 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1571)::ok_type>); if ((__builtin_expect(!!(tryResult1571.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1571.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20527, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1572.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20530, mozilla::dom::quota::Severity::Error); return tryResult1572
.propagateErr(); }}
;
20531
20532 return NS_OK;
20533}
20534
20535void ObjectStoreGetAllRecordsRequestOp::GetResponse(RequestResponse& aResponse,
20536 size_t* aResponseSize) {
20537 MOZ_ASSERT(mKeys.Length() == mCloneInfos.Length())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mKeys.Length() == mCloneInfos.Length())>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mKeys.Length() == mCloneInfos.Length()))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mKeys.Length() == mCloneInfos.Length()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20537
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mKeys.Length() == mCloneInfos.Length()"
")"); do { MOZ_CrashSequence(__null, 20537); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20538 MOZ_ASSERT_IF(mLimit, mKeys.Length() <= mLimit)do { if (mLimit) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(mKeys.Length() <= mLimit)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mKeys.Length() <= mLimit)
)), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mKeys.Length() <= mLimit"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20538
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mKeys.Length() <= mLimit"
")"); do { MOZ_CrashSequence(__null, 20538); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
20539
20540 aResponse = ObjectStoreGetAllRecordsResponse();
20541 *aResponseSize = 0;
20542
20543 if (mKeys.IsEmpty()) {
20544 return;
20545 }
20546
20547 auto& resp = aResponse.get_ObjectStoreGetAllRecordsResponse();
20548
20549 for (const auto& key : mKeys) {
20550 *aResponseSize += key.GetBuffer().Length();
20551 }
20552 resp.keys() = std::move(mKeys);
20553
20554 QM_TRY_UNWRAP(auto tryResult1573 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end
()), [this, &aResponseSize](StructuredCloneReadInfoParent
&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo
, nsresult> { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( mDatabase, std::move
(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1573
.isErr()), 0))) { auto tryTempError = tryResult1573.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20568, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } resp.cloneInfos() = tryResult1573
.unwrap();
20555 resp.cloneInfos(),auto tryResult1573 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end
()), [this, &aResponseSize](StructuredCloneReadInfoParent
&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo
, nsresult> { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( mDatabase, std::move
(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1573
.isErr()), 0))) { auto tryTempError = tryResult1573.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20568, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } resp.cloneInfos() = tryResult1573
.unwrap();
20556 TransformIntoNewArrayAbortOnErr(auto tryResult1573 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end
()), [this, &aResponseSize](StructuredCloneReadInfoParent
&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo
, nsresult> { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( mDatabase, std::move
(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1573
.isErr()), 0))) { auto tryTempError = tryResult1573.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20568, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } resp.cloneInfos() = tryResult1573
.unwrap();
20557 std::make_move_iterator(mCloneInfos.begin()),auto tryResult1573 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end
()), [this, &aResponseSize](StructuredCloneReadInfoParent
&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo
, nsresult> { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( mDatabase, std::move
(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1573
.isErr()), 0))) { auto tryTempError = tryResult1573.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20568, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } resp.cloneInfos() = tryResult1573
.unwrap();
20558 std::make_move_iterator(mCloneInfos.end()),auto tryResult1573 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end
()), [this, &aResponseSize](StructuredCloneReadInfoParent
&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo
, nsresult> { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( mDatabase, std::move
(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1573
.isErr()), 0))) { auto tryTempError = tryResult1573.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20568, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } resp.cloneInfos() = tryResult1573
.unwrap();
20559 [this, &aResponseSize](StructuredCloneReadInfoParent&& info)auto tryResult1573 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end
()), [this, &aResponseSize](StructuredCloneReadInfoParent
&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo
, nsresult> { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( mDatabase, std::move
(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1573
.isErr()), 0))) { auto tryTempError = tryResult1573.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20568, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } resp.cloneInfos() = tryResult1573
.unwrap();
20560 -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> {auto tryResult1573 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end
()), [this, &aResponseSize](StructuredCloneReadInfoParent
&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo
, nsresult> { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( mDatabase, std::move
(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1573
.isErr()), 0))) { auto tryTempError = tryResult1573.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20568, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } resp.cloneInfos() = tryResult1573
.unwrap();
20561 *aResponseSize += info.Size();auto tryResult1573 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end
()), [this, &aResponseSize](StructuredCloneReadInfoParent
&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo
, nsresult> { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( mDatabase, std::move
(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1573
.isErr()), 0))) { auto tryTempError = tryResult1573.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20568, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } resp.cloneInfos() = tryResult1573
.unwrap();
20562 return ConvertResponse<SerializedStructuredCloneReadInfo>(auto tryResult1573 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end
()), [this, &aResponseSize](StructuredCloneReadInfoParent
&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo
, nsresult> { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( mDatabase, std::move
(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1573
.isErr()), 0))) { auto tryTempError = tryResult1573.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20568, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } resp.cloneInfos() = tryResult1573
.unwrap();
20563 mDatabase, std::move(info));auto tryResult1573 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end
()), [this, &aResponseSize](StructuredCloneReadInfoParent
&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo
, nsresult> { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( mDatabase, std::move
(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1573
.isErr()), 0))) { auto tryTempError = tryResult1573.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20568, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } resp.cloneInfos() = tryResult1573
.unwrap();
20564 },auto tryResult1573 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end
()), [this, &aResponseSize](StructuredCloneReadInfoParent
&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo
, nsresult> { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( mDatabase, std::move
(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1573
.isErr()), 0))) { auto tryTempError = tryResult1573.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20568, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } resp.cloneInfos() = tryResult1573
.unwrap();
20565 fallible),auto tryResult1573 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end
()), [this, &aResponseSize](StructuredCloneReadInfoParent
&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo
, nsresult> { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( mDatabase, std::move
(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1573
.isErr()), 0))) { auto tryTempError = tryResult1573.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20568, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } resp.cloneInfos() = tryResult1573
.unwrap();
20566 QM_VOID, [&aResponse](const nsresult result) {auto tryResult1573 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end
()), [this, &aResponseSize](StructuredCloneReadInfoParent
&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo
, nsresult> { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( mDatabase, std::move
(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1573
.isErr()), 0))) { auto tryTempError = tryResult1573.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20568, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } resp.cloneInfos() = tryResult1573
.unwrap();
20567 aResponse = TransactionOpResult(result);auto tryResult1573 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end
()), [this, &aResponseSize](StructuredCloneReadInfoParent
&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo
, nsresult> { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( mDatabase, std::move
(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1573
.isErr()), 0))) { auto tryTempError = tryResult1573.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20568, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } resp.cloneInfos() = tryResult1573
.unwrap();
20568 })auto tryResult1573 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end
()), [this, &aResponseSize](StructuredCloneReadInfoParent
&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo
, nsresult> { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( mDatabase, std::move
(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1573
.isErr()), 0))) { auto tryTempError = tryResult1573.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20568, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } resp.cloneInfos() = tryResult1573
.unwrap();
;
20569}
20570
20571IndexGetAllRecordsRequestOp::IndexGetAllRecordsRequestOp(
20572 SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId,
20573 const RequestParams& aParams)
20574 : IndexRequestOpBase(std::move(aTransaction), aRequestId, aParams),
20575 mDatabase(Transaction().GetDatabasePtr()),
20576 mOptionalKeyRange(
20577 aParams.get_IndexGetAllRecordsParams().options().optionalKeyRange()),
20578 mBackgroundParent(Transaction().GetBackgroundParent()),
20579 mLimit(aParams.get_IndexGetAllRecordsParams().options().limit()),
20580 mDirection(aParams.get_IndexGetAllRecordsParams().options().direction()) {
20581 MOZ_ASSERT(aParams.type() == RequestParams::TIndexGetAllRecordsParams)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() == RequestParams::TIndexGetAllRecordsParams
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aParams.type() == RequestParams::TIndexGetAllRecordsParams
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"aParams.type() == RequestParams::TIndexGetAllRecordsParams",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20581)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetAllRecordsParams"
")"); do { MOZ_CrashSequence(__null, 20581); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20582 MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDatabase)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20582); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase"
")"); do { MOZ_CrashSequence(__null, 20582); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20583 MOZ_ASSERT(mBackgroundParent)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mBackgroundParent)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mBackgroundParent))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("mBackgroundParent"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20583
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mBackgroundParent"
")"); do { MOZ_CrashSequence(__null, 20583); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20584}
20585
20586nsCString IndexGetAllRecordsRequestOp::MakeQuery() const {
20587 const auto indexTable = mMetadata->mCommonMetadata.unique()
20588 ? "unique_index_data "_ns
20589 : "index_data "_ns;
20590
20591 if (IsUnique(mDirection) && !mMetadata->mCommonMetadata.unique()) {
20592 // For nextunique/prevunique on a non-unique index, deduplicate by index
20593 // key by selecting only the record with the minimum primary key for each
20594 // index key.
20595 // Note we always use MIN regardless of the direction because we always
20596 // walk the items in the same order: the difference is that prevunique
20597 // prepend record while nextunique append it. See step 3 at
20598 // https://w3c.github.io/IndexedDB/#retrieve-multiple-items-from-an-index
20599 // nextunique: "append |rangeRecords[i]| to records."
20600 // prevunique: "prepend |rangeRecords[i]| to records."
20601 return "SELECT index_table.value, object_data.key, "
20602 "object_data.file_ids, object_data.data "
20603 "FROM object_data "
20604 "INNER JOIN ("
20605 "SELECT object_store_id, MIN(object_data_key) AS object_data_key, "
20606 "value "
20607 "FROM "_ns +
20608 indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId +
20609 MaybeGetBindingClauseForKeyRange(mOptionalKeyRange,
20610 kColumnNameValue) +
20611 " GROUP BY value, object_store_id) AS index_table "
20612 "ON object_data.object_store_id = "
20613 "index_table.object_store_id "
20614 "AND object_data.key = "
20615 "index_table.object_data_key"_ns +
20616 MakeDirectionClause(mDirection, "index_table.value"_ns) +
20617 (mLimit ? " LIMIT "_ns + IntToCString(mLimit) : EmptyCString());
20618 }
20619 return "SELECT index_table.value, object_data.key, "
20620 "object_data.file_ids, object_data.data "
20621 "FROM object_data "
20622 "INNER JOIN "_ns +
20623 indexTable +
20624 "AS index_table "
20625 "ON object_data.object_store_id = "
20626 "index_table.object_store_id "
20627 "AND object_data.key = "
20628 "index_table.object_data_key "
20629 "WHERE index_id = :"_ns +
20630 kStmtParamNameIndexId +
20631 MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) +
20632 MakeDirectionClause(mDirection, "index_table.value"_ns) +
20633 (mLimit ? " LIMIT "_ns + IntToCString(mLimit) : EmptyCString());
20634}
20635
20636nsresult IndexGetAllRecordsRequestOp::DoDatabaseWork(
20637 DatabaseConnection* aConnection) {
20638 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20638); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 20638); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20639 aConnection->AssertIsOnConnectionThread();
20640
20641 AUTO_PROFILER_LABEL("IndexGetAllRecordsRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject20641( "IndexGetAllRecordsRequestOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
20642
20643 QM_TRY_INSPECT(const auto& stmt,auto tryResult1574 = (aConnection->BorrowCachedStatement(MakeQuery
())); if ((__builtin_expect(!!(tryResult1574.isErr()), 0))) {
mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement(MakeQuery())"
, tryResult1574.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20644, mozilla::dom::quota::Severity::Error); return tryResult1574
.propagateErr(); } const auto& stmt = tryResult1574.inspect
();
20644 aConnection->BorrowCachedStatement(MakeQuery()))auto tryResult1574 = (aConnection->BorrowCachedStatement(MakeQuery
())); if ((__builtin_expect(!!(tryResult1574.isErr()), 0))) {
mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement(MakeQuery())"
, tryResult1574.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20644, mozilla::dom::quota::Severity::Error); return tryResult1574
.propagateErr(); } const auto& stmt = tryResult1574.inspect
();
;
20645
20646 QM_TRY(MOZ_TO_RESULT(stmt->BindInt64ByName(kStmtParamNameIndexId,{auto tryResult1575 = (ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId
, mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v
<typename decltype(tryResult1575)::ok_type>); if ((__builtin_expect
(!!(tryResult1575.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId, mMetadata->mCommonMetadata.id()))"
, tryResult1575.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20647, mozilla::dom::quota::Severity::Error); return tryResult1575
.propagateErr(); }}
20647 mMetadata->mCommonMetadata.id()))){auto tryResult1575 = (ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId
, mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v
<typename decltype(tryResult1575)::ok_type>); if ((__builtin_expect
(!!(tryResult1575.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId, mMetadata->mCommonMetadata.id()))"
, tryResult1575.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20647, mozilla::dom::quota::Severity::Error); return tryResult1575
.propagateErr(); }}
;
20648
20649 if (mOptionalKeyRange.isSome()) {
20650 QM_TRY(MOZ_TO_RESULT({auto tryResult1576 = (ToResult(BindKeyRangeToStatement(mOptionalKeyRange
.ref(), &*stmt))); static_assert(std::is_empty_v<typename
decltype(tryResult1576)::ok_type>); if ((__builtin_expect
(!!(tryResult1576.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))"
, tryResult1576.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20651, mozilla::dom::quota::Severity::Error); return tryResult1576
.propagateErr(); }}
20651 BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))){auto tryResult1576 = (ToResult(BindKeyRangeToStatement(mOptionalKeyRange
.ref(), &*stmt))); static_assert(std::is_empty_v<typename
decltype(tryResult1576)::ok_type>); if ((__builtin_expect
(!!(tryResult1576.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))"
, tryResult1576.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20651, mozilla::dom::quota::Severity::Error); return tryResult1576
.propagateErr(); }}
;
20652 }
20653
20654 QM_TRY(CollectWhileHasResult({auto tryResult1583 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mKeys.AppendElement(fallible); {auto tryResult1577
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1577)::ok_type>); if ((__builtin_expect(!!(tryResult1577
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1577
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20657
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY
)); }}; {auto tryResult1578 = (ToResult(key->SetFromStatement
(&stmt, 0))); static_assert(std::is_empty_v<typename decltype
(tryResult1578)::ok_type>); if ((__builtin_expect(!!(tryResult1578
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1578.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20659, mozilla::dom::quota::Severity::Error); return tryResult1578
.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement
(fallible); {auto tryResult1579 = (OkIf(primaryKey)); static_assert
(std::is_empty_v<typename decltype(tryResult1579)::ok_type
>); if ((__builtin_expect(!!(tryResult1579.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1579.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20662
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(primaryKey)", tryTempError, Err
(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1580 = (ToResult
(primaryKey->SetFromStatement(&stmt, 1))); static_assert
(std::is_empty_v<typename decltype(tryResult1580)::ok_type
>); if ((__builtin_expect(!!(tryResult1580.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))"
, tryResult1580.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20664, mozilla::dom::quota::Severity::Error); return tryResult1580
.propagateErr(); }}; auto tryResult1581 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1581.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())"
, tryResult1581.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20668, mozilla::dom::quota::Severity::Error); return tryResult1581
.propagateErr(); } auto cloneInfo = tryResult1581.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20672, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20672
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1582 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::
move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1582)::ok_type>); if ((__builtin_expect
(!!(tryResult1582.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1582.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20677, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1583
)::ok_type>); if ((__builtin_expect(!!(tryResult1583.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1577 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1577)::ok_type>); if ((__builtin_expect(!!(tryResult1577.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1577.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20657, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1578 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1578)::ok_type>); if ((__builtin_expect(!!(tryResult1578.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1578.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20659, mozilla::dom::quota::Severity::Error); return tryResult1578.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1579 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1579)::ok_type>); if ((__builtin_expect(!!(tryResult1579.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1579.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20662, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(primaryKey)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1580 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1580)::ok_type>); if ((__builtin_expect(!!(tryResult1580.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1580.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20664, mozilla::dom::quota::Severity::Error); return tryResult1580.propagateErr(); }}; auto tryResult1581 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1581.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1581.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20668, mozilla::dom::quota::Severity::Error); return tryResult1581.propagateErr(); } auto cloneInfo = tryResult1581.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20672, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20672); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1582 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1582)::ok_type>); if ((__builtin_expect(!!(tryResult1582.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1582.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20677, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1583.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20680, mozilla::dom::quota::Severity::Error); return tryResult1583
.propagateErr(); }}
20655 *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> {{auto tryResult1583 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mKeys.AppendElement(fallible); {auto tryResult1577
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1577)::ok_type>); if ((__builtin_expect(!!(tryResult1577
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1577
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20657
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY
)); }}; {auto tryResult1578 = (ToResult(key->SetFromStatement
(&stmt, 0))); static_assert(std::is_empty_v<typename decltype
(tryResult1578)::ok_type>); if ((__builtin_expect(!!(tryResult1578
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1578.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20659, mozilla::dom::quota::Severity::Error); return tryResult1578
.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement
(fallible); {auto tryResult1579 = (OkIf(primaryKey)); static_assert
(std::is_empty_v<typename decltype(tryResult1579)::ok_type
>); if ((__builtin_expect(!!(tryResult1579.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1579.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20662
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(primaryKey)", tryTempError, Err
(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1580 = (ToResult
(primaryKey->SetFromStatement(&stmt, 1))); static_assert
(std::is_empty_v<typename decltype(tryResult1580)::ok_type
>); if ((__builtin_expect(!!(tryResult1580.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))"
, tryResult1580.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20664, mozilla::dom::quota::Severity::Error); return tryResult1580
.propagateErr(); }}; auto tryResult1581 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1581.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())"
, tryResult1581.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20668, mozilla::dom::quota::Severity::Error); return tryResult1581
.propagateErr(); } auto cloneInfo = tryResult1581.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20672, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20672
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1582 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::
move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1582)::ok_type>); if ((__builtin_expect
(!!(tryResult1582.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1582.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20677, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1583
)::ok_type>); if ((__builtin_expect(!!(tryResult1583.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1577 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1577)::ok_type>); if ((__builtin_expect(!!(tryResult1577.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1577.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20657, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1578 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1578)::ok_type>); if ((__builtin_expect(!!(tryResult1578.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1578.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20659, mozilla::dom::quota::Severity::Error); return tryResult1578.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1579 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1579)::ok_type>); if ((__builtin_expect(!!(tryResult1579.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1579.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20662, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(primaryKey)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1580 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1580)::ok_type>); if ((__builtin_expect(!!(tryResult1580.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1580.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20664, mozilla::dom::quota::Severity::Error); return tryResult1580.propagateErr(); }}; auto tryResult1581 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1581.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1581.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20668, mozilla::dom::quota::Severity::Error); return tryResult1581.propagateErr(); } auto cloneInfo = tryResult1581.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20672, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20672); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1582 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1582)::ok_type>); if ((__builtin_expect(!!(tryResult1582.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1582.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20677, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1583.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20680, mozilla::dom::quota::Severity::Error); return tryResult1583
.propagateErr(); }}
20656 Key* const key = mKeys.AppendElement(fallible);{auto tryResult1583 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mKeys.AppendElement(fallible); {auto tryResult1577
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1577)::ok_type>); if ((__builtin_expect(!!(tryResult1577
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1577
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20657
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY
)); }}; {auto tryResult1578 = (ToResult(key->SetFromStatement
(&stmt, 0))); static_assert(std::is_empty_v<typename decltype
(tryResult1578)::ok_type>); if ((__builtin_expect(!!(tryResult1578
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1578.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20659, mozilla::dom::quota::Severity::Error); return tryResult1578
.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement
(fallible); {auto tryResult1579 = (OkIf(primaryKey)); static_assert
(std::is_empty_v<typename decltype(tryResult1579)::ok_type
>); if ((__builtin_expect(!!(tryResult1579.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1579.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20662
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(primaryKey)", tryTempError, Err
(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1580 = (ToResult
(primaryKey->SetFromStatement(&stmt, 1))); static_assert
(std::is_empty_v<typename decltype(tryResult1580)::ok_type
>); if ((__builtin_expect(!!(tryResult1580.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))"
, tryResult1580.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20664, mozilla::dom::quota::Severity::Error); return tryResult1580
.propagateErr(); }}; auto tryResult1581 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1581.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())"
, tryResult1581.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20668, mozilla::dom::quota::Severity::Error); return tryResult1581
.propagateErr(); } auto cloneInfo = tryResult1581.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20672, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20672
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1582 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::
move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1582)::ok_type>); if ((__builtin_expect
(!!(tryResult1582.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1582.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20677, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1583
)::ok_type>); if ((__builtin_expect(!!(tryResult1583.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1577 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1577)::ok_type>); if ((__builtin_expect(!!(tryResult1577.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1577.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20657, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1578 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1578)::ok_type>); if ((__builtin_expect(!!(tryResult1578.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1578.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20659, mozilla::dom::quota::Severity::Error); return tryResult1578.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1579 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1579)::ok_type>); if ((__builtin_expect(!!(tryResult1579.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1579.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20662, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(primaryKey)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1580 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1580)::ok_type>); if ((__builtin_expect(!!(tryResult1580.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1580.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20664, mozilla::dom::quota::Severity::Error); return tryResult1580.propagateErr(); }}; auto tryResult1581 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1581.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1581.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20668, mozilla::dom::quota::Severity::Error); return tryResult1581.propagateErr(); } auto cloneInfo = tryResult1581.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20672, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20672); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1582 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1582)::ok_type>); if ((__builtin_expect(!!(tryResult1582.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1582.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20677, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1583.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20680, mozilla::dom::quota::Severity::Error); return tryResult1583
.propagateErr(); }}
20657 QM_TRY(OkIf(key), Err(NS_ERROR_OUT_OF_MEMORY));{auto tryResult1583 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mKeys.AppendElement(fallible); {auto tryResult1577
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1577)::ok_type>); if ((__builtin_expect(!!(tryResult1577
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1577
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20657
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY
)); }}; {auto tryResult1578 = (ToResult(key->SetFromStatement
(&stmt, 0))); static_assert(std::is_empty_v<typename decltype
(tryResult1578)::ok_type>); if ((__builtin_expect(!!(tryResult1578
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1578.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20659, mozilla::dom::quota::Severity::Error); return tryResult1578
.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement
(fallible); {auto tryResult1579 = (OkIf(primaryKey)); static_assert
(std::is_empty_v<typename decltype(tryResult1579)::ok_type
>); if ((__builtin_expect(!!(tryResult1579.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1579.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20662
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(primaryKey)", tryTempError, Err
(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1580 = (ToResult
(primaryKey->SetFromStatement(&stmt, 1))); static_assert
(std::is_empty_v<typename decltype(tryResult1580)::ok_type
>); if ((__builtin_expect(!!(tryResult1580.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))"
, tryResult1580.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20664, mozilla::dom::quota::Severity::Error); return tryResult1580
.propagateErr(); }}; auto tryResult1581 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1581.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())"
, tryResult1581.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20668, mozilla::dom::quota::Severity::Error); return tryResult1581
.propagateErr(); } auto cloneInfo = tryResult1581.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20672, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20672
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1582 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::
move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1582)::ok_type>); if ((__builtin_expect
(!!(tryResult1582.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1582.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20677, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1583
)::ok_type>); if ((__builtin_expect(!!(tryResult1583.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1577 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1577)::ok_type>); if ((__builtin_expect(!!(tryResult1577.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1577.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20657, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1578 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1578)::ok_type>); if ((__builtin_expect(!!(tryResult1578.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1578.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20659, mozilla::dom::quota::Severity::Error); return tryResult1578.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1579 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1579)::ok_type>); if ((__builtin_expect(!!(tryResult1579.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1579.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20662, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(primaryKey)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1580 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1580)::ok_type>); if ((__builtin_expect(!!(tryResult1580.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1580.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20664, mozilla::dom::quota::Severity::Error); return tryResult1580.propagateErr(); }}; auto tryResult1581 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1581.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1581.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20668, mozilla::dom::quota::Severity::Error); return tryResult1581.propagateErr(); } auto cloneInfo = tryResult1581.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20672, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20672); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1582 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1582)::ok_type>); if ((__builtin_expect(!!(tryResult1582.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1582.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20677, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1583.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20680, mozilla::dom::quota::Severity::Error); return tryResult1583
.propagateErr(); }}
20658
20659 QM_TRY(MOZ_TO_RESULT(key->SetFromStatement(&stmt, 0)));{auto tryResult1583 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mKeys.AppendElement(fallible); {auto tryResult1577
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1577)::ok_type>); if ((__builtin_expect(!!(tryResult1577
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1577
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20657
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY
)); }}; {auto tryResult1578 = (ToResult(key->SetFromStatement
(&stmt, 0))); static_assert(std::is_empty_v<typename decltype
(tryResult1578)::ok_type>); if ((__builtin_expect(!!(tryResult1578
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1578.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20659, mozilla::dom::quota::Severity::Error); return tryResult1578
.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement
(fallible); {auto tryResult1579 = (OkIf(primaryKey)); static_assert
(std::is_empty_v<typename decltype(tryResult1579)::ok_type
>); if ((__builtin_expect(!!(tryResult1579.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1579.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20662
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(primaryKey)", tryTempError, Err
(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1580 = (ToResult
(primaryKey->SetFromStatement(&stmt, 1))); static_assert
(std::is_empty_v<typename decltype(tryResult1580)::ok_type
>); if ((__builtin_expect(!!(tryResult1580.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))"
, tryResult1580.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20664, mozilla::dom::quota::Severity::Error); return tryResult1580
.propagateErr(); }}; auto tryResult1581 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1581.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())"
, tryResult1581.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20668, mozilla::dom::quota::Severity::Error); return tryResult1581
.propagateErr(); } auto cloneInfo = tryResult1581.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20672, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20672
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1582 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::
move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1582)::ok_type>); if ((__builtin_expect
(!!(tryResult1582.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1582.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20677, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1583
)::ok_type>); if ((__builtin_expect(!!(tryResult1583.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1577 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1577)::ok_type>); if ((__builtin_expect(!!(tryResult1577.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1577.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20657, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1578 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1578)::ok_type>); if ((__builtin_expect(!!(tryResult1578.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1578.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20659, mozilla::dom::quota::Severity::Error); return tryResult1578.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1579 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1579)::ok_type>); if ((__builtin_expect(!!(tryResult1579.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1579.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20662, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(primaryKey)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1580 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1580)::ok_type>); if ((__builtin_expect(!!(tryResult1580.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1580.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20664, mozilla::dom::quota::Severity::Error); return tryResult1580.propagateErr(); }}; auto tryResult1581 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1581.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1581.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20668, mozilla::dom::quota::Severity::Error); return tryResult1581.propagateErr(); } auto cloneInfo = tryResult1581.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20672, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20672); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1582 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1582)::ok_type>); if ((__builtin_expect(!!(tryResult1582.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1582.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20677, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1583.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20680, mozilla::dom::quota::Severity::Error); return tryResult1583
.propagateErr(); }}
20660
20661 Key* const primaryKey = mPrimaryKeys.AppendElement(fallible);{auto tryResult1583 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mKeys.AppendElement(fallible); {auto tryResult1577
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1577)::ok_type>); if ((__builtin_expect(!!(tryResult1577
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1577
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20657
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY
)); }}; {auto tryResult1578 = (ToResult(key->SetFromStatement
(&stmt, 0))); static_assert(std::is_empty_v<typename decltype
(tryResult1578)::ok_type>); if ((__builtin_expect(!!(tryResult1578
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1578.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20659, mozilla::dom::quota::Severity::Error); return tryResult1578
.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement
(fallible); {auto tryResult1579 = (OkIf(primaryKey)); static_assert
(std::is_empty_v<typename decltype(tryResult1579)::ok_type
>); if ((__builtin_expect(!!(tryResult1579.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1579.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20662
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(primaryKey)", tryTempError, Err
(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1580 = (ToResult
(primaryKey->SetFromStatement(&stmt, 1))); static_assert
(std::is_empty_v<typename decltype(tryResult1580)::ok_type
>); if ((__builtin_expect(!!(tryResult1580.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))"
, tryResult1580.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20664, mozilla::dom::quota::Severity::Error); return tryResult1580
.propagateErr(); }}; auto tryResult1581 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1581.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())"
, tryResult1581.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20668, mozilla::dom::quota::Severity::Error); return tryResult1581
.propagateErr(); } auto cloneInfo = tryResult1581.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20672, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20672
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1582 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::
move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1582)::ok_type>); if ((__builtin_expect
(!!(tryResult1582.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1582.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20677, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1583
)::ok_type>); if ((__builtin_expect(!!(tryResult1583.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1577 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1577)::ok_type>); if ((__builtin_expect(!!(tryResult1577.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1577.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20657, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1578 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1578)::ok_type>); if ((__builtin_expect(!!(tryResult1578.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1578.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20659, mozilla::dom::quota::Severity::Error); return tryResult1578.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1579 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1579)::ok_type>); if ((__builtin_expect(!!(tryResult1579.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1579.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20662, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(primaryKey)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1580 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1580)::ok_type>); if ((__builtin_expect(!!(tryResult1580.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1580.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20664, mozilla::dom::quota::Severity::Error); return tryResult1580.propagateErr(); }}; auto tryResult1581 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1581.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1581.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20668, mozilla::dom::quota::Severity::Error); return tryResult1581.propagateErr(); } auto cloneInfo = tryResult1581.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20672, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20672); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1582 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1582)::ok_type>); if ((__builtin_expect(!!(tryResult1582.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1582.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20677, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1583.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20680, mozilla::dom::quota::Severity::Error); return tryResult1583
.propagateErr(); }}
20662 QM_TRY(OkIf(primaryKey), Err(NS_ERROR_OUT_OF_MEMORY));{auto tryResult1583 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mKeys.AppendElement(fallible); {auto tryResult1577
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1577)::ok_type>); if ((__builtin_expect(!!(tryResult1577
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1577
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20657
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY
)); }}; {auto tryResult1578 = (ToResult(key->SetFromStatement
(&stmt, 0))); static_assert(std::is_empty_v<typename decltype
(tryResult1578)::ok_type>); if ((__builtin_expect(!!(tryResult1578
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1578.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20659, mozilla::dom::quota::Severity::Error); return tryResult1578
.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement
(fallible); {auto tryResult1579 = (OkIf(primaryKey)); static_assert
(std::is_empty_v<typename decltype(tryResult1579)::ok_type
>); if ((__builtin_expect(!!(tryResult1579.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1579.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20662
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(primaryKey)", tryTempError, Err
(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1580 = (ToResult
(primaryKey->SetFromStatement(&stmt, 1))); static_assert
(std::is_empty_v<typename decltype(tryResult1580)::ok_type
>); if ((__builtin_expect(!!(tryResult1580.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))"
, tryResult1580.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20664, mozilla::dom::quota::Severity::Error); return tryResult1580
.propagateErr(); }}; auto tryResult1581 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1581.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())"
, tryResult1581.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20668, mozilla::dom::quota::Severity::Error); return tryResult1581
.propagateErr(); } auto cloneInfo = tryResult1581.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20672, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20672
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1582 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::
move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1582)::ok_type>); if ((__builtin_expect
(!!(tryResult1582.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1582.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20677, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1583
)::ok_type>); if ((__builtin_expect(!!(tryResult1583.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1577 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1577)::ok_type>); if ((__builtin_expect(!!(tryResult1577.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1577.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20657, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1578 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1578)::ok_type>); if ((__builtin_expect(!!(tryResult1578.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1578.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20659, mozilla::dom::quota::Severity::Error); return tryResult1578.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1579 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1579)::ok_type>); if ((__builtin_expect(!!(tryResult1579.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1579.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20662, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(primaryKey)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1580 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1580)::ok_type>); if ((__builtin_expect(!!(tryResult1580.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1580.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20664, mozilla::dom::quota::Severity::Error); return tryResult1580.propagateErr(); }}; auto tryResult1581 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1581.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1581.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20668, mozilla::dom::quota::Severity::Error); return tryResult1581.propagateErr(); } auto cloneInfo = tryResult1581.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20672, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20672); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1582 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1582)::ok_type>); if ((__builtin_expect(!!(tryResult1582.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1582.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20677, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1583.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20680, mozilla::dom::quota::Severity::Error); return tryResult1583
.propagateErr(); }}
20663
20664 QM_TRY(MOZ_TO_RESULT(primaryKey->SetFromStatement(&stmt, 1)));{auto tryResult1583 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mKeys.AppendElement(fallible); {auto tryResult1577
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1577)::ok_type>); if ((__builtin_expect(!!(tryResult1577
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1577
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20657
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY
)); }}; {auto tryResult1578 = (ToResult(key->SetFromStatement
(&stmt, 0))); static_assert(std::is_empty_v<typename decltype
(tryResult1578)::ok_type>); if ((__builtin_expect(!!(tryResult1578
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1578.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20659, mozilla::dom::quota::Severity::Error); return tryResult1578
.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement
(fallible); {auto tryResult1579 = (OkIf(primaryKey)); static_assert
(std::is_empty_v<typename decltype(tryResult1579)::ok_type
>); if ((__builtin_expect(!!(tryResult1579.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1579.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20662
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(primaryKey)", tryTempError, Err
(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1580 = (ToResult
(primaryKey->SetFromStatement(&stmt, 1))); static_assert
(std::is_empty_v<typename decltype(tryResult1580)::ok_type
>); if ((__builtin_expect(!!(tryResult1580.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))"
, tryResult1580.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20664, mozilla::dom::quota::Severity::Error); return tryResult1580
.propagateErr(); }}; auto tryResult1581 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1581.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())"
, tryResult1581.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20668, mozilla::dom::quota::Severity::Error); return tryResult1581
.propagateErr(); } auto cloneInfo = tryResult1581.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20672, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20672
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1582 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::
move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1582)::ok_type>); if ((__builtin_expect
(!!(tryResult1582.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1582.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20677, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1583
)::ok_type>); if ((__builtin_expect(!!(tryResult1583.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1577 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1577)::ok_type>); if ((__builtin_expect(!!(tryResult1577.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1577.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20657, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1578 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1578)::ok_type>); if ((__builtin_expect(!!(tryResult1578.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1578.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20659, mozilla::dom::quota::Severity::Error); return tryResult1578.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1579 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1579)::ok_type>); if ((__builtin_expect(!!(tryResult1579.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1579.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20662, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(primaryKey)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1580 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1580)::ok_type>); if ((__builtin_expect(!!(tryResult1580.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1580.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20664, mozilla::dom::quota::Severity::Error); return tryResult1580.propagateErr(); }}; auto tryResult1581 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1581.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1581.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20668, mozilla::dom::quota::Severity::Error); return tryResult1581.propagateErr(); } auto cloneInfo = tryResult1581.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20672, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20672); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1582 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1582)::ok_type>); if ((__builtin_expect(!!(tryResult1582.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1582.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20677, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1583.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20680, mozilla::dom::quota::Severity::Error); return tryResult1583
.propagateErr(); }}
20665
20666 QM_TRY_UNWRAP(auto cloneInfo,{auto tryResult1583 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mKeys.AppendElement(fallible); {auto tryResult1577
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1577)::ok_type>); if ((__builtin_expect(!!(tryResult1577
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1577
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20657
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY
)); }}; {auto tryResult1578 = (ToResult(key->SetFromStatement
(&stmt, 0))); static_assert(std::is_empty_v<typename decltype
(tryResult1578)::ok_type>); if ((__builtin_expect(!!(tryResult1578
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1578.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20659, mozilla::dom::quota::Severity::Error); return tryResult1578
.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement
(fallible); {auto tryResult1579 = (OkIf(primaryKey)); static_assert
(std::is_empty_v<typename decltype(tryResult1579)::ok_type
>); if ((__builtin_expect(!!(tryResult1579.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1579.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20662
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(primaryKey)", tryTempError, Err
(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1580 = (ToResult
(primaryKey->SetFromStatement(&stmt, 1))); static_assert
(std::is_empty_v<typename decltype(tryResult1580)::ok_type
>); if ((__builtin_expect(!!(tryResult1580.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))"
, tryResult1580.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20664, mozilla::dom::quota::Severity::Error); return tryResult1580
.propagateErr(); }}; auto tryResult1581 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1581.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())"
, tryResult1581.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20668, mozilla::dom::quota::Severity::Error); return tryResult1581
.propagateErr(); } auto cloneInfo = tryResult1581.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20672, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20672
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1582 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::
move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1582)::ok_type>); if ((__builtin_expect
(!!(tryResult1582.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1582.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20677, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1583
)::ok_type>); if ((__builtin_expect(!!(tryResult1583.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1577 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1577)::ok_type>); if ((__builtin_expect(!!(tryResult1577.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1577.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20657, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1578 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1578)::ok_type>); if ((__builtin_expect(!!(tryResult1578.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1578.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20659, mozilla::dom::quota::Severity::Error); return tryResult1578.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1579 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1579)::ok_type>); if ((__builtin_expect(!!(tryResult1579.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1579.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20662, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(primaryKey)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1580 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1580)::ok_type>); if ((__builtin_expect(!!(tryResult1580.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1580.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20664, mozilla::dom::quota::Severity::Error); return tryResult1580.propagateErr(); }}; auto tryResult1581 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1581.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1581.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20668, mozilla::dom::quota::Severity::Error); return tryResult1581.propagateErr(); } auto cloneInfo = tryResult1581.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20672, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20672); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1582 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1582)::ok_type>); if ((__builtin_expect(!!(tryResult1582.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1582.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20677, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1583.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20680, mozilla::dom::quota::Severity::Error); return tryResult1583
.propagateErr(); }}
20667 GetStructuredCloneReadInfoFromStatement({auto tryResult1583 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mKeys.AppendElement(fallible); {auto tryResult1577
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1577)::ok_type>); if ((__builtin_expect(!!(tryResult1577
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1577
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20657
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY
)); }}; {auto tryResult1578 = (ToResult(key->SetFromStatement
(&stmt, 0))); static_assert(std::is_empty_v<typename decltype
(tryResult1578)::ok_type>); if ((__builtin_expect(!!(tryResult1578
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1578.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20659, mozilla::dom::quota::Severity::Error); return tryResult1578
.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement
(fallible); {auto tryResult1579 = (OkIf(primaryKey)); static_assert
(std::is_empty_v<typename decltype(tryResult1579)::ok_type
>); if ((__builtin_expect(!!(tryResult1579.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1579.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20662
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(primaryKey)", tryTempError, Err
(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1580 = (ToResult
(primaryKey->SetFromStatement(&stmt, 1))); static_assert
(std::is_empty_v<typename decltype(tryResult1580)::ok_type
>); if ((__builtin_expect(!!(tryResult1580.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))"
, tryResult1580.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20664, mozilla::dom::quota::Severity::Error); return tryResult1580
.propagateErr(); }}; auto tryResult1581 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1581.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())"
, tryResult1581.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20668, mozilla::dom::quota::Severity::Error); return tryResult1581
.propagateErr(); } auto cloneInfo = tryResult1581.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20672, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20672
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1582 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::
move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1582)::ok_type>); if ((__builtin_expect
(!!(tryResult1582.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1582.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20677, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1583
)::ok_type>); if ((__builtin_expect(!!(tryResult1583.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1577 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1577)::ok_type>); if ((__builtin_expect(!!(tryResult1577.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1577.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20657, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1578 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1578)::ok_type>); if ((__builtin_expect(!!(tryResult1578.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1578.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20659, mozilla::dom::quota::Severity::Error); return tryResult1578.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1579 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1579)::ok_type>); if ((__builtin_expect(!!(tryResult1579.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1579.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20662, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(primaryKey)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1580 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1580)::ok_type>); if ((__builtin_expect(!!(tryResult1580.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1580.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20664, mozilla::dom::quota::Severity::Error); return tryResult1580.propagateErr(); }}; auto tryResult1581 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1581.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1581.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20668, mozilla::dom::quota::Severity::Error); return tryResult1581.propagateErr(); } auto cloneInfo = tryResult1581.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20672, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20672); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1582 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1582)::ok_type>); if ((__builtin_expect(!!(tryResult1582.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1582.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20677, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1583.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20680, mozilla::dom::quota::Severity::Error); return tryResult1583
.propagateErr(); }}
20668 &stmt, 3, 2, mDatabase->GetFileManager()));{auto tryResult1583 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mKeys.AppendElement(fallible); {auto tryResult1577
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1577)::ok_type>); if ((__builtin_expect(!!(tryResult1577
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1577
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20657
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY
)); }}; {auto tryResult1578 = (ToResult(key->SetFromStatement
(&stmt, 0))); static_assert(std::is_empty_v<typename decltype
(tryResult1578)::ok_type>); if ((__builtin_expect(!!(tryResult1578
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1578.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20659, mozilla::dom::quota::Severity::Error); return tryResult1578
.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement
(fallible); {auto tryResult1579 = (OkIf(primaryKey)); static_assert
(std::is_empty_v<typename decltype(tryResult1579)::ok_type
>); if ((__builtin_expect(!!(tryResult1579.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1579.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20662
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(primaryKey)", tryTempError, Err
(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1580 = (ToResult
(primaryKey->SetFromStatement(&stmt, 1))); static_assert
(std::is_empty_v<typename decltype(tryResult1580)::ok_type
>); if ((__builtin_expect(!!(tryResult1580.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))"
, tryResult1580.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20664, mozilla::dom::quota::Severity::Error); return tryResult1580
.propagateErr(); }}; auto tryResult1581 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1581.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())"
, tryResult1581.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20668, mozilla::dom::quota::Severity::Error); return tryResult1581
.propagateErr(); } auto cloneInfo = tryResult1581.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20672, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20672
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1582 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::
move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1582)::ok_type>); if ((__builtin_expect
(!!(tryResult1582.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1582.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20677, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1583
)::ok_type>); if ((__builtin_expect(!!(tryResult1583.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1577 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1577)::ok_type>); if ((__builtin_expect(!!(tryResult1577.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1577.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20657, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1578 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1578)::ok_type>); if ((__builtin_expect(!!(tryResult1578.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1578.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20659, mozilla::dom::quota::Severity::Error); return tryResult1578.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1579 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1579)::ok_type>); if ((__builtin_expect(!!(tryResult1579.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1579.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20662, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(primaryKey)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1580 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1580)::ok_type>); if ((__builtin_expect(!!(tryResult1580.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1580.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20664, mozilla::dom::quota::Severity::Error); return tryResult1580.propagateErr(); }}; auto tryResult1581 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1581.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1581.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20668, mozilla::dom::quota::Severity::Error); return tryResult1581.propagateErr(); } auto cloneInfo = tryResult1581.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20672, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20672); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1582 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1582)::ok_type>); if ((__builtin_expect(!!(tryResult1582.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1582.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20677, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1583.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20680, mozilla::dom::quota::Severity::Error); return tryResult1583
.propagateErr(); }}
20669
20670 if (cloneInfo.HasPreprocessInfo()) {{auto tryResult1583 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mKeys.AppendElement(fallible); {auto tryResult1577
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1577)::ok_type>); if ((__builtin_expect(!!(tryResult1577
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1577
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20657
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY
)); }}; {auto tryResult1578 = (ToResult(key->SetFromStatement
(&stmt, 0))); static_assert(std::is_empty_v<typename decltype
(tryResult1578)::ok_type>); if ((__builtin_expect(!!(tryResult1578
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1578.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20659, mozilla::dom::quota::Severity::Error); return tryResult1578
.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement
(fallible); {auto tryResult1579 = (OkIf(primaryKey)); static_assert
(std::is_empty_v<typename decltype(tryResult1579)::ok_type
>); if ((__builtin_expect(!!(tryResult1579.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1579.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20662
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(primaryKey)", tryTempError, Err
(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1580 = (ToResult
(primaryKey->SetFromStatement(&stmt, 1))); static_assert
(std::is_empty_v<typename decltype(tryResult1580)::ok_type
>); if ((__builtin_expect(!!(tryResult1580.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))"
, tryResult1580.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20664, mozilla::dom::quota::Severity::Error); return tryResult1580
.propagateErr(); }}; auto tryResult1581 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1581.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())"
, tryResult1581.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20668, mozilla::dom::quota::Severity::Error); return tryResult1581
.propagateErr(); } auto cloneInfo = tryResult1581.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20672, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20672
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1582 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::
move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1582)::ok_type>); if ((__builtin_expect
(!!(tryResult1582.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1582.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20677, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1583
)::ok_type>); if ((__builtin_expect(!!(tryResult1583.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1577 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1577)::ok_type>); if ((__builtin_expect(!!(tryResult1577.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1577.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20657, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1578 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1578)::ok_type>); if ((__builtin_expect(!!(tryResult1578.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1578.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20659, mozilla::dom::quota::Severity::Error); return tryResult1578.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1579 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1579)::ok_type>); if ((__builtin_expect(!!(tryResult1579.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1579.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20662, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(primaryKey)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1580 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1580)::ok_type>); if ((__builtin_expect(!!(tryResult1580.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1580.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20664, mozilla::dom::quota::Severity::Error); return tryResult1580.propagateErr(); }}; auto tryResult1581 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1581.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1581.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20668, mozilla::dom::quota::Severity::Error); return tryResult1581.propagateErr(); } auto cloneInfo = tryResult1581.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20672, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20672); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1582 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1582)::ok_type>); if ((__builtin_expect(!!(tryResult1582.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1582.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20677, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1583.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20680, mozilla::dom::quota::Severity::Error); return tryResult1583
.propagateErr(); }}
20671 // Bug 1942995: not implemented yet{auto tryResult1583 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mKeys.AppendElement(fallible); {auto tryResult1577
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1577)::ok_type>); if ((__builtin_expect(!!(tryResult1577
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1577
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20657
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY
)); }}; {auto tryResult1578 = (ToResult(key->SetFromStatement
(&stmt, 0))); static_assert(std::is_empty_v<typename decltype
(tryResult1578)::ok_type>); if ((__builtin_expect(!!(tryResult1578
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1578.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20659, mozilla::dom::quota::Severity::Error); return tryResult1578
.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement
(fallible); {auto tryResult1579 = (OkIf(primaryKey)); static_assert
(std::is_empty_v<typename decltype(tryResult1579)::ok_type
>); if ((__builtin_expect(!!(tryResult1579.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1579.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20662
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(primaryKey)", tryTempError, Err
(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1580 = (ToResult
(primaryKey->SetFromStatement(&stmt, 1))); static_assert
(std::is_empty_v<typename decltype(tryResult1580)::ok_type
>); if ((__builtin_expect(!!(tryResult1580.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))"
, tryResult1580.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20664, mozilla::dom::quota::Severity::Error); return tryResult1580
.propagateErr(); }}; auto tryResult1581 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1581.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())"
, tryResult1581.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20668, mozilla::dom::quota::Severity::Error); return tryResult1581
.propagateErr(); } auto cloneInfo = tryResult1581.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20672, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20672
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1582 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::
move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1582)::ok_type>); if ((__builtin_expect
(!!(tryResult1582.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1582.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20677, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1583
)::ok_type>); if ((__builtin_expect(!!(tryResult1583.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1577 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1577)::ok_type>); if ((__builtin_expect(!!(tryResult1577.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1577.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20657, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1578 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1578)::ok_type>); if ((__builtin_expect(!!(tryResult1578.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1578.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20659, mozilla::dom::quota::Severity::Error); return tryResult1578.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1579 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1579)::ok_type>); if ((__builtin_expect(!!(tryResult1579.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1579.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20662, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(primaryKey)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1580 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1580)::ok_type>); if ((__builtin_expect(!!(tryResult1580.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1580.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20664, mozilla::dom::quota::Severity::Error); return tryResult1580.propagateErr(); }}; auto tryResult1581 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1581.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1581.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20668, mozilla::dom::quota::Severity::Error); return tryResult1581.propagateErr(); } auto cloneInfo = tryResult1581.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20672, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20672); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1582 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1582)::ok_type>); if ((__builtin_expect(!!(tryResult1582.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1582.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20677, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1583.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20680, mozilla::dom::quota::Severity::Error); return tryResult1583
.propagateErr(); }}
20672 IDB_WARNING("Preprocessing for indexes not yet implemented!");{auto tryResult1583 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mKeys.AppendElement(fallible); {auto tryResult1577
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1577)::ok_type>); if ((__builtin_expect(!!(tryResult1577
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1577
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20657
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY
)); }}; {auto tryResult1578 = (ToResult(key->SetFromStatement
(&stmt, 0))); static_assert(std::is_empty_v<typename decltype
(tryResult1578)::ok_type>); if ((__builtin_expect(!!(tryResult1578
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1578.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20659, mozilla::dom::quota::Severity::Error); return tryResult1578
.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement
(fallible); {auto tryResult1579 = (OkIf(primaryKey)); static_assert
(std::is_empty_v<typename decltype(tryResult1579)::ok_type
>); if ((__builtin_expect(!!(tryResult1579.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1579.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20662
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(primaryKey)", tryTempError, Err
(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1580 = (ToResult
(primaryKey->SetFromStatement(&stmt, 1))); static_assert
(std::is_empty_v<typename decltype(tryResult1580)::ok_type
>); if ((__builtin_expect(!!(tryResult1580.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))"
, tryResult1580.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20664, mozilla::dom::quota::Severity::Error); return tryResult1580
.propagateErr(); }}; auto tryResult1581 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1581.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())"
, tryResult1581.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20668, mozilla::dom::quota::Severity::Error); return tryResult1581
.propagateErr(); } auto cloneInfo = tryResult1581.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20672, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20672
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1582 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::
move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1582)::ok_type>); if ((__builtin_expect
(!!(tryResult1582.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1582.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20677, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1583
)::ok_type>); if ((__builtin_expect(!!(tryResult1583.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1577 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1577)::ok_type>); if ((__builtin_expect(!!(tryResult1577.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1577.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20657, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1578 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1578)::ok_type>); if ((__builtin_expect(!!(tryResult1578.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1578.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20659, mozilla::dom::quota::Severity::Error); return tryResult1578.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1579 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1579)::ok_type>); if ((__builtin_expect(!!(tryResult1579.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1579.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20662, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(primaryKey)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1580 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1580)::ok_type>); if ((__builtin_expect(!!(tryResult1580.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1580.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20664, mozilla::dom::quota::Severity::Error); return tryResult1580.propagateErr(); }}; auto tryResult1581 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1581.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1581.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20668, mozilla::dom::quota::Severity::Error); return tryResult1581.propagateErr(); } auto cloneInfo = tryResult1581.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20672, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20672); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1582 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1582)::ok_type>); if ((__builtin_expect(!!(tryResult1582.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1582.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20677, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1583.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20680, mozilla::dom::quota::Severity::Error); return tryResult1583
.propagateErr(); }}
20673 return Err(NS_ERROR_NOT_IMPLEMENTED);{auto tryResult1583 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mKeys.AppendElement(fallible); {auto tryResult1577
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1577)::ok_type>); if ((__builtin_expect(!!(tryResult1577
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1577
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20657
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY
)); }}; {auto tryResult1578 = (ToResult(key->SetFromStatement
(&stmt, 0))); static_assert(std::is_empty_v<typename decltype
(tryResult1578)::ok_type>); if ((__builtin_expect(!!(tryResult1578
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1578.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20659, mozilla::dom::quota::Severity::Error); return tryResult1578
.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement
(fallible); {auto tryResult1579 = (OkIf(primaryKey)); static_assert
(std::is_empty_v<typename decltype(tryResult1579)::ok_type
>); if ((__builtin_expect(!!(tryResult1579.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1579.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20662
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(primaryKey)", tryTempError, Err
(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1580 = (ToResult
(primaryKey->SetFromStatement(&stmt, 1))); static_assert
(std::is_empty_v<typename decltype(tryResult1580)::ok_type
>); if ((__builtin_expect(!!(tryResult1580.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))"
, tryResult1580.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20664, mozilla::dom::quota::Severity::Error); return tryResult1580
.propagateErr(); }}; auto tryResult1581 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1581.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())"
, tryResult1581.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20668, mozilla::dom::quota::Severity::Error); return tryResult1581
.propagateErr(); } auto cloneInfo = tryResult1581.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20672, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20672
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1582 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::
move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1582)::ok_type>); if ((__builtin_expect
(!!(tryResult1582.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1582.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20677, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1583
)::ok_type>); if ((__builtin_expect(!!(tryResult1583.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1577 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1577)::ok_type>); if ((__builtin_expect(!!(tryResult1577.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1577.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20657, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1578 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1578)::ok_type>); if ((__builtin_expect(!!(tryResult1578.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1578.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20659, mozilla::dom::quota::Severity::Error); return tryResult1578.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1579 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1579)::ok_type>); if ((__builtin_expect(!!(tryResult1579.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1579.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20662, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(primaryKey)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1580 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1580)::ok_type>); if ((__builtin_expect(!!(tryResult1580.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1580.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20664, mozilla::dom::quota::Severity::Error); return tryResult1580.propagateErr(); }}; auto tryResult1581 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1581.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1581.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20668, mozilla::dom::quota::Severity::Error); return tryResult1581.propagateErr(); } auto cloneInfo = tryResult1581.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20672, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20672); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1582 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1582)::ok_type>); if ((__builtin_expect(!!(tryResult1582.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1582.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20677, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1583.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20680, mozilla::dom::quota::Severity::Error); return tryResult1583
.propagateErr(); }}
20674 }{auto tryResult1583 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mKeys.AppendElement(fallible); {auto tryResult1577
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1577)::ok_type>); if ((__builtin_expect(!!(tryResult1577
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1577
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20657
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY
)); }}; {auto tryResult1578 = (ToResult(key->SetFromStatement
(&stmt, 0))); static_assert(std::is_empty_v<typename decltype
(tryResult1578)::ok_type>); if ((__builtin_expect(!!(tryResult1578
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1578.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20659, mozilla::dom::quota::Severity::Error); return tryResult1578
.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement
(fallible); {auto tryResult1579 = (OkIf(primaryKey)); static_assert
(std::is_empty_v<typename decltype(tryResult1579)::ok_type
>); if ((__builtin_expect(!!(tryResult1579.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1579.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20662
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(primaryKey)", tryTempError, Err
(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1580 = (ToResult
(primaryKey->SetFromStatement(&stmt, 1))); static_assert
(std::is_empty_v<typename decltype(tryResult1580)::ok_type
>); if ((__builtin_expect(!!(tryResult1580.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))"
, tryResult1580.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20664, mozilla::dom::quota::Severity::Error); return tryResult1580
.propagateErr(); }}; auto tryResult1581 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1581.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())"
, tryResult1581.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20668, mozilla::dom::quota::Severity::Error); return tryResult1581
.propagateErr(); } auto cloneInfo = tryResult1581.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20672, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20672
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1582 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::
move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1582)::ok_type>); if ((__builtin_expect
(!!(tryResult1582.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1582.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20677, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1583
)::ok_type>); if ((__builtin_expect(!!(tryResult1583.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1577 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1577)::ok_type>); if ((__builtin_expect(!!(tryResult1577.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1577.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20657, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1578 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1578)::ok_type>); if ((__builtin_expect(!!(tryResult1578.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1578.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20659, mozilla::dom::quota::Severity::Error); return tryResult1578.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1579 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1579)::ok_type>); if ((__builtin_expect(!!(tryResult1579.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1579.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20662, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(primaryKey)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1580 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1580)::ok_type>); if ((__builtin_expect(!!(tryResult1580.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1580.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20664, mozilla::dom::quota::Severity::Error); return tryResult1580.propagateErr(); }}; auto tryResult1581 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1581.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1581.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20668, mozilla::dom::quota::Severity::Error); return tryResult1581.propagateErr(); } auto cloneInfo = tryResult1581.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20672, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20672); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1582 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1582)::ok_type>); if ((__builtin_expect(!!(tryResult1582.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1582.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20677, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1583.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20680, mozilla::dom::quota::Severity::Error); return tryResult1583
.propagateErr(); }}
20675
20676 QM_TRY(OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo))),{auto tryResult1583 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mKeys.AppendElement(fallible); {auto tryResult1577
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1577)::ok_type>); if ((__builtin_expect(!!(tryResult1577
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1577
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20657
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY
)); }}; {auto tryResult1578 = (ToResult(key->SetFromStatement
(&stmt, 0))); static_assert(std::is_empty_v<typename decltype
(tryResult1578)::ok_type>); if ((__builtin_expect(!!(tryResult1578
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1578.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20659, mozilla::dom::quota::Severity::Error); return tryResult1578
.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement
(fallible); {auto tryResult1579 = (OkIf(primaryKey)); static_assert
(std::is_empty_v<typename decltype(tryResult1579)::ok_type
>); if ((__builtin_expect(!!(tryResult1579.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1579.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20662
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(primaryKey)", tryTempError, Err
(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1580 = (ToResult
(primaryKey->SetFromStatement(&stmt, 1))); static_assert
(std::is_empty_v<typename decltype(tryResult1580)::ok_type
>); if ((__builtin_expect(!!(tryResult1580.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))"
, tryResult1580.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20664, mozilla::dom::quota::Severity::Error); return tryResult1580
.propagateErr(); }}; auto tryResult1581 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1581.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())"
, tryResult1581.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20668, mozilla::dom::quota::Severity::Error); return tryResult1581
.propagateErr(); } auto cloneInfo = tryResult1581.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20672, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20672
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1582 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::
move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1582)::ok_type>); if ((__builtin_expect
(!!(tryResult1582.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1582.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20677, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1583
)::ok_type>); if ((__builtin_expect(!!(tryResult1583.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1577 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1577)::ok_type>); if ((__builtin_expect(!!(tryResult1577.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1577.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20657, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1578 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1578)::ok_type>); if ((__builtin_expect(!!(tryResult1578.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1578.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20659, mozilla::dom::quota::Severity::Error); return tryResult1578.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1579 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1579)::ok_type>); if ((__builtin_expect(!!(tryResult1579.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1579.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20662, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(primaryKey)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1580 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1580)::ok_type>); if ((__builtin_expect(!!(tryResult1580.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1580.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20664, mozilla::dom::quota::Severity::Error); return tryResult1580.propagateErr(); }}; auto tryResult1581 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1581.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1581.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20668, mozilla::dom::quota::Severity::Error); return tryResult1581.propagateErr(); } auto cloneInfo = tryResult1581.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20672, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20672); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1582 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1582)::ok_type>); if ((__builtin_expect(!!(tryResult1582.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1582.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20677, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1583.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20680, mozilla::dom::quota::Severity::Error); return tryResult1583
.propagateErr(); }}
20677 Err(NS_ERROR_OUT_OF_MEMORY));{auto tryResult1583 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mKeys.AppendElement(fallible); {auto tryResult1577
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1577)::ok_type>); if ((__builtin_expect(!!(tryResult1577
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1577
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20657
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY
)); }}; {auto tryResult1578 = (ToResult(key->SetFromStatement
(&stmt, 0))); static_assert(std::is_empty_v<typename decltype
(tryResult1578)::ok_type>); if ((__builtin_expect(!!(tryResult1578
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1578.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20659, mozilla::dom::quota::Severity::Error); return tryResult1578
.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement
(fallible); {auto tryResult1579 = (OkIf(primaryKey)); static_assert
(std::is_empty_v<typename decltype(tryResult1579)::ok_type
>); if ((__builtin_expect(!!(tryResult1579.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1579.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20662
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(primaryKey)", tryTempError, Err
(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1580 = (ToResult
(primaryKey->SetFromStatement(&stmt, 1))); static_assert
(std::is_empty_v<typename decltype(tryResult1580)::ok_type
>); if ((__builtin_expect(!!(tryResult1580.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))"
, tryResult1580.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20664, mozilla::dom::quota::Severity::Error); return tryResult1580
.propagateErr(); }}; auto tryResult1581 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1581.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())"
, tryResult1581.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20668, mozilla::dom::quota::Severity::Error); return tryResult1581
.propagateErr(); } auto cloneInfo = tryResult1581.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20672, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20672
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1582 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::
move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1582)::ok_type>); if ((__builtin_expect
(!!(tryResult1582.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1582.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20677, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1583
)::ok_type>); if ((__builtin_expect(!!(tryResult1583.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1577 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1577)::ok_type>); if ((__builtin_expect(!!(tryResult1577.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1577.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20657, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1578 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1578)::ok_type>); if ((__builtin_expect(!!(tryResult1578.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1578.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20659, mozilla::dom::quota::Severity::Error); return tryResult1578.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1579 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1579)::ok_type>); if ((__builtin_expect(!!(tryResult1579.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1579.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20662, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(primaryKey)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1580 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1580)::ok_type>); if ((__builtin_expect(!!(tryResult1580.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1580.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20664, mozilla::dom::quota::Severity::Error); return tryResult1580.propagateErr(); }}; auto tryResult1581 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1581.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1581.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20668, mozilla::dom::quota::Severity::Error); return tryResult1581.propagateErr(); } auto cloneInfo = tryResult1581.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20672, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20672); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1582 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1582)::ok_type>); if ((__builtin_expect(!!(tryResult1582.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1582.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20677, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1583.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20680, mozilla::dom::quota::Severity::Error); return tryResult1583
.propagateErr(); }}
20678
20679 return Ok{};{auto tryResult1583 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mKeys.AppendElement(fallible); {auto tryResult1577
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1577)::ok_type>); if ((__builtin_expect(!!(tryResult1577
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1577
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20657
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY
)); }}; {auto tryResult1578 = (ToResult(key->SetFromStatement
(&stmt, 0))); static_assert(std::is_empty_v<typename decltype
(tryResult1578)::ok_type>); if ((__builtin_expect(!!(tryResult1578
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1578.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20659, mozilla::dom::quota::Severity::Error); return tryResult1578
.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement
(fallible); {auto tryResult1579 = (OkIf(primaryKey)); static_assert
(std::is_empty_v<typename decltype(tryResult1579)::ok_type
>); if ((__builtin_expect(!!(tryResult1579.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1579.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20662
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(primaryKey)", tryTempError, Err
(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1580 = (ToResult
(primaryKey->SetFromStatement(&stmt, 1))); static_assert
(std::is_empty_v<typename decltype(tryResult1580)::ok_type
>); if ((__builtin_expect(!!(tryResult1580.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))"
, tryResult1580.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20664, mozilla::dom::quota::Severity::Error); return tryResult1580
.propagateErr(); }}; auto tryResult1581 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1581.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())"
, tryResult1581.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20668, mozilla::dom::quota::Severity::Error); return tryResult1581
.propagateErr(); } auto cloneInfo = tryResult1581.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20672, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20672
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1582 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::
move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1582)::ok_type>); if ((__builtin_expect
(!!(tryResult1582.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1582.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20677, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1583
)::ok_type>); if ((__builtin_expect(!!(tryResult1583.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1577 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1577)::ok_type>); if ((__builtin_expect(!!(tryResult1577.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1577.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20657, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1578 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1578)::ok_type>); if ((__builtin_expect(!!(tryResult1578.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1578.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20659, mozilla::dom::quota::Severity::Error); return tryResult1578.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1579 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1579)::ok_type>); if ((__builtin_expect(!!(tryResult1579.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1579.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20662, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(primaryKey)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1580 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1580)::ok_type>); if ((__builtin_expect(!!(tryResult1580.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1580.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20664, mozilla::dom::quota::Severity::Error); return tryResult1580.propagateErr(); }}; auto tryResult1581 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1581.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1581.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20668, mozilla::dom::quota::Severity::Error); return tryResult1581.propagateErr(); } auto cloneInfo = tryResult1581.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20672, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20672); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1582 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1582)::ok_type>); if ((__builtin_expect(!!(tryResult1582.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1582.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20677, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1583.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20680, mozilla::dom::quota::Severity::Error); return tryResult1583
.propagateErr(); }}
20680 })){auto tryResult1583 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mKeys.AppendElement(fallible); {auto tryResult1577
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1577)::ok_type>); if ((__builtin_expect(!!(tryResult1577
.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1577
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20657
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(key)", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY
)); }}; {auto tryResult1578 = (ToResult(key->SetFromStatement
(&stmt, 0))); static_assert(std::is_empty_v<typename decltype
(tryResult1578)::ok_type>); if ((__builtin_expect(!!(tryResult1578
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1578.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20659, mozilla::dom::quota::Severity::Error); return tryResult1578
.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement
(fallible); {auto tryResult1579 = (OkIf(primaryKey)); static_assert
(std::is_empty_v<typename decltype(tryResult1579)::ok_type
>); if ((__builtin_expect(!!(tryResult1579.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1579.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20662
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(primaryKey)", tryTempError, Err
(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1580 = (ToResult
(primaryKey->SetFromStatement(&stmt, 1))); static_assert
(std::is_empty_v<typename decltype(tryResult1580)::ok_type
>); if ((__builtin_expect(!!(tryResult1580.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))"
, tryResult1580.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20664, mozilla::dom::quota::Severity::Error); return tryResult1580
.propagateErr(); }}; auto tryResult1581 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1581.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())"
, tryResult1581.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20668, mozilla::dom::quota::Severity::Error); return tryResult1581
.propagateErr(); } auto cloneInfo = tryResult1581.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20672, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20672
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1582 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::
move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1582)::ok_type>); if ((__builtin_expect
(!!(tryResult1582.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1582.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20677, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1583
)::ok_type>); if ((__builtin_expect(!!(tryResult1583.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1577 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1577)::ok_type>); if ((__builtin_expect(!!(tryResult1577.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1577.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20657, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1578 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1578)::ok_type>); if ((__builtin_expect(!!(tryResult1578.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1578.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20659, mozilla::dom::quota::Severity::Error); return tryResult1578.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1579 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1579)::ok_type>); if ((__builtin_expect(!!(tryResult1579.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1579.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20662, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(primaryKey)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1580 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1580)::ok_type>); if ((__builtin_expect(!!(tryResult1580.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1580.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20664, mozilla::dom::quota::Severity::Error); return tryResult1580.propagateErr(); }}; auto tryResult1581 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1581.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1581.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20668, mozilla::dom::quota::Severity::Error); return tryResult1581.propagateErr(); } auto cloneInfo = tryResult1581.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20672, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20672); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1582 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1582)::ok_type>); if ((__builtin_expect(!!(tryResult1582.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1582.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20677, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1583.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20680, mozilla::dom::quota::Severity::Error); return tryResult1583
.propagateErr(); }}
;
20681
20682 return NS_OK;
20683}
20684
20685void IndexGetAllRecordsRequestOp::GetResponse(RequestResponse& aResponse,
20686 size_t* aResponseSize) {
20687 MOZ_ASSERT(mKeys.Length() == mPrimaryKeys.Length())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mKeys.Length() == mPrimaryKeys.Length())>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mKeys.Length() == mPrimaryKeys.Length()))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mKeys.Length() == mPrimaryKeys.Length()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20687
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mKeys.Length() == mPrimaryKeys.Length()"
")"); do { MOZ_CrashSequence(__null, 20687); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20688 MOZ_ASSERT(mKeys.Length() == mCloneInfos.Length())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mKeys.Length() == mCloneInfos.Length())>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mKeys.Length() == mCloneInfos.Length()))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mKeys.Length() == mCloneInfos.Length()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20688
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mKeys.Length() == mCloneInfos.Length()"
")"); do { MOZ_CrashSequence(__null, 20688); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20689 MOZ_ASSERT_IF(mLimit, mKeys.Length() <= mLimit)do { if (mLimit) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(mKeys.Length() <= mLimit)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mKeys.Length() <= mLimit)
)), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mKeys.Length() <= mLimit"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20689
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mKeys.Length() <= mLimit"
")"); do { MOZ_CrashSequence(__null, 20689); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
20690
20691 aResponse = IndexGetAllRecordsResponse();
20692 *aResponseSize = 0;
20693
20694 if (mKeys.IsEmpty()) {
20695 return;
20696 }
20697
20698 auto& resp = aResponse.get_IndexGetAllRecordsResponse();
20699
20700 for (size_t i = 0; i < mKeys.Length(); i++) {
20701 *aResponseSize +=
20702 mKeys[i].GetBuffer().Length() + mPrimaryKeys[i].GetBuffer().Length();
20703 }
20704 resp.keys() = std::move(mKeys);
20705 resp.primaryKeys() = std::move(mPrimaryKeys);
20706
20707 QM_TRY_UNWRAP(auto tryResult1584 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end
()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent
&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo
, nsresult> { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( database, std::move
(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1584
.isErr()), 0))) { auto tryTempError = tryResult1584.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( database, std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20722, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } resp.cloneInfos() = tryResult1584
.unwrap();
20708 resp.cloneInfos(),auto tryResult1584 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end
()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent
&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo
, nsresult> { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( database, std::move
(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1584
.isErr()), 0))) { auto tryTempError = tryResult1584.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( database, std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20722, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } resp.cloneInfos() = tryResult1584
.unwrap();
20709 TransformIntoNewArrayAbortOnErr(auto tryResult1584 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end
()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent
&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo
, nsresult> { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( database, std::move
(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1584
.isErr()), 0))) { auto tryTempError = tryResult1584.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( database, std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20722, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } resp.cloneInfos() = tryResult1584
.unwrap();
20710 std::make_move_iterator(mCloneInfos.begin()),auto tryResult1584 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end
()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent
&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo
, nsresult> { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( database, std::move
(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1584
.isErr()), 0))) { auto tryTempError = tryResult1584.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( database, std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20722, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } resp.cloneInfos() = tryResult1584
.unwrap();
20711 std::make_move_iterator(mCloneInfos.end()),auto tryResult1584 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end
()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent
&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo
, nsresult> { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( database, std::move
(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1584
.isErr()), 0))) { auto tryTempError = tryResult1584.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( database, std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20722, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } resp.cloneInfos() = tryResult1584
.unwrap();
20712 [&database = mDatabase,auto tryResult1584 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end
()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent
&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo
, nsresult> { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( database, std::move
(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1584
.isErr()), 0))) { auto tryTempError = tryResult1584.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( database, std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20722, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } resp.cloneInfos() = tryResult1584
.unwrap();
20713 &aResponseSize](StructuredCloneReadInfoParent&& info)auto tryResult1584 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end
()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent
&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo
, nsresult> { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( database, std::move
(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1584
.isErr()), 0))) { auto tryTempError = tryResult1584.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( database, std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20722, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } resp.cloneInfos() = tryResult1584
.unwrap();
20714 -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> {auto tryResult1584 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end
()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent
&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo
, nsresult> { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( database, std::move
(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1584
.isErr()), 0))) { auto tryTempError = tryResult1584.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( database, std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20722, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } resp.cloneInfos() = tryResult1584
.unwrap();
20715 *aResponseSize += info.Size();auto tryResult1584 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end
()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent
&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo
, nsresult> { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( database, std::move
(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1584
.isErr()), 0))) { auto tryTempError = tryResult1584.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( database, std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20722, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } resp.cloneInfos() = tryResult1584
.unwrap();
20716 return ConvertResponse<SerializedStructuredCloneReadInfo>(auto tryResult1584 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end
()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent
&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo
, nsresult> { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( database, std::move
(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1584
.isErr()), 0))) { auto tryTempError = tryResult1584.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( database, std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20722, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } resp.cloneInfos() = tryResult1584
.unwrap();
20717 database, std::move(info));auto tryResult1584 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end
()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent
&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo
, nsresult> { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( database, std::move
(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1584
.isErr()), 0))) { auto tryTempError = tryResult1584.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( database, std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20722, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } resp.cloneInfos() = tryResult1584
.unwrap();
20718 },auto tryResult1584 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end
()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent
&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo
, nsresult> { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( database, std::move
(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1584
.isErr()), 0))) { auto tryTempError = tryResult1584.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( database, std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20722, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } resp.cloneInfos() = tryResult1584
.unwrap();
20719 fallible),auto tryResult1584 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end
()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent
&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo
, nsresult> { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( database, std::move
(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1584
.isErr()), 0))) { auto tryTempError = tryResult1584.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( database, std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20722, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } resp.cloneInfos() = tryResult1584
.unwrap();
20720 QM_VOID, [&aResponse](const nsresult result) {auto tryResult1584 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end
()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent
&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo
, nsresult> { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( database, std::move
(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1584
.isErr()), 0))) { auto tryTempError = tryResult1584.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( database, std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20722, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } resp.cloneInfos() = tryResult1584
.unwrap();
20721 aResponse = TransactionOpResult(result);auto tryResult1584 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end
()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent
&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo
, nsresult> { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( database, std::move
(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1584
.isErr()), 0))) { auto tryTempError = tryResult1584.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( database, std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20722, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } resp.cloneInfos() = tryResult1584
.unwrap();
20722 })auto tryResult1584 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end
()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent
&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo
, nsresult> { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( database, std::move
(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1584
.isErr()), 0))) { auto tryTempError = tryResult1584.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mCloneInfos.begin()), std::make_move_iterator(mCloneInfos.end()), [&database = mDatabase, &aResponseSize](StructuredCloneReadInfoParent&& info) -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( database, std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20722, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = TransactionOpResult(result
); }(tryTempError); [[maybe_unused]] constexpr const auto&
func = __func__; return ; } resp.cloneInfos() = tryResult1584
.unwrap();
;
20723}
20724
20725nsresult IndexCountRequestOp::DoDatabaseWork(DatabaseConnection* aConnection) {
20726 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20726); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 20726); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20727 aConnection->AssertIsOnConnectionThread();
20728
20729 AUTO_PROFILER_LABEL("IndexCountRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject20729( "IndexCountRequestOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
20730
20731 const auto indexTable = mMetadata->mCommonMetadata.unique()
20732 ? "unique_index_data "_ns
20733 : "index_data "_ns;
20734
20735 const auto keyRangeClause = MaybeGetBindingClauseForKeyRange(
20736 mParams.optionalKeyRange(), kColumnNameValue);
20737
20738 QM_TRY_INSPECT(auto tryResult1587 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1585 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1585)::ok_type>
); if ((__builtin_expect(!!(tryResult1585.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1585.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20747, mozilla::dom::quota::Severity::Error); return tryResult1585
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1586 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1586)::ok_type
>); if ((__builtin_expect(!!(tryResult1586.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1586.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20751, mozilla::dom::quota::Severity::Error); return tryResult1586
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1587.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM \"_ns + indexTable + \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1585 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1585)::ok_type>); if ((__builtin_expect(!!(tryResult1585.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1585.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20747, mozilla::dom::quota::Severity::Error); return tryResult1585.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1586 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1586)::ok_type>); if ((__builtin_expect(!!(tryResult1586.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1586.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20751, mozilla::dom::quota::Severity::Error); return tryResult1586.propagateErr(); }}; } return Ok{}; })"
, tryResult1587.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20755, mozilla::dom::quota::Severity::Error); return tryResult1587
.propagateErr(); } const auto& maybeStmt = tryResult1587.
inspect();
20739 const auto& maybeStmt,auto tryResult1587 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1585 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1585)::ok_type>
); if ((__builtin_expect(!!(tryResult1585.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1585.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20747, mozilla::dom::quota::Severity::Error); return tryResult1585
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1586 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1586)::ok_type
>); if ((__builtin_expect(!!(tryResult1586.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1586.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20751, mozilla::dom::quota::Severity::Error); return tryResult1586
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1587.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM \"_ns + indexTable + \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1585 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1585)::ok_type>); if ((__builtin_expect(!!(tryResult1585.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1585.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20747, mozilla::dom::quota::Severity::Error); return tryResult1585.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1586 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1586)::ok_type>); if ((__builtin_expect(!!(tryResult1586.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1586.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20751, mozilla::dom::quota::Severity::Error); return tryResult1586.propagateErr(); }}; } return Ok{}; })"
, tryResult1587.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20755, mozilla::dom::quota::Severity::Error); return tryResult1587
.propagateErr(); } const auto& maybeStmt = tryResult1587.
inspect();
20740 aConnection->BorrowAndExecuteSingleStepStatement(auto tryResult1587 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1585 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1585)::ok_type>
); if ((__builtin_expect(!!(tryResult1585.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1585.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20747, mozilla::dom::quota::Severity::Error); return tryResult1585
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1586 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1586)::ok_type
>); if ((__builtin_expect(!!(tryResult1586.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1586.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20751, mozilla::dom::quota::Severity::Error); return tryResult1586
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1587.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM \"_ns + indexTable + \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1585 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1585)::ok_type>); if ((__builtin_expect(!!(tryResult1585.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1585.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20747, mozilla::dom::quota::Severity::Error); return tryResult1585.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1586 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1586)::ok_type>); if ((__builtin_expect(!!(tryResult1586.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1586.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20751, mozilla::dom::quota::Severity::Error); return tryResult1586.propagateErr(); }}; } return Ok{}; })"
, tryResult1587.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20755, mozilla::dom::quota::Severity::Error); return tryResult1587
.propagateErr(); } const auto& maybeStmt = tryResult1587.
inspect();
20741 "SELECT count(*) "auto tryResult1587 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1585 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1585)::ok_type>
); if ((__builtin_expect(!!(tryResult1585.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1585.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20747, mozilla::dom::quota::Severity::Error); return tryResult1585
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1586 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1586)::ok_type
>); if ((__builtin_expect(!!(tryResult1586.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1586.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20751, mozilla::dom::quota::Severity::Error); return tryResult1586
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1587.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM \"_ns + indexTable + \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1585 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1585)::ok_type>); if ((__builtin_expect(!!(tryResult1585.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1585.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20747, mozilla::dom::quota::Severity::Error); return tryResult1585.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1586 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1586)::ok_type>); if ((__builtin_expect(!!(tryResult1586.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1586.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20751, mozilla::dom::quota::Severity::Error); return tryResult1586.propagateErr(); }}; } return Ok{}; })"
, tryResult1587.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20755, mozilla::dom::quota::Severity::Error); return tryResult1587
.propagateErr(); } const auto& maybeStmt = tryResult1587.
inspect();
20742 "FROM "_ns +auto tryResult1587 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1585 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1585)::ok_type>
); if ((__builtin_expect(!!(tryResult1585.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1585.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20747, mozilla::dom::quota::Severity::Error); return tryResult1585
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1586 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1586)::ok_type
>); if ((__builtin_expect(!!(tryResult1586.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1586.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20751, mozilla::dom::quota::Severity::Error); return tryResult1586
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1587.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM \"_ns + indexTable + \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1585 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1585)::ok_type>); if ((__builtin_expect(!!(tryResult1585.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1585.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20747, mozilla::dom::quota::Severity::Error); return tryResult1585.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1586 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1586)::ok_type>); if ((__builtin_expect(!!(tryResult1586.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1586.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20751, mozilla::dom::quota::Severity::Error); return tryResult1586.propagateErr(); }}; } return Ok{}; })"
, tryResult1587.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20755, mozilla::dom::quota::Severity::Error); return tryResult1587
.propagateErr(); } const auto& maybeStmt = tryResult1587.
inspect();
20743 indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId +auto tryResult1587 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1585 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1585)::ok_type>
); if ((__builtin_expect(!!(tryResult1585.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1585.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20747, mozilla::dom::quota::Severity::Error); return tryResult1585
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1586 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1586)::ok_type
>); if ((__builtin_expect(!!(tryResult1586.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1586.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20751, mozilla::dom::quota::Severity::Error); return tryResult1586
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1587.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM \"_ns + indexTable + \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1585 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1585)::ok_type>); if ((__builtin_expect(!!(tryResult1585.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1585.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20747, mozilla::dom::quota::Severity::Error); return tryResult1585.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1586 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1586)::ok_type>); if ((__builtin_expect(!!(tryResult1586.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1586.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20751, mozilla::dom::quota::Severity::Error); return tryResult1586.propagateErr(); }}; } return Ok{}; })"
, tryResult1587.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20755, mozilla::dom::quota::Severity::Error); return tryResult1587
.propagateErr(); } const auto& maybeStmt = tryResult1587.
inspect();
20744 keyRangeClause,auto tryResult1587 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1585 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1585)::ok_type>
); if ((__builtin_expect(!!(tryResult1585.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1585.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20747, mozilla::dom::quota::Severity::Error); return tryResult1585
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1586 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1586)::ok_type
>); if ((__builtin_expect(!!(tryResult1586.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1586.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20751, mozilla::dom::quota::Severity::Error); return tryResult1586
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1587.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM \"_ns + indexTable + \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1585 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1585)::ok_type>); if ((__builtin_expect(!!(tryResult1585.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1585.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20747, mozilla::dom::quota::Severity::Error); return tryResult1585.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1586 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1586)::ok_type>); if ((__builtin_expect(!!(tryResult1586.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1586.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20751, mozilla::dom::quota::Severity::Error); return tryResult1586.propagateErr(); }}; } return Ok{}; })"
, tryResult1587.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20755, mozilla::dom::quota::Severity::Error); return tryResult1587
.propagateErr(); } const auto& maybeStmt = tryResult1587.
inspect();
20745 [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> {auto tryResult1587 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1585 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1585)::ok_type>
); if ((__builtin_expect(!!(tryResult1585.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1585.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20747, mozilla::dom::quota::Severity::Error); return tryResult1585
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1586 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1586)::ok_type
>); if ((__builtin_expect(!!(tryResult1586.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1586.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20751, mozilla::dom::quota::Severity::Error); return tryResult1586
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1587.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM \"_ns + indexTable + \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1585 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1585)::ok_type>); if ((__builtin_expect(!!(tryResult1585.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1585.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20747, mozilla::dom::quota::Severity::Error); return tryResult1585.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1586 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1586)::ok_type>); if ((__builtin_expect(!!(tryResult1586.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1586.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20751, mozilla::dom::quota::Severity::Error); return tryResult1586.propagateErr(); }}; } return Ok{}; })"
, tryResult1587.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20755, mozilla::dom::quota::Severity::Error); return tryResult1587
.propagateErr(); } const auto& maybeStmt = tryResult1587.
inspect();
20746 QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByName(auto tryResult1587 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1585 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1585)::ok_type>
); if ((__builtin_expect(!!(tryResult1585.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1585.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20747, mozilla::dom::quota::Severity::Error); return tryResult1585
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1586 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1586)::ok_type
>); if ((__builtin_expect(!!(tryResult1586.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1586.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20751, mozilla::dom::quota::Severity::Error); return tryResult1586
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1587.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM \"_ns + indexTable + \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1585 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1585)::ok_type>); if ((__builtin_expect(!!(tryResult1585.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1585.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20747, mozilla::dom::quota::Severity::Error); return tryResult1585.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1586 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1586)::ok_type>); if ((__builtin_expect(!!(tryResult1586.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1586.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20751, mozilla::dom::quota::Severity::Error); return tryResult1586.propagateErr(); }}; } return Ok{}; })"
, tryResult1587.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20755, mozilla::dom::quota::Severity::Error); return tryResult1587
.propagateErr(); } const auto& maybeStmt = tryResult1587.
inspect();
20747 kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id())));auto tryResult1587 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1585 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1585)::ok_type>
); if ((__builtin_expect(!!(tryResult1585.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1585.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20747, mozilla::dom::quota::Severity::Error); return tryResult1585
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1586 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1586)::ok_type
>); if ((__builtin_expect(!!(tryResult1586.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1586.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20751, mozilla::dom::quota::Severity::Error); return tryResult1586
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1587.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM \"_ns + indexTable + \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1585 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1585)::ok_type>); if ((__builtin_expect(!!(tryResult1585.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1585.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20747, mozilla::dom::quota::Severity::Error); return tryResult1585.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1586 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1586)::ok_type>); if ((__builtin_expect(!!(tryResult1586.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1586.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20751, mozilla::dom::quota::Severity::Error); return tryResult1586.propagateErr(); }}; } return Ok{}; })"
, tryResult1587.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20755, mozilla::dom::quota::Severity::Error); return tryResult1587
.propagateErr(); } const auto& maybeStmt = tryResult1587.
inspect();
20748
20749 if (self.mParams.optionalKeyRange().isSome()) {auto tryResult1587 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1585 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1585)::ok_type>
); if ((__builtin_expect(!!(tryResult1585.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1585.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20747, mozilla::dom::quota::Severity::Error); return tryResult1585
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1586 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1586)::ok_type
>); if ((__builtin_expect(!!(tryResult1586.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1586.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20751, mozilla::dom::quota::Severity::Error); return tryResult1586
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1587.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM \"_ns + indexTable + \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1585 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1585)::ok_type>); if ((__builtin_expect(!!(tryResult1585.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1585.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20747, mozilla::dom::quota::Severity::Error); return tryResult1585.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1586 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1586)::ok_type>); if ((__builtin_expect(!!(tryResult1586.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1586.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20751, mozilla::dom::quota::Severity::Error); return tryResult1586.propagateErr(); }}; } return Ok{}; })"
, tryResult1587.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20755, mozilla::dom::quota::Severity::Error); return tryResult1587
.propagateErr(); } const auto& maybeStmt = tryResult1587.
inspect();
20750 QM_TRY(MOZ_TO_RESULT(BindKeyRangeToStatement(auto tryResult1587 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1585 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1585)::ok_type>
); if ((__builtin_expect(!!(tryResult1585.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1585.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20747, mozilla::dom::quota::Severity::Error); return tryResult1585
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1586 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1586)::ok_type
>); if ((__builtin_expect(!!(tryResult1586.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1586.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20751, mozilla::dom::quota::Severity::Error); return tryResult1586
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1587.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM \"_ns + indexTable + \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1585 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1585)::ok_type>); if ((__builtin_expect(!!(tryResult1585.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1585.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20747, mozilla::dom::quota::Severity::Error); return tryResult1585.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1586 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1586)::ok_type>); if ((__builtin_expect(!!(tryResult1586.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1586.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20751, mozilla::dom::quota::Severity::Error); return tryResult1586.propagateErr(); }}; } return Ok{}; })"
, tryResult1587.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20755, mozilla::dom::quota::Severity::Error); return tryResult1587
.propagateErr(); } const auto& maybeStmt = tryResult1587.
inspect();
20751 self.mParams.optionalKeyRange().ref(), &stmt)));auto tryResult1587 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1585 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1585)::ok_type>
); if ((__builtin_expect(!!(tryResult1585.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1585.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20747, mozilla::dom::quota::Severity::Error); return tryResult1585
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1586 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1586)::ok_type
>); if ((__builtin_expect(!!(tryResult1586.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1586.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20751, mozilla::dom::quota::Severity::Error); return tryResult1586
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1587.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM \"_ns + indexTable + \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1585 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1585)::ok_type>); if ((__builtin_expect(!!(tryResult1585.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1585.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20747, mozilla::dom::quota::Severity::Error); return tryResult1585.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1586 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1586)::ok_type>); if ((__builtin_expect(!!(tryResult1586.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1586.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20751, mozilla::dom::quota::Severity::Error); return tryResult1586.propagateErr(); }}; } return Ok{}; })"
, tryResult1587.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20755, mozilla::dom::quota::Severity::Error); return tryResult1587
.propagateErr(); } const auto& maybeStmt = tryResult1587.
inspect();
20752 }auto tryResult1587 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1585 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1585)::ok_type>
); if ((__builtin_expect(!!(tryResult1585.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1585.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20747, mozilla::dom::quota::Severity::Error); return tryResult1585
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1586 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1586)::ok_type
>); if ((__builtin_expect(!!(tryResult1586.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1586.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20751, mozilla::dom::quota::Severity::Error); return tryResult1586
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1587.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM \"_ns + indexTable + \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1585 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1585)::ok_type>); if ((__builtin_expect(!!(tryResult1585.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1585.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20747, mozilla::dom::quota::Severity::Error); return tryResult1585.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1586 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1586)::ok_type>); if ((__builtin_expect(!!(tryResult1586.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1586.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20751, mozilla::dom::quota::Severity::Error); return tryResult1586.propagateErr(); }}; } return Ok{}; })"
, tryResult1587.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20755, mozilla::dom::quota::Severity::Error); return tryResult1587
.propagateErr(); } const auto& maybeStmt = tryResult1587.
inspect();
20753
20754 return Ok{};auto tryResult1587 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1585 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1585)::ok_type>
); if ((__builtin_expect(!!(tryResult1585.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1585.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20747, mozilla::dom::quota::Severity::Error); return tryResult1585
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1586 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1586)::ok_type
>); if ((__builtin_expect(!!(tryResult1586.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1586.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20751, mozilla::dom::quota::Severity::Error); return tryResult1586
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1587.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM \"_ns + indexTable + \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1585 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1585)::ok_type>); if ((__builtin_expect(!!(tryResult1585.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1585.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20747, mozilla::dom::quota::Severity::Error); return tryResult1585.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1586 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1586)::ok_type>); if ((__builtin_expect(!!(tryResult1586.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1586.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20751, mozilla::dom::quota::Severity::Error); return tryResult1586.propagateErr(); }}; } return Ok{}; })"
, tryResult1587.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20755, mozilla::dom::quota::Severity::Error); return tryResult1587
.propagateErr(); } const auto& maybeStmt = tryResult1587.
inspect();
20755 }))auto tryResult1587 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1585 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1585)::ok_type>
); if ((__builtin_expect(!!(tryResult1585.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1585.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20747, mozilla::dom::quota::Severity::Error); return tryResult1585
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1586 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1586)::ok_type
>); if ((__builtin_expect(!!(tryResult1586.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1586.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20751, mozilla::dom::quota::Severity::Error); return tryResult1586
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1587.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM \"_ns + indexTable + \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1585 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1585)::ok_type>); if ((__builtin_expect(!!(tryResult1585.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1585.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20747, mozilla::dom::quota::Severity::Error); return tryResult1585.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1586 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1586)::ok_type>); if ((__builtin_expect(!!(tryResult1586.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1586.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20751, mozilla::dom::quota::Severity::Error); return tryResult1586.propagateErr(); }}; } return Ok{}; })"
, tryResult1587.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20755, mozilla::dom::quota::Severity::Error); return tryResult1587
.propagateErr(); } const auto& maybeStmt = tryResult1587.
inspect();
;
20756
20757 QM_TRY(OkIf(maybeStmt.isSome()), NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR,{auto tryResult1588 = (OkIf(maybeStmt.isSome())); static_assert
(std::is_empty_v<typename decltype(tryResult1588)::ok_type
>); if ((__builtin_expect(!!(tryResult1588.isErr()), 0))) {
auto tryTempError = tryResult1588.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20763, mozilla::dom::quota::Severity::Error); [](const auto
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20761
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!"
")"); do { MOZ_CrashSequence(__null, 20761); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20762, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
20758 [](const auto) {{auto tryResult1588 = (OkIf(maybeStmt.isSome())); static_assert
(std::is_empty_v<typename decltype(tryResult1588)::ok_type
>); if ((__builtin_expect(!!(tryResult1588.isErr()), 0))) {
auto tryTempError = tryResult1588.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20763, mozilla::dom::quota::Severity::Error); [](const auto
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20761
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!"
")"); do { MOZ_CrashSequence(__null, 20761); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20762, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
20759 // XXX Why do we have an assertion here, but not at most other{auto tryResult1588 = (OkIf(maybeStmt.isSome())); static_assert
(std::is_empty_v<typename decltype(tryResult1588)::ok_type
>); if ((__builtin_expect(!!(tryResult1588.isErr()), 0))) {
auto tryTempError = tryResult1588.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20763, mozilla::dom::quota::Severity::Error); [](const auto
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20761
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!"
")"); do { MOZ_CrashSequence(__null, 20761); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20762, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
20760 // places using IDB_REPORT_INTERNAL_ERR(_LAMBDA)?{auto tryResult1588 = (OkIf(maybeStmt.isSome())); static_assert
(std::is_empty_v<typename decltype(tryResult1588)::ok_type
>); if ((__builtin_expect(!!(tryResult1588.isErr()), 0))) {
auto tryTempError = tryResult1588.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20763, mozilla::dom::quota::Severity::Error); [](const auto
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20761
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!"
")"); do { MOZ_CrashSequence(__null, 20761); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20762, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
20761 MOZ_ASSERT(false, "This should never be possible!");{auto tryResult1588 = (OkIf(maybeStmt.isSome())); static_assert
(std::is_empty_v<typename decltype(tryResult1588)::ok_type
>); if ((__builtin_expect(!!(tryResult1588.isErr()), 0))) {
auto tryTempError = tryResult1588.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20763, mozilla::dom::quota::Severity::Error); [](const auto
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20761
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!"
")"); do { MOZ_CrashSequence(__null, 20761); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20762, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
20762 IDB_REPORT_INTERNAL_ERR();{auto tryResult1588 = (OkIf(maybeStmt.isSome())); static_assert
(std::is_empty_v<typename decltype(tryResult1588)::ok_type
>); if ((__builtin_expect(!!(tryResult1588.isErr()), 0))) {
auto tryTempError = tryResult1588.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20763, mozilla::dom::quota::Severity::Error); [](const auto
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20761
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!"
")"); do { MOZ_CrashSequence(__null, 20761); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20762, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
20763 }){auto tryResult1588 = (OkIf(maybeStmt.isSome())); static_assert
(std::is_empty_v<typename decltype(tryResult1588)::ok_type
>); if ((__builtin_expect(!!(tryResult1588.isErr()), 0))) {
auto tryTempError = tryResult1588.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20763, mozilla::dom::quota::Severity::Error); [](const auto
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20761
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!"
")"); do { MOZ_CrashSequence(__null, 20761); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20762, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
;
20764
20765 const auto& stmt = *maybeStmt;
20766
20767 const int64_t count = stmt->AsInt64(0);
20768 QM_TRY(OkIf(count >= 0), NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR, [](const auto) {{auto tryResult1589 = (OkIf(count >= 0)); static_assert(std
::is_empty_v<typename decltype(tryResult1589)::ok_type>
); if ((__builtin_expect(!!(tryResult1589.isErr()), 0))) { auto
tryTempError = tryResult1589.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(count >= 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20773, mozilla::dom::quota::Severity::Error); [](const auto
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20771
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!"
")"); do { MOZ_CrashSequence(__null, 20771); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20772, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
20769 // XXX Why do we have an assertion here, but not at most other places using{auto tryResult1589 = (OkIf(count >= 0)); static_assert(std
::is_empty_v<typename decltype(tryResult1589)::ok_type>
); if ((__builtin_expect(!!(tryResult1589.isErr()), 0))) { auto
tryTempError = tryResult1589.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(count >= 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20773, mozilla::dom::quota::Severity::Error); [](const auto
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20771
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!"
")"); do { MOZ_CrashSequence(__null, 20771); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20772, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
20770 // IDB_REPORT_INTERNAL_ERR(_LAMBDA)?{auto tryResult1589 = (OkIf(count >= 0)); static_assert(std
::is_empty_v<typename decltype(tryResult1589)::ok_type>
); if ((__builtin_expect(!!(tryResult1589.isErr()), 0))) { auto
tryTempError = tryResult1589.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(count >= 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20773, mozilla::dom::quota::Severity::Error); [](const auto
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20771
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!"
")"); do { MOZ_CrashSequence(__null, 20771); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20772, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
20771 MOZ_ASSERT(false, "This should never be possible!");{auto tryResult1589 = (OkIf(count >= 0)); static_assert(std
::is_empty_v<typename decltype(tryResult1589)::ok_type>
); if ((__builtin_expect(!!(tryResult1589.isErr()), 0))) { auto
tryTempError = tryResult1589.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(count >= 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20773, mozilla::dom::quota::Severity::Error); [](const auto
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20771
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!"
")"); do { MOZ_CrashSequence(__null, 20771); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20772, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
20772 IDB_REPORT_INTERNAL_ERR();{auto tryResult1589 = (OkIf(count >= 0)); static_assert(std
::is_empty_v<typename decltype(tryResult1589)::ok_type>
); if ((__builtin_expect(!!(tryResult1589.isErr()), 0))) { auto
tryTempError = tryResult1589.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(count >= 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20773, mozilla::dom::quota::Severity::Error); [](const auto
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20771
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!"
")"); do { MOZ_CrashSequence(__null, 20771); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20772, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
20773 }){auto tryResult1589 = (OkIf(count >= 0)); static_assert(std
::is_empty_v<typename decltype(tryResult1589)::ok_type>
); if ((__builtin_expect(!!(tryResult1589.isErr()), 0))) { auto
tryTempError = tryResult1589.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(count >= 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20773, mozilla::dom::quota::Severity::Error); [](const auto
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20771
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!"
")"); do { MOZ_CrashSequence(__null, 20771); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20772, idbInternalErrMsg.get()); } while (0); }(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
;
20774
20775 mResponse.count() = count;
20776
20777 return NS_OK;
20778}
20779
20780template <IDBCursorType CursorType>
20781bool Cursor<CursorType>::CursorOpBase::SendFailureResult(
20782 const TransactionOpResult& aResult) {
20783 AssertIsOnOwningThread();
20784 MOZ_ASSERT(NS_FAILED(aResult.mCode))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(((bool)(__builtin_expect(!!(NS_FAILED_impl(aResult.mCode
)), 0))))>::isValid, "invalid assertion condition"); if ((
__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(NS_FAILED_impl
(aResult.mCode)), 0)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(NS_FAILED_impl(aResult.mCode)), 0)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20784
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(NS_FAILED_impl(aResult.mCode)), 0)))"
")"); do { MOZ_CrashSequence(__null, 20784); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20785 MOZ_ASSERT(mCursor)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mCursor)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mCursor))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mCursor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20785); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor" ")"
); do { MOZ_CrashSequence(__null, 20785); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
20786 MOZ_ASSERT(mCursor->mCurrentlyRunningOp == this)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mCursor->mCurrentlyRunningOp == this)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mCursor->mCurrentlyRunningOp == this))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mCursor->mCurrentlyRunningOp == this"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20786
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor->mCurrentlyRunningOp == this"
")"); do { MOZ_CrashSequence(__null, 20786); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20787 MOZ_ASSERT(!mResponseSent)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mResponseSent)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mResponseSent))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!mResponseSent"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20787
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mResponseSent" ")"
); do { MOZ_CrashSequence(__null, 20787); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
20788
20789 if (!IsActorDestroyed()) {
20790 mResponse = aResult.mCode;
20791
20792 // This is an expected race when the transaction is invalidated after
20793 // data is retrieved from database.
20794 //
20795 // TODO: There seem to be other cases when mFiles is non-empty here, which
20796 // have been present before adding cursor preloading, but with cursor
20797 // preloading they have become more frequent (also during startup). One
20798 // possible cause with cursor preloading is to be addressed by Bug 1597191.
20799 NS_WARNING_ASSERTION(do { if (!(!mFiles.IsEmpty() && !Transaction().IsInvalidated
())) { NS_DebugBreak(NS_DEBUG_WARNING, "Expected empty mFiles when transaction has not been invalidated"
, "!mFiles.IsEmpty() && !Transaction().IsInvalidated()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20801
); } } while (false)
20800 !mFiles.IsEmpty() && !Transaction().IsInvalidated(),do { if (!(!mFiles.IsEmpty() && !Transaction().IsInvalidated
())) { NS_DebugBreak(NS_DEBUG_WARNING, "Expected empty mFiles when transaction has not been invalidated"
, "!mFiles.IsEmpty() && !Transaction().IsInvalidated()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20801
); } } while (false)
20801 "Expected empty mFiles when transaction has not been invalidated")do { if (!(!mFiles.IsEmpty() && !Transaction().IsInvalidated
())) { NS_DebugBreak(NS_DEBUG_WARNING, "Expected empty mFiles when transaction has not been invalidated"
, "!mFiles.IsEmpty() && !Transaction().IsInvalidated()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20801
); } } while (false)
;
20802
20803 // SendResponseInternal will assert when mResponse.type() is
20804 // CursorResponse::Tnsresult and mFiles is non-empty, so we clear mFiles
20805 // here.
20806 mFiles.Clear();
20807
20808 mCursor->SendResponseInternal(mResponse, mFiles);
20809 }
20810
20811#ifdef DEBUG1
20812 mResponseSent = true;
20813#endif
20814 return false;
20815}
20816
20817template <IDBCursorType CursorType>
20818void Cursor<CursorType>::CursorOpBase::Cleanup() {
20819 AssertIsOnOwningThread();
20820 MOZ_ASSERT(mCursor)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mCursor)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mCursor))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mCursor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20820); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor" ")"
); do { MOZ_CrashSequence(__null, 20820); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
20821 MOZ_ASSERT_IF(!IsActorDestroyed(), mResponseSent)do { if (!IsActorDestroyed()) { do { static_assert( mozilla::
detail::AssertionConditionType<decltype(mResponseSent)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mResponseSent))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mResponseSent", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20821); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponseSent"
")"); do { MOZ_CrashSequence(__null, 20821); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
20822
20823 mCursor = nullptr;
20824
20825#ifdef DEBUG1
20826 // A bit hacky but the CursorOp request is not generated in response to a
20827 // child request like most other database operations. Do this to make our
20828 // assertions happy.
20829 NoteActorDestroyed();
20830#endif
20831
20832 TransactionDatabaseOperationBase::Cleanup();
20833}
20834
20835template <IDBCursorType CursorType>
20836ResponseSizeOrError
20837CursorOpBaseHelperBase<CursorType>::PopulateResponseFromStatement(
20838 mozIStorageStatement* const aStmt, const bool aInitializeResponse,
20839 Key* const aOptOutSortKey) {
20840 mOp.Transaction().AssertIsOnConnectionThread();
20841 MOZ_ASSERT_IF(aInitializeResponse,do { if (aInitializeResponse) { do { static_assert( mozilla::
detail::AssertionConditionType<decltype(mOp.mResponse.type
() == CursorResponse::T__None)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOp.mResponse.type() == CursorResponse
::T__None))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mOp.mResponse.type() == CursorResponse::T__None", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20842); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOp.mResponse.type() == CursorResponse::T__None"
")"); do { MOZ_CrashSequence(__null, 20842); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
20842 mOp.mResponse.type() == CursorResponse::T__None)do { if (aInitializeResponse) { do { static_assert( mozilla::
detail::AssertionConditionType<decltype(mOp.mResponse.type
() == CursorResponse::T__None)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOp.mResponse.type() == CursorResponse
::T__None))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mOp.mResponse.type() == CursorResponse::T__None", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20842); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOp.mResponse.type() == CursorResponse::T__None"
")"); do { MOZ_CrashSequence(__null, 20842); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
20843 MOZ_ASSERT_IF(!aInitializeResponse,do { if (!aInitializeResponse) { do { static_assert( mozilla::
detail::AssertionConditionType<decltype(mOp.mResponse.type
() != CursorResponse::T__None)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOp.mResponse.type() != CursorResponse
::T__None))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mOp.mResponse.type() != CursorResponse::T__None", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20844); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOp.mResponse.type() != CursorResponse::T__None"
")"); do { MOZ_CrashSequence(__null, 20844); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
20844 mOp.mResponse.type() != CursorResponse::T__None)do { if (!aInitializeResponse) { do { static_assert( mozilla::
detail::AssertionConditionType<decltype(mOp.mResponse.type
() != CursorResponse::T__None)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOp.mResponse.type() != CursorResponse
::T__None))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mOp.mResponse.type() != CursorResponse::T__None", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20844); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOp.mResponse.type() != CursorResponse::T__None"
")"); do { MOZ_CrashSequence(__null, 20844); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
20845 MOZ_ASSERT_IF(do { if (mOp.mFiles.IsEmpty() && (mOp.mResponse.type(
) == CursorResponse::TArrayOfObjectStoreCursorResponse || mOp
.mResponse.type() == CursorResponse::TArrayOfIndexCursorResponse
)) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(aInitializeResponse)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aInitializeResponse))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("aInitializeResponse"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20850
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aInitializeResponse"
")"); do { MOZ_CrashSequence(__null, 20850); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
20846 mOp.mFiles.IsEmpty() &&do { if (mOp.mFiles.IsEmpty() && (mOp.mResponse.type(
) == CursorResponse::TArrayOfObjectStoreCursorResponse || mOp
.mResponse.type() == CursorResponse::TArrayOfIndexCursorResponse
)) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(aInitializeResponse)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aInitializeResponse))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("aInitializeResponse"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20850
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aInitializeResponse"
")"); do { MOZ_CrashSequence(__null, 20850); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
20847 (mOp.mResponse.type() ==do { if (mOp.mFiles.IsEmpty() && (mOp.mResponse.type(
) == CursorResponse::TArrayOfObjectStoreCursorResponse || mOp
.mResponse.type() == CursorResponse::TArrayOfIndexCursorResponse
)) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(aInitializeResponse)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aInitializeResponse))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("aInitializeResponse"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20850
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aInitializeResponse"
")"); do { MOZ_CrashSequence(__null, 20850); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
20848 CursorResponse::TArrayOfObjectStoreCursorResponse ||do { if (mOp.mFiles.IsEmpty() && (mOp.mResponse.type(
) == CursorResponse::TArrayOfObjectStoreCursorResponse || mOp
.mResponse.type() == CursorResponse::TArrayOfIndexCursorResponse
)) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(aInitializeResponse)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aInitializeResponse))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("aInitializeResponse"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20850
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aInitializeResponse"
")"); do { MOZ_CrashSequence(__null, 20850); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
20849 mOp.mResponse.type() == CursorResponse::TArrayOfIndexCursorResponse),do { if (mOp.mFiles.IsEmpty() && (mOp.mResponse.type(
) == CursorResponse::TArrayOfObjectStoreCursorResponse || mOp
.mResponse.type() == CursorResponse::TArrayOfIndexCursorResponse
)) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(aInitializeResponse)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aInitializeResponse))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("aInitializeResponse"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20850
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aInitializeResponse"
")"); do { MOZ_CrashSequence(__null, 20850); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
20850 aInitializeResponse)do { if (mOp.mFiles.IsEmpty() && (mOp.mResponse.type(
) == CursorResponse::TArrayOfObjectStoreCursorResponse || mOp
.mResponse.type() == CursorResponse::TArrayOfIndexCursorResponse
)) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(aInitializeResponse)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aInitializeResponse))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("aInitializeResponse"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20850
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aInitializeResponse"
")"); do { MOZ_CrashSequence(__null, 20850); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
20851
20852 auto populateResponseHelper = PopulateResponseHelper<CursorType>{mOp};
20853 auto previousKey = aOptOutSortKey ? std::move(*aOptOutSortKey) : Key{};
20854
20855 QM_TRY(MOZ_TO_RESULT(populateResponseHelper.GetKeys(aStmt, aOptOutSortKey))){auto tryResult1590 = (ToResult(populateResponseHelper.GetKeys
(aStmt, aOptOutSortKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1590)::ok_type>); if ((__builtin_expect
(!!(tryResult1590.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(populateResponseHelper.GetKeys(aStmt, aOptOutSortKey))"
, tryResult1590.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20855, mozilla::dom::quota::Severity::Error); return tryResult1590
.propagateErr(); }}
;
20856
20857 // aOptOutSortKey must be set iff the cursor is a unique cursor. For unique
20858 // cursors, we need to skip records with the same key. The SQL queries
20859 // currently do not filter these out.
20860 if (aOptOutSortKey && !previousKey.IsUnset() &&
20861 previousKey == *aOptOutSortKey) {
20862 return 0;
20863 }
20864
20865 QM_TRY(MOZ_TO_RESULT({auto tryResult1591 = (ToResult(populateResponseHelper.MaybeGetCloneInfo
(aStmt, GetCursor()))); static_assert(std::is_empty_v<typename
decltype(tryResult1591)::ok_type>); if ((__builtin_expect
(!!(tryResult1591.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(populateResponseHelper.MaybeGetCloneInfo(aStmt, GetCursor()))"
, tryResult1591.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20866, mozilla::dom::quota::Severity::Error); return tryResult1591
.propagateErr(); }}
20866 populateResponseHelper.MaybeGetCloneInfo(aStmt, GetCursor()))){auto tryResult1591 = (ToResult(populateResponseHelper.MaybeGetCloneInfo
(aStmt, GetCursor()))); static_assert(std::is_empty_v<typename
decltype(tryResult1591)::ok_type>); if ((__builtin_expect
(!!(tryResult1591.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(populateResponseHelper.MaybeGetCloneInfo(aStmt, GetCursor()))"
, tryResult1591.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20866, mozilla::dom::quota::Severity::Error); return tryResult1591
.propagateErr(); }}
;
20867
20868 // CAUTION: It is important that only the part of the function above this
20869 // comment may fail, and modifications to the data structure (in particular
20870 // mResponse and mFiles) may only be made below. This is necessary to allow to
20871 // discard entries that were attempted to be preloaded without causing an
20872 // inconsistent state.
20873
20874 if (aInitializeResponse) {
20875 mOp.mResponse = std::remove_reference_t<
20876 decltype(populateResponseHelper.GetTypedResponse(&mOp.mResponse))>();
20877 }
20878
20879 auto& responses = populateResponseHelper.GetTypedResponse(&mOp.mResponse);
20880 auto& response = *responses.AppendElement();
20881
20882 populateResponseHelper.FillKeys(response);
20883 if constexpr (!CursorTypeTraits<CursorType>::IsKeyOnlyCursor) {
20884 populateResponseHelper.MaybeFillCloneInfo(response, &mOp.mFiles);
20885 }
20886
20887 return populateResponseHelper.GetKeySize(response) +
20888 populateResponseHelper.MaybeGetCloneInfoSize(response);
20889}
20890
20891template <IDBCursorType CursorType>
20892void CursorOpBaseHelperBase<CursorType>::PopulateExtraResponses(
20893 mozIStorageStatement* const aStmt, const uint32_t aMaxExtraCount,
20894 const size_t aInitialResponseSize, const nsACString& aOperation,
20895 Key* const aOptPreviousSortKey) {
20896 mOp.AssertIsOnConnectionThread();
20897
20898 const auto extraCount = [&]() -> uint32_t {
20899 auto accumulatedResponseSize = aInitialResponseSize;
20900 uint32_t extraCount = 0;
20901
20902 do {
20903 bool hasResult;
20904 nsresult rv = aStmt->ExecuteStep(&hasResult);
20905 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20905)
) {
20906 // In case of a failure on one step, do not attempt to execute further
20907 // steps, but use the results already populated.
20908
20909 break;
20910 }
20911
20912 if (!hasResult) {
20913 break;
20914 }
20915
20916 // PopulateResponseFromStatement does not modify the data in case of
20917 // failure, so we can just use the results already populated, and discard
20918 // any remaining entries, and signal overall success. Probably, future
20919 // attempts to access the same entry will fail as well, but it might never
20920 // be accessed by the application.
20921 QM_TRY_INSPECT(auto tryResult1592 = (PopulateResponseFromStatement(aStmt, false
, aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1592
.isErr()), 0))) { auto tryTempError = tryResult1592.unwrapErr
(); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20932, mozilla::dom::quota::Severity::Error); [](const auto
&) { }(tryTempError); [[maybe_unused]] constexpr const auto
& func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, extraCount); } const auto& responseSize =
tryResult1592.inspect();
20922 const auto& responseSize,auto tryResult1592 = (PopulateResponseFromStatement(aStmt, false
, aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1592
.isErr()), 0))) { auto tryTempError = tryResult1592.unwrapErr
(); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20932, mozilla::dom::quota::Severity::Error); [](const auto
&) { }(tryTempError); [[maybe_unused]] constexpr const auto
& func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, extraCount); } const auto& responseSize =
tryResult1592.inspect();
20923 PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey),auto tryResult1592 = (PopulateResponseFromStatement(aStmt, false
, aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1592
.isErr()), 0))) { auto tryTempError = tryResult1592.unwrapErr
(); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20932, mozilla::dom::quota::Severity::Error); [](const auto
&) { }(tryTempError); [[maybe_unused]] constexpr const auto
& func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, extraCount); } const auto& responseSize =
tryResult1592.inspect();
20924 extraCount, [](const auto&) {auto tryResult1592 = (PopulateResponseFromStatement(aStmt, false
, aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1592
.isErr()), 0))) { auto tryTempError = tryResult1592.unwrapErr
(); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20932, mozilla::dom::quota::Severity::Error); [](const auto
&) { }(tryTempError); [[maybe_unused]] constexpr const auto
& func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, extraCount); } const auto& responseSize =
tryResult1592.inspect();
20925 // TODO: Maybe disable preloading for this cursor? The problem willauto tryResult1592 = (PopulateResponseFromStatement(aStmt, false
, aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1592
.isErr()), 0))) { auto tryTempError = tryResult1592.unwrapErr
(); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20932, mozilla::dom::quota::Severity::Error); [](const auto
&) { }(tryTempError); [[maybe_unused]] constexpr const auto
& func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, extraCount); } const auto& responseSize =
tryResult1592.inspect();
20926 // probably reoccur on the next attempt, and disabling preloadingauto tryResult1592 = (PopulateResponseFromStatement(aStmt, false
, aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1592
.isErr()), 0))) { auto tryTempError = tryResult1592.unwrapErr
(); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20932, mozilla::dom::quota::Severity::Error); [](const auto
&) { }(tryTempError); [[maybe_unused]] constexpr const auto
& func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, extraCount); } const auto& responseSize =
tryResult1592.inspect();
20927 // will reduce latency. However, if some problematic entry will beauto tryResult1592 = (PopulateResponseFromStatement(aStmt, false
, aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1592
.isErr()), 0))) { auto tryTempError = tryResult1592.unwrapErr
(); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20932, mozilla::dom::quota::Severity::Error); [](const auto
&) { }(tryTempError); [[maybe_unused]] constexpr const auto
& func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, extraCount); } const auto& responseSize =
tryResult1592.inspect();
20928 // skipped over, after that it might be fine again. To judge this,auto tryResult1592 = (PopulateResponseFromStatement(aStmt, false
, aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1592
.isErr()), 0))) { auto tryTempError = tryResult1592.unwrapErr
(); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20932, mozilla::dom::quota::Severity::Error); [](const auto
&) { }(tryTempError); [[maybe_unused]] constexpr const auto
& func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, extraCount); } const auto& responseSize =
tryResult1592.inspect();
20929 // the causes for such failures would need to be analyzed moreauto tryResult1592 = (PopulateResponseFromStatement(aStmt, false
, aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1592
.isErr()), 0))) { auto tryTempError = tryResult1592.unwrapErr
(); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20932, mozilla::dom::quota::Severity::Error); [](const auto
&) { }(tryTempError); [[maybe_unused]] constexpr const auto
& func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, extraCount); } const auto& responseSize =
tryResult1592.inspect();
20930 // thoroughly. Since this seems to be rare, maybe no further actionauto tryResult1592 = (PopulateResponseFromStatement(aStmt, false
, aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1592
.isErr()), 0))) { auto tryTempError = tryResult1592.unwrapErr
(); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20932, mozilla::dom::quota::Severity::Error); [](const auto
&) { }(tryTempError); [[maybe_unused]] constexpr const auto
& func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, extraCount); } const auto& responseSize =
tryResult1592.inspect();
20931 // is necessary at all.auto tryResult1592 = (PopulateResponseFromStatement(aStmt, false
, aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1592
.isErr()), 0))) { auto tryTempError = tryResult1592.unwrapErr
(); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20932, mozilla::dom::quota::Severity::Error); [](const auto
&) { }(tryTempError); [[maybe_unused]] constexpr const auto
& func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, extraCount); } const auto& responseSize =
tryResult1592.inspect();
20932 })auto tryResult1592 = (PopulateResponseFromStatement(aStmt, false
, aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1592
.isErr()), 0))) { auto tryTempError = tryResult1592.unwrapErr
(); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20932, mozilla::dom::quota::Severity::Error); [](const auto
&) { }(tryTempError); [[maybe_unused]] constexpr const auto
& func = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, extraCount); } const auto& responseSize =
tryResult1592.inspect();
;
20933
20934 // Check accumulated size of individual responses and maybe break early.
20935 accumulatedResponseSize += responseSize;
20936 if (accumulatedResponseSize > IPC::Channel::kMaximumMessageSize / 2) {
20937 IDB_LOG_MARK_PARENT_TRANSACTION_REQUEST(mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"PRELOAD: %s: Dropping entries because maximum message size is "
"exceeded: %" "u" "/%zu bytes", "IndexedDB %s: " "P" " " "T[%"
"l" "i" "]" " " "R[%" "l" "u" "]" ": " "%.0s Dropping too large (%"
"u" "/%zu)", mozilla::dom::indexedDB::LoggingIdString<true
>(mOp.mBackgroundChildLoggingId).get(), mOp.mTransactionLoggingSerialNumber
, mOp.mLoggingSerialNumber, TPromiseFlatString<char>(aOperation
).get(), extraCount, accumulatedResponseSize)
20938 "PRELOAD: %s: Dropping entries because maximum message size is "mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"PRELOAD: %s: Dropping entries because maximum message size is "
"exceeded: %" "u" "/%zu bytes", "IndexedDB %s: " "P" " " "T[%"
"l" "i" "]" " " "R[%" "l" "u" "]" ": " "%.0s Dropping too large (%"
"u" "/%zu)", mozilla::dom::indexedDB::LoggingIdString<true
>(mOp.mBackgroundChildLoggingId).get(), mOp.mTransactionLoggingSerialNumber
, mOp.mLoggingSerialNumber, TPromiseFlatString<char>(aOperation
).get(), extraCount, accumulatedResponseSize)
20939 "exceeded: %" PRIu32 "/%zu bytes",mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"PRELOAD: %s: Dropping entries because maximum message size is "
"exceeded: %" "u" "/%zu bytes", "IndexedDB %s: " "P" " " "T[%"
"l" "i" "]" " " "R[%" "l" "u" "]" ": " "%.0s Dropping too large (%"
"u" "/%zu)", mozilla::dom::indexedDB::LoggingIdString<true
>(mOp.mBackgroundChildLoggingId).get(), mOp.mTransactionLoggingSerialNumber
, mOp.mLoggingSerialNumber, TPromiseFlatString<char>(aOperation
).get(), extraCount, accumulatedResponseSize)
20940 "%.0s Dropping too large (%" PRIu32 "/%zu)",mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"PRELOAD: %s: Dropping entries because maximum message size is "
"exceeded: %" "u" "/%zu bytes", "IndexedDB %s: " "P" " " "T[%"
"l" "i" "]" " " "R[%" "l" "u" "]" ": " "%.0s Dropping too large (%"
"u" "/%zu)", mozilla::dom::indexedDB::LoggingIdString<true
>(mOp.mBackgroundChildLoggingId).get(), mOp.mTransactionLoggingSerialNumber
, mOp.mLoggingSerialNumber, TPromiseFlatString<char>(aOperation
).get(), extraCount, accumulatedResponseSize)
20941 IDB_LOG_ID_STRING(mOp.mBackgroundChildLoggingId),mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"PRELOAD: %s: Dropping entries because maximum message size is "
"exceeded: %" "u" "/%zu bytes", "IndexedDB %s: " "P" " " "T[%"
"l" "i" "]" " " "R[%" "l" "u" "]" ": " "%.0s Dropping too large (%"
"u" "/%zu)", mozilla::dom::indexedDB::LoggingIdString<true
>(mOp.mBackgroundChildLoggingId).get(), mOp.mTransactionLoggingSerialNumber
, mOp.mLoggingSerialNumber, TPromiseFlatString<char>(aOperation
).get(), extraCount, accumulatedResponseSize)
20942 mOp.mTransactionLoggingSerialNumber, mOp.mLoggingSerialNumber,mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"PRELOAD: %s: Dropping entries because maximum message size is "
"exceeded: %" "u" "/%zu bytes", "IndexedDB %s: " "P" " " "T[%"
"l" "i" "]" " " "R[%" "l" "u" "]" ": " "%.0s Dropping too large (%"
"u" "/%zu)", mozilla::dom::indexedDB::LoggingIdString<true
>(mOp.mBackgroundChildLoggingId).get(), mOp.mTransactionLoggingSerialNumber
, mOp.mLoggingSerialNumber, TPromiseFlatString<char>(aOperation
).get(), extraCount, accumulatedResponseSize)
20943 PromiseFlatCString(aOperation).get(), extraCount,mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"PRELOAD: %s: Dropping entries because maximum message size is "
"exceeded: %" "u" "/%zu bytes", "IndexedDB %s: " "P" " " "T[%"
"l" "i" "]" " " "R[%" "l" "u" "]" ": " "%.0s Dropping too large (%"
"u" "/%zu)", mozilla::dom::indexedDB::LoggingIdString<true
>(mOp.mBackgroundChildLoggingId).get(), mOp.mTransactionLoggingSerialNumber
, mOp.mLoggingSerialNumber, TPromiseFlatString<char>(aOperation
).get(), extraCount, accumulatedResponseSize)
20944 accumulatedResponseSize)mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"PRELOAD: %s: Dropping entries because maximum message size is "
"exceeded: %" "u" "/%zu bytes", "IndexedDB %s: " "P" " " "T[%"
"l" "i" "]" " " "R[%" "l" "u" "]" ": " "%.0s Dropping too large (%"
"u" "/%zu)", mozilla::dom::indexedDB::LoggingIdString<true
>(mOp.mBackgroundChildLoggingId).get(), mOp.mTransactionLoggingSerialNumber
, mOp.mLoggingSerialNumber, TPromiseFlatString<char>(aOperation
).get(), extraCount, accumulatedResponseSize)
;
20945
20946 break;
20947 }
20948
20949 // TODO: Do not count entries skipped for unique cursors.
20950 ++extraCount;
20951 } while (true);
20952
20953 return extraCount;
20954 }();
20955
20956 IDB_LOG_MARK_PARENT_TRANSACTION_REQUEST(mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"PRELOAD: %s: Number of extra results populated: %" "u" "/%"
"u", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" " " "R[%" "l"
"u" "]" ": " "%.0s Populated (%" "u" "/%" "u" ")", mozilla::
dom::indexedDB::LoggingIdString<true>(mOp.mBackgroundChildLoggingId
).get(), mOp.mTransactionLoggingSerialNumber, mOp.mLoggingSerialNumber
, TPromiseFlatString<char>(aOperation).get(), extraCount
, aMaxExtraCount)
20957 "PRELOAD: %s: Number of extra results populated: %" PRIu32 "/%" PRIu32,mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"PRELOAD: %s: Number of extra results populated: %" "u" "/%"
"u", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" " " "R[%" "l"
"u" "]" ": " "%.0s Populated (%" "u" "/%" "u" ")", mozilla::
dom::indexedDB::LoggingIdString<true>(mOp.mBackgroundChildLoggingId
).get(), mOp.mTransactionLoggingSerialNumber, mOp.mLoggingSerialNumber
, TPromiseFlatString<char>(aOperation).get(), extraCount
, aMaxExtraCount)
20958 "%.0s Populated (%" PRIu32 "/%" PRIu32 ")",mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"PRELOAD: %s: Number of extra results populated: %" "u" "/%"
"u", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" " " "R[%" "l"
"u" "]" ": " "%.0s Populated (%" "u" "/%" "u" ")", mozilla::
dom::indexedDB::LoggingIdString<true>(mOp.mBackgroundChildLoggingId
).get(), mOp.mTransactionLoggingSerialNumber, mOp.mLoggingSerialNumber
, TPromiseFlatString<char>(aOperation).get(), extraCount
, aMaxExtraCount)
20959 IDB_LOG_ID_STRING(mOp.mBackgroundChildLoggingId),mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"PRELOAD: %s: Number of extra results populated: %" "u" "/%"
"u", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" " " "R[%" "l"
"u" "]" ": " "%.0s Populated (%" "u" "/%" "u" ")", mozilla::
dom::indexedDB::LoggingIdString<true>(mOp.mBackgroundChildLoggingId
).get(), mOp.mTransactionLoggingSerialNumber, mOp.mLoggingSerialNumber
, TPromiseFlatString<char>(aOperation).get(), extraCount
, aMaxExtraCount)
20960 mOp.mTransactionLoggingSerialNumber, mOp.mLoggingSerialNumber,mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"PRELOAD: %s: Number of extra results populated: %" "u" "/%"
"u", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" " " "R[%" "l"
"u" "]" ": " "%.0s Populated (%" "u" "/%" "u" ")", mozilla::
dom::indexedDB::LoggingIdString<true>(mOp.mBackgroundChildLoggingId
).get(), mOp.mTransactionLoggingSerialNumber, mOp.mLoggingSerialNumber
, TPromiseFlatString<char>(aOperation).get(), extraCount
, aMaxExtraCount)
20961 PromiseFlatCString(aOperation).get(), extraCount, aMaxExtraCount)mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"PRELOAD: %s: Number of extra results populated: %" "u" "/%"
"u", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" " " "R[%" "l"
"u" "]" ": " "%.0s Populated (%" "u" "/%" "u" ")", mozilla::
dom::indexedDB::LoggingIdString<true>(mOp.mBackgroundChildLoggingId
).get(), mOp.mTransactionLoggingSerialNumber, mOp.mLoggingSerialNumber
, TPromiseFlatString<char>(aOperation).get(), extraCount
, aMaxExtraCount)
;
20962}
20963
20964template <IDBCursorType CursorType>
20965void Cursor<CursorType>::SetOptionalKeyRange(
20966 const Maybe<SerializedKeyRange>& aOptionalKeyRange, bool* const aOpen) {
20967 MOZ_ASSERT(aOpen)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aOpen)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(aOpen))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("aOpen", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20967); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aOpen" ")"
); do { MOZ_CrashSequence(__null, 20967); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
20968
20969 Key localeAwareRangeBound;
20970
20971 if (aOptionalKeyRange.isSome()) {
20972 const SerializedKeyRange& range = aOptionalKeyRange.ref();
20973
20974 const bool lowerBound = !IsIncreasingOrder(mDirection);
20975 *aOpen =
20976 !range.isOnly() && (lowerBound ? range.lowerOpen() : range.upperOpen());
20977
20978 const auto& bound =
20979 (range.isOnly() || lowerBound) ? range.lower() : range.upper();
20980 if constexpr (IsIndexCursor) {
20981 if (this->IsLocaleAware()) {
20982 // XXX Don't we need to propagate the error?
20983 QM_TRY_UNWRAP(localeAwareRangeBound,auto tryResult1593 = (bound.ToLocaleAwareKey(this->mLocale
)); if ((__builtin_expect(!!(tryResult1593.isErr()), 0))) { [
[maybe_unused]] auto tryTempError = tryResult1593.unwrapErr()
; mozilla::dom::quota::HandleError("bound.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20984, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return ; } localeAwareRangeBound
= tryResult1593.unwrap();
20984 bound.ToLocaleAwareKey(this->mLocale), QM_VOID)auto tryResult1593 = (bound.ToLocaleAwareKey(this->mLocale
)); if ((__builtin_expect(!!(tryResult1593.isErr()), 0))) { [
[maybe_unused]] auto tryTempError = tryResult1593.unwrapErr()
; mozilla::dom::quota::HandleError("bound.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20984, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return ; } localeAwareRangeBound
= tryResult1593.unwrap();
;
20985 } else {
20986 localeAwareRangeBound = bound;
20987 }
20988 } else {
20989 localeAwareRangeBound = bound;
20990 }
20991 } else {
20992 *aOpen = false;
20993 }
20994
20995 this->mLocaleAwareRangeBound.init(std::move(localeAwareRangeBound));
20996}
20997
20998template <IDBCursorType CursorType>
20999void ObjectStoreOpenOpHelper<CursorType>::PrepareKeyConditionClauses(
21000 const nsACString& aDirectionClause, const nsACString& aQueryStart) {
21001 const bool isIncreasingOrder = IsIncreasingOrder(GetCursor().mDirection);
21002
21003 nsAutoCString keyRangeClause;
21004 nsAutoCString continueToKeyRangeClause;
21005 AppendConditionClause(kStmtParamNameKey, kStmtParamNameCurrentKey,
21006 !isIncreasingOrder, false, keyRangeClause);
21007 AppendConditionClause(kStmtParamNameKey, kStmtParamNameCurrentKey,
21008 !isIncreasingOrder, true, continueToKeyRangeClause);
21009
21010 {
21011 bool open;
21012 GetCursor().SetOptionalKeyRange(GetOptionalKeyRange(), &open);
21013
21014 if (GetOptionalKeyRange().isSome() &&
21015 !GetCursor().mLocaleAwareRangeBound->IsUnset()) {
21016 AppendConditionClause(kStmtParamNameKey, kStmtParamNameRangeBound,
21017 isIncreasingOrder, !open, keyRangeClause);
21018 AppendConditionClause(kStmtParamNameKey, kStmtParamNameRangeBound,
21019 isIncreasingOrder, !open, continueToKeyRangeClause);
21020 }
21021 }
21022
21023 const nsAutoCString suffix =
21024 aDirectionClause + " LIMIT :"_ns + kStmtParamNameLimit;
21025
21026 GetCursor().mContinueQueries.init(
21027 aQueryStart + keyRangeClause + suffix,
21028 aQueryStart + continueToKeyRangeClause + suffix);
21029}
21030
21031template <IDBCursorType CursorType>
21032void IndexOpenOpHelper<CursorType>::PrepareIndexKeyConditionClause(
21033 const nsACString& aDirectionClause,
21034 const nsLiteralCString& aObjectDataKeyPrefix, nsAutoCString aQueryStart) {
21035 const bool isIncreasingOrder = IsIncreasingOrder(GetCursor().mDirection);
21036
21037 {
21038 bool open;
21039 GetCursor().SetOptionalKeyRange(GetOptionalKeyRange(), &open);
21040 if (GetOptionalKeyRange().isSome() &&
21041 !GetCursor().mLocaleAwareRangeBound->IsUnset()) {
21042 AppendConditionClause(kColumnNameAliasSortKey, kStmtParamNameRangeBound,
21043 isIncreasingOrder, !open, aQueryStart);
21044 }
21045 }
21046
21047 nsCString continueQuery, continueToQuery, continuePrimaryKeyQuery;
21048
21049 const ComparisonOperator comparisonOperatorStrict =
21050 isIncreasingOrder ? ComparisonOperator::GreaterThan
21051 : ComparisonOperator::LessThan;
21052 const ComparisonOperator comparisonOperatorNonStrict =
21053 isIncreasingOrder ? ComparisonOperator::GreaterOrEquals
21054 : ComparisonOperator::LessOrEquals;
21055
21056 continueToQuery =
21057 aQueryStart + " AND "_ns +
21058 GetSortKeyClause(comparisonOperatorNonStrict, kStmtParamNameCurrentKey);
21059
21060 switch (GetCursor().mDirection) {
21061 case IDBCursorDirection::Next:
21062 case IDBCursorDirection::Prev:
21063 continueQuery =
21064 aQueryStart + " AND "_ns +
21065 GetRowValueClause(kColumnNameAliasSortKey,
21066 aObjectDataKeyPrefix + "object_data_key"_ns,
21067 comparisonOperatorStrict, kStmtParamNameCurrentKey,
21068 kStmtParamNameObjectStorePosition);
21069
21070 continuePrimaryKeyQuery =
21071 aQueryStart + " AND "_ns +
21072 GetRowValueClause(kColumnNameAliasSortKey,
21073 aObjectDataKeyPrefix + "object_data_key"_ns,
21074 comparisonOperatorNonStrict,
21075 kStmtParamNameCurrentKey,
21076 kStmtParamNameObjectStorePosition);
21077 break;
21078
21079 case IDBCursorDirection::Nextunique:
21080 case IDBCursorDirection::Prevunique:
21081 continueQuery =
21082 aQueryStart + " AND "_ns +
21083 GetSortKeyClause(comparisonOperatorStrict, kStmtParamNameCurrentKey);
21084 break;
21085
21086 default:
21087 MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21087
); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 21087); __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
21088 }
21089
21090 const nsAutoCString suffix =
21091 aDirectionClause + " LIMIT :"_ns + kStmtParamNameLimit;
21092 continueQuery += suffix;
21093 continueToQuery += suffix;
21094 if (!continuePrimaryKeyQuery.IsEmpty()) {
21095 continuePrimaryKeyQuery += suffix;
21096 }
21097
21098 GetCursor().mContinueQueries.init(std::move(continueQuery),
21099 std::move(continueToQuery),
21100 std::move(continuePrimaryKeyQuery));
21101}
21102
21103template <IDBCursorType CursorType>
21104nsresult CommonOpenOpHelper<CursorType>::ProcessStatementSteps(
21105 mozIStorageStatement* const aStmt) {
21106 QM_TRY_INSPECT(const bool& hasResult,auto tryResult1594 = (::mozilla::ToResultInvokeMember( (aStmt
), &::mozilla::detail::DerefedType<decltype(aStmt)>
::ExecuteStep )); if ((__builtin_expect(!!(tryResult1594.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aStmt), &::mozilla::detail::DerefedType<decltype(aStmt)>::ExecuteStep )"
, tryResult1594.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21107, mozilla::dom::quota::Severity::Error); return tryResult1594
.propagateErr(); } const bool& hasResult = tryResult1594.
inspect();
21107 MOZ_TO_RESULT_INVOKE_MEMBER(aStmt, ExecuteStep))auto tryResult1594 = (::mozilla::ToResultInvokeMember( (aStmt
), &::mozilla::detail::DerefedType<decltype(aStmt)>
::ExecuteStep )); if ((__builtin_expect(!!(tryResult1594.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aStmt), &::mozilla::detail::DerefedType<decltype(aStmt)>::ExecuteStep )"
, tryResult1594.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21107, mozilla::dom::quota::Severity::Error); return tryResult1594
.propagateErr(); } const bool& hasResult = tryResult1594.
inspect();
;
21108
21109 if (!hasResult) {
21110 SetResponse(void_t{});
21111 return NS_OK;
21112 }
21113
21114 Key previousKey;
21115 auto* optPreviousKey =
21116 IsUnique(GetCursor().mDirection) ? &previousKey : nullptr;
21117
21118 QM_TRY_INSPECT(const auto& responseSize,auto tryResult1595 = (PopulateResponseFromStatement(aStmt, true
, optPreviousKey)); if ((__builtin_expect(!!(tryResult1595.isErr
()), 0))) { mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, true, optPreviousKey)"
, tryResult1595.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21119, mozilla::dom::quota::Severity::Error); return tryResult1595
.propagateErr(); } const auto& responseSize = tryResult1595
.inspect();
21119 PopulateResponseFromStatement(aStmt, true, optPreviousKey))auto tryResult1595 = (PopulateResponseFromStatement(aStmt, true
, optPreviousKey)); if ((__builtin_expect(!!(tryResult1595.isErr
()), 0))) { mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, true, optPreviousKey)"
, tryResult1595.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21119, mozilla::dom::quota::Severity::Error); return tryResult1595
.propagateErr(); } const auto& responseSize = tryResult1595
.inspect();
;
21120
21121 // The degree to which extra responses on OpenOp can actually be used depends
21122 // on the parameters of subsequent ContinueOp operations, see also comment in
21123 // ContinueOp::DoDatabaseWork.
21124 //
21125 // TODO: We should somehow evaluate the effects of this. Maybe use a smaller
21126 // extra count than for ContinueOp?
21127 PopulateExtraResponses(aStmt, GetCursor().mMaxExtraCount, responseSize,
21128 "OpenOp"_ns, optPreviousKey);
21129
21130 return NS_OK;
21131}
21132
21133nsresult OpenOpHelper<IDBCursorType::ObjectStore>::DoDatabaseWork(
21134 DatabaseConnection* aConnection) {
21135 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21135); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 21135); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
21136 aConnection->AssertIsOnConnectionThread();
21137 MOZ_ASSERT(GetCursor().mObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(GetCursor().mObjectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(GetCursor().mObjectStoreId))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("GetCursor().mObjectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21137
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "GetCursor().mObjectStoreId"
")"); do { MOZ_CrashSequence(__null, 21137); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
21138
21139 AUTO_PROFILER_LABEL("Cursor::OpenOp::DoObjectStoreDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject21139( "Cursor::OpenOp::DoObjectStoreDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
21140
21141 const bool usingKeyRange = GetOptionalKeyRange().isSome();
21142
21143 const nsCString queryStart = "SELECT "_ns + kColumnNameKey +
21144 ", file_ids, data "
21145 "FROM object_data "
21146 "WHERE object_store_id = :"_ns +
21147 kStmtParamNameId;
21148
21149 const auto keyRangeClause =
21150 DatabaseOperationBase::MaybeGetBindingClauseForKeyRange(
21151 GetOptionalKeyRange(), kColumnNameKey);
21152
21153 const auto& directionClause = MakeDirectionClause(GetCursor().mDirection);
21154
21155 // Note: Changing the number or order of SELECT columns in the query will
21156 // require changes to CursorOpBase::PopulateResponseFromStatement.
21157 const nsCString firstQuery = queryStart + keyRangeClause + directionClause +
21158 " LIMIT "_ns +
21159 IntToCString(1 + GetCursor().mMaxExtraCount);
21160
21161 QM_TRY_INSPECT(const auto& stmt,auto tryResult1596 = (aConnection->BorrowCachedStatement(firstQuery
)); if ((__builtin_expect(!!(tryResult1596.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement(firstQuery)"
, tryResult1596.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21162, mozilla::dom::quota::Severity::Error); return tryResult1596
.propagateErr(); } const auto& stmt = tryResult1596.inspect
();
21162 aConnection->BorrowCachedStatement(firstQuery))auto tryResult1596 = (aConnection->BorrowCachedStatement(firstQuery
)); if ((__builtin_expect(!!(tryResult1596.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement(firstQuery)"
, tryResult1596.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21162, mozilla::dom::quota::Severity::Error); return tryResult1596
.propagateErr(); } const auto& stmt = tryResult1596.inspect
();
;
21163
21164 QM_TRY(MOZ_TO_RESULT({auto tryResult1597 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId
, GetCursor().mObjectStoreId))); static_assert(std::is_empty_v
<typename decltype(tryResult1597)::ok_type>); if ((__builtin_expect
(!!(tryResult1597.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mObjectStoreId))"
, tryResult1597.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21165, mozilla::dom::quota::Severity::Error); return tryResult1597
.propagateErr(); }}
21165 stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mObjectStoreId))){auto tryResult1597 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId
, GetCursor().mObjectStoreId))); static_assert(std::is_empty_v
<typename decltype(tryResult1597)::ok_type>); if ((__builtin_expect
(!!(tryResult1597.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mObjectStoreId))"
, tryResult1597.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21165, mozilla::dom::quota::Severity::Error); return tryResult1597
.propagateErr(); }}
;
21166
21167 if (usingKeyRange) {
21168 QM_TRY(MOZ_TO_RESULT(DatabaseOperationBase::BindKeyRangeToStatement({auto tryResult1598 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement
( GetOptionalKeyRange().ref(), &*stmt))); static_assert(std
::is_empty_v<typename decltype(tryResult1598)::ok_type>
); if ((__builtin_expect(!!(tryResult1598.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt))"
, tryResult1598.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21169, mozilla::dom::quota::Severity::Error); return tryResult1598
.propagateErr(); }}
21169 GetOptionalKeyRange().ref(), &*stmt))){auto tryResult1598 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement
( GetOptionalKeyRange().ref(), &*stmt))); static_assert(std
::is_empty_v<typename decltype(tryResult1598)::ok_type>
); if ((__builtin_expect(!!(tryResult1598.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt))"
, tryResult1598.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21169, mozilla::dom::quota::Severity::Error); return tryResult1598
.propagateErr(); }}
;
21170 }
21171
21172 // Now we need to make the query for ContinueOp.
21173 PrepareKeyConditionClauses(directionClause, queryStart);
21174
21175 return ProcessStatementSteps(&*stmt);
21176}
21177
21178nsresult OpenOpHelper<IDBCursorType::ObjectStoreKey>::DoDatabaseWork(
21179 DatabaseConnection* aConnection) {
21180 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21180); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 21180); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
21181 aConnection->AssertIsOnConnectionThread();
21182 MOZ_ASSERT(GetCursor().mObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(GetCursor().mObjectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(GetCursor().mObjectStoreId))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("GetCursor().mObjectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21182
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "GetCursor().mObjectStoreId"
")"); do { MOZ_CrashSequence(__null, 21182); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
21183
21184 AUTO_PROFILER_LABEL("Cursor::OpenOp::DoObjectStoreKeyDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject21184( "Cursor::OpenOp::DoObjectStoreKeyDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
21185
21186 const bool usingKeyRange = GetOptionalKeyRange().isSome();
21187
21188 const nsCString queryStart = "SELECT "_ns + kColumnNameKey +
21189 " FROM object_data "
21190 "WHERE object_store_id = :"_ns +
21191 kStmtParamNameId;
21192
21193 const auto keyRangeClause =
21194 DatabaseOperationBase::MaybeGetBindingClauseForKeyRange(
21195 GetOptionalKeyRange(), kColumnNameKey);
21196
21197 const auto& directionClause = MakeDirectionClause(GetCursor().mDirection);
21198
21199 // Note: Changing the number or order of SELECT columns in the query will
21200 // require changes to CursorOpBase::PopulateResponseFromStatement.
21201 const nsCString firstQuery =
21202 queryStart + keyRangeClause + directionClause + " LIMIT 1"_ns;
21203
21204 QM_TRY_INSPECT(const auto& stmt,auto tryResult1599 = (aConnection->BorrowCachedStatement(firstQuery
)); if ((__builtin_expect(!!(tryResult1599.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement(firstQuery)"
, tryResult1599.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21205, mozilla::dom::quota::Severity::Error); return tryResult1599
.propagateErr(); } const auto& stmt = tryResult1599.inspect
();
21205 aConnection->BorrowCachedStatement(firstQuery))auto tryResult1599 = (aConnection->BorrowCachedStatement(firstQuery
)); if ((__builtin_expect(!!(tryResult1599.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement(firstQuery)"
, tryResult1599.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21205, mozilla::dom::quota::Severity::Error); return tryResult1599
.propagateErr(); } const auto& stmt = tryResult1599.inspect
();
;
21206
21207 QM_TRY(MOZ_TO_RESULT({auto tryResult1600 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId
, GetCursor().mObjectStoreId))); static_assert(std::is_empty_v
<typename decltype(tryResult1600)::ok_type>); if ((__builtin_expect
(!!(tryResult1600.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mObjectStoreId))"
, tryResult1600.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21208, mozilla::dom::quota::Severity::Error); return tryResult1600
.propagateErr(); }}
21208 stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mObjectStoreId))){auto tryResult1600 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId
, GetCursor().mObjectStoreId))); static_assert(std::is_empty_v
<typename decltype(tryResult1600)::ok_type>); if ((__builtin_expect
(!!(tryResult1600.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mObjectStoreId))"
, tryResult1600.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21208, mozilla::dom::quota::Severity::Error); return tryResult1600
.propagateErr(); }}
;
21209
21210 if (usingKeyRange) {
21211 QM_TRY(MOZ_TO_RESULT(DatabaseOperationBase::BindKeyRangeToStatement({auto tryResult1601 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement
( GetOptionalKeyRange().ref(), &*stmt))); static_assert(std
::is_empty_v<typename decltype(tryResult1601)::ok_type>
); if ((__builtin_expect(!!(tryResult1601.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt))"
, tryResult1601.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21212, mozilla::dom::quota::Severity::Error); return tryResult1601
.propagateErr(); }}
21212 GetOptionalKeyRange().ref(), &*stmt))){auto tryResult1601 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement
( GetOptionalKeyRange().ref(), &*stmt))); static_assert(std
::is_empty_v<typename decltype(tryResult1601)::ok_type>
); if ((__builtin_expect(!!(tryResult1601.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt))"
, tryResult1601.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21212, mozilla::dom::quota::Severity::Error); return tryResult1601
.propagateErr(); }}
;
21213 }
21214
21215 // Now we need to make the query to get the next match.
21216 PrepareKeyConditionClauses(directionClause, queryStart);
21217
21218 return ProcessStatementSteps(&*stmt);
21219}
21220
21221nsresult OpenOpHelper<IDBCursorType::Index>::DoDatabaseWork(
21222 DatabaseConnection* aConnection) {
21223 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21223); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 21223); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
21224 aConnection->AssertIsOnConnectionThread();
21225 MOZ_ASSERT(GetCursor().mObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(GetCursor().mObjectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(GetCursor().mObjectStoreId))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("GetCursor().mObjectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21225
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "GetCursor().mObjectStoreId"
")"); do { MOZ_CrashSequence(__null, 21225); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
21226 MOZ_ASSERT(GetCursor().mIndexId)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(GetCursor().mIndexId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(GetCursor().mIndexId))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("GetCursor().mIndexId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21226
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "GetCursor().mIndexId"
")"); do { MOZ_CrashSequence(__null, 21226); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
21227
21228 AUTO_PROFILER_LABEL("Cursor::OpenOp::DoIndexDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject21228( "Cursor::OpenOp::DoIndexDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
21229
21230 const bool usingKeyRange = GetOptionalKeyRange().isSome();
21231
21232 const auto indexTable =
21233 GetCursor().mUniqueIndex ? "unique_index_data"_ns : "index_data"_ns;
21234
21235 // The result of MakeColumnPairSelectionList is stored in a local variable,
21236 // since inlining it into the next statement causes a crash on some Mac OS X
21237 // builds (see https://bugzilla.mozilla.org/show_bug.cgi?id=1168606#c110).
21238 const auto columnPairSelectionList = MakeColumnPairSelectionList(
21239 "index_table.value"_ns, "index_table.value_locale"_ns,
21240 kColumnNameAliasSortKey, GetCursor().IsLocaleAware());
21241 const nsCString sortColumnAlias =
21242 "SELECT "_ns + columnPairSelectionList + ", "_ns;
21243
21244 const nsAutoCString queryStart = sortColumnAlias +
21245 "index_table.object_data_key, "
21246 "object_data.file_ids, "
21247 "object_data.data "
21248 "FROM "_ns +
21249 indexTable +
21250 " AS index_table "
21251 "JOIN object_data "
21252 "ON index_table.object_store_id = "
21253 "object_data.object_store_id "
21254 "AND index_table.object_data_key = "
21255 "object_data.key "
21256 "WHERE index_table.index_id = :"_ns +
21257 kStmtParamNameId;
21258
21259 const auto keyRangeClause =
21260 DatabaseOperationBase::MaybeGetBindingClauseForKeyRange(
21261 GetOptionalKeyRange(), kColumnNameAliasSortKey);
21262
21263 nsAutoCString directionClause = " ORDER BY "_ns + kColumnNameAliasSortKey;
21264
21265 switch (GetCursor().mDirection) {
21266 case IDBCursorDirection::Next:
21267 case IDBCursorDirection::Nextunique:
21268 directionClause.AppendLiteral(" ASC, index_table.object_data_key ASC");
21269 break;
21270
21271 case IDBCursorDirection::Prev:
21272 directionClause.AppendLiteral(" DESC, index_table.object_data_key DESC");
21273 break;
21274
21275 case IDBCursorDirection::Prevunique:
21276 directionClause.AppendLiteral(" DESC, index_table.object_data_key ASC");
21277 break;
21278
21279 default:
21280 MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21280
); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 21280); __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
21281 }
21282
21283 // Note: Changing the number or order of SELECT columns in the query will
21284 // require changes to CursorOpBase::PopulateResponseFromStatement.
21285 const nsCString firstQuery = queryStart + keyRangeClause + directionClause +
21286 " LIMIT "_ns +
21287 IntToCString(1 + GetCursor().mMaxExtraCount);
21288
21289 QM_TRY_INSPECT(const auto& stmt,auto tryResult1602 = (aConnection->BorrowCachedStatement(firstQuery
)); if ((__builtin_expect(!!(tryResult1602.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement(firstQuery)"
, tryResult1602.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21290, mozilla::dom::quota::Severity::Error); return tryResult1602
.propagateErr(); } const auto& stmt = tryResult1602.inspect
();
21290 aConnection->BorrowCachedStatement(firstQuery))auto tryResult1602 = (aConnection->BorrowCachedStatement(firstQuery
)); if ((__builtin_expect(!!(tryResult1602.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement(firstQuery)"
, tryResult1602.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21290, mozilla::dom::quota::Severity::Error); return tryResult1602
.propagateErr(); } const auto& stmt = tryResult1602.inspect
();
;
21291
21292 QM_TRY(MOZ_TO_RESULT({auto tryResult1603 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId
, GetCursor().mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1603)::ok_type>); if ((__builtin_expect
(!!(tryResult1603.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mIndexId))"
, tryResult1603.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21293, mozilla::dom::quota::Severity::Error); return tryResult1603
.propagateErr(); }}
21293 stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mIndexId))){auto tryResult1603 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId
, GetCursor().mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1603)::ok_type>); if ((__builtin_expect
(!!(tryResult1603.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mIndexId))"
, tryResult1603.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21293, mozilla::dom::quota::Severity::Error); return tryResult1603
.propagateErr(); }}
;
21294
21295 if (usingKeyRange) {
21296 if (GetCursor().IsLocaleAware()) {
21297 QM_TRY(MOZ_TO_RESULT(DatabaseOperationBase::BindKeyRangeToStatement({auto tryResult1604 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement
( GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1604
)::ok_type>); if ((__builtin_expect(!!(tryResult1604.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale))"
, tryResult1604.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21298, mozilla::dom::quota::Severity::Error); return tryResult1604
.propagateErr(); }}
21298 GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale))){auto tryResult1604 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement
( GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1604
)::ok_type>); if ((__builtin_expect(!!(tryResult1604.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale))"
, tryResult1604.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21298, mozilla::dom::quota::Severity::Error); return tryResult1604
.propagateErr(); }}
;
21299 } else {
21300 QM_TRY(MOZ_TO_RESULT(DatabaseOperationBase::BindKeyRangeToStatement({auto tryResult1605 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement
( GetOptionalKeyRange().ref(), &*stmt))); static_assert(std
::is_empty_v<typename decltype(tryResult1605)::ok_type>
); if ((__builtin_expect(!!(tryResult1605.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt))"
, tryResult1605.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21301, mozilla::dom::quota::Severity::Error); return tryResult1605
.propagateErr(); }}
21301 GetOptionalKeyRange().ref(), &*stmt))){auto tryResult1605 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement
( GetOptionalKeyRange().ref(), &*stmt))); static_assert(std
::is_empty_v<typename decltype(tryResult1605)::ok_type>
); if ((__builtin_expect(!!(tryResult1605.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt))"
, tryResult1605.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21301, mozilla::dom::quota::Severity::Error); return tryResult1605
.propagateErr(); }}
;
21302 }
21303 }
21304
21305 // TODO: At least the last two statements are almost the same in all
21306 // DoDatabaseWork variants, consider removing this duplication.
21307
21308 // Now we need to make the query to get the next match.
21309 PrepareKeyConditionClauses(directionClause, std::move(queryStart));
21310
21311 return ProcessStatementSteps(&*stmt);
21312}
21313
21314nsresult OpenOpHelper<IDBCursorType::IndexKey>::DoDatabaseWork(
21315 DatabaseConnection* aConnection) {
21316 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21316); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 21316); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
21317 aConnection->AssertIsOnConnectionThread();
21318 MOZ_ASSERT(GetCursor().mObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(GetCursor().mObjectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(GetCursor().mObjectStoreId))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("GetCursor().mObjectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21318
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "GetCursor().mObjectStoreId"
")"); do { MOZ_CrashSequence(__null, 21318); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
21319 MOZ_ASSERT(GetCursor().mIndexId)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(GetCursor().mIndexId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(GetCursor().mIndexId))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("GetCursor().mIndexId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21319
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "GetCursor().mIndexId"
")"); do { MOZ_CrashSequence(__null, 21319); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
21320
21321 AUTO_PROFILER_LABEL("Cursor::OpenOp::DoIndexKeyDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject21321( "Cursor::OpenOp::DoIndexKeyDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
21322
21323 const bool usingKeyRange = GetOptionalKeyRange().isSome();
21324
21325 const auto table =
21326 GetCursor().mUniqueIndex ? "unique_index_data"_ns : "index_data"_ns;
21327
21328 // The result of MakeColumnPairSelectionList is stored in a local variable,
21329 // since inlining it into the next statement causes a crash on some Mac OS X
21330 // builds (see https://bugzilla.mozilla.org/show_bug.cgi?id=1168606#c110).
21331 const auto columnPairSelectionList = MakeColumnPairSelectionList(
21332 "value"_ns, "value_locale"_ns, kColumnNameAliasSortKey,
21333 GetCursor().IsLocaleAware());
21334 const nsCString sortColumnAlias =
21335 "SELECT "_ns + columnPairSelectionList + ", "_ns;
21336
21337 const nsAutoCString queryStart = sortColumnAlias +
21338 "object_data_key "
21339 " FROM "_ns +
21340 table + " WHERE index_id = :"_ns +
21341 kStmtParamNameId;
21342
21343 const auto keyRangeClause =
21344 DatabaseOperationBase::MaybeGetBindingClauseForKeyRange(
21345 GetOptionalKeyRange(), kColumnNameAliasSortKey);
21346
21347 nsAutoCString directionClause = " ORDER BY "_ns + kColumnNameAliasSortKey;
21348
21349 switch (GetCursor().mDirection) {
21350 case IDBCursorDirection::Next:
21351 case IDBCursorDirection::Nextunique:
21352 directionClause.AppendLiteral(" ASC, object_data_key ASC");
21353 break;
21354
21355 case IDBCursorDirection::Prev:
21356 directionClause.AppendLiteral(" DESC, object_data_key DESC");
21357 break;
21358
21359 case IDBCursorDirection::Prevunique:
21360 directionClause.AppendLiteral(" DESC, object_data_key ASC");
21361 break;
21362
21363 default:
21364 MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21364
); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 21364); __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
21365 }
21366
21367 // Note: Changing the number or order of SELECT columns in the query will
21368 // require changes to CursorOpBase::PopulateResponseFromStatement.
21369 const nsCString firstQuery =
21370 queryStart + keyRangeClause + directionClause + " LIMIT 1"_ns;
21371
21372 QM_TRY_INSPECT(const auto& stmt,auto tryResult1606 = (aConnection->BorrowCachedStatement(firstQuery
)); if ((__builtin_expect(!!(tryResult1606.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement(firstQuery)"
, tryResult1606.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21373, mozilla::dom::quota::Severity::Error); return tryResult1606
.propagateErr(); } const auto& stmt = tryResult1606.inspect
();
21373 aConnection->BorrowCachedStatement(firstQuery))auto tryResult1606 = (aConnection->BorrowCachedStatement(firstQuery
)); if ((__builtin_expect(!!(tryResult1606.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement(firstQuery)"
, tryResult1606.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21373, mozilla::dom::quota::Severity::Error); return tryResult1606
.propagateErr(); } const auto& stmt = tryResult1606.inspect
();
;
21374
21375 QM_TRY(MOZ_TO_RESULT({auto tryResult1607 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId
, GetCursor().mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1607)::ok_type>); if ((__builtin_expect
(!!(tryResult1607.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mIndexId))"
, tryResult1607.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21376, mozilla::dom::quota::Severity::Error); return tryResult1607
.propagateErr(); }}
21376 stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mIndexId))){auto tryResult1607 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId
, GetCursor().mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1607)::ok_type>); if ((__builtin_expect
(!!(tryResult1607.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mIndexId))"
, tryResult1607.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21376, mozilla::dom::quota::Severity::Error); return tryResult1607
.propagateErr(); }}
;
21377
21378 if (usingKeyRange) {
21379 if (GetCursor().IsLocaleAware()) {
21380 QM_TRY(MOZ_TO_RESULT(DatabaseOperationBase::BindKeyRangeToStatement({auto tryResult1608 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement
( GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1608
)::ok_type>); if ((__builtin_expect(!!(tryResult1608.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale))"
, tryResult1608.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21381, mozilla::dom::quota::Severity::Error); return tryResult1608
.propagateErr(); }}
21381 GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale))){auto tryResult1608 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement
( GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1608
)::ok_type>); if ((__builtin_expect(!!(tryResult1608.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale))"
, tryResult1608.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21381, mozilla::dom::quota::Severity::Error); return tryResult1608
.propagateErr(); }}
;
21382 } else {
21383 QM_TRY(MOZ_TO_RESULT(DatabaseOperationBase::BindKeyRangeToStatement({auto tryResult1609 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement
( GetOptionalKeyRange().ref(), &*stmt))); static_assert(std
::is_empty_v<typename decltype(tryResult1609)::ok_type>
); if ((__builtin_expect(!!(tryResult1609.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt))"
, tryResult1609.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21384, mozilla::dom::quota::Severity::Error); return tryResult1609
.propagateErr(); }}
21384 GetOptionalKeyRange().ref(), &*stmt))){auto tryResult1609 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement
( GetOptionalKeyRange().ref(), &*stmt))); static_assert(std
::is_empty_v<typename decltype(tryResult1609)::ok_type>
); if ((__builtin_expect(!!(tryResult1609.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt))"
, tryResult1609.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21384, mozilla::dom::quota::Severity::Error); return tryResult1609
.propagateErr(); }}
;
21385 }
21386 }
21387
21388 // Now we need to make the query to get the next match.
21389 PrepareKeyConditionClauses(directionClause, std::move(queryStart));
21390
21391 return ProcessStatementSteps(&*stmt);
21392}
21393
21394template <IDBCursorType CursorType>
21395nsresult Cursor<CursorType>::OpenOp::DoDatabaseWork(
21396 DatabaseConnection* aConnection) {
21397 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21397); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 21397); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
21398 aConnection->AssertIsOnConnectionThread();
21399 MOZ_ASSERT(mCursor)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mCursor)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mCursor))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mCursor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21399); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor" ")"
); do { MOZ_CrashSequence(__null, 21399); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
21400 MOZ_ASSERT(!mCursor->mContinueQueries)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mCursor->mContinueQueries)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mCursor->mContinueQueries
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"!mCursor->mContinueQueries", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21400); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCursor->mContinueQueries"
")"); do { MOZ_CrashSequence(__null, 21400); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
21401
21402 AUTO_PROFILER_LABEL("Cursor::OpenOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject21402( "Cursor::OpenOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
21403
21404 auto helper = OpenOpHelper<CursorType>{*this};
21405 const auto rv = helper.DoDatabaseWork(aConnection);
21406 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21406)
) {
21407 return rv;
21408 }
21409
21410 return NS_OK;
21411}
21412
21413template <IDBCursorType CursorType>
21414TransactionOpResult Cursor<CursorType>::CursorOpBase::SendSuccessResult() {
21415 AssertIsOnOwningThread();
21416 MOZ_ASSERT(mCursor)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mCursor)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mCursor))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mCursor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21416); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor" ")"
); do { MOZ_CrashSequence(__null, 21416); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
21417 MOZ_ASSERT(mCursor->mCurrentlyRunningOp == this)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mCursor->mCurrentlyRunningOp == this)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mCursor->mCurrentlyRunningOp == this))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mCursor->mCurrentlyRunningOp == this"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21417
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor->mCurrentlyRunningOp == this"
")"); do { MOZ_CrashSequence(__null, 21417); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
21418 MOZ_ASSERT(mResponse.type() != CursorResponse::T__None)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mResponse.type() != CursorResponse::T__None)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mResponse.type() != CursorResponse::T__None))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mResponse.type() != CursorResponse::T__None"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21418
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.type() != CursorResponse::T__None"
")"); do { MOZ_CrashSequence(__null, 21418); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
21419
21420 if (IsActorDestroyed()) {
21421 return NS_ERROR_DOM_INDEXEDDB_ABORT_ERR;
21422 }
21423
21424 mCursor->SendResponseInternal(mResponse, mFiles);
21425
21426#ifdef DEBUG1
21427 mResponseSent = true;
21428#endif
21429 return NS_OK;
21430}
21431
21432template <IDBCursorType CursorType>
21433nsresult Cursor<CursorType>::ContinueOp::DoDatabaseWork(
21434 DatabaseConnection* aConnection) {
21435 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21435); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 21435); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
21436 aConnection->AssertIsOnConnectionThread();
21437 MOZ_ASSERT(mCursor)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mCursor)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mCursor))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mCursor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21437); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor" ")"
); do { MOZ_CrashSequence(__null, 21437); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
21438 MOZ_ASSERT(mCursor->mObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mCursor->mObjectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mCursor->mObjectStoreId))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mCursor->mObjectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21438
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor->mObjectStoreId"
")"); do { MOZ_CrashSequence(__null, 21438); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
21439 MOZ_ASSERT(!mCursor->mContinueQueries->mContinueQuery.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mCursor->mContinueQueries->mContinueQuery.IsEmpty
())>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!mCursor->mContinueQueries->mContinueQuery.IsEmpty
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!mCursor->mContinueQueries->mContinueQuery.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21439
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCursor->mContinueQueries->mContinueQuery.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 21439); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
21440 MOZ_ASSERT(!mCursor->mContinueQueries->mContinueToQuery.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mCursor->mContinueQueries->mContinueToQuery.IsEmpty
())>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!mCursor->mContinueQueries->mContinueToQuery.IsEmpty
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!mCursor->mContinueQueries->mContinueToQuery.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21440
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCursor->mContinueQueries->mContinueToQuery.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 21440); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
21441 MOZ_ASSERT(!mCurrentPosition.mKey.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mCurrentPosition.mKey.IsUnset())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mCurrentPosition.mKey.IsUnset
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!mCurrentPosition.mKey.IsUnset()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCurrentPosition.mKey.IsUnset()"
")"); do { MOZ_CrashSequence(__null, 21441); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
21442
21443 if constexpr (IsIndexCursor) {
21444 MOZ_ASSERT_IF(do { if (mCursor->mDirection == IDBCursorDirection::Next ||
mCursor->mDirection == IDBCursorDirection::Prev) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(!mCursor
->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty())
>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!mCursor->mContinueQueries->mContinuePrimaryKeyQuery
.IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!mCursor->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21447
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCursor->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 21447); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
21445 mCursor->mDirection == IDBCursorDirection::Next ||do { if (mCursor->mDirection == IDBCursorDirection::Next ||
mCursor->mDirection == IDBCursorDirection::Prev) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(!mCursor
->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty())
>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!mCursor->mContinueQueries->mContinuePrimaryKeyQuery
.IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!mCursor->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21447
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCursor->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 21447); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
21446 mCursor->mDirection == IDBCursorDirection::Prev,do { if (mCursor->mDirection == IDBCursorDirection::Next ||
mCursor->mDirection == IDBCursorDirection::Prev) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(!mCursor
->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty())
>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!mCursor->mContinueQueries->mContinuePrimaryKeyQuery
.IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!mCursor->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21447
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCursor->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 21447); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
21447 !mCursor->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty())do { if (mCursor->mDirection == IDBCursorDirection::Next ||
mCursor->mDirection == IDBCursorDirection::Prev) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(!mCursor
->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty())
>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!mCursor->mContinueQueries->mContinuePrimaryKeyQuery
.IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!mCursor->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21447
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCursor->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 21447); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
21448 MOZ_ASSERT(mCursor->mIndexId)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mCursor->mIndexId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mCursor->mIndexId))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("mCursor->mIndexId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21448
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor->mIndexId"
")"); do { MOZ_CrashSequence(__null, 21448); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
21449 MOZ_ASSERT(!mCurrentPosition.mObjectStoreKey.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mCurrentPosition.mObjectStoreKey.IsUnset())>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(!mCurrentPosition.mObjectStoreKey.IsUnset()))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("!mCurrentPosition.mObjectStoreKey.IsUnset()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21449
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCurrentPosition.mObjectStoreKey.IsUnset()"
")"); do { MOZ_CrashSequence(__null, 21449); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
21450 }
21451
21452 AUTO_PROFILER_LABEL("Cursor::ContinueOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject21452( "Cursor::ContinueOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
21453
21454 // We need to pick a query based on whether or not a key was passed to the
21455 // continue function. If not we'll grab the next item in the database that
21456 // is greater than (or less than, if we're running a PREV cursor) the current
21457 // key. If a key was passed we'll grab the next item in the database that is
21458 // greater than (or less than, if we're running a PREV cursor) or equal to the
21459 // key that was specified.
21460 //
21461 // TODO: The description above is not complete, it does not take account of
21462 // ContinuePrimaryKey nor Advance.
21463 //
21464 // Note: Changing the number or order of SELECT columns in the query will
21465 // require changes to CursorOpBase::PopulateResponseFromStatement.
21466
21467 const uint32_t advanceCount =
21468 mParams.type() == CursorRequestParams::TAdvanceParams
21469 ? mParams.get_AdvanceParams().count()
21470 : 1;
21471 MOZ_ASSERT(advanceCount > 0)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(advanceCount > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(advanceCount > 0))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("advanceCount > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21471
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "advanceCount > 0"
")"); do { MOZ_CrashSequence(__null, 21471); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
21472
21473 bool hasContinueKey = false;
21474 bool hasContinuePrimaryKey = false;
21475
21476 auto explicitContinueKey = Key{};
21477
21478 switch (mParams.type()) {
21479 case CursorRequestParams::TContinueParams:
21480 if (!mParams.get_ContinueParams().key().IsUnset()) {
21481 hasContinueKey = true;
21482 explicitContinueKey = mParams.get_ContinueParams().key();
21483 }
21484 break;
21485 case CursorRequestParams::TContinuePrimaryKeyParams:
21486 MOZ_ASSERT(!mParams.get_ContinuePrimaryKeyParams().key().IsUnset())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mParams.get_ContinuePrimaryKeyParams().key().IsUnset
())>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!mParams.get_ContinuePrimaryKeyParams().key().IsUnset
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!mParams.get_ContinuePrimaryKeyParams().key().IsUnset()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21486); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mParams.get_ContinuePrimaryKeyParams().key().IsUnset()"
")"); do { MOZ_CrashSequence(__null, 21486); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
21487 MOZ_ASSERT(do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mParams.get_ContinuePrimaryKeyParams().primaryKey()
.IsUnset())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(!mParams.get_ContinuePrimaryKeyParams
().primaryKey().IsUnset()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!mParams.get_ContinuePrimaryKeyParams().primaryKey().IsUnset()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21488
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mParams.get_ContinuePrimaryKeyParams().primaryKey().IsUnset()"
")"); do { MOZ_CrashSequence(__null, 21488); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
21488 !mParams.get_ContinuePrimaryKeyParams().primaryKey().IsUnset())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mParams.get_ContinuePrimaryKeyParams().primaryKey()
.IsUnset())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(!mParams.get_ContinuePrimaryKeyParams
().primaryKey().IsUnset()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!mParams.get_ContinuePrimaryKeyParams().primaryKey().IsUnset()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21488
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mParams.get_ContinuePrimaryKeyParams().primaryKey().IsUnset()"
")"); do { MOZ_CrashSequence(__null, 21488); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
21489 MOZ_ASSERT(mCursor->mDirection == IDBCursorDirection::Next ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mCursor->mDirection == IDBCursorDirection::Next ||
mCursor->mDirection == IDBCursorDirection::Prev)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mCursor->mDirection == IDBCursorDirection::Next || mCursor
->mDirection == IDBCursorDirection::Prev))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mCursor->mDirection == IDBCursorDirection::Next || mCursor->mDirection == IDBCursorDirection::Prev"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21490
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor->mDirection == IDBCursorDirection::Next || mCursor->mDirection == IDBCursorDirection::Prev"
")"); do { MOZ_CrashSequence(__null, 21490); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
21490 mCursor->mDirection == IDBCursorDirection::Prev)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mCursor->mDirection == IDBCursorDirection::Next ||
mCursor->mDirection == IDBCursorDirection::Prev)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mCursor->mDirection == IDBCursorDirection::Next || mCursor
->mDirection == IDBCursorDirection::Prev))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mCursor->mDirection == IDBCursorDirection::Next || mCursor->mDirection == IDBCursorDirection::Prev"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21490
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor->mDirection == IDBCursorDirection::Next || mCursor->mDirection == IDBCursorDirection::Prev"
")"); do { MOZ_CrashSequence(__null, 21490); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
21491 hasContinueKey = true;
21492 hasContinuePrimaryKey = true;
21493 explicitContinueKey = mParams.get_ContinuePrimaryKeyParams().key();
21494 break;
21495 case CursorRequestParams::TAdvanceParams:
21496 break;
21497 default:
21498 MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21498
); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 21498); __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
21499 }
21500
21501 // TODO: Whether it makes sense to preload depends on the kind of the
21502 // subsequent operations, not of the current operation. We could assume that
21503 // the subsequent operations are:
21504 // - the same as the current operation (with the same parameter values)
21505 // - as above, except for Advance, where we assume the count will be 1 on the
21506 // next call
21507 // - basic operations (Advance with count 1 or Continue-without-key)
21508 //
21509 // For now, we implement the second option for now (which correspond to
21510 // !hasContinueKey).
21511 //
21512 // Based on that, we could in both cases either preload for any assumed
21513 // subsequent operations, or only for the basic operations. For now, we
21514 // preload only for an assumed basic operation. Other operations would require
21515 // more work on the client side for invalidation, and may not make any sense
21516 // at all.
21517 const uint32_t maxExtraCount = hasContinueKey ? 0 : mCursor->mMaxExtraCount;
21518
21519 QM_TRY_INSPECT(const auto& stmt,auto tryResult1610 = (aConnection->BorrowCachedStatement( mCursor
->mContinueQueries->GetContinueQuery( hasContinueKey, hasContinuePrimaryKey
))); if ((__builtin_expect(!!(tryResult1610.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( mCursor->mContinueQueries->GetContinueQuery( hasContinueKey, hasContinuePrimaryKey))"
, tryResult1610.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21522, mozilla::dom::quota::Severity::Error); return tryResult1610
.propagateErr(); } const auto& stmt = tryResult1610.inspect
();
21520 aConnection->BorrowCachedStatement(auto tryResult1610 = (aConnection->BorrowCachedStatement( mCursor
->mContinueQueries->GetContinueQuery( hasContinueKey, hasContinuePrimaryKey
))); if ((__builtin_expect(!!(tryResult1610.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( mCursor->mContinueQueries->GetContinueQuery( hasContinueKey, hasContinuePrimaryKey))"
, tryResult1610.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21522, mozilla::dom::quota::Severity::Error); return tryResult1610
.propagateErr(); } const auto& stmt = tryResult1610.inspect
();
21521 mCursor->mContinueQueries->GetContinueQuery(auto tryResult1610 = (aConnection->BorrowCachedStatement( mCursor
->mContinueQueries->GetContinueQuery( hasContinueKey, hasContinuePrimaryKey
))); if ((__builtin_expect(!!(tryResult1610.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( mCursor->mContinueQueries->GetContinueQuery( hasContinueKey, hasContinuePrimaryKey))"
, tryResult1610.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21522, mozilla::dom::quota::Severity::Error); return tryResult1610
.propagateErr(); } const auto& stmt = tryResult1610.inspect
();
21522 hasContinueKey, hasContinuePrimaryKey)))auto tryResult1610 = (aConnection->BorrowCachedStatement( mCursor
->mContinueQueries->GetContinueQuery( hasContinueKey, hasContinuePrimaryKey
))); if ((__builtin_expect(!!(tryResult1610.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( mCursor->mContinueQueries->GetContinueQuery( hasContinueKey, hasContinuePrimaryKey))"
, tryResult1610.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21522, mozilla::dom::quota::Severity::Error); return tryResult1610
.propagateErr(); } const auto& stmt = tryResult1610.inspect
();
;
21523
21524 QM_TRY(MOZ_TO_RESULT(stmt->BindUTF8StringByName({auto tryResult1611 = (ToResult(stmt->BindUTF8StringByName
( kStmtParamNameLimit, IntToCString(advanceCount + mCursor->
mMaxExtraCount)))); static_assert(std::is_empty_v<typename
decltype(tryResult1611)::ok_type>); if ((__builtin_expect
(!!(tryResult1611.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindUTF8StringByName( kStmtParamNameLimit, IntToCString(advanceCount + mCursor->mMaxExtraCount)))"
, tryResult1611.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21526, mozilla::dom::quota::Severity::Error); return tryResult1611
.propagateErr(); }}
21525 kStmtParamNameLimit,{auto tryResult1611 = (ToResult(stmt->BindUTF8StringByName
( kStmtParamNameLimit, IntToCString(advanceCount + mCursor->
mMaxExtraCount)))); static_assert(std::is_empty_v<typename
decltype(tryResult1611)::ok_type>); if ((__builtin_expect
(!!(tryResult1611.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindUTF8StringByName( kStmtParamNameLimit, IntToCString(advanceCount + mCursor->mMaxExtraCount)))"
, tryResult1611.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21526, mozilla::dom::quota::Severity::Error); return tryResult1611
.propagateErr(); }}
21526 IntToCString(advanceCount + mCursor->mMaxExtraCount)))){auto tryResult1611 = (ToResult(stmt->BindUTF8StringByName
( kStmtParamNameLimit, IntToCString(advanceCount + mCursor->
mMaxExtraCount)))); static_assert(std::is_empty_v<typename
decltype(tryResult1611)::ok_type>); if ((__builtin_expect
(!!(tryResult1611.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindUTF8StringByName( kStmtParamNameLimit, IntToCString(advanceCount + mCursor->mMaxExtraCount)))"
, tryResult1611.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21526, mozilla::dom::quota::Severity::Error); return tryResult1611
.propagateErr(); }}
;
21527
21528 QM_TRY(MOZ_TO_RESULT(stmt->BindInt64ByName(kStmtParamNameId, mCursor->Id()))){auto tryResult1612 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId
, mCursor->Id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1612)::ok_type>); if ((__builtin_expect
(!!(tryResult1612.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameId, mCursor->Id()))"
, tryResult1612.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21528, mozilla::dom::quota::Severity::Error); return tryResult1612
.propagateErr(); }}
;
21529
21530 // Bind current key.
21531 const auto& continueKey =
21532 hasContinueKey ? explicitContinueKey
21533 : mCurrentPosition.GetSortKey(mCursor->IsLocaleAware());
21534 QM_TRY(MOZ_TO_RESULT({auto tryResult1613 = (ToResult(continueKey.BindToStatement(&
*stmt, kStmtParamNameCurrentKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1613)::ok_type>); if ((__builtin_expect
(!!(tryResult1613.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(continueKey.BindToStatement(&*stmt, kStmtParamNameCurrentKey))"
, tryResult1613.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21535, mozilla::dom::quota::Severity::Error); return tryResult1613
.propagateErr(); }}
21535 continueKey.BindToStatement(&*stmt, kStmtParamNameCurrentKey))){auto tryResult1613 = (ToResult(continueKey.BindToStatement(&
*stmt, kStmtParamNameCurrentKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1613)::ok_type>); if ((__builtin_expect
(!!(tryResult1613.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(continueKey.BindToStatement(&*stmt, kStmtParamNameCurrentKey))"
, tryResult1613.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21535, mozilla::dom::quota::Severity::Error); return tryResult1613
.propagateErr(); }}
;
21536
21537 // Bind range bound if it is specified.
21538 if (!mCursor->mLocaleAwareRangeBound->IsUnset()) {
21539 QM_TRY(MOZ_TO_RESULT(mCursor->mLocaleAwareRangeBound->BindToStatement({auto tryResult1614 = (ToResult(mCursor->mLocaleAwareRangeBound
->BindToStatement( &*stmt, kStmtParamNameRangeBound)))
; static_assert(std::is_empty_v<typename decltype(tryResult1614
)::ok_type>); if ((__builtin_expect(!!(tryResult1614.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(mCursor->mLocaleAwareRangeBound->BindToStatement( &*stmt, kStmtParamNameRangeBound))"
, tryResult1614.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21540, mozilla::dom::quota::Severity::Error); return tryResult1614
.propagateErr(); }}
21540 &*stmt, kStmtParamNameRangeBound))){auto tryResult1614 = (ToResult(mCursor->mLocaleAwareRangeBound
->BindToStatement( &*stmt, kStmtParamNameRangeBound)))
; static_assert(std::is_empty_v<typename decltype(tryResult1614
)::ok_type>); if ((__builtin_expect(!!(tryResult1614.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(mCursor->mLocaleAwareRangeBound->BindToStatement( &*stmt, kStmtParamNameRangeBound))"
, tryResult1614.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21540, mozilla::dom::quota::Severity::Error); return tryResult1614
.propagateErr(); }}
;
21541 }
21542
21543 // Bind object store position if duplicates are allowed and we're not
21544 // continuing to a specific key.
21545 if constexpr (IsIndexCursor) {
21546 if (!hasContinueKey && (mCursor->mDirection == IDBCursorDirection::Next ||
21547 mCursor->mDirection == IDBCursorDirection::Prev)) {
21548 QM_TRY(MOZ_TO_RESULT(mCurrentPosition.mObjectStoreKey.BindToStatement({auto tryResult1615 = (ToResult(mCurrentPosition.mObjectStoreKey
.BindToStatement( &*stmt, kStmtParamNameObjectStorePosition
))); static_assert(std::is_empty_v<typename decltype(tryResult1615
)::ok_type>); if ((__builtin_expect(!!(tryResult1615.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(mCurrentPosition.mObjectStoreKey.BindToStatement( &*stmt, kStmtParamNameObjectStorePosition))"
, tryResult1615.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21549, mozilla::dom::quota::Severity::Error); return tryResult1615
.propagateErr(); }}
21549 &*stmt, kStmtParamNameObjectStorePosition))){auto tryResult1615 = (ToResult(mCurrentPosition.mObjectStoreKey
.BindToStatement( &*stmt, kStmtParamNameObjectStorePosition
))); static_assert(std::is_empty_v<typename decltype(tryResult1615
)::ok_type>); if ((__builtin_expect(!!(tryResult1615.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(mCurrentPosition.mObjectStoreKey.BindToStatement( &*stmt, kStmtParamNameObjectStorePosition))"
, tryResult1615.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21549, mozilla::dom::quota::Severity::Error); return tryResult1615
.propagateErr(); }}
;
21550 } else if (hasContinuePrimaryKey) {
21551 QM_TRY(MOZ_TO_RESULT({auto tryResult1616 = (ToResult(mParams.get_ContinuePrimaryKeyParams
().primaryKey().BindToStatement( &*stmt, kStmtParamNameObjectStorePosition
))); static_assert(std::is_empty_v<typename decltype(tryResult1616
)::ok_type>); if ((__builtin_expect(!!(tryResult1616.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(mParams.get_ContinuePrimaryKeyParams().primaryKey().BindToStatement( &*stmt, kStmtParamNameObjectStorePosition))"
, tryResult1616.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21553, mozilla::dom::quota::Severity::Error); return tryResult1616
.propagateErr(); }}
21552 mParams.get_ContinuePrimaryKeyParams().primaryKey().BindToStatement({auto tryResult1616 = (ToResult(mParams.get_ContinuePrimaryKeyParams
().primaryKey().BindToStatement( &*stmt, kStmtParamNameObjectStorePosition
))); static_assert(std::is_empty_v<typename decltype(tryResult1616
)::ok_type>); if ((__builtin_expect(!!(tryResult1616.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(mParams.get_ContinuePrimaryKeyParams().primaryKey().BindToStatement( &*stmt, kStmtParamNameObjectStorePosition))"
, tryResult1616.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21553, mozilla::dom::quota::Severity::Error); return tryResult1616
.propagateErr(); }}
21553 &*stmt, kStmtParamNameObjectStorePosition))){auto tryResult1616 = (ToResult(mParams.get_ContinuePrimaryKeyParams
().primaryKey().BindToStatement( &*stmt, kStmtParamNameObjectStorePosition
))); static_assert(std::is_empty_v<typename decltype(tryResult1616
)::ok_type>); if ((__builtin_expect(!!(tryResult1616.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(mParams.get_ContinuePrimaryKeyParams().primaryKey().BindToStatement( &*stmt, kStmtParamNameObjectStorePosition))"
, tryResult1616.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21553, mozilla::dom::quota::Severity::Error); return tryResult1616
.propagateErr(); }}
;
21554 }
21555 }
21556
21557 // TODO: Why do we query the records we don't need and skip them here, rather
21558 // than using a OFFSET clause in the query?
21559 for (uint32_t index = 0; index < advanceCount; index++) {
21560 QM_TRY_INSPECT(const bool& hasResult,auto tryResult1617 = (::mozilla::ToResultInvokeMember( (&
*stmt), &::mozilla::detail::DerefedType<decltype(&
*stmt)>::ExecuteStep )); if ((__builtin_expect(!!(tryResult1617
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (&*stmt), &::mozilla::detail::DerefedType<decltype(&*stmt)>::ExecuteStep )"
, tryResult1617.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21561, mozilla::dom::quota::Severity::Error); return tryResult1617
.propagateErr(); } const bool& hasResult = tryResult1617.
inspect();
21561 MOZ_TO_RESULT_INVOKE_MEMBER(&*stmt, ExecuteStep))auto tryResult1617 = (::mozilla::ToResultInvokeMember( (&
*stmt), &::mozilla::detail::DerefedType<decltype(&
*stmt)>::ExecuteStep )); if ((__builtin_expect(!!(tryResult1617
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (&*stmt), &::mozilla::detail::DerefedType<decltype(&*stmt)>::ExecuteStep )"
, tryResult1617.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21561, mozilla::dom::quota::Severity::Error); return tryResult1617
.propagateErr(); } const bool& hasResult = tryResult1617.
inspect();
;
21562
21563 if (!hasResult) {
21564 mResponse = void_t();
21565 return NS_OK;
21566 }
21567 }
21568
21569 Key previousKey;
21570 auto* const optPreviousKey =
21571 IsUnique(mCursor->mDirection) ? &previousKey : nullptr;
21572
21573 auto helper = CursorOpBaseHelperBase<CursorType>{*this};
21574 QM_TRY_INSPECT(const auto& responseSize, helper.PopulateResponseFromStatement(auto tryResult1618 = (helper.PopulateResponseFromStatement( &
*stmt, true, optPreviousKey)); if ((__builtin_expect(!!(tryResult1618
.isErr()), 0))) { mozilla::dom::quota::HandleError("helper.PopulateResponseFromStatement( &*stmt, true, optPreviousKey)"
, tryResult1618.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21575, mozilla::dom::quota::Severity::Error); return tryResult1618
.propagateErr(); } const auto& responseSize = tryResult1618
.inspect();
21575 &*stmt, true, optPreviousKey))auto tryResult1618 = (helper.PopulateResponseFromStatement( &
*stmt, true, optPreviousKey)); if ((__builtin_expect(!!(tryResult1618
.isErr()), 0))) { mozilla::dom::quota::HandleError("helper.PopulateResponseFromStatement( &*stmt, true, optPreviousKey)"
, tryResult1618.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21575, mozilla::dom::quota::Severity::Error); return tryResult1618
.propagateErr(); } const auto& responseSize = tryResult1618
.inspect();
;
21576
21577 helper.PopulateExtraResponses(&*stmt, maxExtraCount, responseSize,
21578 "ContinueOp"_ns, optPreviousKey);
21579
21580 return NS_OK;
21581}
21582
21583Utils::Utils()
21584#ifdef DEBUG1
21585 : mActorDestroyed(false)
21586#endif
21587{
21588 AssertIsOnBackgroundThread();
21589}
21590
21591Utils::~Utils() { MOZ_ASSERT(mActorDestroyed)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mActorDestroyed)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mActorDestroyed))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mActorDestroyed"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21591
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mActorDestroyed" ")"
); do { MOZ_CrashSequence(__null, 21591); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
; }
21592
21593void Utils::ActorDestroy(ActorDestroyReason aWhy) {
21594 AssertIsOnBackgroundThread();
21595 MOZ_ASSERT(!mActorDestroyed)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mActorDestroyed)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mActorDestroyed))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!mActorDestroyed"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21595
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mActorDestroyed"
")"); do { MOZ_CrashSequence(__null, 21595); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
21596
21597#ifdef DEBUG1
21598 mActorDestroyed = true;
21599#endif
21600}
21601
21602mozilla::ipc::IPCResult Utils::RecvDeleteMe() {
21603 AssertIsOnBackgroundThread();
21604 MOZ_ASSERT(!mActorDestroyed)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mActorDestroyed)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mActorDestroyed))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!mActorDestroyed"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21604
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mActorDestroyed"
")"); do { MOZ_CrashSequence(__null, 21604); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
21605
21606 QM_WARNONLY_TRY(OkIf(PBackgroundIndexedDBUtilsParent::Send__delete__(this))){auto tryResult1619 = (OkIf(PBackgroundIndexedDBUtilsParent::
Send__delete__(this))); static_assert(std::is_empty_v<typename
decltype(tryResult1619)::ok_type>); if ((__builtin_expect
(!!(tryResult1619.isErr()), 0))) { mozilla::dom::quota::HandleError
("OkIf(PBackgroundIndexedDBUtilsParent::Send__delete__(this))"
, tryResult1619.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21606, mozilla::dom::quota::Severity::Warning); }}
;
21607
21608 return IPC_OK()mozilla::ipc::IPCResult::Ok();
21609}
21610
21611mozilla::ipc::IPCResult Utils::RecvGetFileReferences(
21612 const PersistenceType& aPersistenceType, const nsACString& aOrigin,
21613 const nsAString& aDatabaseName, const int64_t& aFileId, int32_t* aRefCnt,
21614 int32_t* aDBRefCnt, bool* aResult) {
21615 AssertIsOnBackgroundThread();
21616 MOZ_ASSERT(aRefCnt)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aRefCnt)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aRefCnt))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aRefCnt", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21616); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aRefCnt" ")"
); do { MOZ_CrashSequence(__null, 21616); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
21617 MOZ_ASSERT(aDBRefCnt)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDBRefCnt)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDBRefCnt))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aDBRefCnt", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21617); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDBRefCnt"
")"); do { MOZ_CrashSequence(__null, 21617); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
21618 MOZ_ASSERT(aResult)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aResult)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aResult))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aResult", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21618); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aResult" ")"
); do { MOZ_CrashSequence(__null, 21618); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
21619 MOZ_ASSERT(!mActorDestroyed)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mActorDestroyed)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mActorDestroyed))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!mActorDestroyed"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21619
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mActorDestroyed"
")"); do { MOZ_CrashSequence(__null, 21619); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
21620
21621 if (NS_WARN_IF(!IndexedDatabaseManager::Get())NS_warn_if_impl(!IndexedDatabaseManager::Get(), "!IndexedDatabaseManager::Get()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21621
)
) {
21622 return IPC_FAIL(this, "No IndexedDatabaseManager active!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No IndexedDatabaseManager active!"
))
;
21623 }
21624
21625 if (NS_WARN_IF(!QuotaManager::Get())NS_warn_if_impl(!QuotaManager::Get(), "!QuotaManager::Get()",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21625)
) {
21626 return IPC_FAIL(this, "No QuotaManager active!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No QuotaManager active!"
))
;
21627 }
21628
21629 if (NS_WARN_IF(!StaticPrefs::dom_indexedDB_testing())NS_warn_if_impl(!StaticPrefs::dom_indexedDB_testing(), "!StaticPrefs::dom_indexedDB_testing()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21629
)
) {
21630 return IPC_FAIL(this, "IndexedDB is not in testing mode!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("IndexedDB is not in testing mode!"
))
;
21631 }
21632
21633 if (NS_WARN_IF(!IsValidPersistenceType(aPersistenceType))NS_warn_if_impl(!IsValidPersistenceType(aPersistenceType), "!IsValidPersistenceType(aPersistenceType)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21633
)
) {
21634 return IPC_FAIL(this, "PersistenceType is not valid!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("PersistenceType is not valid!"
))
;
21635 }
21636
21637 if (NS_WARN_IF(aOrigin.IsEmpty())NS_warn_if_impl(aOrigin.IsEmpty(), "aOrigin.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21637)
) {
21638 return IPC_FAIL(this, "Origin is empty!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Origin is empty!"
))
;
21639 }
21640
21641 if (NS_WARN_IF(aDatabaseName.IsEmpty())NS_warn_if_impl(aDatabaseName.IsEmpty(), "aDatabaseName.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21641
)
) {
21642 return IPC_FAIL(this, "DatabaseName is empty!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("DatabaseName is empty!"
))
;
21643 }
21644
21645 if (NS_WARN_IF(aFileId == 0)NS_warn_if_impl(aFileId == 0, "aFileId == 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21645)
) {
21646 return IPC_FAIL(this, "No FileId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No FileId!"
))
;
21647 }
21648
21649 nsresult rv =
21650 DispatchAndReturnFileReferences(aPersistenceType, aOrigin, aDatabaseName,
21651 aFileId, aRefCnt, aDBRefCnt, aResult);
21652 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21652)
) {
21653 return IPC_FAIL(this, "DispatchAndReturnFileReferences failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("DispatchAndReturnFileReferences failed!"
))
;
21654 }
21655
21656 return IPC_OK()mozilla::ipc::IPCResult::Ok();
21657}
21658
21659mozilla::ipc::IPCResult Utils::RecvDoMaintenance(
21660 DoMaintenanceResolver&& aResolver) {
21661 AssertIsOnBackgroundThread();
21662
21663 QM_TRY(MOZ_TO_RESULT(!QuotaManager::IsShuttingDown()),{auto tryResult1620 = (ToResult(!QuotaManager::IsShuttingDown
())); static_assert(std::is_empty_v<typename decltype(tryResult1620
)::ok_type>); if ((__builtin_expect(!!(tryResult1620.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1620
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(!QuotaManager::IsShuttingDown())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21664, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(!QuotaManager::IsShuttingDown())"
, tryTempError, ResolveNSResultAndReturn(aResolver)); }}
21664 ResolveNSResultAndReturn(aResolver)){auto tryResult1620 = (ToResult(!QuotaManager::IsShuttingDown
())); static_assert(std::is_empty_v<typename decltype(tryResult1620
)::ok_type>); if ((__builtin_expect(!!(tryResult1620.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1620
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(!QuotaManager::IsShuttingDown())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21664, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(!QuotaManager::IsShuttingDown())"
, tryTempError, ResolveNSResultAndReturn(aResolver)); }}
;
21665
21666 QM_TRY(QuotaManager::EnsureCreated(), ResolveNSResultAndReturn(aResolver)){auto tryResult1621 = (QuotaManager::EnsureCreated()); static_assert
(std::is_empty_v<typename decltype(tryResult1621)::ok_type
>); if ((__builtin_expect(!!(tryResult1621.isErr()), 0))) {
[[maybe_unused]] auto tryTempError = tryResult1621.unwrapErr
(); mozilla::dom::quota::HandleError("QuotaManager::EnsureCreated()"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21666, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "QuotaManager::EnsureCreated()"
, tryTempError, ResolveNSResultAndReturn(aResolver)); }}
;
21667
21668 QuotaClient* quotaClient = QuotaClient::GetInstance();
21669 QM_TRY(MOZ_TO_RESULT(quotaClient), QM_IPC_FAIL(this)){auto tryResult1622 = (ToResult(quotaClient)); static_assert(
std::is_empty_v<typename decltype(tryResult1622)::ok_type>
); if ((__builtin_expect(!!(tryResult1622.isErr()), 0))) { [[
maybe_unused]] auto tryTempError = tryResult1622.unwrapErr();
mozilla::dom::quota::HandleError("ToResult(quotaClient)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21669
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "ToResult(quotaClient)", tryTempError
, mozilla::dom::quota::detail::IpcFailCustomRetVal(mozilla::WrapNotNull
(this))); }}
;
21670
21671 quotaClient->DoMaintenance()->Then(
21672 GetCurrentSerialEventTarget(), __func__,
21673 [self = RefPtr(this), resolver = std::move(aResolver)](
21674 const BoolPromise::ResolveOrRejectValue& aValue) {
21675 if (!self->CanSend()) {
21676 return;
21677 }
21678
21679 if (aValue.IsResolve()) {
21680 resolver(NS_OK);
21681 } else {
21682 resolver(aValue.RejectValue());
21683 }
21684 });
21685
21686 return IPC_OK()mozilla::ipc::IPCResult::Ok();
21687}
21688
21689#ifdef DEBUG1
21690
21691NS_IMPL_ISUPPORTS(DEBUGThreadSlower, nsIThreadObserver)MozExternalRefCountType DEBUGThreadSlower::AddRef(void) { static_assert
(!std::is_destructible_v<DEBUGThreadSlower>, "Reference-counted class "
"DEBUGThreadSlower" " should not have a public destructor. "
"Make this class's destructor non-public"); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(int32_t
(mRefCnt) >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0"
" (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21691); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 21691
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); do { static_assert( mozilla::detail::AssertionConditionType
<decltype("DEBUGThreadSlower" != nullptr)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!("DEBUGThreadSlower" != nullptr
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"\"DEBUGThreadSlower\" != nullptr" " (" "Must specify a name"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21691
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"DEBUGThreadSlower\" != nullptr"
") (" "Must specify a name" ")"); do { MOZ_CrashSequence(__null
, 21691); __attribute__((nomerge)) ::abort(); } while (false)
; } } while (false); if (!mRefCnt.isThreadSafe) _mOwningThread
.AssertOwnership("DEBUGThreadSlower" " not thread-safe"); nsrefcnt
count = ++mRefCnt; NS_LogAddRef((this), (count), ("DEBUGThreadSlower"
), (uint32_t)(sizeof(*this))); return count; } MozExternalRefCountType
DEBUGThreadSlower::Release(void) { do { static_assert( mozilla
::detail::AssertionConditionType<decltype(int32_t(mRefCnt)
> 0)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(int32_t(mRefCnt) > 0))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0" " (" "dup release"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21691
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 21691
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); do { static_assert( mozilla::detail::AssertionConditionType
<decltype("DEBUGThreadSlower" != nullptr)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!("DEBUGThreadSlower" != nullptr
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"\"DEBUGThreadSlower\" != nullptr" " (" "Must specify a name"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21691
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"DEBUGThreadSlower\" != nullptr"
") (" "Must specify a name" ")"); do { MOZ_CrashSequence(__null
, 21691); __attribute__((nomerge)) ::abort(); } while (false)
; } } while (false); if (!mRefCnt.isThreadSafe) _mOwningThread
.AssertOwnership("DEBUGThreadSlower" " not thread-safe"); const
char* const nametmp = "DEBUGThreadSlower"; nsrefcnt count = --
mRefCnt; NS_LogRelease((this), (count), (nametmp)); if (count
== 0) { mRefCnt = 1; delete (this); return 0; } return count
; } nsresult DEBUGThreadSlower::QueryInterface(const nsIID&
aIID, void** aInstancePtr) { do { if (!(aInstancePtr)) { NS_DebugBreak
(NS_DEBUG_ASSERTION, "QueryInterface requires a non-NULL destination!"
, "aInstancePtr", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21691); MOZ_PretendNoReturn(); } } while (0); nsresult rv =
NS_ERROR_FAILURE; static_assert(1 > 0, "Need more arguments to NS_INTERFACE_TABLE"
); static const QITableEntry table[] = { {&mozilla::detail
::kImplementedIID<DEBUGThreadSlower, nsIThreadObserver>
, int32_t( reinterpret_cast<char*>(static_cast<nsIThreadObserver
*>((DEBUGThreadSlower*)0x1000)) - reinterpret_cast<char
*>((DEBUGThreadSlower*)0x1000))}, {&mozilla::detail::kImplementedIID
<DEBUGThreadSlower, nsISupports>, int32_t(reinterpret_cast
<char*>(static_cast<nsISupports*>( static_cast<
nsIThreadObserver*>((DEBUGThreadSlower*)0x1000))) - reinterpret_cast
<char*>((DEBUGThreadSlower*)0x1000))}, { nullptr, 0 } }
; static_assert(std::size(table) > 1, "need at least 1 interface"
); rv = NS_TableDrivenQI(static_cast<void*>(this), aIID
, aInstancePtr, table); return rv; }
21692
21693NS_IMETHODIMPnsresult
21694DEBUGThreadSlower::OnDispatchedEvent() { MOZ_CRASH("Should never be called!")do { do { } while (false); MOZ_ReportCrash("" "Should never be called!"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21694
); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be called!"
")"); do { MOZ_CrashSequence(__null, 21694); __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
; }
21695
21696NS_IMETHODIMPnsresult
21697DEBUGThreadSlower::OnProcessNextEvent(nsIThreadInternal* /* aThread */,
21698 bool /* aMayWait */) {
21699 return NS_OK;
21700}
21701
21702NS_IMETHODIMPnsresult
21703DEBUGThreadSlower::AfterProcessNextEvent(nsIThreadInternal* /* aThread */,
21704 bool /* aEventWasProcessed */) {
21705 MOZ_ASSERT(kDEBUGThreadSleepMS)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(kDEBUGThreadSleepMS)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(kDEBUGThreadSleepMS))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("kDEBUGThreadSleepMS"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21705
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "kDEBUGThreadSleepMS"
")"); do { MOZ_CrashSequence(__null, 21705); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
21706
21707 MOZ_ALWAYS_TRUE(PR_Sleep(PR_MillisecondsToInterval(kDEBUGThreadSleepMS)) ==do { if ((__builtin_expect(!!(PR_Sleep(PR_MillisecondsToInterval
(kDEBUGThreadSleepMS)) == PR_SUCCESS), 1))) { } else { do { do
{ } while (false); MOZ_ReportCrash("" "PR_Sleep(PR_MillisecondsToInterval(kDEBUGThreadSleepMS)) == PR_SUCCESS"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21708
); AnnotateMozCrashReason("MOZ_CRASH(" "PR_Sleep(PR_MillisecondsToInterval(kDEBUGThreadSleepMS)) == PR_SUCCESS"
")"); do { MOZ_CrashSequence(__null, 21708); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
21708 PR_SUCCESS)do { if ((__builtin_expect(!!(PR_Sleep(PR_MillisecondsToInterval
(kDEBUGThreadSleepMS)) == PR_SUCCESS), 1))) { } else { do { do
{ } while (false); MOZ_ReportCrash("" "PR_Sleep(PR_MillisecondsToInterval(kDEBUGThreadSleepMS)) == PR_SUCCESS"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21708
); AnnotateMozCrashReason("MOZ_CRASH(" "PR_Sleep(PR_MillisecondsToInterval(kDEBUGThreadSleepMS)) == PR_SUCCESS"
")"); do { MOZ_CrashSequence(__null, 21708); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
21709 return NS_OK;
21710}
21711
21712#endif // DEBUG
21713
21714nsresult FileHelper::Init() {
21715 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21715
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 21715); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
21716
21717 auto fileDirectory = mFileManager->GetCheckedDirectory();
21718 if (NS_WARN_IF(!fileDirectory)NS_warn_if_impl(!fileDirectory, "!fileDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21718)
) {
21719 return NS_ERROR_FAILURE;
21720 }
21721
21722 auto journalDirectory = mFileManager->EnsureJournalDirectory();
21723 if (NS_WARN_IF(!journalDirectory)NS_warn_if_impl(!journalDirectory, "!journalDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21723)
) {
21724 return NS_ERROR_FAILURE;
21725 }
21726
21727 DebugOnly<bool> exists;
21728 MOZ_ASSERT(NS_SUCCEEDED(journalDirectory->Exists(&exists)))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(journalDirectory
->Exists(&exists))), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(journalDirectory->Exists(&exists))), 1
)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(journalDirectory->Exists(&exists))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21728
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(journalDirectory->Exists(&exists))), 1)))"
")"); do { MOZ_CrashSequence(__null, 21728); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
21729 MOZ_ASSERT(exists)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(exists)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(exists))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("exists", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21729); AnnotateMozCrashReason("MOZ_ASSERT" "(" "exists" ")"
); do { MOZ_CrashSequence(__null, 21729); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
21730
21731 DebugOnly<bool> isDirectory;
21732 MOZ_ASSERT(NS_SUCCEEDED(journalDirectory->IsDirectory(&isDirectory)))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(journalDirectory
->IsDirectory(&isDirectory))), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(journalDirectory->IsDirectory(&isDirectory
))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(journalDirectory->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21732
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(journalDirectory->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 21732); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
21733 MOZ_ASSERT(isDirectory)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(isDirectory)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21733); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 21733); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
21734
21735 mFileDirectory.init(WrapNotNullUnchecked(std::move(fileDirectory)));
21736 mJournalDirectory.init(WrapNotNullUnchecked(std::move(journalDirectory)));
21737
21738 return NS_OK;
21739}
21740
21741nsCOMPtr<nsIFile> FileHelper::GetFile(const DatabaseFileInfo& aFileInfo) {
21742 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21742
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 21742); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
21743
21744 return mFileManager->GetFileForId(mFileDirectory->get(), aFileInfo.Id());
21745}
21746
21747nsCOMPtr<nsIFile> FileHelper::GetJournalFile(
21748 const DatabaseFileInfo& aFileInfo) {
21749 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21749
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 21749); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
21750
21751 return mFileManager->GetFileForId(mJournalDirectory->get(), aFileInfo.Id());
21752}
21753
21754nsresult FileHelper::CreateFileFromStream(nsIFile& aFile, nsIFile& aJournalFile,
21755 nsIInputStream& aInputStream,
21756 bool aCompress,
21757 const Maybe<CipherKey>& aMaybeKey) {
21758 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21758
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 21758); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
21759
21760 QM_TRY_INSPECT(const auto& exists,auto tryResult1623 = (::mozilla::ToResultInvokeMember( (aFile
), &::mozilla::detail::DerefedType<decltype(aFile)>
::Exists )); if ((__builtin_expect(!!(tryResult1623.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::Exists )"
, tryResult1623.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21761, mozilla::dom::quota::Severity::Error); return tryResult1623
.propagateErr(); } const auto& exists = tryResult1623.inspect
();
21761 MOZ_TO_RESULT_INVOKE_MEMBER(aFile, Exists))auto tryResult1623 = (::mozilla::ToResultInvokeMember( (aFile
), &::mozilla::detail::DerefedType<decltype(aFile)>
::Exists )); if ((__builtin_expect(!!(tryResult1623.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::Exists )"
, tryResult1623.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21761, mozilla::dom::quota::Severity::Error); return tryResult1623
.propagateErr(); } const auto& exists = tryResult1623.inspect
();
;
21762
21763 // DOM blobs that are being stored in IDB are cached by calling
21764 // IDBDatabase::GetOrCreateFileActorForBlob. So if the same DOM blob is stored
21765 // again under a different key or in a different object store, we just add
21766 // a new reference instead of creating a new copy (all such stored blobs share
21767 // the same id).
21768 // However, it can happen that CreateFileFromStream failed due to quota
21769 // exceeded error and for some reason the orphaned file couldn't be deleted
21770 // immediately. Now, if the operation is being repeated, the DOM blob is
21771 // already cached, so it has the same file id which clashes with the orphaned
21772 // file. We could do some tricks to restore previous copy loop, but it's safer
21773 // to just delete the orphaned file and start from scratch.
21774 // This corner case is partially simulated in test_file_copy_failure.js
21775 if (exists) {
21776 QM_TRY_INSPECT(const auto& isFile,auto tryResult1624 = (::mozilla::ToResultInvokeMember( (aFile
), &::mozilla::detail::DerefedType<decltype(aFile)>
::IsFile )); if ((__builtin_expect(!!(tryResult1624.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::IsFile )"
, tryResult1624.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21777, mozilla::dom::quota::Severity::Error); return tryResult1624
.propagateErr(); } const auto& isFile = tryResult1624.inspect
();
21777 MOZ_TO_RESULT_INVOKE_MEMBER(aFile, IsFile))auto tryResult1624 = (::mozilla::ToResultInvokeMember( (aFile
), &::mozilla::detail::DerefedType<decltype(aFile)>
::IsFile )); if ((__builtin_expect(!!(tryResult1624.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::IsFile )"
, tryResult1624.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21777, mozilla::dom::quota::Severity::Error); return tryResult1624
.propagateErr(); } const auto& isFile = tryResult1624.inspect
();
;
21778
21779 QM_TRY(OkIf(isFile), NS_ERROR_FAILURE){auto tryResult1625 = (OkIf(isFile)); static_assert(std::is_empty_v
<typename decltype(tryResult1625)::ok_type>); if ((__builtin_expect
(!!(tryResult1625.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult1625.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(isFile)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21779, mozilla::dom::quota::Severity::Error); [[maybe_unused
]] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(isFile)", tryTempError
, NS_ERROR_FAILURE); }}
;
21780
21781 QM_TRY_INSPECT(const auto& journalExists,auto tryResult1626 = (::mozilla::ToResultInvokeMember( (aJournalFile
), &::mozilla::detail::DerefedType<decltype(aJournalFile
)>::Exists )); if ((__builtin_expect(!!(tryResult1626.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aJournalFile), &::mozilla::detail::DerefedType<decltype(aJournalFile)>::Exists )"
, tryResult1626.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21782, mozilla::dom::quota::Severity::Error); return tryResult1626
.propagateErr(); } const auto& journalExists = tryResult1626
.inspect();
21782 MOZ_TO_RESULT_INVOKE_MEMBER(aJournalFile, Exists))auto tryResult1626 = (::mozilla::ToResultInvokeMember( (aJournalFile
), &::mozilla::detail::DerefedType<decltype(aJournalFile
)>::Exists )); if ((__builtin_expect(!!(tryResult1626.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aJournalFile), &::mozilla::detail::DerefedType<decltype(aJournalFile)>::Exists )"
, tryResult1626.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21782, mozilla::dom::quota::Severity::Error); return tryResult1626
.propagateErr(); } const auto& journalExists = tryResult1626
.inspect();
;
21783
21784 QM_TRY(OkIf(journalExists), NS_ERROR_FAILURE){auto tryResult1627 = (OkIf(journalExists)); static_assert(std
::is_empty_v<typename decltype(tryResult1627)::ok_type>
); if ((__builtin_expect(!!(tryResult1627.isErr()), 0))) { [[
maybe_unused]] auto tryTempError = tryResult1627.unwrapErr();
mozilla::dom::quota::HandleError("OkIf(journalExists)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21784
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(journalExists)", tryTempError,
NS_ERROR_FAILURE); }}
;
21785
21786 QM_TRY_INSPECT(const auto& journalIsFile,auto tryResult1628 = (::mozilla::ToResultInvokeMember( (aJournalFile
), &::mozilla::detail::DerefedType<decltype(aJournalFile
)>::IsFile )); if ((__builtin_expect(!!(tryResult1628.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aJournalFile), &::mozilla::detail::DerefedType<decltype(aJournalFile)>::IsFile )"
, tryResult1628.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21787, mozilla::dom::quota::Severity::Error); return tryResult1628
.propagateErr(); } const auto& journalIsFile = tryResult1628
.inspect();
21787 MOZ_TO_RESULT_INVOKE_MEMBER(aJournalFile, IsFile))auto tryResult1628 = (::mozilla::ToResultInvokeMember( (aJournalFile
), &::mozilla::detail::DerefedType<decltype(aJournalFile
)>::IsFile )); if ((__builtin_expect(!!(tryResult1628.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aJournalFile), &::mozilla::detail::DerefedType<decltype(aJournalFile)>::IsFile )"
, tryResult1628.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21787, mozilla::dom::quota::Severity::Error); return tryResult1628
.propagateErr(); } const auto& journalIsFile = tryResult1628
.inspect();
;
21788
21789 QM_TRY(OkIf(journalIsFile), NS_ERROR_FAILURE){auto tryResult1629 = (OkIf(journalIsFile)); static_assert(std
::is_empty_v<typename decltype(tryResult1629)::ok_type>
); if ((__builtin_expect(!!(tryResult1629.isErr()), 0))) { [[
maybe_unused]] auto tryTempError = tryResult1629.unwrapErr();
mozilla::dom::quota::HandleError("OkIf(journalIsFile)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21789
, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr
const auto& func = __func__; return mozilla::dom::quota::
HandleCustomRetVal(func, "OkIf(journalIsFile)", tryTempError,
NS_ERROR_FAILURE); }}
;
21790
21791 IDB_WARNING("Deleting orphaned file!")do { nsPrintfCString s("Deleting orphaned file!"); mozilla::dom
::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21791, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21791
); } while (0)
;
21792
21793 QM_TRY(MOZ_TO_RESULT(mFileManager->SyncDeleteFile(aFile, aJournalFile))){auto tryResult1630 = (ToResult(mFileManager->SyncDeleteFile
(aFile, aJournalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1630)::ok_type>); if ((__builtin_expect
(!!(tryResult1630.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(mFileManager->SyncDeleteFile(aFile, aJournalFile))"
, tryResult1630.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21793, mozilla::dom::quota::Severity::Error); return tryResult1630
.propagateErr(); }}
;
21794 }
21795
21796 // Create a journal file first.
21797 QM_TRY(MOZ_TO_RESULT(aJournalFile.Create(nsIFile::NORMAL_FILE_TYPE, 0644))){auto tryResult1631 = (ToResult(aJournalFile.Create(nsIFile::
NORMAL_FILE_TYPE, 0644))); static_assert(std::is_empty_v<typename
decltype(tryResult1631)::ok_type>); if ((__builtin_expect
(!!(tryResult1631.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aJournalFile.Create(nsIFile::NORMAL_FILE_TYPE, 0644))"
, tryResult1631.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21797, mozilla::dom::quota::Severity::Error); return tryResult1631
.propagateErr(); }}
;
21798
21799 // Now try to copy the stream.
21800 QM_TRY_UNWRAP(nsCOMPtr<nsIOutputStream> fileOutputStream,auto tryResult1632 = (CreateFileOutputStream(mFileManager->
Type(), mFileManager->OriginMetadata(), Client::IDB, &
aFile)); if ((__builtin_expect(!!(tryResult1632.isErr()), 0))
) { mozilla::dom::quota::HandleError("CreateFileOutputStream(mFileManager->Type(), mFileManager->OriginMetadata(), Client::IDB, &aFile)"
, tryResult1632.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21803, mozilla::dom::quota::Severity::Error); return tryResult1632
.propagateErr(); } nsCOMPtr<nsIOutputStream> fileOutputStream
= tryResult1632.unwrap();
21801 CreateFileOutputStream(mFileManager->Type(),auto tryResult1632 = (CreateFileOutputStream(mFileManager->
Type(), mFileManager->OriginMetadata(), Client::IDB, &
aFile)); if ((__builtin_expect(!!(tryResult1632.isErr()), 0))
) { mozilla::dom::quota::HandleError("CreateFileOutputStream(mFileManager->Type(), mFileManager->OriginMetadata(), Client::IDB, &aFile)"
, tryResult1632.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21803, mozilla::dom::quota::Severity::Error); return tryResult1632
.propagateErr(); } nsCOMPtr<nsIOutputStream> fileOutputStream
= tryResult1632.unwrap();
21802 mFileManager->OriginMetadata(),auto tryResult1632 = (CreateFileOutputStream(mFileManager->
Type(), mFileManager->OriginMetadata(), Client::IDB, &
aFile)); if ((__builtin_expect(!!(tryResult1632.isErr()), 0))
) { mozilla::dom::quota::HandleError("CreateFileOutputStream(mFileManager->Type(), mFileManager->OriginMetadata(), Client::IDB, &aFile)"
, tryResult1632.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21803, mozilla::dom::quota::Severity::Error); return tryResult1632
.propagateErr(); } nsCOMPtr<nsIOutputStream> fileOutputStream
= tryResult1632.unwrap();
21803 Client::IDB, &aFile))auto tryResult1632 = (CreateFileOutputStream(mFileManager->
Type(), mFileManager->OriginMetadata(), Client::IDB, &
aFile)); if ((__builtin_expect(!!(tryResult1632.isErr()), 0))
) { mozilla::dom::quota::HandleError("CreateFileOutputStream(mFileManager->Type(), mFileManager->OriginMetadata(), Client::IDB, &aFile)"
, tryResult1632.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21803, mozilla::dom::quota::Severity::Error); return tryResult1632
.propagateErr(); } nsCOMPtr<nsIOutputStream> fileOutputStream
= tryResult1632.unwrap();
;
21804
21805 AutoTArray<char, kFileCopyBufferSize> buffer;
21806 const auto actualOutputStream =
21807 [aCompress, &aMaybeKey, &buffer,
21808 baseOutputStream =
21809 std::move(fileOutputStream)]() mutable -> nsCOMPtr<nsIOutputStream> {
21810 if (aMaybeKey) {
21811 baseOutputStream =
21812 MakeRefPtr<EncryptingOutputStream<IndexedDBCipherStrategy>>(
21813 std::move(baseOutputStream), kEncryptedStreamBlockSize,
21814 *aMaybeKey);
21815 }
21816
21817 if (aCompress) {
21818 auto snappyOutputStream =
21819 MakeRefPtr<SnappyCompressOutputStream>(baseOutputStream);
21820
21821 buffer.SetLength(snappyOutputStream->BlockSize());
21822
21823 return snappyOutputStream;
21824 }
21825
21826 buffer.SetLength(kFileCopyBufferSize);
21827 return std::move(baseOutputStream);
21828 }();
21829
21830 QM_TRY(MOZ_TO_RESULT(SyncCopy(aInputStream, *actualOutputStream,{auto tryResult1633 = (ToResult(SyncCopy(aInputStream, *actualOutputStream
, buffer.Elements(), buffer.Length()))); static_assert(std::is_empty_v
<typename decltype(tryResult1633)::ok_type>); if ((__builtin_expect
(!!(tryResult1633.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SyncCopy(aInputStream, *actualOutputStream, buffer.Elements(), buffer.Length()))"
, tryResult1633.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21831, mozilla::dom::quota::Severity::Error); return tryResult1633
.propagateErr(); }}
21831 buffer.Elements(), buffer.Length()))){auto tryResult1633 = (ToResult(SyncCopy(aInputStream, *actualOutputStream
, buffer.Elements(), buffer.Length()))); static_assert(std::is_empty_v
<typename decltype(tryResult1633)::ok_type>); if ((__builtin_expect
(!!(tryResult1633.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SyncCopy(aInputStream, *actualOutputStream, buffer.Elements(), buffer.Length()))"
, tryResult1633.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21831, mozilla::dom::quota::Severity::Error); return tryResult1633
.propagateErr(); }}
;
21832
21833 return NS_OK;
21834}
21835
21836class FileHelper::ReadCallback final : public nsIInputStreamCallback {
21837 public:
21838 NS_DECL_THREADSAFE_ISUPPORTSpublic: virtual nsresult QueryInterface(const nsIID& aIID
, void** aInstancePtr) override; virtual MozExternalRefCountType
AddRef(void) override; virtual MozExternalRefCountType Release
(void) override; using HasThreadSafeRefCnt = std::true_type; protected
: ::mozilla::ThreadSafeAutoRefCnt mRefCnt; nsAutoOwningThread
_mOwningThread; public:
21839
21840 ReadCallback()
21841 : mMutex("ReadCallback::mMutex"),
21842 mCondVar(mMutex, "ReadCallback::mCondVar"),
21843 mInputAvailable(false) {}
21844
21845 NS_IMETHODvirtual nsresult
21846 OnInputStreamReady(nsIAsyncInputStream* aStream) override {
21847 mozilla::MutexAutoLock autolock(mMutex);
21848
21849 mInputAvailable = true;
21850 mCondVar.Notify();
21851
21852 return NS_OK;
21853 }
21854
21855 nsresult AsyncWait(nsIAsyncInputStream* aStream, uint32_t aBufferSize,
21856 nsIEventTarget* aTarget) {
21857 MOZ_ASSERT(aStream)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aStream)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aStream))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aStream", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aStream" ")"
); do { MOZ_CrashSequence(__null, 21857); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
21858 mozilla::MutexAutoLock autolock(mMutex);
21859
21860 nsresult rv = aStream->AsyncWait(this, 0, aBufferSize, aTarget);
21861 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21861)
) {
21862 return rv;
21863 }
21864
21865 mInputAvailable = false;
21866 while (!mInputAvailable) {
21867 mCondVar.Wait();
21868 }
21869
21870 return NS_OK;
21871 }
21872
21873 private:
21874 ~ReadCallback() = default;
21875
21876 mozilla::Mutex mMutex MOZ_UNANNOTATED;
21877 mozilla::CondVar mCondVar;
21878 bool mInputAvailable;
21879};
21880
21881NS_IMPL_ADDREF(FileHelper::ReadCallback)MozExternalRefCountType FileHelper::ReadCallback::AddRef(void
) { static_assert(!std::is_destructible_v<FileHelper::ReadCallback
>, "Reference-counted class " "FileHelper::ReadCallback" " should not have a public destructor. "
"Make this class's destructor non-public"); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(int32_t
(mRefCnt) >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0"
" (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21881); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 21881
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); do { static_assert( mozilla::detail::AssertionConditionType
<decltype("FileHelper::ReadCallback" != nullptr)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!("FileHelper::ReadCallback" != nullptr))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("\"FileHelper::ReadCallback\" != nullptr"
" (" "Must specify a name" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21881); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"FileHelper::ReadCallback\" != nullptr"
") (" "Must specify a name" ")"); do { MOZ_CrashSequence(__null
, 21881); __attribute__((nomerge)) ::abort(); } while (false)
; } } while (false); if (!mRefCnt.isThreadSafe) _mOwningThread
.AssertOwnership("FileHelper::ReadCallback" " not thread-safe"
); nsrefcnt count = ++mRefCnt; NS_LogAddRef((this), (count), (
"FileHelper::ReadCallback"), (uint32_t)(sizeof(*this))); return
count; }
;
21882NS_IMPL_RELEASE(FileHelper::ReadCallback)MozExternalRefCountType FileHelper::ReadCallback::Release(void
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0"
" (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21882); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 21882
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); do { static_assert( mozilla::detail::AssertionConditionType
<decltype("FileHelper::ReadCallback" != nullptr)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!("FileHelper::ReadCallback" != nullptr))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("\"FileHelper::ReadCallback\" != nullptr"
" (" "Must specify a name" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21882); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"FileHelper::ReadCallback\" != nullptr"
") (" "Must specify a name" ")"); do { MOZ_CrashSequence(__null
, 21882); __attribute__((nomerge)) ::abort(); } while (false)
; } } while (false); if (!mRefCnt.isThreadSafe) _mOwningThread
.AssertOwnership("FileHelper::ReadCallback" " not thread-safe"
); const char* const nametmp = "FileHelper::ReadCallback"; nsrefcnt
count = --mRefCnt; NS_LogRelease((this), (count), (nametmp))
; if (count == 0) { mRefCnt = 1; delete (this); return 0; } return
count; }
;
21883
21884NS_INTERFACE_MAP_BEGIN(FileHelper::ReadCallback)nsresult FileHelper::ReadCallback::QueryInterface(const nsIID
& aIID, void** aInstancePtr) { do { if (!(aInstancePtr)) {
NS_DebugBreak(NS_DEBUG_ASSERTION, "QueryInterface requires a non-NULL destination!"
, "aInstancePtr", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21884); MOZ_PretendNoReturn(); } } while (0); nsISupports* foundInterface
;
21885 NS_INTERFACE_MAP_ENTRY(nsIInputStreamCallback)if (aIID.Equals(mozilla::detail::kImplementedIID<std::remove_reference_t
<decltype(*this)>, nsIInputStreamCallback>)) foundInterface
= static_cast<nsIInputStreamCallback*>(this); else
21886 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsIInputStreamCallback)if (aIID.Equals(mozilla::detail::kImplementedIID<std::remove_reference_t
<decltype(*this)>, nsISupports>)) foundInterface = static_cast
<nsISupports*>(static_cast<nsIInputStreamCallback*>
(this)); else
21887NS_INTERFACE_MAP_ENDfoundInterface = 0; nsresult status; if (!foundInterface) { do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(!aIID.Equals((nsISupports::kIID)))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!aIID.Equals((nsISupports::kIID
))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!aIID.Equals((nsISupports::kIID))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21887); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aIID.Equals((nsISupports::kIID))"
")"); do { MOZ_CrashSequence(__null, 21887); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); status
= NS_NOINTERFACE; } else { (foundInterface)->AddRef(); status
= NS_OK; } *aInstancePtr = foundInterface; return status; }
21888
21889nsresult FileHelper::SyncRead(nsIInputStream& aInputStream, char* const aBuffer,
21890 const uint32_t aBufferSize,
21891 uint32_t* const aRead) {
21892 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21892
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 21892); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
21893
21894 // Let's try to read, directly.
21895 nsresult rv = aInputStream.Read(aBuffer, aBufferSize, aRead);
21896 if (NS_SUCCEEDED(rv)((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))) || rv != NS_BASE_STREAM_WOULD_BLOCK) {
21897 return rv;
21898 }
21899
21900 // We need to proceed async.
21901 nsCOMPtr<nsIAsyncInputStream> asyncStream = do_QueryInterface(&aInputStream);
21902 if (!asyncStream) {
21903 return rv;
21904 }
21905
21906 if (!mReadCallback) {
21907 mReadCallback.init(MakeNotNull<RefPtr<ReadCallback>>());
21908 }
21909
21910 // We just need any thread with an event loop for receiving the
21911 // OnInputStreamReady callback. Let's use the I/O thread.
21912 nsCOMPtr<nsIEventTarget> target =
21913 do_GetService(NS_STREAMTRANSPORTSERVICE_CONTRACTID"@mozilla.org/network/stream-transport-service;1");
21914 MOZ_ASSERT(target)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(target)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(target))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("target", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21914); AnnotateMozCrashReason("MOZ_ASSERT" "(" "target" ")"
); do { MOZ_CrashSequence(__null, 21914); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
21915
21916 rv = (*mReadCallback)->AsyncWait(asyncStream, aBufferSize, target);
21917 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21917)
) {
21918 return rv;
21919 }
21920
21921 return SyncRead(aInputStream, aBuffer, aBufferSize, aRead);
21922}
21923
21924nsresult FileHelper::SyncCopy(nsIInputStream& aInputStream,
21925 nsIOutputStream& aOutputStream,
21926 char* const aBuffer, const uint32_t aBufferSize) {
21927 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21927
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 21927); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
21928
21929 AUTO_PROFILER_LABEL("FileHelper::SyncCopy", DOM)mozilla::AutoProfilerLabel raiiObject21929( "FileHelper::SyncCopy"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
21930
21931 nsresult rv;
21932
21933 do {
21934 uint32_t numRead;
21935 rv = SyncRead(aInputStream, aBuffer, aBufferSize, &numRead);
21936 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21936)
) {
21937 break;
21938 }
21939
21940 if (!numRead) {
21941 break;
21942 }
21943
21944 uint32_t numWrite;
21945 rv = aOutputStream.Write(aBuffer, numRead, &numWrite);
21946 if (rv == NS_ERROR_FILE_NO_DEVICE_SPACE) {
21947 rv = NS_ERROR_DOM_INDEXEDDB_QUOTA_ERR;
21948 }
21949 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21949)
) {
21950 break;
21951 }
21952
21953 if (NS_WARN_IF(numWrite != numRead)NS_warn_if_impl(numWrite != numRead, "numWrite != numRead", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21953)
) {
21954 rv = NS_ERROR_FAILURE;
21955 break;
21956 }
21957 } while (true);
21958
21959 if (NS_SUCCEEDED(rv)((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) {
21960 rv = aOutputStream.Flush();
21961 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21961)
) {
21962 return rv;
21963 }
21964 }
21965
21966 nsresult rv2 = aOutputStream.Close();
21967 if (NS_WARN_IF(NS_FAILED(rv2))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv2
)), 0))), "NS_FAILED(rv2)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21967)
) {
21968 return NS_SUCCEEDED(rv)((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))) ? rv2 : rv;
21969 }
21970
21971 return rv;
21972}
21973
21974} // namespace dom::indexedDB
21975} // namespace mozilla
21976
21977#undef IDB_MOBILE
21978#undef IDB_DEBUG_LOG

←

/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h

→
1/* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
3 * You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5#ifndef mozilla_dom_quota_quotacommon_h_
6#define mozilla_dom_quota_quotacommon_h_
7
8#include <algorithm>
9#include <cstddef>
10#include <cstdint>
11#include <type_traits>
12#include <utility>
13
14#include "mozIStorageStatement.h"
15#include "mozilla/Assertions.h"
16#include "mozilla/Atomics.h"
17#include "mozilla/Attributes.h"
18#include "mozilla/GeckoTrace.h"
19#include "mozilla/Likely.h"
20#include "mozilla/MacroArgs.h"
21#include "mozilla/Maybe.h"
22#include "mozilla/ResultExtensions.h"
23#include "mozilla/StaticString.h"
24#include "mozilla/Try.h"
25#include "mozilla/dom/quota/Config.h"
26#if defined(QM_LOG_ERROR_ENABLED) && defined(QM_ERROR_STACKS_ENABLED)
27# include "mozilla/Variant.h"
28#endif
29#include "mozilla/dom/QMResult.h"
30#include "mozilla/dom/quota/FirstInitializationAttemptsImpl.h"
31#include "mozilla/dom/quota/RemoveParen.h"
32#include "mozilla/dom/quota/ScopedLogExtraInfo.h"
33#include "mozilla/ipc/ProtocolUtils.h"
34#include "nsCOMPtr.h"
35#include "nsDebug.h"
36#include "nsError.h"
37#include "nsIDirectoryEnumerator.h"
38#include "nsIEventTarget.h"
39#include "nsIFile.h"
40#include "nsLiteralString.h"
41#include "nsPrintfCString.h"
42#include "nsReadableUtils.h"
43#include "nsString.h"
44#include "nsTArray.h"
45#include "nsTLiteralString.h"
46
47namespace mozilla {
48template <typename T>
49class NotNull;
50}
51
52#define MOZ_ARGS_AFTER_3(a1, a2, a3, ...)... __VA_ARGS__
53
54#define MOZ_ADD_ARGS2(...),... , ##__VA_ARGS__
55#define MOZ_ADD_ARGS(...),... MOZ_ADD_ARGS2(__VA_ARGS__),__VA_ARGS__
56
57// Proper use of unique variable names can be tricky (especially if nesting of
58// the final macro is required).
59// See https://lifecs.likai.org/2016/07/c-preprocessor-hygienic-macros.html
60#define MOZ_UNIQUE_VAR(base)base1634 MOZ_CONCAT(base, __COUNTER__)base1635
61
62// See https://florianjw.de/en/passing_overloaded_functions.html
63// TODO: Add a test for this macro.
64#define MOZ_SELECT_OVERLOAD(func)[](auto&&... aArgs) -> decltype(auto) { return func
(std::forward<decltype(aArgs)>(aArgs)...); }
\
65 [](auto&&... aArgs) -> decltype(auto) { \
66 return func(std::forward<decltype(aArgs)>(aArgs)...); \
67 }
68
69#define DSSTORE_FILE_NAME".DS_Store" ".DS_Store"
70#define DESKTOP_FILE_NAME".desktop" ".desktop"
71#define DESKTOP_INI_FILE_NAME"desktop.ini" "desktop.ini"
72#define THUMBS_DB_FILE_NAME"thumbs.db" "thumbs.db"
73
74#define QM_WARNING(...)do { nsPrintfCString str(...); mozilla::dom::quota::ReportInternalError
("/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 74, str.get()); NS_DebugBreak(NS_DEBUG_WARNING, str.get(), nullptr
, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 74); } while (0)
\
75 do { \
76 nsPrintfCString str(__VA_ARGS__); \
77 mozilla::dom::quota::ReportInternalError(__FILE__"/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h", __LINE__77, str.get()); \
78 NS_WARNING(str.get())NS_DebugBreak(NS_DEBUG_WARNING, str.get(), nullptr, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 78)
; \
79 } while (0)
80
81#define QM_LOG_TEST()(__builtin_expect(!!(mozilla::detail::log_test(GetQuotaManagerLogger
(), LogLevel::Info)), 0))
MOZ_LOG_TEST(GetQuotaManagerLogger(), LogLevel::Info)(__builtin_expect(!!(mozilla::detail::log_test(GetQuotaManagerLogger
(), LogLevel::Info)), 0))
82#define QM_LOG(_args)do { const ::mozilla::LogModule* moz_real_module = GetQuotaManagerLogger
(); if ((__builtin_expect(!!(mozilla::detail::log_test(moz_real_module
, LogLevel::Info)), 0))) { mozilla::detail::log_print(moz_real_module
, LogLevel::Info, MOZ_LOG_EXPAND_ARGS _args); } } while (0)
MOZ_LOG(GetQuotaManagerLogger(), LogLevel::Info, _args)do { const ::mozilla::LogModule* moz_real_module = GetQuotaManagerLogger
(); if ((__builtin_expect(!!(mozilla::detail::log_test(moz_real_module
, LogLevel::Info)), 0))) { mozilla::detail::log_print(moz_real_module
, LogLevel::Info, MOZ_LOG_EXPAND_ARGS _args); } } while (0)
83
84#ifdef DEBUG1
85# define UNKNOWN_FILE_WARNING(_leafName)NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(_leafName).get()) .get(), nullptr, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 85)
\
86 NS_WARNING(nsPrintfCString( \NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(_leafName).get()) .get(), nullptr, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 89)
87 "Something (%s) in the directory that doesn't belong!", \NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(_leafName).get()) .get(), nullptr, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 89)
88 NS_ConvertUTF16toUTF8(_leafName).get()) \NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(_leafName).get()) .get(), nullptr, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 89)
89 .get())NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(_leafName).get()) .get(), nullptr, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 89)
90#else
91# define UNKNOWN_FILE_WARNING(_leafName)NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(_leafName).get()) .get(), nullptr, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 91)
(void)(_leafName);
92#endif
93
94// This macro should be used in directory traversals for files or directories
95// that are unknown for given directory traversal. It should only be called
96// after all known (directory traversal specific) files or directories have
97// been checked and handled.
98// XXX Consider renaming the macro to QM_LOG_UNKNOWN_DIR_ENTRY.
99#ifdef DEBUG1
100# define WARN_IF_FILE_IS_UNKNOWN(_file)mozilla::dom::quota::WarnIfFileIsUnknown(_file, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 100)
\
101 mozilla::dom::quota::WarnIfFileIsUnknown(_file, __FILE__"/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h", __LINE__101)
102#else
103# define WARN_IF_FILE_IS_UNKNOWN(_file)mozilla::dom::quota::WarnIfFileIsUnknown(_file, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 103)
Result<bool, nsresult>(false)
104#endif
105
106/**
107 * There are multiple ways to handle unrecoverable conditions (note that the
108 * patterns are put in reverse chronological order and only the first pattern
109 * QM_TRY/QM_TRY_UNWRAP/QM_TRY_INSPECT/QM_TRY_RETURN/QM_FAIL should be used in
110 * new code):
111 *
112 * 1. Using QM_TRY/QM_TRY_UNWRAP/QM_TRY_INSPECT/QM_TRY_RETURN/QM_FAIL macros
113 * (Quota manager specific, defined below)
114 *
115 * Typical use cases:
116 *
117 * nsresult MyFunc1(nsIFile& aFile) {
118 * bool exists;
119 * QM_TRY(aFile.Exists(&exists));
120 * QM_TRY(OkIf(exists), NS_ERROR_FAILURE);
121 *
122 * // The file exists, and data could be read from it here.
123 *
124 * return NS_OK;
125 * }
126 *
127 * nsresult MyFunc2(nsIFile& aFile) {
128 * bool exists;
129 * QM_TRY(aFile.Exists(&exists), NS_ERROR_UNEXPECTED);
130 * QM_TRY(OkIf(exists), NS_ERROR_UNEXPECTED);
131 *
132 * // The file exists, and data could be read from it here.
133 *
134 * return NS_OK;
135 * }
136 *
137 * void MyFunc3(nsIFile& aFile) {
138 * bool exists;
139 * QM_TRY(aFile.Exists(&exists), QM_VOID);
140 * QM_TRY(OkIf(exists), QM_VOID);
141 *
142 * // The file exists, and data could be read from it here.
143 * }
144 *
145 * nsresult MyFunc4(nsIFile& aFile) {
146 * bool exists;
147 * QM_TRY(storageFile->Exists(&exists), QM_PROPAGATE,
148 * []() { NS_WARNING("The Exists call failed!"); });
149 * QM_TRY(OkIf(exists), NS_ERROR_FAILURE,
150 * []() { NS_WARNING("The file doesn't exist!"); });
151 *
152 * // The file exists, and data could be read from it here.
153 *
154 * return NS_OK;
155 * }
156 *
157 * nsresult MyFunc5(nsIFile& aFile) {
158 * bool exists;
159 * QM_TRY(aFile.Exists(&exists));
160 * if (exists) {
161 * // The file exists, and data could be read from it here.
162 * } else {
163 * QM_FAIL(NS_ERROR_FAILURE);
164 * }
165 *
166 * return NS_OK;
167 * }
168 *
169 * nsresult MyFunc6(nsIFile& aFile) {
170 * bool exists;
171 * QM_TRY(aFile.Exists(&exists));
172 * if (exists) {
173 * // The file exists, and data could be read from it here.
174 * } else {
175 * QM_FAIL(NS_ERROR_FAILURE,
176 * []() { NS_WARNING("The file doesn't exist!"); });
177 * }
178 *
179 * return NS_OK;
180 * }
181 *
182 * 2. Using MOZ_TRY macro
183 *
184 * Typical use cases:
185 *
186 * nsresult MyFunc1(nsIFile& aFile) {
187 * // MOZ_TRY can't return a custom return value
188 *
189 * return NS_OK;
190 * }
191 *
192 * nsresult MyFunc2(nsIFile& aFile) {
193 * // MOZ_TRY can't return a custom return value
194 *
195 * return NS_OK;
196 * }
197 *
198 * void MyFunc3(nsIFile& aFile) {
199 * // MOZ_TRY can't return a custom return value, "void" in this case
200 * }
201 *
202 * nsresult MyFunc4(nsIFile& aFile) {
203 * // MOZ_TRY can't return a custom return value and run an additional
204 * // cleanup function
205 *
206 * return NS_OK;
207 * }
208 *
209 * nsresult MyFunc5(nsIFile& aFile) {
210 * // There's no MOZ_FAIL, MOZ_TRY can't return a custom return value
211 *
212 * return NS_OK;
213 * }
214 *
215 * nsresult MyFunc6(nsIFile& aFile) {
216 * // There's no MOZ_FAIL, MOZ_TRY can't return a custom return value and run
217 * // an additional cleanup function
218 *
219 * return NS_OK;
220 * }
221 *
222 * 3. Using NS_WARN_IF and NS_WARNING macro with own control flow handling
223 *
224 * Typical use cases:
225 *
226 * nsresult MyFunc1(nsIFile& aFile) {
227 * bool exists;
228 * nsresult rv = aFile.Exists(&exists);
229 * if (NS_WARN_IF(NS_FAILED(rv)) {
230 * return rv;
231 * }
232 * if (NS_WARN_IF(!exists) {
233 * return NS_ERROR_FAILURE;
234 * }
235 *
236 * // The file exists, and data could be read from it here.
237 *
238 * return NS_OK;
239 * }
240 *
241 * nsresult MyFunc2(nsIFile& aFile) {
242 * bool exists;
243 * nsresult rv = aFile.Exists(&exists);
244 * if (NS_WARN_IF(NS_FAILED(rv)) {
245 * return NS_ERROR_UNEXPECTED;
246 * }
247 * if (NS_WARN_IF(!exists) {
248 * return NS_ERROR_UNEXPECTED;
249 * }
250 *
251 * // The file exists, and data could be read from it here.
252 *
253 * return NS_OK;
254 * }
255 *
256 * void MyFunc3(nsIFile& aFile) {
257 * bool exists;
258 * nsresult rv = aFile.Exists(&exists);
259 * if (NS_WARN_IF(NS_FAILED(rv)) {
260 * return;
261 * }
262 * if (NS_WARN_IF(!exists) {
263 * return;
264 * }
265 *
266 * // The file exists, and data could be read from it here.
267 * }
268 *
269 * nsresult MyFunc4(nsIFile& aFile) {
270 * bool exists;
271 * nsresult rv = aFile.Exists(&exists);
272 * if (NS_WARN_IF(NS_FAILED(rv)) {
273 * NS_WARNING("The Exists call failed!");
274 * return rv;
275 * }
276 * if (NS_WARN_IF(!exists) {
277 * NS_WARNING("The file doesn't exist!");
278 * return NS_ERROR_FAILURE;
279 * }
280 *
281 * // The file exists, and data could be read from it here.
282 *
283 * return NS_OK;
284 * }
285 *
286 * nsresult MyFunc5(nsIFile& aFile) {
287 * bool exists;
288 * nsresult rv = aFile.Exists(&exists);
289 * if (NS_WARN_IF(NS_FAILED(rv)) {
290 * return rv;
291 * }
292 * if (exists) {
293 * // The file exists, and data could be read from it here.
294 * } else {
295 * return NS_ERROR_FAILURE;
296 * }
297 *
298 * return NS_OK;
299 * }
300 *
301 * nsresult MyFunc6(nsIFile& aFile) {
302 * bool exists;
303 * nsresult rv = aFile.Exists(&exists);
304 * if (NS_WARN_IF(NS_FAILED(rv)) {
305 * return rv;
306 * }
307 * if (exists) {
308 * // The file exists, and data could be read from it here.
309 * } else {
310 * NS_WARNING("The file doesn't exist!");
311 * return NS_ERROR_FAILURE;
312 * }
313 *
314 * return NS_OK;
315 * }
316 *
317 * 4. Using NS_ENSURE_* macros
318 *
319 * Mainly:
320 * - NS_ENSURE_SUCCESS
321 * - NS_ENSURE_SUCCESS_VOID
322 * - NS_ENSURE_TRUE
323 * - NS_ENSURE_TRUE_VOID
324 *
325 * Typical use cases:
326 *
327 * nsresult MyFunc1(nsIFile& aFile) {
328 * bool exists;
329 * nsresult rv = aFile.Exists(&exists);
330 * NS_ENSURE_SUCCESS(rv, rv);
331 * NS_ENSURE_TRUE(exists, NS_ERROR_FAILURE);
332 *
333 * // The file exists, and data could be read from it here.
334 *
335 * return NS_OK;
336 * }
337 *
338 * nsresult MyFunc2(nsIFile& aFile) {
339 * bool exists;
340 * nsresult rv = aFile.Exists(&exists);
341 * NS_ENSURE_SUCCESS(rv, NS_ERROR_UNEXPECTED);
342 * NS_ENSURE_TRUE(exists, NS_ERROR_UNEXPECTED);
343 *
344 * // The file exists, and data could be read from it here.
345 *
346 * return NS_OK;
347 * }
348 *
349 * void MyFunc3(nsIFile& aFile) {
350 * bool exists;
351 * nsresult rv = aFile.Exists(&exists);
352 * NS_ENSURE_SUCCESS_VOID(rv);
353 * NS_ENSURE_TRUE_VOID(exists);
354 *
355 * // The file exists, and data could be read from it here.
356 * }
357 *
358 * nsresult MyFunc4(nsIFile& aFile) {
359 * // NS_ENSURE_SUCCESS/NS_ENSURE_TRUE can't run an additional cleanup
360 * // function
361 *
362 * return NS_OK;
363 * }
364 *
365 * nsresult MyFunc5(nsIFile& aFile) {
366 * bool exists;
367 * nsresult rv = aFile.Exists(&exists);
368 * NS_ENSURE_SUCCESS(rv, rv);
369 * if (exists) {
370 * // The file exists, and data could be read from it here.
371 * } else {
372 * NS_ENSURE_TRUE(false, NS_ERROR_FAILURE);
373 * }
374 *
375 * return NS_OK;
376 * }
377 *
378 * nsresult MyFunc6(nsIFile& aFile) {
379 * // NS_ENSURE_TRUE can't run an additional cleanup function
380 *
381 * return NS_OK;
382 * }
383 *
384 * QM_TRY/QM_TRY_UNWRAP/QM_TRY_INSPECT is like MOZ_TRY but if an
385 * error occurs it additionally calls a generic function HandleError to handle
386 * the error and it can be used to return custom return values as well and even
387 * call an additional cleanup function.
388 * HandleError currently only warns in debug builds, it will report to the
389 * browser console and telemetry in the future.
390 * The other advantage of QM_TRY/QM_TRY_UNWRAP/QM_TRY_INSPECT is that a local
391 * nsresult is not needed at all in all cases, all calls can be wrapped
392 * directly. If an error occurs, the warning contains a concrete call instead
393 * of the rv local variable. For example:
394 *
395 * 1. WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005
396 * (NS_ERROR_FAILURE): file XYZ, line N
397 *
398 * 2. WARNING: 'NS_FAILED(rv)', file XYZ, line N
399 *
400 * 3. Nothing (MOZ_TRY doesn't warn)
401 *
402 * 4. WARNING: Error: 'aFile.Exists(&exists)', file XYZ, line N
403 *
404 * QM_TRY_RETURN is a supplementary macro for cases when the result's success
405 * value can be directly returned (instead of assigning to a variable as in the
406 * QM_TRY_UNWRAP/QM_TRY_INSPECT case).
407 *
408 * QM_FAIL is a supplementary macro for cases when an error needs to be
409 * returned without evaluating an expression. It's possible to write
410 * QM_TRY(OkIf(false), NS_ERROR_FAILURE), but QM_FAIL(NS_ERROR_FAILURE) looks
411 * more straightforward.
412 *
413 * It's highly recommended to use
414 * QM_TRY/QM_TRY_UNWRAP/QM_TRY_INSPECT/QM_TRY_RETURN/QM_FAIL in new code for
415 * quota manager and quota clients. Existing code should be incrementally
416 * converted as needed.
417 *
418 * QM_TRY_VOID/QM_TRY_UNWRAP_VOID/QM_TRY_INSPECT_VOID/QM_FAIL_VOID is not
419 * defined on purpose since it's possible to use
420 * QM_TRY/QM_TRY_UNWRAP/QM_TRY_INSPECT/QM_FAIL even in void functions.
421 * However, QM_TRY(Task(), ) would look odd so it's recommended to use a dummy
422 * define QM_VOID that evaluates to nothing instead: QM_TRY(Task(), QM_VOID)
423 *
424 * Custom return values can be static or dynamically generated using functions
425 * with one of these signatures:
426 * auto(const char* aFunc, const char* aExpr);
427 * auto(const char* aFunc, const T& aRv);
428 * auto(const T& aRc);
429 */
430
431#define QM_VOID
432
433#define QM_PROPAGATEErr(tryTempError) Err(tryTempError)
434
435namespace mozilla::dom::quota::detail {
436
437struct IpcFailCustomRetVal {
438 explicit IpcFailCustomRetVal(
439 mozilla::NotNull<mozilla::ipc::IProtocol*> aActor)
440 : mActor(aActor) {}
441
442 template <size_t NFunc, size_t NExpr>
443 auto operator()(const char (&aFunc)[NFunc],
444 const char (&aExpr)[NExpr]) const {
445 return mozilla::Err(mozilla::ipc::IPCResult::Fail(mActor, aFunc, aExpr));
446 }
447
448 mozilla::NotNull<mozilla::ipc::IProtocol*> mActor;
449};
450
451} // namespace mozilla::dom::quota::detail
452
453#define QM_IPC_FAIL(actor)mozilla::dom::quota::detail::IpcFailCustomRetVal(mozilla::WrapNotNull
(actor))
\
454 mozilla::dom::quota::detail::IpcFailCustomRetVal(mozilla::WrapNotNull(actor))
455
456#ifdef DEBUG1
457# define QM_ASSERT_UNREACHABLE[](const char*, const char*) -> ::mozilla::GenericErrorResult
<nsresult> { do { do { } while (false); MOZ_ReportCrash
("" "Should never be reached.", "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 457); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 457); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }
\
458 [](const char*, const char*) -> ::mozilla::GenericErrorResult<nsresult> { \
459 MOZ_CRASH("Should never be reached.")do { do { } while (false); MOZ_ReportCrash("" "Should never be reached."
, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 459); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 459); __attribute__((nomerge
)) ::abort(); } while (false); } while (false)
; \
460 }
461
462# define QM_ASSERT_UNREACHABLE_VOID[](const char*, const char*) { do { do { } while (false); MOZ_ReportCrash
("" "Should never be reached.", "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 462); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 462); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }
\
463 [](const char*, const char*) { MOZ_CRASH("Should never be reached.")do { do { } while (false); MOZ_ReportCrash("" "Should never be reached."
, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 463); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 463); __attribute__((nomerge
)) ::abort(); } while (false); } while (false)
; }
464#endif
465
466#ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED1
467# define QM_DIAGNOSTIC_ASSERT_UNREACHABLE[](const char*, const char*) -> ::mozilla::GenericErrorResult
<nsresult> { do { do { } while (false); MOZ_ReportCrash
("" "Should never be reached.", "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 467); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 467); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }
\
468 [](const char*, const char*) -> ::mozilla::GenericErrorResult<nsresult> { \
469 MOZ_CRASH("Should never be reached.")do { do { } while (false); MOZ_ReportCrash("" "Should never be reached."
, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 469); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 469); __attribute__((nomerge
)) ::abort(); } while (false); } while (false)
; \
470 }
471
472# define QM_DIAGNOSTIC_ASSERT_UNREACHABLE_VOID[](const char*, const char*) { do { do { } while (false); MOZ_ReportCrash
("" "Should never be reached.", "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 472); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 472); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }
\
473 [](const char*, const char*) { MOZ_CRASH("Should never be reached.")do { do { } while (false); MOZ_ReportCrash("" "Should never be reached."
, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 473); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 473); __attribute__((nomerge
)) ::abort(); } while (false); } while (false)
; }
474#endif
475
476#define QM_NO_CLEANUP[](const auto&) {} [](const auto&) {}
477
478// QM_MISSING_ARGS and QM_HANDLE_ERROR macros are implementation details of
479// QM_TRY/QM_TRY_UNWRAP/QM_TRY_INSPECT/QM_FAIL and shouldn't be used directly.
480
481#define QM_MISSING_ARGS(...)do { static_assert(false, "Did you forget arguments?"); } while
(0)
\
482 do { \
483 static_assert(false, "Did you forget arguments?"); \
484 } while (0)
485
486#ifdef DEBUG1
487# define QM_HANDLE_ERROR(expr, error, severity)HandleError("expr", error, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 487, severity)
\
488 HandleError(#expr, error, __FILE__"/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h", __LINE__488, severity)
489#else
490# define QM_HANDLE_ERROR(expr, error, severity)HandleError("expr", error, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 490, severity)
\
491 HandleError("Unavailable", error, __FILE__"/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h", __LINE__491, severity)
492#endif
493
494#ifdef DEBUG1
495# define QM_HANDLE_ERROR_RETURN_NOTHING(expr, error, severity)HandleErrorReturnNothing("expr", error, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 495, severity)
\
496 HandleErrorReturnNothing(#expr, error, __FILE__"/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h", __LINE__496, severity)
497#else
498# define QM_HANDLE_ERROR_RETURN_NOTHING(expr, error, severity)HandleErrorReturnNothing("expr", error, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 498, severity)
\
499 HandleErrorReturnNothing("Unavailable", error, __FILE__"/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h", __LINE__499, severity)
500#endif
501
502#ifdef DEBUG1
503# define QM_HANDLE_ERROR_WITH_CLEANUP_RETURN_NOTHING(expr, error, severity, \HandleErrorWithCleanupReturnNothing("expr", error, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 504, severity, cleanup)
504 cleanup)HandleErrorWithCleanupReturnNothing("expr", error, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 504, severity, cleanup)
\
505 HandleErrorWithCleanupReturnNothing(#expr, error, __FILE__"/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h", __LINE__505, \
506 severity, cleanup)
507#else
508# define QM_HANDLE_ERROR_WITH_CLEANUP_RETURN_NOTHING(expr, error, severity, \HandleErrorWithCleanupReturnNothing("expr", error, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 509, severity, cleanup)
509 cleanup)HandleErrorWithCleanupReturnNothing("expr", error, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 509, severity, cleanup)
\
510 HandleErrorWithCleanupReturnNothing("Unavailable", error, __FILE__"/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h", \
511 __LINE__511, severity, cleanup)
512#endif
513
514// Handles the case when QM_VOID is passed as a custom return value.
515#define QM_HANDLE_CUSTOM_RET_VAL_HELPER0(func, expr, error)
516
517#define QM_HANDLE_CUSTOM_RET_VAL_HELPER1(func, expr, error, customRetVal)mozilla::dom::quota::HandleCustomRetVal(func, "expr", error, customRetVal
)
\
518 mozilla::dom::quota::HandleCustomRetVal(func, #expr, error, customRetVal)
519
520#define QM_HANDLE_CUSTOM_RET_VAL_GLUE(a, b)a b a b
521
522#define QM_HANDLE_CUSTOM_RET_VAL(...)mozilla::dom::quota::HandleCustomRetVal(..., "MOZ_ARG_2", MOZ_ARG_3
, MOZ_ARGS_AFTER_3)
\
523 QM_HANDLE_CUSTOM_RET_VAL_GLUE( \mozilla::dom::quota::HandleCustomRetVal(__VA_ARGS__, "MOZ_ARG_2"
, MOZ_ARG_3, MOZ_ARGS_AFTER_3)
524 MOZ_PASTE_PREFIX_AND_ARG_COUNT(QM_HANDLE_CUSTOM_RET_VAL_HELPER, \mozilla::dom::quota::HandleCustomRetVal(__VA_ARGS__, "MOZ_ARG_2"
, MOZ_ARG_3, MOZ_ARGS_AFTER_3)
525 MOZ_ARGS_AFTER_3(__VA_ARGS__)), \mozilla::dom::quota::HandleCustomRetVal(__VA_ARGS__, "MOZ_ARG_2"
, MOZ_ARG_3, MOZ_ARGS_AFTER_3)
526 (MOZ_ARG_1(__VA_ARGS__), MOZ_ARG_2(__VA_ARGS__), \mozilla::dom::quota::HandleCustomRetVal(__VA_ARGS__, "MOZ_ARG_2"
, MOZ_ARG_3, MOZ_ARGS_AFTER_3)
527 MOZ_ARG_3(__VA_ARGS__) MOZ_ADD_ARGS(MOZ_ARGS_AFTER_3(__VA_ARGS__))))mozilla::dom::quota::HandleCustomRetVal(__VA_ARGS__, "MOZ_ARG_2"
, MOZ_ARG_3, MOZ_ARGS_AFTER_3)
528
529// QM_TRY_PROPAGATE_ERR, QM_TRY_CUSTOM_RET_VAL,
530// QM_TRY_CUSTOM_RET_VAL_WITH_CLEANUP and QM_TRY_GLUE macros are implementation
531// details of QM_TRY and shouldn't be used directly.
532
533// Handles the two arguments case when the error is propagated.
534#define QM_TRY_PROPAGATE_ERR(tryResult, expr)auto tryResult = (expr); static_assert(std::is_empty_v<typename
decltype(tryResult)::ok_type>); if ((__builtin_expect(!!(
tryResult.isErr()), 0))) { mozilla::dom::quota::HandleError("expr"
, tryResult.inspectErr(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 534, mozilla::dom::quota::Severity::Error); return tryResult
.propagateErr(); }
\
535 auto tryResult = (expr); \
536 static_assert(std::is_empty_v<typename decltype(tryResult)::ok_type>); \
537 if (MOZ_UNLIKELY(tryResult.isErr())(__builtin_expect(!!(tryResult.isErr()), 0))) { \
538 mozilla::dom::quota::QM_HANDLE_ERROR( \HandleError("expr", tryResult.inspectErr(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 539, mozilla::dom::quota::Severity::Error)
539 expr, tryResult.inspectErr(), mozilla::dom::quota::Severity::Error)HandleError("expr", tryResult.inspectErr(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 539, mozilla::dom::quota::Severity::Error)
; \
540 return tryResult.propagateErr(); \
541 }
542
543// Handles the three arguments case when a custom return value needs to be
544// returned
545#define QM_TRY_CUSTOM_RET_VAL(tryResult, expr, customRetVal)auto tryResult = (expr); static_assert(std::is_empty_v<typename
decltype(tryResult)::ok_type>); if ((__builtin_expect(!!(
tryResult.isErr()), 0))) { [[maybe_unused]] auto tryTempError
= tryResult.unwrapErr(); mozilla::dom::quota::HandleError("expr"
, tryTempError, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 545, mozilla::dom::quota::Severity::Error); [[maybe_unused]
] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "expr", tryTempError, customRetVal
); }
\
546 auto tryResult = (expr); \
547 static_assert(std::is_empty_v<typename decltype(tryResult)::ok_type>); \
548 if (MOZ_UNLIKELY(tryResult.isErr())(__builtin_expect(!!(tryResult.isErr()), 0))) { \
549 [[maybe_unused]] auto tryTempError = tryResult.unwrapErr(); \
550 mozilla::dom::quota::QM_HANDLE_ERROR( \HandleError("expr", tryTempError, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 551, mozilla::dom::quota::Severity::Error)
551 expr, tryTempError, mozilla::dom::quota::Severity::Error)HandleError("expr", tryTempError, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 551, mozilla::dom::quota::Severity::Error)
; \
552 [[maybe_unused]] constexpr const auto& func = __func__; \
553 return QM_HANDLE_CUSTOM_RET_VAL(func, expr, tryTempError, customRetVal)mozilla::dom::quota::HandleCustomRetVal(func, "expr", tryTempError
, customRetVal)
; \
554 }
555
556// Handles the four arguments case when a cleanup function needs to be called
557// before a custom return value is returned
558#define QM_TRY_CUSTOM_RET_VAL_WITH_CLEANUP(tryResult, expr, customRetVal, \auto tryResult = (expr); static_assert(std::is_empty_v<typename
decltype(tryResult)::ok_type>); if ((__builtin_expect(!!(
tryResult.isErr()), 0))) { auto tryTempError = tryResult.unwrapErr
(); mozilla::dom::quota::HandleError("expr", tryTempError, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 559, mozilla::dom::quota::Severity::Error); cleanup(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "expr"
, tryTempError, customRetVal); }
559 cleanup)auto tryResult = (expr); static_assert(std::is_empty_v<typename
decltype(tryResult)::ok_type>); if ((__builtin_expect(!!(
tryResult.isErr()), 0))) { auto tryTempError = tryResult.unwrapErr
(); mozilla::dom::quota::HandleError("expr", tryTempError, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 559, mozilla::dom::quota::Severity::Error); cleanup(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "expr"
, tryTempError, customRetVal); }
\
560 auto tryResult = (expr); \
561 static_assert(std::is_empty_v<typename decltype(tryResult)::ok_type>); \
562 if (MOZ_UNLIKELY(tryResult.isErr())(__builtin_expect(!!(tryResult.isErr()), 0))) { \
563 auto tryTempError = tryResult.unwrapErr(); \
564 mozilla::dom::quota::QM_HANDLE_ERROR( \HandleError("expr", tryTempError, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 565, mozilla::dom::quota::Severity::Error)
565 expr, tryTempError, mozilla::dom::quota::Severity::Error)HandleError("expr", tryTempError, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 565, mozilla::dom::quota::Severity::Error)
; \
566 cleanup(tryTempError); \
567 [[maybe_unused]] constexpr const auto& func = __func__; \
568 return QM_HANDLE_CUSTOM_RET_VAL(func, expr, tryTempError, customRetVal)mozilla::dom::quota::HandleCustomRetVal(func, "expr", tryTempError
, customRetVal)
; \
569 }
570
571#define QM_TRY_CUSTOM_RET_VAL_WITH_CLEANUP_AND_PREDICATE( \auto tryResult = (expr); static_assert(std::is_empty_v<typename
decltype(tryResult)::ok_type>); if ((__builtin_expect(!!(
tryResult.isErr()), 0))) { auto tryTempError = tryResult.unwrapErr
(); if (predicate()) { mozilla::dom::quota::HandleError("expr"
, tryTempError, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 572, mozilla::dom::quota::Severity::Error); } cleanup(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "expr"
, tryTempError, customRetVal); }
572 tryResult, expr, customRetVal, cleanup, predicate)auto tryResult = (expr); static_assert(std::is_empty_v<typename
decltype(tryResult)::ok_type>); if ((__builtin_expect(!!(
tryResult.isErr()), 0))) { auto tryTempError = tryResult.unwrapErr
(); if (predicate()) { mozilla::dom::quota::HandleError("expr"
, tryTempError, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 572, mozilla::dom::quota::Severity::Error); } cleanup(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "expr"
, tryTempError, customRetVal); }
\
573 auto tryResult = (expr); \
574 static_assert(std::is_empty_v<typename decltype(tryResult)::ok_type>); \
575 if (MOZ_UNLIKELY(tryResult.isErr())(__builtin_expect(!!(tryResult.isErr()), 0))) { \
576 auto tryTempError = tryResult.unwrapErr(); \
577 if (predicate()) { \
578 mozilla::dom::quota::QM_HANDLE_ERROR( \HandleError("expr", tryTempError, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 579, mozilla::dom::quota::Severity::Error)
579 expr, tryTempError, mozilla::dom::quota::Severity::Error)HandleError("expr", tryTempError, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 579, mozilla::dom::quota::Severity::Error)
; \
580 } \
581 cleanup(tryTempError); \
582 [[maybe_unused]] constexpr const auto& func = __func__; \
583 return QM_HANDLE_CUSTOM_RET_VAL(func, expr, tryTempError, customRetVal)mozilla::dom::quota::HandleCustomRetVal(func, "expr", tryTempError
, customRetVal)
; \
584 }
585
586// Chooses the final implementation macro for given argument count.
587// This could use MOZ_PASTE_PREFIX_AND_ARG_COUNT, but explicit named suffxes
588// read slightly better than plain numbers.
589// See also
590// https://stackoverflow.com/questions/3046889/optional-parameters-with-c-macros
591#define QM_TRY_META(...){do { static_assert(false, "Did you forget arguments?"); } while
(0)}
\
592 {MOZ_ARG_7(, ##__VA_ARGS__, \do { static_assert(false, "Did you forget arguments?"); } while
(0)
593 QM_TRY_CUSTOM_RET_VAL_WITH_CLEANUP_AND_PREDICATE(__VA_ARGS__), \do { static_assert(false, "Did you forget arguments?"); } while
(0)
594 QM_TRY_CUSTOM_RET_VAL_WITH_CLEANUP(__VA_ARGS__), \do { static_assert(false, "Did you forget arguments?"); } while
(0)
595 QM_TRY_CUSTOM_RET_VAL(__VA_ARGS__), \do { static_assert(false, "Did you forget arguments?"); } while
(0)
596 QM_TRY_PROPAGATE_ERR(__VA_ARGS__), QM_MISSING_ARGS(__VA_ARGS__), \do { static_assert(false, "Did you forget arguments?"); } while
(0)
597 QM_MISSING_ARGS(__VA_ARGS__))do { static_assert(false, "Did you forget arguments?"); } while
(0)
}
598
599// Generates unique variable name. This extra internal macro (along with
600// __COUNTER__) allows nesting of the final macro.
601#define QM_TRY_GLUE(...){auto tryResult1636 = (...); static_assert(std::is_empty_v<
typename decltype(tryResult1636)::ok_type>); if ((__builtin_expect
(!!(tryResult1636.isErr()), 0))) { mozilla::dom::quota::HandleError
("...", tryResult1636.inspectErr(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 601, mozilla::dom::quota::Severity::Error); return tryResult1636
.propagateErr(); }}
QM_TRY_META(MOZ_UNIQUE_VAR(tryResult), ##__VA_ARGS__){auto tryResult1637 = (##__VA_ARGS__); static_assert(std::is_empty_v
<typename decltype(tryResult1637)::ok_type>); if ((__builtin_expect
(!!(tryResult1637.isErr()), 0))) { mozilla::dom::quota::HandleError
("##__VA_ARGS__", tryResult1637.inspectErr(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 601, mozilla::dom::quota::Severity::Error); return tryResult1637
.propagateErr(); }}
602
603/**
604 * QM_TRY(expr[, customRetVal, cleanup, predicate]) is the C++ equivalent of
605 * Rust's `try!(expr);`. First, it evaluates expr, which must produce a Result
606 * value with empty ok_type. On Success, it does nothing else. On error, it
607 * calls HandleError (conditionally if the fourth argument was passed) and an
608 * additional cleanup function (if the third argument was passed) and finally
609 * returns an error Result from the enclosing function or a custom return value
610 * (if the second argument was passed).
611 */
612#define QM_TRY(...){auto tryResult1638 = (...); static_assert(std::is_empty_v<
typename decltype(tryResult1638)::ok_type>); if ((__builtin_expect
(!!(tryResult1638.isErr()), 0))) { mozilla::dom::quota::HandleError
("...", tryResult1638.inspectErr(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 612, mozilla::dom::quota::Severity::Error); return tryResult1638
.propagateErr(); }}
QM_TRY_GLUE(__VA_ARGS__){auto tryResult1639 = (__VA_ARGS__); static_assert(std::is_empty_v
<typename decltype(tryResult1639)::ok_type>); if ((__builtin_expect
(!!(tryResult1639.isErr()), 0))) { mozilla::dom::quota::HandleError
("__VA_ARGS__", tryResult1639.inspectErr(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 612, mozilla::dom::quota::Severity::Error); return tryResult1639
.propagateErr(); }}
613
614// QM_TRY_ASSIGN_PROPAGATE_ERR, QM_TRY_ASSIGN_CUSTOM_RET_VAL,
615// QM_TRY_ASSIGN_CUSTOM_RET_VAL_WITH_CLEANUP and QM_TRY_ASSIGN_GLUE macros are
616// implementation details of QM_TRY_UNWRAP/QM_TRY_INSPECT and shouldn't be used
617// directly.
618
619// Handles the four arguments case when the error is propagated.
620#define QM_TRY_ASSIGN_PROPAGATE_ERR(tryResult, accessFunction, target, expr)auto tryResult = (expr); if ((__builtin_expect(!!(tryResult.isErr
()), 0))) { mozilla::dom::quota::HandleError("expr", tryResult
.inspectErr(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 620, mozilla::dom::quota::Severity::Error); return tryResult
.propagateErr(); } target = tryResult.accessFunction();
\
621 auto tryResult = (expr); \
622 if (MOZ_UNLIKELY(tryResult.isErr())(__builtin_expect(!!(tryResult.isErr()), 0))) { \
623 mozilla::dom::quota::QM_HANDLE_ERROR( \HandleError("expr", tryResult.inspectErr(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 624, mozilla::dom::quota::Severity::Error)
624 expr, tryResult.inspectErr(), mozilla::dom::quota::Severity::Error)HandleError("expr", tryResult.inspectErr(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 624, mozilla::dom::quota::Severity::Error)
; \
625 return tryResult.propagateErr(); \
626 } \
627 MOZ_REMOVE_PAREN(target)target = tryResult.accessFunction();
628
629// Handles the five arguments case when a custom return value needs to be
630// returned
631#define QM_TRY_ASSIGN_CUSTOM_RET_VAL(tryResult, accessFunction, target, expr, \auto tryResult = (expr); if ((__builtin_expect(!!(tryResult.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult.unwrapErr
(); mozilla::dom::quota::HandleError("expr", tryTempError, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 632, mozilla::dom::quota::Severity::Error); [[maybe_unused]
] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "expr", tryTempError, customRetVal
); } target = tryResult.accessFunction();
632 customRetVal)auto tryResult = (expr); if ((__builtin_expect(!!(tryResult.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult.unwrapErr
(); mozilla::dom::quota::HandleError("expr", tryTempError, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 632, mozilla::dom::quota::Severity::Error); [[maybe_unused]
] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "expr", tryTempError, customRetVal
); } target = tryResult.accessFunction();
\
633 auto tryResult = (expr); \
634 if (MOZ_UNLIKELY(tryResult.isErr())(__builtin_expect(!!(tryResult.isErr()), 0))) { \
635 [[maybe_unused]] auto tryTempError = tryResult.unwrapErr(); \
636 mozilla::dom::quota::QM_HANDLE_ERROR( \HandleError("expr", tryTempError, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 637, mozilla::dom::quota::Severity::Error)
637 expr, tryTempError, mozilla::dom::quota::Severity::Error)HandleError("expr", tryTempError, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 637, mozilla::dom::quota::Severity::Error)
; \
638 [[maybe_unused]] constexpr const auto& func = __func__; \
639 return QM_HANDLE_CUSTOM_RET_VAL(func, expr, tryTempError, customRetVal)mozilla::dom::quota::HandleCustomRetVal(func, "expr", tryTempError
, customRetVal)
; \
640 } \
641 MOZ_REMOVE_PAREN(target)target = tryResult.accessFunction();
642
643// Handles the six arguments case when a cleanup function needs to be called
644// before a custom return value is returned
645#define QM_TRY_ASSIGN_CUSTOM_RET_VAL_WITH_CLEANUP( \auto tryResult = (expr); if ((__builtin_expect(!!(tryResult.isErr
()), 0))) { auto tryTempError = tryResult.unwrapErr(); mozilla
::dom::quota::HandleError("expr", tryTempError, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 646, mozilla::dom::quota::Severity::Error); cleanup(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "expr"
, tryTempError, customRetVal); } target = tryResult.accessFunction
();
646 tryResult, accessFunction, target, expr, customRetVal, cleanup)auto tryResult = (expr); if ((__builtin_expect(!!(tryResult.isErr
()), 0))) { auto tryTempError = tryResult.unwrapErr(); mozilla
::dom::quota::HandleError("expr", tryTempError, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 646, mozilla::dom::quota::Severity::Error); cleanup(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "expr"
, tryTempError, customRetVal); } target = tryResult.accessFunction
();
\
647 auto tryResult = (expr); \
648 if (MOZ_UNLIKELY(tryResult.isErr())(__builtin_expect(!!(tryResult.isErr()), 0))) { \
649 auto tryTempError = tryResult.unwrapErr(); \
650 mozilla::dom::quota::QM_HANDLE_ERROR( \HandleError("expr", tryTempError, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 651, mozilla::dom::quota::Severity::Error)
651 expr, tryTempError, mozilla::dom::quota::Severity::Error)HandleError("expr", tryTempError, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 651, mozilla::dom::quota::Severity::Error)
; \
652 cleanup(tryTempError); \
653 [[maybe_unused]] constexpr const auto& func = __func__; \
654 return QM_HANDLE_CUSTOM_RET_VAL(func, expr, tryTempError, customRetVal)mozilla::dom::quota::HandleCustomRetVal(func, "expr", tryTempError
, customRetVal)
; \
655 } \
656 MOZ_REMOVE_PAREN(target)target = tryResult.accessFunction();
657
658// Chooses the final implementation macro for given argument count.
659// See also the comment for QM_TRY_META.
660#define QM_TRY_ASSIGN_META(...)do { static_assert(false, "Did you forget arguments?"); } while
(0)
\
661 MOZ_ARG_8(, ##__VA_ARGS__, \do { static_assert(false, "Did you forget arguments?"); } while
(0)
662 QM_TRY_ASSIGN_CUSTOM_RET_VAL_WITH_CLEANUP(__VA_ARGS__), \do { static_assert(false, "Did you forget arguments?"); } while
(0)
663 QM_TRY_ASSIGN_CUSTOM_RET_VAL(__VA_ARGS__), \do { static_assert(false, "Did you forget arguments?"); } while
(0)
664 QM_TRY_ASSIGN_PROPAGATE_ERR(__VA_ARGS__), \do { static_assert(false, "Did you forget arguments?"); } while
(0)
665 QM_MISSING_ARGS(__VA_ARGS__), QM_MISSING_ARGS(__VA_ARGS__), \do { static_assert(false, "Did you forget arguments?"); } while
(0)
666 QM_MISSING_ARGS(__VA_ARGS__), QM_MISSING_ARGS(__VA_ARGS__))do { static_assert(false, "Did you forget arguments?"); } while
(0)
667
668// Generates unique variable name. This extra internal macro (along with
669// __COUNTER__) allows nesting of the final macro.
670#define QM_TRY_ASSIGN_GLUE(accessFunction, ...)do { static_assert(false, "Did you forget arguments?"); } while
(0)
\
671 QM_TRY_ASSIGN_META(MOZ_UNIQUE_VAR(tryResult), accessFunction, ##__VA_ARGS__)do { static_assert(false, "Did you forget arguments?"); } while
(0)
672
673/**
674 * QM_TRY_UNWRAP(target, expr[, customRetVal, cleanup]) is the C++ equivalent of
675 * Rust's `target = try!(expr);`. First, it evaluates expr, which must produce
676 * a Result value. On success, the result's success value is unwrapped and
677 * assigned to target. On error, it calls HandleError and an additional cleanup
678 * function (if the fourth argument was passed) and finally returns the error
679 * result or a custom return value (if the third argument was passed). |target|
680 * must be an lvalue.
681 */
682#define QM_TRY_UNWRAP(...)do { static_assert(false, "Did you forget arguments?"); } while
(0)
QM_TRY_ASSIGN_GLUE(unwrap, __VA_ARGS__)do { static_assert(false, "Did you forget arguments?"); } while
(0)
683
684/**
685 * QM_TRY_INSPECT is similar to QM_TRY_UNWRAP, but it does not unwrap a success
686 * value, but inspects it and binds it to the target. It can therefore only be
687 * used when the target declares a const&. In general,
688 *
689 * QM_TRY_INSPECT(const auto &target, DoSomething())
690 *
691 * should be preferred over
692 *
693 * QM_TRY_UNWRAP(const auto target, DoSomething())
694 *
695 * as it avoids unnecessary moves/copies.
696 */
697#define QM_TRY_INSPECT(...)do { static_assert(false, "Did you forget arguments?"); } while
(0)
QM_TRY_ASSIGN_GLUE(inspect, __VA_ARGS__)do { static_assert(false, "Did you forget arguments?"); } while
(0)
698
699// QM_TRY_RETURN_PROPAGATE_ERR, QM_TRY_RETURN_CUSTOM_RET_VAL,
700// QM_TRY_RETURN_CUSTOM_RET_VAL_WITH_CLEANUP and QM_TRY_RETURN_GLUE macros are
701// implementation details of QM_TRY_RETURN and shouldn't be used directly.
702
703// Handles the two arguments case when the error is (also) propagated.
704// Note that this deliberately uses a single return statement without going
705// through unwrap/unwrapErr/propagateErr, so that this does not prevent NRVO or
706// tail call optimizations when possible.
707#define QM_TRY_RETURN_PROPAGATE_ERR(tryResult, expr)auto tryResult = (expr); if ((__builtin_expect(!!(tryResult.isErr
()), 0))) { mozilla::dom::quota::HandleError("expr", tryResult
.inspectErr(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 707, mozilla::dom::quota::Severity::Error); } return tryResult
;
\
708 auto tryResult = (expr); \
709 if (MOZ_UNLIKELY(tryResult.isErr())(__builtin_expect(!!(tryResult.isErr()), 0))) { \
710 mozilla::dom::quota::QM_HANDLE_ERROR( \HandleError("expr", tryResult.inspectErr(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 711, mozilla::dom::quota::Severity::Error)
711 expr, tryResult.inspectErr(), mozilla::dom::quota::Severity::Error)HandleError("expr", tryResult.inspectErr(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 711, mozilla::dom::quota::Severity::Error)
; \
712 } \
713 return tryResult;
714
715// Handles the three arguments case when a custom return value needs to be
716// returned
717#define QM_TRY_RETURN_CUSTOM_RET_VAL(tryResult, expr, customRetVal)auto tryResult = (expr); if ((__builtin_expect(!!(tryResult.isErr
()), 0))) { [[maybe_unused]] auto tryTempError = tryResult.unwrapErr
(); mozilla::dom::quota::HandleError("expr", tryResult.inspectErr
(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 717, mozilla::dom::quota::Severity::Error); [[maybe_unused]
] constexpr const auto& func = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "expr", tryTempError, customRetVal
); } return tryResult.unwrap();
\
718 auto tryResult = (expr); \
719 if (MOZ_UNLIKELY(tryResult.isErr())(__builtin_expect(!!(tryResult.isErr()), 0))) { \
720 [[maybe_unused]] auto tryTempError = tryResult.unwrapErr(); \
721 mozilla::dom::quota::QM_HANDLE_ERROR( \HandleError("expr", tryResult.inspectErr(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 722, mozilla::dom::quota::Severity::Error)
722 expr, tryResult.inspectErr(), mozilla::dom::quota::Severity::Error)HandleError("expr", tryResult.inspectErr(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 722, mozilla::dom::quota::Severity::Error)
; \
723 [[maybe_unused]] constexpr const auto& func = __func__; \
724 return QM_HANDLE_CUSTOM_RET_VAL(func, expr, tryTempError, customRetVal)mozilla::dom::quota::HandleCustomRetVal(func, "expr", tryTempError
, customRetVal)
; \
725 } \
726 return tryResult.unwrap();
727
728// Handles the four arguments case when a cleanup function needs to be called
729// before a custom return value is returned
730#define QM_TRY_RETURN_CUSTOM_RET_VAL_WITH_CLEANUP(tryResult, expr, \auto tryResult = (expr); if ((__builtin_expect(!!(tryResult.isErr
()), 0))) { auto tryTempError = tryResult.unwrapErr(); mozilla
::dom::quota::HandleError("expr", tryTempError, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 731, mozilla::dom::quota::Severity::Error); cleanup(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "expr"
, tryTempError, customRetVal); } return tryResult.unwrap();
731 customRetVal, cleanup)auto tryResult = (expr); if ((__builtin_expect(!!(tryResult.isErr
()), 0))) { auto tryTempError = tryResult.unwrapErr(); mozilla
::dom::quota::HandleError("expr", tryTempError, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 731, mozilla::dom::quota::Severity::Error); cleanup(tryTempError
); [[maybe_unused]] constexpr const auto& func = __func__
; return mozilla::dom::quota::HandleCustomRetVal(func, "expr"
, tryTempError, customRetVal); } return tryResult.unwrap();
\
732 auto tryResult = (expr); \
733 if (MOZ_UNLIKELY(tryResult.isErr())(__builtin_expect(!!(tryResult.isErr()), 0))) { \
734 auto tryTempError = tryResult.unwrapErr(); \
735 mozilla::dom::quota::QM_HANDLE_ERROR( \HandleError("expr", tryTempError, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 736, mozilla::dom::quota::Severity::Error)
736 expr, tryTempError, mozilla::dom::quota::Severity::Error)HandleError("expr", tryTempError, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 736, mozilla::dom::quota::Severity::Error)
; \
737 cleanup(tryTempError); \
738 [[maybe_unused]] constexpr const auto& func = __func__; \
739 return QM_HANDLE_CUSTOM_RET_VAL(func, expr, tryTempError, customRetVal)mozilla::dom::quota::HandleCustomRetVal(func, "expr", tryTempError
, customRetVal)
; \
740 } \
741 return tryResult.unwrap();
742
743// Chooses the final implementation macro for given argument count.
744// See also the comment for QM_TRY_META.
745#define QM_TRY_RETURN_META(...){do { static_assert(false, "Did you forget arguments?"); } while
(0)}
\
746 {MOZ_ARG_6(, ##__VA_ARGS__, \do { static_assert(false, "Did you forget arguments?"); } while
(0)
747 QM_TRY_RETURN_CUSTOM_RET_VAL_WITH_CLEANUP(__VA_ARGS__), \do { static_assert(false, "Did you forget arguments?"); } while
(0)
748 QM_TRY_RETURN_CUSTOM_RET_VAL(__VA_ARGS__), \do { static_assert(false, "Did you forget arguments?"); } while
(0)
749 QM_TRY_RETURN_PROPAGATE_ERR(__VA_ARGS__), \do { static_assert(false, "Did you forget arguments?"); } while
(0)
750 QM_MISSING_ARGS(__VA_ARGS__), QM_MISSING_ARGS(__VA_ARGS__))do { static_assert(false, "Did you forget arguments?"); } while
(0)
}
751
752// Generates unique variable name. This extra internal macro (along with
753// __COUNTER__) allows nesting of the final macro.
754#define QM_TRY_RETURN_GLUE(...){auto tryResult1646 = (...); if ((__builtin_expect(!!(tryResult1646
.isErr()), 0))) { mozilla::dom::quota::HandleError("...", tryResult1646
.inspectErr(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 754, mozilla::dom::quota::Severity::Error); } return tryResult1646
;}
\
755 QM_TRY_RETURN_META(MOZ_UNIQUE_VAR(tryResult), ##__VA_ARGS__){auto tryResult1647 = (##__VA_ARGS__); if ((__builtin_expect(
!!(tryResult1647.isErr()), 0))) { mozilla::dom::quota::HandleError
("##__VA_ARGS__", tryResult1647.inspectErr(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 755, mozilla::dom::quota::Severity::Error); } return tryResult1647
;}
756
757/**
758 * QM_TRY_RETURN(expr[, customRetVal, cleanup]) evaluates expr, which must
759 * produce a Result value. On success, the result's success value is returned.
760 * On error, it calls HandleError and an additional cleanup function (if the
761 * third argument was passed) and finally returns the error result or a custom
762 * return value (if the second argument was passed).
763 */
764#define QM_TRY_RETURN(...){auto tryResult1648 = (...); if ((__builtin_expect(!!(tryResult1648
.isErr()), 0))) { mozilla::dom::quota::HandleError("...", tryResult1648
.inspectErr(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 764, mozilla::dom::quota::Severity::Error); } return tryResult1648
;}
QM_TRY_RETURN_GLUE(__VA_ARGS__){auto tryResult1649 = (__VA_ARGS__); if ((__builtin_expect(!!
(tryResult1649.isErr()), 0))) { mozilla::dom::quota::HandleError
("__VA_ARGS__", tryResult1649.inspectErr(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 764, mozilla::dom::quota::Severity::Error); } return tryResult1649
;}
765
766// QM_FAIL_RET_VAL and QM_FAIL_RET_VAL_WITH_CLEANUP macros are implementation
767// details of QM_FAIL and shouldn't be used directly.
768
769// Handles the one argument case when just an error is returned
770#define QM_FAIL_RET_VAL(retVal)mozilla::dom::quota::HandleError("Failure", 0, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 770, mozilla::dom::quota::Severity::Error); return retVal;
\
771 mozilla::dom::quota::QM_HANDLE_ERROR(Failure, 0, \HandleError("Failure", 0, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 772, mozilla::dom::quota::Severity::Error)
772 mozilla::dom::quota::Severity::Error)HandleError("Failure", 0, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 772, mozilla::dom::quota::Severity::Error)
; \
773 return retVal;
774
775// Handles the two arguments case when a cleanup function needs to be called
776// before a return value is returned
777#define QM_FAIL_RET_VAL_WITH_CLEANUP(retVal, cleanup)mozilla::dom::quota::HandleError("Failure", 0, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 777, mozilla::dom::quota::Severity::Error); cleanup(); return
retVal;
\
778 mozilla::dom::quota::QM_HANDLE_ERROR(Failure, 0, \HandleError("Failure", 0, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 779, mozilla::dom::quota::Severity::Error)
779 mozilla::dom::quota::Severity::Error)HandleError("Failure", 0, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 779, mozilla::dom::quota::Severity::Error)
; \
780 cleanup(); \
781 return retVal;
782
783// Chooses the final implementation macro for given argument count.
784// See also the comment for QM_TRY_META.
785#define QM_FAIL_META(...)mozilla::dom::quota::HandleError("Failure", 0, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 785, mozilla::dom::quota::Severity::Error); return ...;
\
786 MOZ_ARG_4(, ##__VA_ARGS__, QM_FAIL_RET_VAL_WITH_CLEANUP(__VA_ARGS__), \mozilla::dom::quota::HandleError("Failure", 0, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 787, mozilla::dom::quota::Severity::Error); return __VA_ARGS__
;
787 QM_FAIL_RET_VAL(__VA_ARGS__), QM_MISSING_ARGS(__VA_ARGS__))mozilla::dom::quota::HandleError("Failure", 0, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 787, mozilla::dom::quota::Severity::Error); return __VA_ARGS__
;
788
789// This extra internal macro allows nesting of the final macro.
790#define QM_FAIL_GLUE(...)mozilla::dom::quota::HandleError("Failure", 0, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 790, mozilla::dom::quota::Severity::Error); return ...;
QM_FAIL_META(__VA_ARGS__)mozilla::dom::quota::HandleError("Failure", 0, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 790, mozilla::dom::quota::Severity::Error); return __VA_ARGS__
;
791
792/**
793 * QM_FAIL(retVal[, cleanup]) calls HandleError and an additional cleanup
794 * function (if the second argument was passed) and returns a return value.
795 */
796#define QM_FAIL(...)mozilla::dom::quota::HandleError("Failure", 0, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 796, mozilla::dom::quota::Severity::Error); return ...;
QM_FAIL_GLUE(__VA_ARGS__)mozilla::dom::quota::HandleError("Failure", 0, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 796, mozilla::dom::quota::Severity::Error); return __VA_ARGS__
;
797
798// QM_REPORTONLY_TRY, QM_REPORTONLY_TRY_WITH_CLEANUP, QM_REPORTONLY_TRY_GLUE
799// macros are implementation details of QM_WARNONLY_TRY/QM_INFOONLY_TRY and
800// shouldn't be used directly.
801
802// Handles the three arguments case when only a warning/info is reported.
803#define QM_REPORTONLY_TRY(tryResult, severity, expr)auto tryResult = (expr); static_assert(std::is_empty_v<typename
decltype(tryResult)::ok_type>); if ((__builtin_expect(!!(
tryResult.isErr()), 0))) { mozilla::dom::quota::HandleError("expr"
, tryResult.unwrapErr(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 803, mozilla::dom::quota::Severity::severity); }
\
804 auto tryResult = (expr); \
805 static_assert(std::is_empty_v<typename decltype(tryResult)::ok_type>); \
806 if (MOZ_UNLIKELY(tryResult.isErr())(__builtin_expect(!!(tryResult.isErr()), 0))) { \
807 mozilla::dom::quota::QM_HANDLE_ERROR( \HandleError("expr", tryResult.unwrapErr(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 808, mozilla::dom::quota::Severity::severity)
808 expr, tryResult.unwrapErr(), mozilla::dom::quota::Severity::severity)HandleError("expr", tryResult.unwrapErr(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 808, mozilla::dom::quota::Severity::severity)
; \
809 }
810
811// Handles the four arguments case when a cleanup function needs to be called
812#define QM_REPORTONLY_TRY_WITH_CLEANUP(tryResult, severity, expr, cleanup)auto tryResult = (expr); static_assert(std::is_empty_v<typename
decltype(tryResult)::ok_type>); if ((__builtin_expect(!!(
tryResult.isErr()), 0))) { auto tryTempError = tryResult.unwrapErr
(); mozilla::dom::quota::HandleError("expr", tryTempError, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 812, mozilla::dom::quota::Severity::severity); cleanup(tryTempError
); }
\
813 auto tryResult = (expr); \
814 static_assert(std::is_empty_v<typename decltype(tryResult)::ok_type>); \
815 if (MOZ_UNLIKELY(tryResult.isErr())(__builtin_expect(!!(tryResult.isErr()), 0))) { \
816 auto tryTempError = tryResult.unwrapErr(); \
817 mozilla::dom::quota::QM_HANDLE_ERROR( \HandleError("expr", tryTempError, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 818, mozilla::dom::quota::Severity::severity)
818 expr, tryTempError, mozilla::dom::quota::Severity::severity)HandleError("expr", tryTempError, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 818, mozilla::dom::quota::Severity::severity)
; \
819 cleanup(tryTempError); \
820 }
821
822// Chooses the final implementation macro for given argument count.
823// See also the comment for QM_TRY_META.
824#define QM_REPORTONLY_TRY_META(...){do { static_assert(false, "Did you forget arguments?"); } while
(0)}
\
825 {MOZ_ARG_6(, ##__VA_ARGS__, QM_REPORTONLY_TRY_WITH_CLEANUP(__VA_ARGS__), \do { static_assert(false, "Did you forget arguments?"); } while
(0)
826 QM_REPORTONLY_TRY(__VA_ARGS__), QM_MISSING_ARGS(__VA_ARGS__), \do { static_assert(false, "Did you forget arguments?"); } while
(0)
827 QM_MISSING_ARGS(__VA_ARGS__), QM_MISSING_ARGS(__VA_ARGS__))do { static_assert(false, "Did you forget arguments?"); } while
(0)
}
828
829// Generates unique variable name. This extra internal macro (along with
830// __COUNTER__) allows nesting of the final macro.
831#define QM_REPORTONLY_TRY_GLUE(severity, ...){auto tryResult1650 = (...); static_assert(std::is_empty_v<
typename decltype(tryResult1650)::ok_type>); if ((__builtin_expect
(!!(tryResult1650.isErr()), 0))) { mozilla::dom::quota::HandleError
("...", tryResult1650.unwrapErr(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 831, mozilla::dom::quota::Severity::severity); }}
\
832 QM_REPORTONLY_TRY_META(MOZ_UNIQUE_VAR(tryResult), severity, ##__VA_ARGS__){auto tryResult1651 = (##__VA_ARGS__); static_assert(std::is_empty_v
<typename decltype(tryResult1651)::ok_type>); if ((__builtin_expect
(!!(tryResult1651.isErr()), 0))) { mozilla::dom::quota::HandleError
("##__VA_ARGS__", tryResult1651.unwrapErr(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 832, mozilla::dom::quota::Severity::severity); }}
833
834/**
835 * QM_WARNONLY_TRY(expr[, cleanup]) evaluates expr, which must produce a
836 * Result value with empty ok_type. On Success, it does nothing else. On error,
837 * it calls HandleError and an additional cleanup function (if the second
838 * argument was passed). This macro never returns and failures are always
839 * reported using a lower level of severity relative to failures reported by
840 * QM_TRY. The macro is intended for failures that should not be propagated.
841 */
842#define QM_WARNONLY_TRY(...){auto tryResult1652 = (...); static_assert(std::is_empty_v<
typename decltype(tryResult1652)::ok_type>); if ((__builtin_expect
(!!(tryResult1652.isErr()), 0))) { mozilla::dom::quota::HandleError
("...", tryResult1652.unwrapErr(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 842, mozilla::dom::quota::Severity::Warning); }}
QM_REPORTONLY_TRY_GLUE(Warning, __VA_ARGS__){auto tryResult1653 = (__VA_ARGS__); static_assert(std::is_empty_v
<typename decltype(tryResult1653)::ok_type>); if ((__builtin_expect
(!!(tryResult1653.isErr()), 0))) { mozilla::dom::quota::HandleError
("__VA_ARGS__", tryResult1653.unwrapErr(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 842, mozilla::dom::quota::Severity::Warning); }}
843
844/**
845 * QM_INFOONLY_TRY is like QM_WARNONLY_TRY. The only difference is that
846 * failures are reported using a lower level of severity relative to failures
847 * reported by QM_WARNONLY_TRY.
848 */
849#define QM_INFOONLY_TRY(...){auto tryResult1654 = (...); static_assert(std::is_empty_v<
typename decltype(tryResult1654)::ok_type>); if ((__builtin_expect
(!!(tryResult1654.isErr()), 0))) { mozilla::dom::quota::HandleError
("...", tryResult1654.unwrapErr(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 849, mozilla::dom::quota::Severity::Info); }}
QM_REPORTONLY_TRY_GLUE(Info, __VA_ARGS__){auto tryResult1655 = (__VA_ARGS__); static_assert(std::is_empty_v
<typename decltype(tryResult1655)::ok_type>); if ((__builtin_expect
(!!(tryResult1655.isErr()), 0))) { mozilla::dom::quota::HandleError
("__VA_ARGS__", tryResult1655.unwrapErr(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 849, mozilla::dom::quota::Severity::Info); }}
850
851// QM_REPORTONLY_TRY_ASSIGN, QM_REPORTONLY_TRY_ASSIGN_WITH_CLEANUP,
852// QM_REPORTONLY_TRY_ASSIGN_GLUE macros are implementation details of
853// QM_WARNONLY_TRY_UNWRAP/QM_INFOONLY_TRY_UNWRAP and shouldn't be used
854// directly.
855
856// Handles the four arguments case when only a warning/info is reported.
857#define QM_REPORTONLY_TRY_ASSIGN(tryResult, severity, target, expr)auto tryResult = (expr); target = (__builtin_expect(!!(tryResult
.isOk()), 1)) ? Some(tryResult.unwrap()) : mozilla::dom::quota
::HandleErrorReturnNothing("expr", tryResult.unwrapErr(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 857, mozilla::dom::quota::Severity::severity);
\
858 auto tryResult = (expr); \
859 MOZ_REMOVE_PAREN(target)target = \
860 MOZ_LIKELY(tryResult.isOk())(__builtin_expect(!!(tryResult.isOk()), 1)) \
861 ? Some(tryResult.unwrap()) \
862 : mozilla::dom::quota::QM_HANDLE_ERROR_RETURN_NOTHING( \HandleErrorReturnNothing("expr", tryResult.unwrapErr(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 864, mozilla::dom::quota::Severity::severity)
863 expr, tryResult.unwrapErr(), \HandleErrorReturnNothing("expr", tryResult.unwrapErr(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 864, mozilla::dom::quota::Severity::severity)
864 mozilla::dom::quota::Severity::severity)HandleErrorReturnNothing("expr", tryResult.unwrapErr(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 864, mozilla::dom::quota::Severity::severity)
;
865
866// Handles the five arguments case when a cleanup function needs to be called
867#define QM_REPORTONLY_TRY_ASSIGN_WITH_CLEANUP(tryResult, severity, target, \auto tryResult = (expr); target = (__builtin_expect(!!(tryResult
.isOk()), 1)) ? Some(tryResult.unwrap()) : mozilla::dom::quota
::HandleErrorWithCleanupReturnNothing("expr", tryResult.unwrapErr
(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 868, mozilla::dom::quota::Severity::severity, cleanup);
868 expr, cleanup)auto tryResult = (expr); target = (__builtin_expect(!!(tryResult
.isOk()), 1)) ? Some(tryResult.unwrap()) : mozilla::dom::quota
::HandleErrorWithCleanupReturnNothing("expr", tryResult.unwrapErr
(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 868, mozilla::dom::quota::Severity::severity, cleanup);
\
869 auto tryResult = (expr); \
870 MOZ_REMOVE_PAREN(target)target = \
871 MOZ_LIKELY(tryResult.isOk())(__builtin_expect(!!(tryResult.isOk()), 1)) \
872 ? Some(tryResult.unwrap()) \
873 : mozilla::dom::quota::QM_HANDLE_ERROR_WITH_CLEANUP_RETURN_NOTHING( \HandleErrorWithCleanupReturnNothing("expr", tryResult.unwrapErr
(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 875, mozilla::dom::quota::Severity::severity, cleanup)
874 expr, tryResult.unwrapErr(), \HandleErrorWithCleanupReturnNothing("expr", tryResult.unwrapErr
(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 875, mozilla::dom::quota::Severity::severity, cleanup)
875 mozilla::dom::quota::Severity::severity, cleanup)HandleErrorWithCleanupReturnNothing("expr", tryResult.unwrapErr
(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 875, mozilla::dom::quota::Severity::severity, cleanup)
;
876
877// Chooses the final implementation macro for given argument count.
878// See also the comment for QM_TRY_META.
879#define QM_REPORTONLY_TRY_ASSIGN_META(...)do { static_assert(false, "Did you forget arguments?"); } while
(0)
\
880 MOZ_ARG_7(, ##__VA_ARGS__, \do { static_assert(false, "Did you forget arguments?"); } while
(0)
881 QM_REPORTONLY_TRY_ASSIGN_WITH_CLEANUP(__VA_ARGS__), \do { static_assert(false, "Did you forget arguments?"); } while
(0)
882 QM_REPORTONLY_TRY_ASSIGN(__VA_ARGS__), \do { static_assert(false, "Did you forget arguments?"); } while
(0)
883 QM_MISSING_ARGS(__VA_ARGS__), QM_MISSING_ARGS(__VA_ARGS__), \do { static_assert(false, "Did you forget arguments?"); } while
(0)
884 QM_MISSING_ARGS(__VA_ARGS__), QM_MISSING_ARGS(__VA_ARGS__))do { static_assert(false, "Did you forget arguments?"); } while
(0)
885
886// Generates unique variable name. This extra internal macro (along with
887// __COUNTER__) allows nesting of the final macro.
888#define QM_REPORTONLY_TRY_ASSIGN_GLUE(severity, ...)do { static_assert(false, "Did you forget arguments?"); } while
(0)
\
889 QM_REPORTONLY_TRY_ASSIGN_META(MOZ_UNIQUE_VAR(tryResult), severity, \do { static_assert(false, "Did you forget arguments?"); } while
(0)
890 ##__VA_ARGS__)do { static_assert(false, "Did you forget arguments?"); } while
(0)
891
892/**
893 * QM_WARNONLY_TRY_UNWRAP(target, expr[, cleanup]) evaluates expr, which must
894 * produce a Result value. On success, the result's success value is first
895 * unwrapped from the Result, then wrapped in a Maybe and finally assigned to
896 * target. On error, it calls HandleError and an additional cleanup
897 * function (if the third argument was passed) and finally assigns Nothing to
898 * target. |target| must be an lvalue. This macro never returns and failures
899 * are always reported using a lower level of severity relative to failures
900 * reported by QM_TRY_UNWRAP/QM_TRY_INSPECT. The macro is intended for failures
901 * that should not be propagated.
902 */
903#define QM_WARNONLY_TRY_UNWRAP(...)do { static_assert(false, "Did you forget arguments?"); } while
(0)
\
904 QM_REPORTONLY_TRY_ASSIGN_GLUE(Warning, __VA_ARGS__)do { static_assert(false, "Did you forget arguments?"); } while
(0)
905
906// QM_WARNONLY_TRY_INSPECT doesn't make sense.
907
908/**
909 * QM_INFOONLY_TRY_UNWRAP is like QM_WARNONLY_TRY_UNWRAP. The only difference is
910 * that failures are reported using a lower level of severity relative to
911 * failures reported by QM_WARNONLY_TRY_UNWRAP.
912 */
913#define QM_INFOONLY_TRY_UNWRAP(...)do { static_assert(false, "Did you forget arguments?"); } while
(0)
\
914 QM_REPORTONLY_TRY_ASSIGN_GLUE(Info, __VA_ARGS__)do { static_assert(false, "Did you forget arguments?"); } while
(0)
915
916// QM_INFOONLY_TRY_INSPECT doesn't make sense.
917
918/**
919 * QM_VERBOSEONLY_TRY_UNWRAP is like QM_WARNONLY_TRY_UNWRAP. The only
920 * difference is that failures are reported using the lowest severity which is
921 * currently ignored in LogError, so nothing goes to the console, browser
922 * console and telemetry. Since nothing goes to the telemetry, the macro can't
923 * signal the end of the underlying error stack or change the type of the error
924 * stack in the telemetry. For that reason, the expression shouldn't contain
925 * nested QM_TRY macro uses.
926 */
927#define QM_VERBOSEONLY_TRY_UNWRAP(...)do { static_assert(false, "Did you forget arguments?"); } while
(0)
\
928 QM_REPORTONLY_TRY_ASSIGN_GLUE(Verbose, __VA_ARGS__)do { static_assert(false, "Did you forget arguments?"); } while
(0)
929
930// QM_VERBOSEONLY_TRY_INSPECT doesn't make sense.
931
932/**
933 * QM_SCOPED_CONTEXT(context) declares a ScopedLogExtraInfo tagged with
934 * kTagContextTainted for the remainder of the enclosing scope, so that
935 * context string is attached to any QM_TRY-related calls. ScopedLogExtraInfo is
936 * needed if you want to have telemetry recorded if QM_TRY fails.
937 */
938#define QM_SCOPED_CONTEXT(context)const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1664
{ ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted
, (context) }
\
939 const ::mozilla::dom::quota::ScopedLogExtraInfo MOZ_UNIQUE_VAR( \scopedLogExtraInfo1665
940 scopedLogExtraInfo)scopedLogExtraInfo1665 { \
941 ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (context) \
942 }
943
944// QM_OR_ELSE_REPORT macro is an implementation detail of
945// QM_OR_ELSE_WARN/QM_OR_ELSE_INFO/QM_OR_ELSE_LOG_VERBOSE and shouldn't be used
946// directly.
947
948#define QM_OR_ELSE_REPORT(severity, expr, fallback)(expr).orElse([&](const auto& firstRes) { mozilla::dom
::quota::HandleError("\"expr\"", firstRes, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 948, mozilla::dom::quota::Severity::severity); return fallback
(firstRes); })
\
949 (expr).orElse([&](const auto& firstRes) { \
950 mozilla::dom::quota::QM_HANDLE_ERROR( \HandleError("#expr", firstRes, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 951, mozilla::dom::quota::Severity::severity)
951 #expr, firstRes, mozilla::dom::quota::Severity::severity)HandleError("#expr", firstRes, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 951, mozilla::dom::quota::Severity::severity)
; \
952 return fallback(firstRes); \
953 })
954
955/*
956 * QM_OR_ELSE_WARN(expr, fallback) evaluates expr, which must produce a Result
957 * value. On Success, it just moves the success over. On error, it calls
958 * HandleError (with the Warning severity) and a fallback function (passed as
959 * the second argument) which produces a new result. Failed expr is always
960 * reported as a warning (the macro essentially wraps the fallback function
961 * with a warning). QM_OR_ELSE_WARN is a sub macro and is intended to be used
962 * along with one of the main macros such as QM_TRY.
963 */
964#define QM_OR_ELSE_WARN(...)QM_OR_ELSE_REPORT QM_OR_ELSE_REPORT(Warning, __VA_ARGS__)
965
966/**
967 * QM_OR_ELSE_INFO is like QM_OR_ELSE_WARN. The only difference is that
968 * failures are reported using a lower level of severity relative to failures
969 * reported by QM_OR_ELSE_WARN.
970 */
971#define QM_OR_ELSE_INFO(...)QM_OR_ELSE_REPORT QM_OR_ELSE_REPORT(Info, __VA_ARGS__)
972
973/**
974 * QM_OR_ELSE_LOG_VERBOSE is like QM_OR_ELSE_WARN. The only difference is that
975 * failures are reported using the lowest severity which is currently ignored
976 * in LogError, so nothing goes to the console, browser console and telemetry.
977 * Since nothing goes to the telemetry, the macro can't signal the end of the
978 * underlying error stack or change the type of the error stack in the
979 * telemetry. For that reason, the expression shouldn't contain nested QM_TRY
980 * macro uses.
981 */
982#define QM_OR_ELSE_LOG_VERBOSE(...)QM_OR_ELSE_REPORT QM_OR_ELSE_REPORT(Verbose, __VA_ARGS__)
983
984namespace mozilla::dom::quota {
985
986// XXX Support orElseIf directly in mozilla::Result
987template <typename V, typename E, typename P, typename F>
988auto OrElseIf(Result<V, E>&& aResult, P&& aPred, F&& aFunc) -> Result<V, E> {
989 return MOZ_UNLIKELY(aResult.isErr())(__builtin_expect(!!(aResult.isErr()), 0))
990 ? (std::forward<P>(aPred)(aResult.inspectErr()))
991 ? std::forward<F>(aFunc)(aResult.unwrapErr())
992 : aResult.propagateErr()
993 : aResult.unwrap();
994}
995
996} // namespace mozilla::dom::quota
997
998// QM_OR_ELSE_REPORT_IF macro is an implementation detail of
999// QM_OR_ELSE_WARN_IF/QM_OR_ELSE_INFO_IF/QM_OR_ELSE_LOG_VERBOSE_IF and
1000// shouldn't be used directly.
1001
1002#define QM_OR_ELSE_REPORT_IF(severity, expr, predicate, fallback)mozilla::dom::quota::OrElseIf( (expr), [&](const auto&
firstRes) { bool res = predicate(firstRes); mozilla::dom::quota
::HandleError("\"expr\"", firstRes, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 1002, res ? mozilla::dom::quota::Severity::severity : mozilla
::dom::quota::Severity::Error); return res; }, fallback)
\
1003 mozilla::dom::quota::OrElseIf( \
1004 (expr), \
1005 [&](const auto& firstRes) { \
1006 bool res = predicate(firstRes); \
1007 mozilla::dom::quota::QM_HANDLE_ERROR( \HandleError("#expr", firstRes, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 1010, res ? mozilla::dom::quota::Severity::severity : mozilla
::dom::quota::Severity::Error)
1008 #expr, firstRes, \HandleError("#expr", firstRes, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 1010, res ? mozilla::dom::quota::Severity::severity : mozilla
::dom::quota::Severity::Error)
1009 res ? mozilla::dom::quota::Severity::severity \HandleError("#expr", firstRes, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 1010, res ? mozilla::dom::quota::Severity::severity : mozilla
::dom::quota::Severity::Error)
1010 : mozilla::dom::quota::Severity::Error)HandleError("#expr", firstRes, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 1010, res ? mozilla::dom::quota::Severity::severity : mozilla
::dom::quota::Severity::Error)
; \
1011 return res; \
1012 }, \
1013 fallback)
1014
1015/*
1016 * QM_OR_ELSE_WARN_IF(expr, predicate, fallback) evaluates expr first, which
1017 * must produce a Result value. On Success, it just moves the success over.
1018 * On error, it calls a predicate function (passed as the second argument) and
1019 * then it either calls HandleError (with the Warning severity) and a fallback
1020 * function (passed as the third argument) which produces a new result if the
1021 * predicate returned true. Or it calls HandleError (with the Error severity)
1022 * and propagates the error result if the predicate returned false. So failed
1023 * expr can be reported as a warning or as an error depending on the predicate.
1024 * QM_OR_ELSE_WARN_IF is a sub macro and is intended to be used along with one
1025 * of the main macros such as QM_TRY.
1026 */
1027#define QM_OR_ELSE_WARN_IF(...)QM_OR_ELSE_REPORT_IF QM_OR_ELSE_REPORT_IF(Warning, __VA_ARGS__)
1028
1029/**
1030 * QM_OR_ELSE_INFO_IF is like QM_OR_ELSE_WARN_IF. The only difference is that
1031 * failures are reported using a lower level of severity relative to failures
1032 * reported by QM_OR_ELSE_WARN_IF.
1033 */
1034#define QM_OR_ELSE_INFO_IF(...)QM_OR_ELSE_REPORT_IF QM_OR_ELSE_REPORT_IF(Info, __VA_ARGS__)
1035
1036/**
1037 * QM_OR_ELSE_LOG_VERBOSE_IF is like QM_OR_ELSE_WARN_IF. The only difference is
1038 * that failures are reported using the lowest severity which is currently
1039 * ignored in LogError, so nothing goes to the console, browser console and
1040 * telemetry. Since nothing goes to the telemetry, the macro can't signal the
1041 * end of the underlying error stack or change the type of the error stack in
1042 * the telemetry. For that reason, the expression shouldn't contain nested
1043 * QM_TRY macro uses.
1044 */
1045#define QM_OR_ELSE_LOG_VERBOSE_IF(...)QM_OR_ELSE_REPORT_IF \
1046 QM_OR_ELSE_REPORT_IF(Verbose, __VA_ARGS__)
1047
1048// Telemetry probes to collect number of failure during the initialization.
1049#ifdef NIGHTLY_BUILD1
1050# define RECORD_IN_NIGHTLY(_recorder, _status)do { if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(_recorder
)), 1)))) { _recorder = _status; } } while (0)
\
1051 do { \
1052 if (NS_SUCCEEDED(_recorder)((bool)(__builtin_expect(!!(!NS_FAILED_impl(_recorder)), 1)))) { \
1053 _recorder = _status; \
1054 } \
1055 } while (0)
1056
1057# define OK_IN_NIGHTLY_PROPAGATE_IN_OTHERSOk {} \
1058 Ok {}
1059
1060# define RETURN_STATUS_OR_RESULT(_status, _rv)return Err(((bool)(__builtin_expect(!!(NS_FAILED_impl(_status
)), 0))) ? (_status) : (_rv))
\
1061 return Err(NS_FAILED(_status)((bool)(__builtin_expect(!!(NS_FAILED_impl(_status)), 0))) ? (_status) : (_rv))
1062#else
1063# define RECORD_IN_NIGHTLY(_dummy, _status)do { if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(_dummy))
, 1)))) { _dummy = _status; } } while (0)
\
1064 { \
1065 }
1066
1067# define OK_IN_NIGHTLY_PROPAGATE_IN_OTHERSOk {} QM_PROPAGATEErr(tryTempError)
1068
1069# define RETURN_STATUS_OR_RESULT(_status, _rv)return Err(((bool)(__builtin_expect(!!(NS_FAILED_impl(_status
)), 0))) ? (_status) : (_rv))
return Err(_rv)
1070#endif
1071
1072class mozIStorageConnection;
1073class mozIStorageStatement;
1074class nsIFile;
1075
1076namespace mozilla {
1077
1078class LogModule;
1079
1080struct CreateIfNonExistent {};
1081
1082struct NotOk {};
1083
1084// Allow MOZ_TRY/QM_TRY to handle `bool` values by wrapping them with OkIf.
1085// TODO: Maybe move this to mfbt/ResultExtensions.h
1086inline Result<Ok, NotOk> OkIf(bool aValue) {
1087 if (aValue) {
1088 return Ok();
1089 }
1090 return Err(NotOk());
1091}
1092
1093// TODO: Maybe move this to mfbt/ResultExtensions.h
1094template <auto SuccessValue>
1095auto OkToOk(Ok) -> Result<decltype(SuccessValue), nsresult> {
1096 return SuccessValue;
1097}
1098
1099template <nsresult ErrorValue, auto SuccessValue,
1100 typename V = decltype(SuccessValue)>
1101auto ErrToOkOrErr(nsresult aValue) -> Result<V, nsresult> {
1102 if (aValue == ErrorValue) {
1103 return V{SuccessValue};
1104 }
1105 return Err(aValue);
1106}
1107
1108template <nsresult ErrorValue, typename V = mozilla::Ok>
1109auto ErrToDefaultOkOrErr(nsresult aValue) -> Result<V, nsresult> {
1110 if (aValue == ErrorValue) {
1111 return V{};
1112 }
1113 return Err(aValue);
1114}
1115
1116// Helper template function so that QM_TRY predicates checking for a specific
1117// error can be concisely written as IsSpecificError<NS_SOME_ERROR> instead of
1118// as a more verbose lambda.
1119template <nsresult ErrorValue>
1120bool IsSpecificError(const nsresult aValue) {
1121 return aValue == ErrorValue;
1122}
1123
1124#ifdef QM_ERROR_STACKS_ENABLED
1125template <nsresult ErrorValue>
1126bool IsSpecificError(const QMResult& aValue) {
1127 return aValue.NSResult() == ErrorValue;
1128}
1129#endif
1130
1131// Helper template function so that QM_TRY fallback functions that are
1132// converting errors into specific in-band success values can be concisely
1133// written as ErrToOk<SuccessValueToReturn> (with the return type inferred).
1134// For example, many file-related APIs that access information about a file may
1135// return an nsresult error code if the file does not exist. From an
1136// application perspective, the file not existing is not actually exceptional
1137// and can instead be handled by the success case.
1138template <auto SuccessValue, typename V = decltype(SuccessValue)>
1139auto ErrToOk(const nsresult aValue) -> Result<V, nsresult> {
1140 return V{SuccessValue};
1141}
1142
1143template <auto SuccessValue, typename V = decltype(SuccessValue)>
1144auto ErrToOkFromQMResult(const QMResult& aValue) -> Result<V, QMResult> {
1145 return V{SuccessValue};
1146}
1147
1148// Helper template function so that QM_TRY fallback functions that are
1149// suppressing errors by converting them into (generic) success can be
1150// concisely written as ErrToDefaultOk<>.
1151template <typename V = mozilla::Ok>
1152auto ErrToDefaultOk(const nsresult aValue) -> Result<V, nsresult> {
1153 return V{};
1154}
1155
1156template <typename MozPromiseType, typename RejectValueT = nsresult>
1157auto CreateAndRejectMozPromise(StaticString aFunc, const RejectValueT& aRv)
1158 -> decltype(auto) {
1159 if constexpr (std::is_same_v<RejectValueT, nsresult>) {
1160 return MozPromiseType::CreateAndReject(aRv, aFunc);
1161 } else if constexpr (std::is_same_v<RejectValueT, QMResult>) {
1162 return MozPromiseType::CreateAndReject(aRv.NSResult(), aFunc);
1163 }
1164}
1165
1166RefPtr<BoolPromise> CreateAndRejectBoolPromise(StaticString aFunc,
1167 nsresult aRv);
1168
1169RefPtr<Int64Promise> CreateAndRejectInt64Promise(StaticString aFunc,
1170 nsresult aRv);
1171
1172RefPtr<BoolPromise> CreateAndRejectBoolPromiseFromQMResult(StaticString aFunc,
1173 const QMResult& aRv);
1174
1175// Like Rust's collect with a step function, not a generic iterator/range.
1176//
1177// Cond must be a function type with a return type to Result<V, E>, where
1178// V is convertible to bool
1179// - success converts to true indicates that collection shall continue
1180// - success converts to false indicates that collection is completed
1181// - error indicates that collection shall stop, propagating the error
1182//
1183// Body must a function type accepting a V xvalue with a return type convertible
1184// to Result<empty, E>.
1185template <typename Step, typename Body>
1186auto CollectEach(Step aStep, const Body& aBody)
1187 -> Result<mozilla::Ok, typename std::invoke_result_t<Step>::err_type> {
1188 using StepResultType = typename std::invoke_result_t<Step>::ok_type;
1189
1190 static_assert(
1191 std::is_empty_v<
1192 typename std::invoke_result_t<Body, StepResultType&&>::ok_type>);
1193
1194 while (true) {
8
Loop condition is true. Entering loop body
1195 StepResultType element = MOZ_TRY(aStep())__extension__({ auto mozTryVarTempResult = ::mozilla::ToResult
(aStep()); if ((__builtin_expect(!!(mozTryVarTempResult.isErr
()), 0))) { return mozTryVarTempResult.propagateErr(); } mozTryVarTempResult
.unwrap(); })
;
9
Taking true branch
10
Calling '~nsCOMPtr'
1196
1197 if (!static_cast<bool>(element)) {
1198 break;
1199 }
1200
1201 MOZ_TRY(aBody(std::move(element)))__extension__({ auto mozTryVarTempResult = ::mozilla::ToResult
(aBody(std::move(element))); if ((__builtin_expect(!!(mozTryVarTempResult
.isErr()), 0))) { return mozTryVarTempResult.propagateErr(); }
mozTryVarTempResult.unwrap(); })
;
1202 }
1203
1204 return mozilla::Ok{};
1205}
1206
1207// This is like std::reduce with a to-be-defined execution policy (we don't want
1208// to std::terminate on an error, but probably it's fine to just propagate any
1209// error that occurred), operating not on a pair of iterators but rather a
1210// generator function.
1211template <typename InputGenerator, typename T, typename BinaryOp>
1212auto ReduceEach(InputGenerator aInputGenerator, T aInit,
1213 const BinaryOp& aBinaryOp)
1214 -> Result<T, typename std::invoke_result_t<InputGenerator>::err_type> {
1215 T res = std::move(aInit);
1216
1217 // XXX This can be done in parallel!
1218 MOZ_TRY(CollectEach(__extension__({ auto mozTryVarTempResult = ::mozilla::ToResult
(CollectEach( std::move(aInputGenerator), [&res, &aBinaryOp
](const auto& element) -> Result<Ok, typename std::
invoke_result_t<InputGenerator>::err_type> { res = __extension__
({ auto mozTryVarTempResult = ::mozilla::ToResult(aBinaryOp(std
::move(res), element)); if ((__builtin_expect(!!(mozTryVarTempResult
.isErr()), 0))) { return mozTryVarTempResult.propagateErr(); }
mozTryVarTempResult.unwrap(); }); return Ok{}; })); if ((__builtin_expect
(!!(mozTryVarTempResult.isErr()), 0))) { return mozTryVarTempResult
.propagateErr(); } mozTryVarTempResult.unwrap(); })
1219 std::move(aInputGenerator),__extension__({ auto mozTryVarTempResult = ::mozilla::ToResult
(CollectEach( std::move(aInputGenerator), [&res, &aBinaryOp
](const auto& element) -> Result<Ok, typename std::
invoke_result_t<InputGenerator>::err_type> { res = __extension__
({ auto mozTryVarTempResult = ::mozilla::ToResult(aBinaryOp(std
::move(res), element)); if ((__builtin_expect(!!(mozTryVarTempResult
.isErr()), 0))) { return mozTryVarTempResult.propagateErr(); }
mozTryVarTempResult.unwrap(); }); return Ok{}; })); if ((__builtin_expect
(!!(mozTryVarTempResult.isErr()), 0))) { return mozTryVarTempResult
.propagateErr(); } mozTryVarTempResult.unwrap(); })
1220 [&res, &aBinaryOp](const auto& element)__extension__({ auto mozTryVarTempResult = ::mozilla::ToResult
(CollectEach( std::move(aInputGenerator), [&res, &aBinaryOp
](const auto& element) -> Result<Ok, typename std::
invoke_result_t<InputGenerator>::err_type> { res = __extension__
({ auto mozTryVarTempResult = ::mozilla::ToResult(aBinaryOp(std
::move(res), element)); if ((__builtin_expect(!!(mozTryVarTempResult
.isErr()), 0))) { return mozTryVarTempResult.propagateErr(); }
mozTryVarTempResult.unwrap(); }); return Ok{}; })); if ((__builtin_expect
(!!(mozTryVarTempResult.isErr()), 0))) { return mozTryVarTempResult
.propagateErr(); } mozTryVarTempResult.unwrap(); })
1221 -> Result<Ok,__extension__({ auto mozTryVarTempResult = ::mozilla::ToResult
(CollectEach( std::move(aInputGenerator), [&res, &aBinaryOp
](const auto& element) -> Result<Ok, typename std::
invoke_result_t<InputGenerator>::err_type> { res = __extension__
({ auto mozTryVarTempResult = ::mozilla::ToResult(aBinaryOp(std
::move(res), element)); if ((__builtin_expect(!!(mozTryVarTempResult
.isErr()), 0))) { return mozTryVarTempResult.propagateErr(); }
mozTryVarTempResult.unwrap(); }); return Ok{}; })); if ((__builtin_expect
(!!(mozTryVarTempResult.isErr()), 0))) { return mozTryVarTempResult
.propagateErr(); } mozTryVarTempResult.unwrap(); })
1222 typename std::invoke_result_t<InputGenerator>::err_type> {__extension__({ auto mozTryVarTempResult = ::mozilla::ToResult
(CollectEach( std::move(aInputGenerator), [&res, &aBinaryOp
](const auto& element) -> Result<Ok, typename std::
invoke_result_t<InputGenerator>::err_type> { res = __extension__
({ auto mozTryVarTempResult = ::mozilla::ToResult(aBinaryOp(std
::move(res), element)); if ((__builtin_expect(!!(mozTryVarTempResult
.isErr()), 0))) { return mozTryVarTempResult.propagateErr(); }
mozTryVarTempResult.unwrap(); }); return Ok{}; })); if ((__builtin_expect
(!!(mozTryVarTempResult.isErr()), 0))) { return mozTryVarTempResult
.propagateErr(); } mozTryVarTempResult.unwrap(); })
1223 res = MOZ_TRY(aBinaryOp(std::move(res), element));__extension__({ auto mozTryVarTempResult = ::mozilla::ToResult
(CollectEach( std::move(aInputGenerator), [&res, &aBinaryOp
](const auto& element) -> Result<Ok, typename std::
invoke_result_t<InputGenerator>::err_type> { res = __extension__
({ auto mozTryVarTempResult = ::mozilla::ToResult(aBinaryOp(std
::move(res), element)); if ((__builtin_expect(!!(mozTryVarTempResult
.isErr()), 0))) { return mozTryVarTempResult.propagateErr(); }
mozTryVarTempResult.unwrap(); }); return Ok{}; })); if ((__builtin_expect
(!!(mozTryVarTempResult.isErr()), 0))) { return mozTryVarTempResult
.propagateErr(); } mozTryVarTempResult.unwrap(); })
1224
1225 return Ok{};__extension__({ auto mozTryVarTempResult = ::mozilla::ToResult
(CollectEach( std::move(aInputGenerator), [&res, &aBinaryOp
](const auto& element) -> Result<Ok, typename std::
invoke_result_t<InputGenerator>::err_type> { res = __extension__
({ auto mozTryVarTempResult = ::mozilla::ToResult(aBinaryOp(std
::move(res), element)); if ((__builtin_expect(!!(mozTryVarTempResult
.isErr()), 0))) { return mozTryVarTempResult.propagateErr(); }
mozTryVarTempResult.unwrap(); }); return Ok{}; })); if ((__builtin_expect
(!!(mozTryVarTempResult.isErr()), 0))) { return mozTryVarTempResult
.propagateErr(); } mozTryVarTempResult.unwrap(); })
1226 }))__extension__({ auto mozTryVarTempResult = ::mozilla::ToResult
(CollectEach( std::move(aInputGenerator), [&res, &aBinaryOp
](const auto& element) -> Result<Ok, typename std::
invoke_result_t<InputGenerator>::err_type> { res = __extension__
({ auto mozTryVarTempResult = ::mozilla::ToResult(aBinaryOp(std
::move(res), element)); if ((__builtin_expect(!!(mozTryVarTempResult
.isErr()), 0))) { return mozTryVarTempResult.propagateErr(); }
mozTryVarTempResult.unwrap(); }); return Ok{}; })); if ((__builtin_expect
(!!(mozTryVarTempResult.isErr()), 0))) { return mozTryVarTempResult
.propagateErr(); } mozTryVarTempResult.unwrap(); })
;
1227
1228 return std::move(res);
1229}
1230
1231// This is like std::reduce with a to-be-defined execution policy (we don't want
1232// to std::terminate on an error, but probably it's fine to just propagate any
1233// error that occurred).
1234template <typename Range, typename T, typename BinaryOp>
1235auto Reduce(Range&& aRange, T aInit, const BinaryOp& aBinaryOp) {
1236 using std::begin;
1237 using std::end;
1238 return ReduceEach(
1239 [it = begin(aRange), end = end(aRange)]() mutable {
1240 auto res = ToMaybeRef(it != end ? &*it++ : nullptr);
1241 return Result<decltype(res), typename std::invoke_result_t<
1242 BinaryOp, T, decltype(res)>::err_type>(
1243 res);
1244 },
1245 aInit, aBinaryOp);
1246}
1247
1248template <typename Range, typename Body>
1249auto CollectEachInRange(Range&& aRange, const Body& aBody)
1250 -> Result<mozilla::Ok, nsresult> {
1251 for (auto&& element : aRange) {
1252 MOZ_TRY(aBody(element))__extension__({ auto mozTryVarTempResult = ::mozilla::ToResult
(aBody(element)); if ((__builtin_expect(!!(mozTryVarTempResult
.isErr()), 0))) { return mozTryVarTempResult.propagateErr(); }
mozTryVarTempResult.unwrap(); })
;
1253 }
1254
1255 return mozilla::Ok{};
1256}
1257
1258// Like Rust's collect with a while loop, not a generic iterator/range.
1259//
1260// Cond must be a function type accepting no parameters with a return type
1261// convertible to Result<bool, E>, where
1262// - success true indicates that collection shall continue
1263// - success false indicates that collection is completed
1264// - error indicates that collection shall stop, propagating the error
1265//
1266// Body must a function type accepting no parameters with a return type
1267// convertible to Result<empty, E>.
1268template <typename Cond, typename Body>
1269auto CollectWhile(const Cond& aCond, const Body& aBody)
1270 -> Result<mozilla::Ok, typename std::invoke_result_t<Cond>::err_type> {
1271 return CollectEach(aCond, [&aBody](bool) { return aBody(); });
1272}
1273
1274template <>
1275class [[nodiscard]] GenericErrorResult<mozilla::ipc::IPCResult> {
1276 mozilla::ipc::IPCResult mErrorValue;
1277
1278 template <typename V, typename E2>
1279 friend class Result;
1280
1281 public:
1282 explicit GenericErrorResult(mozilla::ipc::IPCResult aErrorValue)
1283 : mErrorValue(aErrorValue) {
1284 MOZ_ASSERT(!aErrorValue)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aErrorValue)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!aErrorValue))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("!aErrorValue", "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 1284); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aErrorValue"
")"); do { MOZ_CrashSequence(__null, 1284); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1285 }
1286
1287 GenericErrorResult(mozilla::ipc::IPCResult aErrorValue,
1288 const ErrorPropagationTag&)
1289 : GenericErrorResult(aErrorValue) {}
1290
1291 operator mozilla::ipc::IPCResult() const { return mErrorValue; }
1292};
1293
1294namespace dom::quota {
1295
1296extern const char kQuotaGenericDelimiter;
1297
1298// Telemetry keys to indicate types of errors.
1299#ifdef NIGHTLY_BUILD1
1300extern const nsLiteralCString kQuotaInternalError;
1301extern const nsLiteralCString kQuotaExternalError;
1302#else
1303// No need for these when we're not collecting telemetry.
1304# define kQuotaInternalError
1305# define kQuotaExternalError
1306#endif
1307
1308MOZ_COLD__attribute__((cold)) void ReportInternalError(const char* aFile, uint32_t aLine,
1309 const char* aStr);
1310
1311LogModule* GetQuotaManagerLogger();
1312
1313void AnonymizeCString(nsACString& aCString);
1314
1315inline auto AnonymizedCString(const nsACString& aCString) {
1316 nsAutoCString result{aCString};
1317 AnonymizeCString(result);
1318 return result;
1319}
1320
1321void AnonymizeOriginString(nsACString& aOriginString);
1322
1323inline auto AnonymizedOriginString(const nsACString& aOriginString) {
1324 nsAutoCString result{aOriginString};
1325 AnonymizeOriginString(result);
1326 return result;
1327}
1328
1329#ifdef XP_WIN
1330void CacheUseDOSDevicePathSyntaxPrefValue();
1331#endif
1332
1333Result<nsCOMPtr<nsIFile>, nsresult> QM_NewLocalFile(const nsAString& aPath);
1334
1335nsDependentCSubstring GetLeafName(const nsACString& aPath);
1336
1337Result<nsCOMPtr<nsIFile>, nsresult> CloneFileAndAppend(
1338 nsIFile& aDirectory, const nsAString& aPathElement);
1339
1340enum class nsIFileKind {
1341 ExistsAsDirectory,
1342 ExistsAsFile,
1343 DoesNotExist,
1344};
1345
1346// XXX We can use this outside of QM and its clients as well, probably. Maybe it
1347// could be moved to xpcom/io?
1348Result<nsIFileKind, nsresult> GetDirEntryKind(nsIFile& aFile);
1349
1350Result<nsCOMPtr<mozIStorageStatement>, nsresult> CreateStatement(
1351 mozIStorageConnection& aConnection, const nsACString& aStatementString);
1352
1353enum class SingleStepResult { AssertHasResult, ReturnNullIfNoResult };
1354
1355template <SingleStepResult ResultHandling>
1356using SingleStepSuccessType =
1357 std::conditional_t<ResultHandling == SingleStepResult::AssertHasResult,
1358 NotNull<nsCOMPtr<mozIStorageStatement>>,
1359 nsCOMPtr<mozIStorageStatement>>;
1360
1361template <SingleStepResult ResultHandling>
1362Result<SingleStepSuccessType<ResultHandling>, nsresult> ExecuteSingleStep(
1363 nsCOMPtr<mozIStorageStatement>&& aStatement);
1364
1365// Creates a statement with the specified aStatementString, executes a single
1366// step, and returns the statement.
1367// Depending on the value ResultHandling,
1368// - it is asserted that there is a result (default resp.
1369// SingleStepResult::AssertHasResult), and the success type is
1370// MovingNotNull<nsCOMPtr<mozIStorageStatement>>
1371// - it is asserted that there is no result, and the success type is Ok
1372// - in case there is no result, nullptr is returned, and the success type is
1373// nsCOMPtr<mozIStorageStatement>
1374// Any other errors are always propagated.
1375template <SingleStepResult ResultHandling = SingleStepResult::AssertHasResult>
1376Result<SingleStepSuccessType<ResultHandling>, nsresult>
1377CreateAndExecuteSingleStepStatement(mozIStorageConnection& aConnection,
1378 const nsACString& aStatementString);
1379
1380namespace detail {
1381
1382// Determine the absolute path of the root of our built source tree so we can
1383// derive source-relative paths for non-exported header files in
1384// MakeSourceFileRelativePath. Exported header files end up in the objdir and
1385// we have GetObjdirDistIncludeTreeBase for that.
1386nsDependentCSubstring GetSourceTreeBase();
1387
1388// Determine the absolute path of the root of our built OBJDIR/dist/include
1389// directory. The aQuotaCommonHPath argument cleverly defaults to __FILE__
1390// initialized in our exported header; no argument should ever be provided to
1391// this method. GetSourceTreeBase handles identifying the root of the source
1392// tree.
1393// The _sp suffix on path literals ensures separators match __FILE__ on the
1394// current platform (e.g. backslashes on clang-cl Windows).
1395nsDependentCSubstring GetObjdirDistIncludeTreeBase(
1396 const nsLiteralCString& aQuotaCommonHPath = nsLiteralCString(__FILE__"/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"));
1397
1398nsDependentCSubstring MakeSourceFileRelativePath(
1399 const nsACString& aSourceFilePath);
1400
1401} // namespace detail
1402
1403enum class Severity {
1404 Error,
1405 Warning,
1406 Info,
1407 Verbose,
1408};
1409
1410#ifdef QM_LOG_ERROR_ENABLED
1411# ifdef QM_ERROR_STACKS_ENABLED
1412using ResultType = Variant<QMResult, nsresult, Nothing>;
1413
1414void LogError(const nsACString& aExpr, const ResultType& aResult,
1415 const nsACString& aSourceFilePath, int32_t aSourceFileLine,
1416 Severity aSeverity)
1417# else
1418void LogError(const nsACString& aExpr, Maybe<nsresult> aMaybeRv,
1419 const nsACString& aSourceFilePath, int32_t aSourceFileLine,
1420 Severity aSeverity)
1421# endif
1422 ;
1423#endif
1424
1425#ifdef DEBUG1
1426Result<bool, nsresult> WarnIfFileIsUnknown(nsIFile& aFile,
1427 const char* aSourceFilePath,
1428 int32_t aSourceFileLine);
1429#endif
1430
1431// As HandleError is a function that will only be called in error cases, it is
1432// marked with MOZ_COLD to avoid bloating the code of calling functions, if it's
1433// not empty.
1434//
1435// For the same reason, the string-ish parameters are of type const char* rather
1436// than any ns*String type, to minimize the code at each call site. This
1437// deliberately de-optimizes runtime performance, which is uncritical during
1438// error handling.
1439//
1440// This functions are not intended to be called
1441// directly, they should only be called from the QM_* macros.
1442#ifdef QM_LOG_ERROR_ENABLED
1443template <typename T>
1444MOZ_COLD__attribute__((cold)) MOZ_NEVER_INLINE__attribute__((noinline)) void HandleError(const char* aExpr, const T& aRv,
1445 const char* aSourceFilePath,
1446 int32_t aSourceFileLine,
1447 const Severity aSeverity) {
1448# ifdef QM_ERROR_STACKS_ENABLED
1449 if constexpr (std::is_same_v<T, QMResult> || std::is_same_v<T, nsresult>) {
1450 mozilla::dom::quota::LogError(nsDependentCString(aExpr), ResultType(aRv),
1451 nsDependentCString(aSourceFilePath),
1452 aSourceFileLine, aSeverity);
1453 } else {
1454 mozilla::dom::quota::LogError(
1455 nsDependentCString(aExpr), ResultType(Nothing{}),
1456 nsDependentCString(aSourceFilePath), aSourceFileLine, aSeverity);
1457 }
1458# else
1459 if constexpr (std::is_same_v<T, nsresult>) {
1460 mozilla::dom::quota::LogError(nsDependentCString(aExpr), Some(aRv),
1461 nsDependentCString(aSourceFilePath),
1462 aSourceFileLine, aSeverity);
1463 } else {
1464 mozilla::dom::quota::LogError(nsDependentCString(aExpr), Nothing{},
1465 nsDependentCString(aSourceFilePath),
1466 aSourceFileLine, aSeverity);
1467 }
1468# endif
1469}
1470#else
1471template <typename T>
1472MOZ_ALWAYS_INLINEinline constexpr void HandleError(const char* aExpr, const T& aRv,
1473 const char* aSourceFilePath,
1474 int32_t aSourceFileLine,
1475 const Severity aSeverity) {}
1476#endif
1477
1478template <typename T>
1479Nothing HandleErrorReturnNothing(const char* aExpr, const T& aRv,
1480 const char* aSourceFilePath,
1481 int32_t aSourceFileLine,
1482 const Severity aSeverity) {
1483 HandleError(aExpr, aRv, aSourceFilePath, aSourceFileLine, aSeverity);
1484 return Nothing();
1485}
1486
1487template <typename T, typename CleanupFunc>
1488Nothing HandleErrorWithCleanupReturnNothing(const char* aExpr, const T& aRv,
1489 const char* aSourceFilePath,
1490 int32_t aSourceFileLine,
1491 const Severity aSeverity,
1492 CleanupFunc&& aCleanupFunc) {
1493 HandleError(aExpr, aRv, aSourceFilePath, aSourceFileLine, aSeverity);
1494 std::forward<CleanupFunc>(aCleanupFunc)(aRv);
1495 return Nothing();
1496}
1497
1498// Implementation of workaround for GCC bug #114812.
1499#if defined(__GNUC__4) && !defined(__clang__1)
1500namespace gcc_detail {
1501// usual case: identity function
1502template <typename T>
1503struct invokabilize_impl {
1504 auto operator()(T t) -> T { return t; }
1505};
1506// reference-to-function: wrap in std::function
1507template <typename R, typename... Args>
1508struct invokabilize_impl<R (&)(Args...)> {
1509 auto operator()(R (&t)(Args...)) -> std::function<R(Args...)> {
1510 return std::function{t};
1511 }
1512};
1513// pointer-to-function: wrap in std::function
1514template <typename R, typename... Args>
1515struct invokabilize_impl<R (*)(Args...)> {
1516 auto operator()(R (*t)(Args...)) -> std::function<R(Args...)> {
1517 return std::function{t};
1518 }
1519};
1520// entry point
1521template <typename T>
1522auto invokabilize(T t) {
1523 return invokabilize_impl<T>{}(std::forward<T>(t));
1524}
1525} // namespace gcc_detail
1526#endif
1527
1528template <size_t NFunc, size_t NExpr, typename T, typename CustomRetVal_>
1529auto HandleCustomRetVal(const char (&aFunc)[NFunc], const char (&aExpr)[NExpr],
1530 const T& aRv, CustomRetVal_&& aCustomRetVal_) {
1531#if defined(__GNUC__4) && !defined(__clang__1)
1532 // Workaround for gcc bug #114812. (See either that bug, or our bug 1891541,
1533 // for more details.)
1534 auto aCustomRetVal =
1535 gcc_detail::invokabilize(std::forward<CustomRetVal_>(aCustomRetVal_));
1536 using CustomRetVal = decltype(aCustomRetVal);
1537#else
1538 using CustomRetVal = CustomRetVal_;
1539 CustomRetVal& aCustomRetVal = aCustomRetVal_;
1540#endif
1541 if constexpr (std::is_invocable_v<CustomRetVal, const char[NFunc],
1542 const char[NExpr]>) {
1543 return std::forward<CustomRetVal>(aCustomRetVal)(aFunc, aExpr);
1544 } else if constexpr (std::is_invocable_v<CustomRetVal, const char[NFunc],
1545 const T&>) {
1546 return aCustomRetVal(aFunc, aRv);
1547 } else if constexpr (std::is_invocable_v<CustomRetVal, const T&>) {
1548 return aCustomRetVal(aRv);
1549 } else {
1550 return std::forward<CustomRetVal>(aCustomRetVal);
1551 }
1552}
1553
1554template <SingleStepResult ResultHandling = SingleStepResult::AssertHasResult,
1555 typename BindFunctor>
1556Result<SingleStepSuccessType<ResultHandling>, nsresult>
1557CreateAndExecuteSingleStepStatement(mozIStorageConnection& aConnection,
1558 const nsACString& aStatementString,
1559 BindFunctor aBindFunctor) {
1560 QM_TRY_UNWRAP(auto stmt, CreateStatement(aConnection, aStatementString))auto tryResult1666 = (CreateStatement(aConnection, aStatementString
)); if ((__builtin_expect(!!(tryResult1666.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateStatement(aConnection, aStatementString)"
, tryResult1666.inspectErr(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 1560, mozilla::dom::quota::Severity::Error); return tryResult1666
.propagateErr(); } auto stmt = tryResult1666.unwrap();
;
1561
1562 QM_TRY(aBindFunctor(*stmt)){auto tryResult1667 = (aBindFunctor(*stmt)); static_assert(std
::is_empty_v<typename decltype(tryResult1667)::ok_type>
); if ((__builtin_expect(!!(tryResult1667.isErr()), 0))) { mozilla
::dom::quota::HandleError("aBindFunctor(*stmt)", tryResult1667
.inspectErr(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 1562, mozilla::dom::quota::Severity::Error); return tryResult1667
.propagateErr(); }}
;
1563
1564 return ExecuteSingleStep<ResultHandling>(std::move(stmt));
1565}
1566
1567template <typename StepFunc>
1568Result<Ok, nsresult> CollectWhileHasResult(mozIStorageStatement& aStmt,
1569 StepFunc&& aStepFunc) {
1570 return CollectWhile(
1571 [&aStmt] {
1572 QM_TRY_RETURN(MOZ_TO_RESULT_INVOKE_MEMBER(aStmt, ExecuteStep)){auto tryResult1668 = (::mozilla::ToResultInvokeMember( (aStmt
), &::mozilla::detail::DerefedType<decltype(aStmt)>
::ExecuteStep )); if ((__builtin_expect(!!(tryResult1668.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aStmt), &::mozilla::detail::DerefedType<decltype(aStmt)>::ExecuteStep )"
, tryResult1668.inspectErr(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 1572, mozilla::dom::quota::Severity::Error); } return tryResult1668
;}
;
1573 },
1574 [&aStmt, &aStepFunc] { return aStepFunc(aStmt); });
1575}
1576
1577template <typename StepFunc,
1578 typename ArrayType = nsTArray<typename std::invoke_result_t<
1579 StepFunc, mozIStorageStatement&>::ok_type>>
1580auto CollectElementsWhileHasResult(mozIStorageStatement& aStmt,
1581 StepFunc&& aStepFunc)
1582 -> Result<ArrayType, nsresult> {
1583 ArrayType res;
1584
1585 QM_TRY(CollectWhileHasResult({auto tryResult1670 = (CollectWhileHasResult( aStmt, [&aStepFunc
, &res](auto& stmt) -> Result<Ok, nsresult> {
auto tryResult1669 = (aStepFunc(stmt)); if ((__builtin_expect
(!!(tryResult1669.isErr()), 0))) { mozilla::dom::quota::HandleError
("aStepFunc(stmt)", tryResult1669.inspectErr(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 1587, mozilla::dom::quota::Severity::Error); return tryResult1669
.propagateErr(); } auto element = tryResult1669.unwrap();; res
.AppendElement(std::move(element)); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1670)::ok_type
>); if ((__builtin_expect(!!(tryResult1670.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( aStmt, [&aStepFunc, &res](auto& stmt) -> Result<Ok, nsresult> { auto tryResult1669 = (aStepFunc(stmt)); if ((__builtin_expect(!!(tryResult1669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aStepFunc(stmt)\", tryResult1669.inspectErr(), \"/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h\", 1587, mozilla::dom::quota::Severity::Error); return tryResult1669.propagateErr(); } auto element = tryResult1669.unwrap();; res.AppendElement(std::move(element)); return Ok{}; })"
, tryResult1670.inspectErr(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 1590, mozilla::dom::quota::Severity::Error); return tryResult1670
.propagateErr(); }}
1586 aStmt, [&aStepFunc, &res](auto& stmt) -> Result<Ok, nsresult> {{auto tryResult1670 = (CollectWhileHasResult( aStmt, [&aStepFunc
, &res](auto& stmt) -> Result<Ok, nsresult> {
auto tryResult1669 = (aStepFunc(stmt)); if ((__builtin_expect
(!!(tryResult1669.isErr()), 0))) { mozilla::dom::quota::HandleError
("aStepFunc(stmt)", tryResult1669.inspectErr(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 1587, mozilla::dom::quota::Severity::Error); return tryResult1669
.propagateErr(); } auto element = tryResult1669.unwrap();; res
.AppendElement(std::move(element)); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1670)::ok_type
>); if ((__builtin_expect(!!(tryResult1670.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( aStmt, [&aStepFunc, &res](auto& stmt) -> Result<Ok, nsresult> { auto tryResult1669 = (aStepFunc(stmt)); if ((__builtin_expect(!!(tryResult1669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aStepFunc(stmt)\", tryResult1669.inspectErr(), \"/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h\", 1587, mozilla::dom::quota::Severity::Error); return tryResult1669.propagateErr(); } auto element = tryResult1669.unwrap();; res.AppendElement(std::move(element)); return Ok{}; })"
, tryResult1670.inspectErr(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 1590, mozilla::dom::quota::Severity::Error); return tryResult1670
.propagateErr(); }}
1587 QM_TRY_UNWRAP(auto element, aStepFunc(stmt));{auto tryResult1670 = (CollectWhileHasResult( aStmt, [&aStepFunc
, &res](auto& stmt) -> Result<Ok, nsresult> {
auto tryResult1669 = (aStepFunc(stmt)); if ((__builtin_expect
(!!(tryResult1669.isErr()), 0))) { mozilla::dom::quota::HandleError
("aStepFunc(stmt)", tryResult1669.inspectErr(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 1587, mozilla::dom::quota::Severity::Error); return tryResult1669
.propagateErr(); } auto element = tryResult1669.unwrap();; res
.AppendElement(std::move(element)); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1670)::ok_type
>); if ((__builtin_expect(!!(tryResult1670.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( aStmt, [&aStepFunc, &res](auto& stmt) -> Result<Ok, nsresult> { auto tryResult1669 = (aStepFunc(stmt)); if ((__builtin_expect(!!(tryResult1669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aStepFunc(stmt)\", tryResult1669.inspectErr(), \"/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h\", 1587, mozilla::dom::quota::Severity::Error); return tryResult1669.propagateErr(); } auto element = tryResult1669.unwrap();; res.AppendElement(std::move(element)); return Ok{}; })"
, tryResult1670.inspectErr(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 1590, mozilla::dom::quota::Severity::Error); return tryResult1670
.propagateErr(); }}
1588 res.AppendElement(std::move(element));{auto tryResult1670 = (CollectWhileHasResult( aStmt, [&aStepFunc
, &res](auto& stmt) -> Result<Ok, nsresult> {
auto tryResult1669 = (aStepFunc(stmt)); if ((__builtin_expect
(!!(tryResult1669.isErr()), 0))) { mozilla::dom::quota::HandleError
("aStepFunc(stmt)", tryResult1669.inspectErr(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 1587, mozilla::dom::quota::Severity::Error); return tryResult1669
.propagateErr(); } auto element = tryResult1669.unwrap();; res
.AppendElement(std::move(element)); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1670)::ok_type
>); if ((__builtin_expect(!!(tryResult1670.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( aStmt, [&aStepFunc, &res](auto& stmt) -> Result<Ok, nsresult> { auto tryResult1669 = (aStepFunc(stmt)); if ((__builtin_expect(!!(tryResult1669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aStepFunc(stmt)\", tryResult1669.inspectErr(), \"/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h\", 1587, mozilla::dom::quota::Severity::Error); return tryResult1669.propagateErr(); } auto element = tryResult1669.unwrap();; res.AppendElement(std::move(element)); return Ok{}; })"
, tryResult1670.inspectErr(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 1590, mozilla::dom::quota::Severity::Error); return tryResult1670
.propagateErr(); }}
1589 return Ok{};{auto tryResult1670 = (CollectWhileHasResult( aStmt, [&aStepFunc
, &res](auto& stmt) -> Result<Ok, nsresult> {
auto tryResult1669 = (aStepFunc(stmt)); if ((__builtin_expect
(!!(tryResult1669.isErr()), 0))) { mozilla::dom::quota::HandleError
("aStepFunc(stmt)", tryResult1669.inspectErr(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 1587, mozilla::dom::quota::Severity::Error); return tryResult1669
.propagateErr(); } auto element = tryResult1669.unwrap();; res
.AppendElement(std::move(element)); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1670)::ok_type
>); if ((__builtin_expect(!!(tryResult1670.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( aStmt, [&aStepFunc, &res](auto& stmt) -> Result<Ok, nsresult> { auto tryResult1669 = (aStepFunc(stmt)); if ((__builtin_expect(!!(tryResult1669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aStepFunc(stmt)\", tryResult1669.inspectErr(), \"/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h\", 1587, mozilla::dom::quota::Severity::Error); return tryResult1669.propagateErr(); } auto element = tryResult1669.unwrap();; res.AppendElement(std::move(element)); return Ok{}; })"
, tryResult1670.inspectErr(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 1590, mozilla::dom::quota::Severity::Error); return tryResult1670
.propagateErr(); }}
1590 })){auto tryResult1670 = (CollectWhileHasResult( aStmt, [&aStepFunc
, &res](auto& stmt) -> Result<Ok, nsresult> {
auto tryResult1669 = (aStepFunc(stmt)); if ((__builtin_expect
(!!(tryResult1669.isErr()), 0))) { mozilla::dom::quota::HandleError
("aStepFunc(stmt)", tryResult1669.inspectErr(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 1587, mozilla::dom::quota::Severity::Error); return tryResult1669
.propagateErr(); } auto element = tryResult1669.unwrap();; res
.AppendElement(std::move(element)); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1670)::ok_type
>); if ((__builtin_expect(!!(tryResult1670.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( aStmt, [&aStepFunc, &res](auto& stmt) -> Result<Ok, nsresult> { auto tryResult1669 = (aStepFunc(stmt)); if ((__builtin_expect(!!(tryResult1669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aStepFunc(stmt)\", tryResult1669.inspectErr(), \"/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h\", 1587, mozilla::dom::quota::Severity::Error); return tryResult1669.propagateErr(); } auto element = tryResult1669.unwrap();; res.AppendElement(std::move(element)); return Ok{}; })"
, tryResult1670.inspectErr(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 1590, mozilla::dom::quota::Severity::Error); return tryResult1670
.propagateErr(); }}
;
1591
1592 return std::move(res);
1593}
1594
1595template <typename ArrayType, typename StepFunc>
1596auto CollectElementsWhileHasResultTyped(mozIStorageStatement& aStmt,
1597 StepFunc&& aStepFunc) {
1598 return CollectElementsWhileHasResult<StepFunc, ArrayType>(
1599 aStmt, std::forward<StepFunc>(aStepFunc));
1600}
1601
1602namespace detail {
1603template <typename Cancel, typename Body>
1604Result<mozilla::Ok, nsresult> CollectEachFile(nsIFile& aDirectory,
1605 const Cancel& aCancel,
1606 const Body& aBody) {
1607 GECKO_TRACE_SCOPE("dom::quota", "CollectEachFile")auto GECKO_TRACE_SCOPE___COUNTER__ = mozilla::gecko_trace::TracerProvider
::GetTracer("dom::quota") ->StartSpan("CollectEachFile") ->
Enter();
;
1608
1609 QM_TRY_INSPECT(const auto& entries, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1671 = (::mozilla::ToResultInvoke< nsCOMPtr<
nsIDirectoryEnumerator> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aDirectory)>::GetDirectoryEntries
), (aDirectory) )); if ((__builtin_expect(!!(tryResult1671.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<nsIDirectoryEnumerator>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aDirectory)>::GetDirectoryEntries), (aDirectory) )"
, tryResult1671.inspectErr(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 1611, mozilla::dom::quota::Severity::Error); return tryResult1671
.propagateErr(); } const auto& entries = tryResult1671.inspect
();
6
Taking false branch
1610 nsCOMPtr<nsIDirectoryEnumerator>,auto tryResult1671 = (::mozilla::ToResultInvoke< nsCOMPtr<
nsIDirectoryEnumerator> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aDirectory)>::GetDirectoryEntries
), (aDirectory) )); if ((__builtin_expect(!!(tryResult1671.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<nsIDirectoryEnumerator>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aDirectory)>::GetDirectoryEntries), (aDirectory) )"
, tryResult1671.inspectErr(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 1611, mozilla::dom::quota::Severity::Error); return tryResult1671
.propagateErr(); } const auto& entries = tryResult1671.inspect
();
1611 aDirectory, GetDirectoryEntries))auto tryResult1671 = (::mozilla::ToResultInvoke< nsCOMPtr<
nsIDirectoryEnumerator> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aDirectory)>::GetDirectoryEntries
), (aDirectory) )); if ((__builtin_expect(!!(tryResult1671.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<nsIDirectoryEnumerator>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aDirectory)>::GetDirectoryEntries), (aDirectory) )"
, tryResult1671.inspectErr(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 1611, mozilla::dom::quota::Severity::Error); return tryResult1671
.propagateErr(); } const auto& entries = tryResult1671.inspect
();
;
1612
1613 return CollectEach(
7
Calling 'CollectEach<(lambda at /root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h:1614:7), (lambda at /root/firefox-clang/dom/indexedDB/ActorsParent.cpp:12491:3)>'
1614 [&entries, &aCancel]() -> Result<nsCOMPtr<nsIFile>, nsresult> {
1615 if (aCancel()) {
1616 return nsCOMPtr<nsIFile>{};
1617 }
1618
1619 QM_TRY_RETURN(MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsCOMPtr<nsIFile>,{auto tryResult1672 = (::mozilla::ToResultInvoke< nsCOMPtr
<nsIFile> >( ::std::mem_fn( &::mozilla::detail::
DerefedType<decltype(entries)>::GetNextFile), (entries)
)); if ((__builtin_expect(!!(tryResult1672.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<nsIFile>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(entries)>::GetNextFile), (entries) )"
, tryResult1672.inspectErr(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 1620, mozilla::dom::quota::Severity::Error); } return tryResult1672
;}
1620 entries, GetNextFile)){auto tryResult1672 = (::mozilla::ToResultInvoke< nsCOMPtr
<nsIFile> >( ::std::mem_fn( &::mozilla::detail::
DerefedType<decltype(entries)>::GetNextFile), (entries)
)); if ((__builtin_expect(!!(tryResult1672.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<nsIFile>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(entries)>::GetNextFile), (entries) )"
, tryResult1672.inspectErr(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 1620, mozilla::dom::quota::Severity::Error); } return tryResult1672
;}
;
1621 },
1622 aBody);
1623}
1624} // namespace detail
1625
1626template <typename Body>
1627Result<mozilla::Ok, nsresult> CollectEachFile(nsIFile& aDirectory,
1628 const Body& aBody) {
1629 return detail::CollectEachFile(aDirectory, [] { return false; }, aBody);
5
Calling 'CollectEachFile<(lambda at /root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h:1629:46), (lambda at /root/firefox-clang/dom/indexedDB/ActorsParent.cpp:12491:3)>'
1630}
1631
1632template <typename Body>
1633Result<mozilla::Ok, nsresult> CollectEachFileAtomicCancelable(
1634 nsIFile& aDirectory, const Atomic<bool>& aCanceled, const Body& aBody) {
1635 return detail::CollectEachFile(
1636 aDirectory, [&aCanceled] { return static_cast<bool>(aCanceled); }, aBody);
1637}
1638
1639template <typename T, typename Body>
1640auto ReduceEachFileAtomicCancelable(nsIFile& aDirectory,
1641 const Atomic<bool>& aCanceled, T aInit,
1642 const Body& aBody) -> Result<T, nsresult> {
1643 QM_TRY_INSPECT(const auto& entries, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1673 = (::mozilla::ToResultInvoke< nsCOMPtr<
nsIDirectoryEnumerator> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aDirectory)>::GetDirectoryEntries
), (aDirectory) )); if ((__builtin_expect(!!(tryResult1673.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<nsIDirectoryEnumerator>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aDirectory)>::GetDirectoryEntries), (aDirectory) )"
, tryResult1673.inspectErr(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 1645, mozilla::dom::quota::Severity::Error); return tryResult1673
.propagateErr(); } const auto& entries = tryResult1673.inspect
();
1644 nsCOMPtr<nsIDirectoryEnumerator>,auto tryResult1673 = (::mozilla::ToResultInvoke< nsCOMPtr<
nsIDirectoryEnumerator> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aDirectory)>::GetDirectoryEntries
), (aDirectory) )); if ((__builtin_expect(!!(tryResult1673.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<nsIDirectoryEnumerator>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aDirectory)>::GetDirectoryEntries), (aDirectory) )"
, tryResult1673.inspectErr(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 1645, mozilla::dom::quota::Severity::Error); return tryResult1673
.propagateErr(); } const auto& entries = tryResult1673.inspect
();
1645 aDirectory, GetDirectoryEntries))auto tryResult1673 = (::mozilla::ToResultInvoke< nsCOMPtr<
nsIDirectoryEnumerator> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aDirectory)>::GetDirectoryEntries
), (aDirectory) )); if ((__builtin_expect(!!(tryResult1673.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<nsIDirectoryEnumerator>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aDirectory)>::GetDirectoryEntries), (aDirectory) )"
, tryResult1673.inspectErr(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 1645, mozilla::dom::quota::Severity::Error); return tryResult1673
.propagateErr(); } const auto& entries = tryResult1673.inspect
();
;
1646
1647 return ReduceEach(
1648 [&entries, &aCanceled]() -> Result<nsCOMPtr<nsIFile>, nsresult> {
1649 if (aCanceled) {
1650 return nsCOMPtr<nsIFile>{};
1651 }
1652
1653 QM_TRY_RETURN(MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsCOMPtr<nsIFile>,{auto tryResult1674 = (::mozilla::ToResultInvoke< nsCOMPtr
<nsIFile> >( ::std::mem_fn( &::mozilla::detail::
DerefedType<decltype(entries)>::GetNextFile), (entries)
)); if ((__builtin_expect(!!(tryResult1674.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<nsIFile>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(entries)>::GetNextFile), (entries) )"
, tryResult1674.inspectErr(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 1654, mozilla::dom::quota::Severity::Error); } return tryResult1674
;}
1654 entries, GetNextFile)){auto tryResult1674 = (::mozilla::ToResultInvoke< nsCOMPtr
<nsIFile> >( ::std::mem_fn( &::mozilla::detail::
DerefedType<decltype(entries)>::GetNextFile), (entries)
)); if ((__builtin_expect(!!(tryResult1674.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<nsIFile>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(entries)>::GetNextFile), (entries) )"
, tryResult1674.inspectErr(), "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/quota/QuotaCommon.h"
, 1654, mozilla::dom::quota::Severity::Error); } return tryResult1674
;}
;
1655 },
1656 std::move(aInit), aBody);
1657}
1658
1659constexpr bool IsDatabaseCorruptionError(const nsresult aRv) {
1660 return aRv == NS_ERROR_FILE_CORRUPTED || aRv == NS_ERROR_STORAGE_IOERR ||
1661 aRv == NS_ERROR_MALFORMED_URI;
1662}
1663
1664enum class IntegrityCheckMode { Quick, Full };
1665
1666// Run PRAGMA quick_check(1) or PRAGMA integrity_check(1) on the given
1667// connection and return whether the database is structurally sound.
1668// Quick mode validates B-tree structure and freelist consistency; Full mode
1669// additionally cross-validates index entries against their parent tables.
1670Result<bool, nsresult> DatabasePassesIntegrityCheck(
1671 mozIStorageConnection& aConnection,
1672 IntegrityCheckMode aMode = IntegrityCheckMode::Quick);
1673
1674template <typename Func>
1675auto CallWithDelayedRetriesIfAccessDenied(Func&& aFunc, uint32_t aMaxRetries,
1676 uint32_t aDelayMs)
1677 -> Result<typename std::invoke_result_t<Func>::ok_type, nsresult> {
1678 std::decay_t<Func> func = std::forward<Func>(aFunc);
1679
1680 uint32_t retries = 0;
1681
1682 while (true) {
1683 auto result = std::invoke(func);
1684
1685 if (result.isOk()) {
1686 return result;
1687 }
1688
1689 if (result.inspectErr() != NS_ERROR_FILE_IS_LOCKED &&
1690 result.inspectErr() != NS_ERROR_FILE_ACCESS_DENIED) {
1691 return result;
1692 }
1693
1694 if (retries++ >= aMaxRetries) {
1695 return result;
1696 }
1697
1698 PR_Sleep(PR_MillisecondsToInterval(aDelayMs));
1699 }
1700}
1701
1702namespace detail {
1703
1704template <bool flag = false>
1705void UnsupportedReturnType() {
1706 static_assert(flag, "Unsupported return type!");
1707}
1708
1709} // namespace detail
1710
1711template <typename Initialization, typename StringGenerator, typename Func>
1712auto ExecuteInitialization(
1713 FirstInitializationAttempts<Initialization, StringGenerator>&
1714 aFirstInitializationAttempts,
1715 const Initialization aInitialization, Func&& aFunc)
1716 -> std::invoke_result_t<Func, const FirstInitializationAttempt<
1717 Initialization, StringGenerator>&> {
1718 return aFirstInitializationAttempts.WithFirstInitializationAttempt(
1719 aInitialization, [&aFunc](auto&& firstInitializationAttempt) {
1720 auto res = std::forward<Func>(aFunc)(firstInitializationAttempt);
1721
1722 const auto rv = [&res]() -> nsresult {
1723 using RetType =
1724 std::invoke_result_t<Func, const FirstInitializationAttempt<
1725 Initialization, StringGenerator>&>;
1726
1727 if constexpr (std::is_same_v<RetType, nsresult>) {
1728 return res;
1729 } else if constexpr (mozilla::detail::IsResult<RetType>::value &&
1730 std::is_same_v<typename RetType::err_type,
1731 nsresult>) {
1732 return res.isOk() ? NS_OK : res.inspectErr();
1733 } else {
1734 detail::UnsupportedReturnType();
1735 }
1736 }();
1737
1738 // NS_ERROR_ABORT signals a non-fatal, recoverable problem during
1739 // initialization. We do not want these kind of failures to count
1740 // against our overall first initialization attempt telemetry. Thus we
1741 // just ignore this kind of failure and keep
1742 // aFirstInitializationAttempts unflagged to stay ready to record a real
1743 // success or failure on the next attempt.
1744 if (rv == NS_ERROR_ABORT) {
1745 return res;
1746 }
1747
1748 if (!firstInitializationAttempt.Recorded()) {
1749 firstInitializationAttempt.Record(rv);
1750 }
1751
1752 return res;
1753 });
1754}
1755
1756template <typename Initialization, typename StringGenerator, typename Func>
1757auto ExecuteInitialization(
1758 FirstInitializationAttempts<Initialization, StringGenerator>&
1759 aFirstInitializationAttempts,
1760 const Initialization aInitialization, const nsACString& aContext,
1761 Func&& aFunc)
1762 -> std::invoke_result_t<Func, const FirstInitializationAttempt<
1763 Initialization, StringGenerator>&> {
1764 return ExecuteInitialization(
1765 aFirstInitializationAttempts, aInitialization,
1766 [&](const auto& firstInitializationAttempt) -> decltype(auto) {
1767#ifdef QM_SCOPED_LOG_EXTRA_INFO_ENABLED
1768 const auto maybeScopedLogExtraInfo =
1769 firstInitializationAttempt.Recorded()
1770 ? Nothing{}
1771 : Some(ScopedLogExtraInfo{
1772 ScopedLogExtraInfo::kTagContextTainted, aContext});
1773#endif
1774 GECKO_TRACE_SCOPE("dom::quota", aContext)auto GECKO_TRACE_SCOPE___COUNTER__ = mozilla::gecko_trace::TracerProvider
::GetTracer("dom::quota") ->StartSpan(aContext) ->Enter
();
;
1775
1776 return std::forward<Func>(aFunc)(firstInitializationAttempt);
1777 });
1778}
1779
1780} // namespace dom::quota
1781} // namespace mozilla
1782
1783#endif // mozilla_dom_quota_quotacommon_h_

←

/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/nsCOMPtr.h

1/* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5#ifndef nsCOMPtr_h_
6#define nsCOMPtr_h_
7
8/*
9 * Having problems?
10 *
11 * See the documentation at:
12 * https://firefox-source-docs.mozilla.org/xpcom/refptr.html
13 *
14 *
15 * nsCOMPtr
16 * better than a raw pointer
17 * for owning objects
18 * -- scc
19 */
20
21#include <type_traits>
22
23#include "mozilla/AlreadyAddRefed.h"
24#include "mozilla/Assertions.h"
25#include "mozilla/Attributes.h"
26#include "mozilla/RefPtr.h"
27#include "nsCycleCollectionNoteChild.h"
28#include "nsDebug.h" // for |NS_ASSERTION|
29#include "nsISupportsImpl.h"
30#include "nsISupportsUtils.h" // for |nsresult|, |NS_ADDREF|, |NS_GET_IID| et al
31
32/*
33 * WARNING: This file defines several macros for internal use only. These
34 * macros begin with the prefix |NSCAP_|. Do not use these macros in your own
35 * code. They are for internal use only for cross-platform compatibility, and
36 * are subject to change without notice.
37 */
38
39#ifdef _MSC_VER
40// Under VC++, we win by inlining StartAssignment.
41# define NSCAP_FEATURE_INLINE_STARTASSIGNMENT
42
43// Also under VC++, at the highest warning level, we are overwhelmed with
44// warnings about (unused) inline functions being removed. This is to be
45// expected with templates, so we disable the warning.
46# pragma warning(disable : 4514)
47#endif
48
49#ifdef DEBUG1
50# define NSCAP_FEATURE_TEST_DONTQUERY_CASES
51#endif
52
53#ifdef __GNUC__4
54// Our use of nsCOMPtr_base::mRawPtr violates the C++ standard's aliasing
55// rules. Mark it with the may_alias attribute so that gcc 3.3 and higher
56// don't reorder instructions based on aliasing assumptions for
57// this variable. Fortunately, gcc versions < 3.3 do not do any
58// optimizations that break nsCOMPtr.
59
60# define NS_MAY_ALIAS_PTR(t)t* __attribute__((__may_alias__)) t* __attribute__((__may_alias__))
61#else
62# define NS_MAY_ALIAS_PTR(t)t* __attribute__((__may_alias__)) t*
63#endif
64
65/*
66 * The following three macros (NSCAP_ADDREF, NSCAP_RELEASE, and
67 * NSCAP_LOG_ASSIGNMENT) allow external clients the ability to add logging or
68 * other interesting debug facilities. In fact, if you want |nsCOMPtr| to
69 * participate in the standard logging facility, you provide
70 * (e.g., in "nsISupportsImpl.h") suitable definitions
71 *
72 * #define NSCAP_ADDREF(this, ptr) NS_ADDREF(ptr)
73 * #define NSCAP_RELEASE(this, ptr) NS_RELEASE(ptr)
74 */
75
76#ifndef NSCAP_ADDREF
77# define NSCAP_ADDREF(this, ptr)mozilla::RefPtrTraits<std::remove_reference_t<decltype(
*ptr)>>::AddRef(ptr)
\
78 mozilla::RefPtrTraits<std::remove_reference_t<decltype(*ptr)>>::AddRef(ptr)
79#endif
80
81#ifndef NSCAP_RELEASE
82# define NSCAP_RELEASE(this, ptr)mozilla::RefPtrTraits<std::remove_reference_t<decltype(
*ptr)>>::Release(ptr)
\
83 mozilla::RefPtrTraits<std::remove_reference_t<decltype(*ptr)>>::Release(ptr)
84#endif
85
86// Clients can define |NSCAP_LOG_ASSIGNMENT| to perform logging.
87#ifdef NSCAP_LOG_ASSIGNMENT
88// Remember that |NSCAP_LOG_ASSIGNMENT| was defined by some client so that we
89// know to instantiate |~nsGetterAddRefs| in turn to note the external
90// assignment into the |nsCOMPtr|.
91# define NSCAP_LOG_EXTERNAL_ASSIGNMENT
92#else
93// ...otherwise, just strip it out of the code
94# define NSCAP_LOG_ASSIGNMENT(this, ptr)if (ptr != nullptr) NS_LogCOMPtrAddRef((this), ToSupports(ptr
))
95#endif
96
97#ifndef NSCAP_LOG_RELEASE
98# define NSCAP_LOG_RELEASE(this, ptr)if (ptr) NS_LogCOMPtrRelease((this), ToSupports(ptr))
99#endif
100
101namespace mozilla {
102template <class T>
103class OwningNonNull;
104} // namespace mozilla
105
106template <class T>
107inline already_AddRefed<T> dont_AddRef(T* aRawPtr) {
108 return already_AddRefed<T>(aRawPtr);
109}
110
111template <class T>
112inline already_AddRefed<T>&& dont_AddRef(
113 already_AddRefed<T>&& aAlreadyAddRefedPtr) {
114 return std::move(aAlreadyAddRefedPtr);
115}
116
117/*
118 * An nsCOMPtr_helper transforms commonly called getters into typesafe forms
119 * that are more convenient to call, and more efficient to use with |nsCOMPtr|s.
120 * Good candidates for helpers are |QueryInterface()|, |CreateInstance()|, etc.
121 *
122 * Here are the rules for a helper:
123 * - it implements |operator()| to produce an interface pointer
124 * - (except for its name) |operator()| is a valid [XP]COM `getter'
125 * - the interface pointer that it returns is already |AddRef()|ed (as from
126 * any good getter)
127 * - it matches the type requested with the supplied |nsIID| argument
128 * - its constructor provides an optional |nsresult*| that |operator()| can
129 * fill in with an error when it is executed
130 *
131 * See |class nsGetInterface| for an example.
132 */
133class MOZ_STACK_CLASS MOZ_NULL_AFTER_MOVE[[clang::annotate("clang-tidy", "bugprone-use-after-move", "null_after_move"
)]]
nsCOMPtr_helper {
134 public:
135 virtual nsresult NS_FASTCALL operator()(const nsIID&, void**) const = 0;
136};
137
138/*
139 * nsQueryInterface could have been implemented as an nsCOMPtr_helper to avoid
140 * adding specialized machinery in nsCOMPtr, but do_QueryInterface is called
141 * often enough that the codesize savings are big enough to warrant the
142 * specialcasing.
143 */
144class MOZ_STACK_CLASS nsQueryInterfaceISupports {
145 public:
146 explicit nsQueryInterfaceISupports(nsISupports* aRawPtr) : mRawPtr(aRawPtr) {}
147
148 nsresult NS_FASTCALL operator()(const nsIID& aIID, void**) const;
149
150 private:
151 nsISupports* MOZ_OWNING_REF mRawPtr;
152};
153
154template <typename T>
155class MOZ_STACK_CLASS nsQueryInterface final
156 : public nsQueryInterfaceISupports {
157 public:
158 explicit nsQueryInterface(T* aRawPtr)
159 : nsQueryInterfaceISupports(ToSupports(aRawPtr)) {}
160
161 nsresult NS_FASTCALL operator()(const nsIID& aIID, void** aAnswer) const {
162 return nsQueryInterfaceISupports::operator()(aIID, aAnswer);
163 }
164};
165
166class MOZ_STACK_CLASS nsQueryInterfaceISupportsWithError {
167 public:
168 nsQueryInterfaceISupportsWithError(nsISupports* aRawPtr, nsresult* aError)
169 : mRawPtr(aRawPtr), mErrorPtr(aError) {}
170
171 nsresult NS_FASTCALL operator()(const nsIID& aIID, void**) const;
172
173 private:
174 nsISupports* MOZ_OWNING_REF mRawPtr;
175 nsresult* mErrorPtr;
176};
177
178template <typename T>
179class MOZ_STACK_CLASS nsQueryInterfaceWithError final
180 : public nsQueryInterfaceISupportsWithError {
181 public:
182 explicit nsQueryInterfaceWithError(T* aRawPtr, nsresult* aError)
183 : nsQueryInterfaceISupportsWithError(ToSupports(aRawPtr), aError) {}
184
185 nsresult NS_FASTCALL operator()(const nsIID& aIID, void** aAnswer) const {
186 return nsQueryInterfaceISupportsWithError::operator()(aIID, aAnswer);
187 }
188};
189
190namespace mozilla {
191// PointedToType<> is needed so that do_QueryInterface() will work with a
192// variety of smart pointer types in addition to raw pointers. These types
193// include RefPtr<>, nsCOMPtr<>, and OwningNonNull<>.
194template <class T>
195using PointedToType = std::remove_pointer_t<decltype(&*std::declval<T>())>;
196} // namespace mozilla
197
198template <class T>
199inline nsQueryInterface<mozilla::PointedToType<T>> do_QueryInterface(T aPtr) {
200 return nsQueryInterface<mozilla::PointedToType<T>>(aPtr);
201}
202
203template <class T>
204inline nsQueryInterfaceWithError<mozilla::PointedToType<T>> do_QueryInterface(
205 T aRawPtr, nsresult* aError) {
206 return nsQueryInterfaceWithError<mozilla::PointedToType<T>>(aRawPtr, aError);
207}
208
209template <class T>
210inline void do_QueryInterface(already_AddRefed<T>&) {
211 // This signature exists solely to _stop_ you from doing the bad thing.
212 // Saying |do_QueryInterface()| on a pointer that is not otherwise owned by
213 // someone else is an automatic leak. See bug 8221.
214}
215
216template <class T>
217inline void do_QueryInterface(already_AddRefed<T>&, nsresult*) {
218 // This signature exists solely to _stop_ you from doing the bad thing.
219 // Saying |do_QueryInterface()| on a pointer that is not otherwise owned by
220 // someone else is an automatic leak. See bug 8221.
221}
222
223////////////////////////////////////////////////////////////////////////////
224// Using servicemanager with COMPtrs
225class nsGetServiceByCID final {
226 public:
227 explicit nsGetServiceByCID(const nsCID& aCID) : mCID(aCID) {}
228
229 nsresult NS_FASTCALL operator()(const nsIID&, void**) const;
230
231 private:
232 const nsCID& mCID;
233};
234
235class nsGetServiceByCIDWithError final {
236 public:
237 nsGetServiceByCIDWithError(const nsCID& aCID, nsresult* aErrorPtr)
238 : mCID(aCID), mErrorPtr(aErrorPtr) {}
239
240 nsresult NS_FASTCALL operator()(const nsIID&, void**) const;
241
242 private:
243 const nsCID& mCID;
244 nsresult* mErrorPtr;
245};
246
247class nsGetServiceByContractID final {
248 public:
249 explicit nsGetServiceByContractID(const char* aContractID)
250 : mContractID(aContractID) {}
251
252 nsresult NS_FASTCALL operator()(const nsIID&, void**) const;
253
254 private:
255 const char* mContractID;
256};
257
258class nsGetServiceByContractIDWithError final {
259 public:
260 nsGetServiceByContractIDWithError(const char* aContractID,
261 nsresult* aErrorPtr)
262 : mContractID(aContractID), mErrorPtr(aErrorPtr) {}
263
264 nsresult NS_FASTCALL operator()(const nsIID&, void**) const;
265
266 private:
267 const char* mContractID;
268 nsresult* mErrorPtr;
269};
270
271class nsIWeakReference;
272
273// Weak references
274class MOZ_STACK_CLASS nsQueryReferent final {
275 public:
276 nsQueryReferent(nsIWeakReference* aWeakPtr, nsresult* aError)
277 : mWeakPtr(aWeakPtr), mErrorPtr(aError) {}
278
279 nsresult NS_FASTCALL operator()(const nsIID& aIID, void**) const;
280
281 private:
282 nsIWeakReference* MOZ_NON_OWNING_REF mWeakPtr;
283 nsresult* mErrorPtr;
284};
285
286// template<class T> class nsGetterAddRefs;
287
288// Helper for assert_validity method
289template <class T>
290constexpr std::true_type TestForIID(decltype(&NS_GET_IID(T)(T::kIID)));
291template <class T>
292constexpr std::false_type TestForIID(...);
293
294template <class T>
295class MOZ_IS_REFPTR nsCOMPtr final {
296 private:
297 void assign_with_AddRef(T*);
298 template <typename U>
299 void assign_from_qi(const nsQueryInterface<U>, const nsIID&);
300 template <typename U>
301 void assign_from_qi_with_error(const nsQueryInterfaceWithError<U>&,
302 const nsIID&);
303 void assign_from_gs_cid(const nsGetServiceByCID, const nsIID&);
304 void assign_from_gs_cid_with_error(const nsGetServiceByCIDWithError&,
305 const nsIID&);
306 void assign_from_gs_contractid(const nsGetServiceByContractID, const nsIID&);
307 void assign_from_gs_contractid_with_error(
308 const nsGetServiceByContractIDWithError&, const nsIID&);
309 void assign_from_query_referent(const nsQueryReferent&, const nsIID&);
310 void assign_from_helper(const nsCOMPtr_helper&, const nsIID&);
311 void** begin_assignment();
312
313 void assign_assuming_AddRef(T* aNewPtr) {
314 T* oldPtr = mRawPtr;
315 mRawPtr = aNewPtr;
316 NSCAP_LOG_ASSIGNMENT(this, aNewPtr)if (aNewPtr != nullptr) NS_LogCOMPtrAddRef((this), ToSupports
(aNewPtr))
;
317 NSCAP_LOG_RELEASE(this, oldPtr)if (oldPtr) NS_LogCOMPtrRelease((this), ToSupports(oldPtr));
318 if (oldPtr) {
319 NSCAP_RELEASE(this, oldPtr)mozilla::RefPtrTraits<std::remove_reference_t<decltype(
*oldPtr)>>::Release(oldPtr)
;
320 }
321 }
322
323 private:
324 T* MOZ_OWNING_REF mRawPtr;
325
326 constexpr void assert_validity() {
327 static_assert(decltype(TestForIID<T>(nullptr))::value,
328 "nsCOMPtr only works "
329 "for types with IIDs. Either use RefPtr; add an IID to "
330 "your type with NS_INLINE_DECL_STATIC_IID/ ;"
331 "or make the nsCOMPtr point "
332 "to a base class with an IID.");
333 }
334
335 public:
336 typedef T element_type;
337
338 ~nsCOMPtr() {
339 NSCAP_LOG_RELEASE(this, mRawPtr)if (mRawPtr) NS_LogCOMPtrRelease((this), ToSupports(mRawPtr));
11
Branch condition evaluates to a garbage value
340 if (mRawPtr) {
341 NSCAP_RELEASE(this, mRawPtr)mozilla::RefPtrTraits<std::remove_reference_t<decltype(
*mRawPtr)>>::Release(mRawPtr)
;
342 }
343 }
344
345#ifdef NSCAP_FEATURE_TEST_DONTQUERY_CASES
346 void Assert_NoQueryNeeded() {
347 if (!mRawPtr) {
348 return;
349 }
350 if constexpr (std::is_same_v<T, nsISupports>) {
351 // FIXME: nsCOMPtr<nsISupports> never asserted this, and it currently
352 // fails...
353 return;
354 }
355 // This can't be defined in terms of do_QueryInterface because
356 // that bans casts from a class to itself.
357 void* out = nullptr;
358 mRawPtr->QueryInterface(NS_GET_IID(T)(T::kIID), &out);
359 T* query_result = static_cast<T*>(out);
360 MOZ_ASSERT(query_result == mRawPtr, "QueryInterface needed")do { static_assert( mozilla::detail::AssertionConditionType<
decltype(query_result == mRawPtr)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(query_result == mRawPtr))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("query_result == mRawPtr"
" (" "QueryInterface needed" ")", "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/nsCOMPtr.h"
, 360); AnnotateMozCrashReason("MOZ_ASSERT" "(" "query_result == mRawPtr"
") (" "QueryInterface needed" ")"); do { MOZ_CrashSequence(__null
, 360); __attribute__((nomerge)) ::abort(); } while (false); }
} while (false)
;
361 NS_RELEASE(query_result)do { (query_result)->Release(); (query_result) = 0; } while
(0)
;
362 }
363
364# define NSCAP_ASSERT_NO_QUERY_NEEDED()Assert_NoQueryNeeded(); Assert_NoQueryNeeded();
365#else
366# define NSCAP_ASSERT_NO_QUERY_NEEDED()Assert_NoQueryNeeded();
367#endif
368
369 // Constructors
370
371 constexpr nsCOMPtr() : mRawPtr(nullptr) {
372 NSCAP_LOG_ASSIGNMENT(this, nullptr)if (nullptr != nullptr) NS_LogCOMPtrAddRef((this), ToSupports
(nullptr))
;
373 }
374
375 MOZ_IMPLICIT nsCOMPtr(std::nullptr_t) : mRawPtr(nullptr) {
376 assert_validity();
377 NSCAP_LOG_ASSIGNMENT(this, nullptr)if (nullptr != nullptr) NS_LogCOMPtrAddRef((this), ToSupports
(nullptr))
;
378 }
379
380 nsCOMPtr(const nsCOMPtr<T>& aSmartPtr) : mRawPtr(aSmartPtr.mRawPtr) {
381 assert_validity();
382 if (mRawPtr) {
383 NSCAP_ADDREF(this, mRawPtr)mozilla::RefPtrTraits<std::remove_reference_t<decltype(
*mRawPtr)>>::AddRef(mRawPtr)
;
384 }
385 NSCAP_LOG_ASSIGNMENT(this, aSmartPtr.mRawPtr)if (aSmartPtr.mRawPtr != nullptr) NS_LogCOMPtrAddRef((this), ToSupports
(aSmartPtr.mRawPtr))
;
386 }
387
388 template <class U>
389 MOZ_IMPLICIT nsCOMPtr(const nsCOMPtr<U>& aSmartPtr)
390 : mRawPtr(aSmartPtr.get()) {
391 // Make sure that U actually inherits from T
392 static_assert(std::is_base_of_v<T, U>, "U should be a subclass of T");
393 assert_validity();
394 if (mRawPtr) {
395 NSCAP_ADDREF(this, mRawPtr)mozilla::RefPtrTraits<std::remove_reference_t<decltype(
*mRawPtr)>>::AddRef(mRawPtr)
;
396 }
397 NSCAP_LOG_ASSIGNMENT(this, aSmartPtr.get())if (aSmartPtr.get() != nullptr) NS_LogCOMPtrAddRef((this), ToSupports
(aSmartPtr.get()))
;
398 }
399
400 nsCOMPtr(nsCOMPtr<T>&& aSmartPtr) : mRawPtr(aSmartPtr.mRawPtr) {
401 assert_validity();
402 aSmartPtr.mRawPtr = nullptr;
403 NSCAP_LOG_ASSIGNMENT(this, mRawPtr)if (mRawPtr != nullptr) NS_LogCOMPtrAddRef((this), ToSupports
(mRawPtr))
;
404 }
405
406 template <class U>
407 MOZ_IMPLICIT nsCOMPtr(nsCOMPtr<U>&& aSmartPtr)
408 : mRawPtr(aSmartPtr.forget().template downcast<T>().take()) {
409 // Make sure that U actually inherits from T
410 static_assert(std::is_base_of_v<T, U>, "U should be a subclass of T");
411 assert_validity();
412 NSCAP_LOG_ASSIGNMENT(this, mRawPtr)if (mRawPtr != nullptr) NS_LogCOMPtrAddRef((this), ToSupports
(mRawPtr))
;
413 NSCAP_ASSERT_NO_QUERY_NEEDED()Assert_NoQueryNeeded();;
414 }
415
416 MOZ_IMPLICIT nsCOMPtr(T* aRawPtr) : mRawPtr(aRawPtr) {
417 assert_validity();
418 if (mRawPtr) {
419 NSCAP_ADDREF(this, mRawPtr)mozilla::RefPtrTraits<std::remove_reference_t<decltype(
*mRawPtr)>>::AddRef(mRawPtr)
;
420 }
421 NSCAP_LOG_ASSIGNMENT(this, aRawPtr)if (aRawPtr != nullptr) NS_LogCOMPtrAddRef((this), ToSupports
(aRawPtr))
;
422 NSCAP_ASSERT_NO_QUERY_NEEDED()Assert_NoQueryNeeded();;
423 }
424
425 MOZ_IMPLICIT nsCOMPtr(already_AddRefed<T>& aSmartPtr)
426 : mRawPtr(aSmartPtr.take()) {
427 assert_validity();
428 NSCAP_LOG_ASSIGNMENT(this, mRawPtr)if (mRawPtr != nullptr) NS_LogCOMPtrAddRef((this), ToSupports
(mRawPtr))
;
429 NSCAP_ASSERT_NO_QUERY_NEEDED()Assert_NoQueryNeeded();;
430 }
431
432 // Construct from |otherComPtr.forget()|.
433 MOZ_IMPLICIT nsCOMPtr(already_AddRefed<T>&& aSmartPtr)
434 : mRawPtr(aSmartPtr.take()) {
435 assert_validity();
436 NSCAP_LOG_ASSIGNMENT(this, mRawPtr)if (mRawPtr != nullptr) NS_LogCOMPtrAddRef((this), ToSupports
(mRawPtr))
;
437 NSCAP_ASSERT_NO_QUERY_NEEDED()Assert_NoQueryNeeded();;
438 }
439
440 // Construct from |std::move(otherRefPtr)|.
441 template <typename U>
442 MOZ_IMPLICIT nsCOMPtr(RefPtr<U>&& aSmartPtr)
443 : mRawPtr(static_cast<already_AddRefed<T>>(aSmartPtr.forget()).take()) {
444 assert_validity();
445 // Make sure that U actually inherits from T
446 static_assert(std::is_base_of_v<T, U>, "U is not a subclass of T");
447 NSCAP_LOG_ASSIGNMENT(this, mRawPtr)if (mRawPtr != nullptr) NS_LogCOMPtrAddRef((this), ToSupports
(mRawPtr))
;
448 NSCAP_ASSERT_NO_QUERY_NEEDED()Assert_NoQueryNeeded();;
449 }
450
451 // Construct from |already_AddRefed|.
452 template <typename U>
453 MOZ_IMPLICIT nsCOMPtr(already_AddRefed<U>& aSmartPtr)
454 : mRawPtr(static_cast<T*>(aSmartPtr.take())) {
455 assert_validity();
456 // But make sure that U actually inherits from T.
457 static_assert(std::is_base_of_v<T, U>, "U is not a subclass of T");
458 NSCAP_LOG_ASSIGNMENT(this, static_cast<T*>(mRawPtr))if (static_cast<T*>(mRawPtr) != nullptr) NS_LogCOMPtrAddRef
((this), ToSupports(static_cast<T*>(mRawPtr)))
;
459 NSCAP_ASSERT_NO_QUERY_NEEDED()Assert_NoQueryNeeded();;
460 }
461
462 // Construct from |otherComPtr.forget()|.
463 template <typename U>
464 MOZ_IMPLICIT nsCOMPtr(already_AddRefed<U>&& aSmartPtr)
465 : mRawPtr(static_cast<T*>(aSmartPtr.take())) {
466 assert_validity();
467 // But make sure that U actually inherits from T.
468 static_assert(std::is_base_of_v<T, U>, "U is not a subclass of T");
469 NSCAP_LOG_ASSIGNMENT(this, static_cast<T*>(mRawPtr))if (static_cast<T*>(mRawPtr) != nullptr) NS_LogCOMPtrAddRef
((this), ToSupports(static_cast<T*>(mRawPtr)))
;
470 NSCAP_ASSERT_NO_QUERY_NEEDED()Assert_NoQueryNeeded();;
471 }
472
473 // Construct from |do_QueryInterface(expr)|.
474 template <typename U>
475 MOZ_IMPLICIT nsCOMPtr(const nsQueryInterface<U> aQI) : mRawPtr(nullptr) {
476 assert_validity();
477 NSCAP_LOG_ASSIGNMENT(this, nullptr)if (nullptr != nullptr) NS_LogCOMPtrAddRef((this), ToSupports
(nullptr))
;
478 assign_from_qi(aQI, NS_GET_IID(T)(T::kIID));
479 }
480
481 // Construct from |do_QueryInterface(expr, &rv)|.
482 template <typename U>
483 MOZ_IMPLICIT nsCOMPtr(const nsQueryInterfaceWithError<U>& aQI)
484 : mRawPtr(nullptr) {
485 assert_validity();
486 NSCAP_LOG_ASSIGNMENT(this, nullptr)if (nullptr != nullptr) NS_LogCOMPtrAddRef((this), ToSupports
(nullptr))
;
487 assign_from_qi_with_error(aQI, NS_GET_IID(T)(T::kIID));
488 }
489
490 // Construct from |do_GetService(cid_expr)|.
491 MOZ_IMPLICIT nsCOMPtr(const nsGetServiceByCID aGS) : mRawPtr(nullptr) {
492 assert_validity();
493 NSCAP_LOG_ASSIGNMENT(this, nullptr)if (nullptr != nullptr) NS_LogCOMPtrAddRef((this), ToSupports
(nullptr))
;
494 assign_from_gs_cid(aGS, NS_GET_IID(T)(T::kIID));
495 }
496
497 // Construct from |do_GetService(cid_expr, &rv)|.
498 MOZ_IMPLICIT nsCOMPtr(const nsGetServiceByCIDWithError& aGS)
499 : mRawPtr(nullptr) {
500 assert_validity();
501 NSCAP_LOG_ASSIGNMENT(this, nullptr)if (nullptr != nullptr) NS_LogCOMPtrAddRef((this), ToSupports
(nullptr))
;
502 assign_from_gs_cid_with_error(aGS, NS_GET_IID(T)(T::kIID));
503 }
504
505 // Construct from |do_GetService(contractid_expr)|.
506 MOZ_IMPLICIT nsCOMPtr(const nsGetServiceByContractID aGS) : mRawPtr(nullptr) {
507 assert_validity();
508 NSCAP_LOG_ASSIGNMENT(this, nullptr)if (nullptr != nullptr) NS_LogCOMPtrAddRef((this), ToSupports
(nullptr))
;
509 assign_from_gs_contractid(aGS, NS_GET_IID(T)(T::kIID));
510 }
511
512 // Construct from |do_GetService(contractid_expr, &rv)|.
513 MOZ_IMPLICIT nsCOMPtr(const nsGetServiceByContractIDWithError& aGS)
514 : mRawPtr(nullptr) {
515 assert_validity();
516 NSCAP_LOG_ASSIGNMENT(this, nullptr)if (nullptr != nullptr) NS_LogCOMPtrAddRef((this), ToSupports
(nullptr))
;
517 assign_from_gs_contractid_with_error(aGS, NS_GET_IID(T)(T::kIID));
518 }
519
520 // Construct from |do_QueryReferent(ptr)|
521 MOZ_IMPLICIT nsCOMPtr(const nsQueryReferent& aQueryReferent)
522 : mRawPtr(nullptr) {
523 assert_validity();
524 NSCAP_LOG_ASSIGNMENT(this, nullptr)if (nullptr != nullptr) NS_LogCOMPtrAddRef((this), ToSupports
(nullptr))
;
525 assign_from_query_referent(aQueryReferent, NS_GET_IID(T)(T::kIID));
526 }
527
528 // And finally, anything else we might need to construct from can exploit the
529 // nsCOMPtr_helper facility.
530 MOZ_IMPLICIT nsCOMPtr(const nsCOMPtr_helper& aHelper) : mRawPtr(nullptr) {
531 assert_validity();
532 NSCAP_LOG_ASSIGNMENT(this, nullptr)if (nullptr != nullptr) NS_LogCOMPtrAddRef((this), ToSupports
(nullptr))
;
533 assign_from_helper(aHelper, NS_GET_IID(T)(T::kIID));
534 NSCAP_ASSERT_NO_QUERY_NEEDED()Assert_NoQueryNeeded();;
535 }
536
537 // construct from |mozilla::NotNull|.
538 template <typename I,
539 typename = std::enable_if_t<!std::is_same_v<I, nsCOMPtr<T>> &&
540 std::is_convertible_v<I, nsCOMPtr<T>>>>
541 MOZ_IMPLICIT nsCOMPtr(const mozilla::NotNull<I>& aSmartPtr)
542 : mRawPtr(nsCOMPtr<T>(aSmartPtr.get()).forget().take()) {}
543
544 // construct from |mozilla::MovingNotNull|.
545 template <typename I,
546 typename = std::enable_if_t<!std::is_same_v<I, nsCOMPtr<T>> &&
547 std::is_convertible_v<I, nsCOMPtr<T>>>>
548 MOZ_IMPLICIT nsCOMPtr(mozilla::MovingNotNull<I>&& aSmartPtr)
549 : mRawPtr(
550 nsCOMPtr<T>(std::move(aSmartPtr).unwrapBasePtr()).forget().take()) {
551 }
552
553 // Defined in OwningNonNull.h
554 template <class U>
555 MOZ_IMPLICIT nsCOMPtr(const mozilla::OwningNonNull<U>& aOther);
556
557 // Assignment operators
558
559 nsCOMPtr<T>& operator=(const nsCOMPtr<T>& aRhs) {
560 assign_with_AddRef(aRhs.mRawPtr);
561 return *this;
562 }
563
564 template <class U>
565 nsCOMPtr<T>& operator=(const nsCOMPtr<U>& aRhs) {
566 // Make sure that U actually inherits from T
567 static_assert(std::is_base_of_v<T, U>, "U should be a subclass of T");
568 assign_with_AddRef(aRhs.get());
569 return *this;
570 }
571
572 nsCOMPtr<T>& operator=(nsCOMPtr<T>&& aRhs) {
573 assign_assuming_AddRef(aRhs.forget().take());
574 return *this;
575 }
576
577 template <class U>
578 nsCOMPtr<T>& operator=(nsCOMPtr<U>&& aRhs) {
579 // Make sure that U actually inherits from T
580 static_assert(std::is_base_of_v<T, U>, "U should be a subclass of T");
581 assign_assuming_AddRef(aRhs.forget().template downcast<T>().take());
582 NSCAP_ASSERT_NO_QUERY_NEEDED()Assert_NoQueryNeeded();;
583 return *this;
584 }
585
586 nsCOMPtr<T>& operator=(T* aRhs) {
587 assign_with_AddRef(aRhs);
588 NSCAP_ASSERT_NO_QUERY_NEEDED()Assert_NoQueryNeeded();;
589 return *this;
590 }
591
592 nsCOMPtr<T>& operator=(decltype(nullptr)) {
593 assign_assuming_AddRef(nullptr);
594 return *this;
595 }
596
597 // Assign from |already_AddRefed|.
598 template <typename U>
599 nsCOMPtr<T>& operator=(already_AddRefed<U>& aRhs) {
600 // Make sure that U actually inherits from T
601 static_assert(std::is_base_of_v<T, U>, "U is not a subclass of T");
602 assign_assuming_AddRef(static_cast<T*>(aRhs.take()));
603 NSCAP_ASSERT_NO_QUERY_NEEDED()Assert_NoQueryNeeded();;
604 return *this;
605 }
606
607 // Assign from |otherComPtr.forget()|.
608 template <typename U>
609 nsCOMPtr<T>& operator=(already_AddRefed<U>&& aRhs) {
610 // Make sure that U actually inherits from T
611 static_assert(std::is_base_of_v<T, U>, "U is not a subclass of T");
612 assign_assuming_AddRef(static_cast<T*>(aRhs.take()));
613 NSCAP_ASSERT_NO_QUERY_NEEDED()Assert_NoQueryNeeded();;
614 return *this;
615 }
616
617 // Assign from |std::move(otherRefPtr)|.
618 template <typename U>
619 nsCOMPtr<T>& operator=(RefPtr<U>&& aRhs) {
620 // Make sure that U actually inherits from T
621 static_assert(std::is_base_of_v<T, U>, "U is not a subclass of T");
622 assign_assuming_AddRef(static_cast<T*>(aRhs.forget().take()));
623 NSCAP_ASSERT_NO_QUERY_NEEDED()Assert_NoQueryNeeded();;
624 return *this;
625 }
626
627 // Assign from |do_QueryInterface(expr)|.
628 template <typename U>
629 nsCOMPtr<T>& operator=(const nsQueryInterface<U> aRhs) {
630 assign_from_qi(aRhs, NS_GET_IID(T)(T::kIID));
631 return *this;
632 }
633
634 // Assign from |do_QueryInterface(expr, &rv)|.
635 template <typename U>
636 nsCOMPtr<T>& operator=(const nsQueryInterfaceWithError<U>& aRhs) {
637 assign_from_qi_with_error(aRhs, NS_GET_IID(T)(T::kIID));
638 return *this;
639 }
640
641 // Assign from |do_GetService(cid_expr)|.
642 nsCOMPtr<T>& operator=(const nsGetServiceByCID aRhs) {
643 assign_from_gs_cid(aRhs, NS_GET_IID(T)(T::kIID));
644 return *this;
645 }
646
647 // Assign from |do_GetService(cid_expr, &rv)|.
648 nsCOMPtr<T>& operator=(const nsGetServiceByCIDWithError& aRhs) {
649 assign_from_gs_cid_with_error(aRhs, NS_GET_IID(T)(T::kIID));
650 return *this;
651 }
652
653 // Assign from |do_GetService(contractid_expr)|.
654 nsCOMPtr<T>& operator=(const nsGetServiceByContractID aRhs) {
655 assign_from_gs_contractid(aRhs, NS_GET_IID(T)(T::kIID));
656 return *this;
657 }
658
659 // Assign from |do_GetService(contractid_expr, &rv)|.
660 nsCOMPtr<T>& operator=(const nsGetServiceByContractIDWithError& aRhs) {
661 assign_from_gs_contractid_with_error(aRhs, NS_GET_IID(T)(T::kIID));
662 return *this;
663 }
664
665 // Assign from |do_QueryReferent(ptr)|.
666 nsCOMPtr<T>& operator=(const nsQueryReferent& aRhs) {
667 assign_from_query_referent(aRhs, NS_GET_IID(T)(T::kIID));
668 return *this;
669 }
670
671 // And finally, anything else we might need to assign from can exploit the
672 // nsCOMPtr_helper facility.
673 nsCOMPtr<T>& operator=(const nsCOMPtr_helper& aRhs) {
674 assign_from_helper(aRhs, NS_GET_IID(T)(T::kIID));
675 NSCAP_ASSERT_NO_QUERY_NEEDED()Assert_NoQueryNeeded();;
676 return *this;
677 }
678
679 // Assign from |mozilla::NotNull|.
680 template <typename I,
681 typename = std::enable_if_t<std::is_convertible_v<I, nsCOMPtr<T>>>>
682 nsCOMPtr<T>& operator=(const mozilla::NotNull<I>& aSmartPtr) {
683 assign_assuming_AddRef(nsCOMPtr<T>(aSmartPtr.get()).forget().take());
684 return *this;
685 }
686
687 // Assign from |mozilla::MovingNotNull|.
688 template <typename I,
689 typename = std::enable_if_t<std::is_convertible_v<I, nsCOMPtr<T>>>>
690 nsCOMPtr<T>& operator=(mozilla::MovingNotNull<I>&& aSmartPtr) {
691 assign_assuming_AddRef(
692 nsCOMPtr<T>(std::move(aSmartPtr).unwrapBasePtr()).forget().take());
693 return *this;
694 }
695
696 // Defined in OwningNonNull.h
697 template <class U>
698 nsCOMPtr<T>& operator=(const mozilla::OwningNonNull<U>& aOther);
699
700 // Exchange ownership with |aRhs|; can save a pair of refcount operations.
701 void swap(nsCOMPtr<T>& aRhs) {
702 T* temp = aRhs.mRawPtr;
703 NSCAP_LOG_ASSIGNMENT(&aRhs, mRawPtr)if (mRawPtr != nullptr) NS_LogCOMPtrAddRef((&aRhs), ToSupports
(mRawPtr))
;
704 NSCAP_LOG_ASSIGNMENT(this, temp)if (temp != nullptr) NS_LogCOMPtrAddRef((this), ToSupports(temp
))
;
705 NSCAP_LOG_RELEASE(this, mRawPtr)if (mRawPtr) NS_LogCOMPtrRelease((this), ToSupports(mRawPtr));
706 NSCAP_LOG_RELEASE(&aRhs, temp)if (temp) NS_LogCOMPtrRelease((&aRhs), ToSupports(temp));
707 aRhs.mRawPtr = mRawPtr;
708 mRawPtr = temp;
709 // |aRhs| maintains the same invariants, so we don't need to
710 // |NSCAP_ASSERT_NO_QUERY_NEEDED|
711 }
712
713 // Exchange ownership with |aRhs|; can save a pair of refcount operations.
714 void swap(T*& aRhs) {
715 T* temp = aRhs;
716 NSCAP_LOG_ASSIGNMENT(this, temp)if (temp != nullptr) NS_LogCOMPtrAddRef((this), ToSupports(temp
))
;
717 NSCAP_LOG_RELEASE(this, mRawPtr)if (mRawPtr) NS_LogCOMPtrRelease((this), ToSupports(mRawPtr));
718 aRhs = reinterpret_cast<T*>(mRawPtr);
719 mRawPtr = temp;
720 NSCAP_ASSERT_NO_QUERY_NEEDED()Assert_NoQueryNeeded();;
721 }
722
723 // Other pointer operators
724
725 // Return the value of mRawPtr and null out mRawPtr. Useful for
726 // already_AddRefed return values.
727 already_AddRefed<T> MOZ_MAY_CALL_AFTER_MUST_RETURN forget() {
728 T* temp = nullptr;
729 swap(temp);
730 return already_AddRefed<T>(temp);
731 }
732
733 // Set the target of aRhs to the value of mRawPtr and null out mRawPtr.
734 // Useful to avoid unnecessary AddRef/Release pairs with "out" parameters
735 // where aRhs bay be a T** or an I** where I is a base class of T.
736 template <typename I>
737 void forget(I** aRhs) {
738 NS_ASSERTION(aRhs, "Null pointer passed to forget!")do { if (!(aRhs)) { NS_DebugBreak(NS_DEBUG_ASSERTION, "Null pointer passed to forget!"
, "aRhs", "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/nsCOMPtr.h"
, 738); MOZ_PretendNoReturn(); } } while (0)
;
739 NSCAP_LOG_RELEASE(this, mRawPtr)if (mRawPtr) NS_LogCOMPtrRelease((this), ToSupports(mRawPtr));
740 *aRhs = get();
741 mRawPtr = nullptr;
742 }
743
744 // Prefer the implicit conversion provided automatically by
745 // |operator T*() const|. Use |get()| to resolve ambiguity or to get a
746 // castable pointer.
747 T* get() const { return reinterpret_cast<T*>(mRawPtr); }
748
749 // Makes an nsCOMPtr act like its underlying raw pointer type whenever it is
750 // used in a context where a raw pointer is expected. It is this operator
751 // that makes an nsCOMPtr substitutable for a raw pointer.
752 //
753 // Prefer the implicit use of this operator to calling |get()|, except where
754 // necessary to resolve ambiguity.
755 operator T*() const& { return get(); }
756
757 // Don't allow implicit conversion of temporary nsCOMPtr to raw pointer,
758 // because the refcount might be one and the pointer will immediately become
759 // invalid.
760 operator T*() const&& = delete;
761
762 // Needed to avoid the deleted operator above
763 explicit operator bool() const { return !!mRawPtr; }
764
765 T* operator->() const MOZ_NO_ADDREF_RELEASE_ON_RETURN {
766 MOZ_ASSERT(mRawPtr != nullptr,do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mRawPtr != nullptr)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mRawPtr != nullptr))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("mRawPtr != nullptr"
" (" "You can't dereference a NULL nsCOMPtr with operator->()."
")", "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/nsCOMPtr.h"
, 767); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mRawPtr != nullptr"
") (" "You can't dereference a NULL nsCOMPtr with operator->()."
")"); do { MOZ_CrashSequence(__null, 767); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
767 "You can't dereference a NULL nsCOMPtr with operator->().")do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mRawPtr != nullptr)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mRawPtr != nullptr))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("mRawPtr != nullptr"
" (" "You can't dereference a NULL nsCOMPtr with operator->()."
")", "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/nsCOMPtr.h"
, 767); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mRawPtr != nullptr"
") (" "You can't dereference a NULL nsCOMPtr with operator->()."
")"); do { MOZ_CrashSequence(__null, 767); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
768 return get();
769 }
770
771 // These are not intended to be used by clients. See |address_of| below.
772 nsCOMPtr<T>* get_address() { return this; }
773 const nsCOMPtr<T>* get_address() const { return this; }
774
775 public:
776 T& operator*() const {
777 MOZ_ASSERT(mRawPtr != nullptr,do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mRawPtr != nullptr)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mRawPtr != nullptr))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("mRawPtr != nullptr"
" (" "You can't dereference a NULL nsCOMPtr with operator*()."
")", "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/nsCOMPtr.h"
, 778); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mRawPtr != nullptr"
") (" "You can't dereference a NULL nsCOMPtr with operator*()."
")"); do { MOZ_CrashSequence(__null, 778); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
778 "You can't dereference a NULL nsCOMPtr with operator*().")do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mRawPtr != nullptr)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mRawPtr != nullptr))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("mRawPtr != nullptr"
" (" "You can't dereference a NULL nsCOMPtr with operator*()."
")", "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/nsCOMPtr.h"
, 778); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mRawPtr != nullptr"
") (" "You can't dereference a NULL nsCOMPtr with operator*()."
")"); do { MOZ_CrashSequence(__null, 778); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
779 return *get();
780 }
781
782 T** StartAssignment() {
783#ifndef NSCAP_FEATURE_INLINE_STARTASSIGNMENT
784 return reinterpret_cast<T**>(begin_assignment());
785#else
786 assign_assuming_AddRef(nullptr);
787 return reinterpret_cast<T**>(&mRawPtr);
788#endif
789 }
790};
791
792template <typename T>
793inline void ImplCycleCollectionUnlink(nsCOMPtr<T>& aField) {
794 aField = nullptr;
795}
796
797template <typename T>
798inline void ImplCycleCollectionTraverse(
799 nsCycleCollectionTraversalCallback& aCallback, nsCOMPtr<T>& aField,
800 const char* aName, uint32_t aFlags = 0) {
801 CycleCollectionNoteChild(aCallback, aField.get(), aName, aFlags);
802}
803
804template <class T>
805void nsCOMPtr<T>::assign_with_AddRef(T* aRawPtr) {
806 if (aRawPtr) {
807 NSCAP_ADDREF(this, aRawPtr)mozilla::RefPtrTraits<std::remove_reference_t<decltype(
*aRawPtr)>>::AddRef(aRawPtr)
;
808 }
809 assign_assuming_AddRef(aRawPtr);
810}
811
812template <class T>
813template <typename U>
814void nsCOMPtr<T>::assign_from_qi(const nsQueryInterface<U> aQI,
815 const nsIID& aIID) {
816 // Allow QIing to nsISupports from nsISupports as a special-case, since
817 // SameCOMIdentity uses it.
818 static_assert(
819 std::is_same_v<T, nsISupports> ||
820 !(std::is_same_v<T, U> || std::is_base_of_v<T, U>),
821 "don't use do_QueryInterface for compile-time-determinable casts");
822 void* newRawPtr;
823 if (NS_FAILED(aQI(aIID, &newRawPtr))((bool)(__builtin_expect(!!(NS_FAILED_impl(aQI(aIID, &newRawPtr
))), 0)))
) {
824 newRawPtr = nullptr;
825 }
826 assign_assuming_AddRef(static_cast<T*>(newRawPtr));
827}
828
829template <class T>
830template <typename U>
831void nsCOMPtr<T>::assign_from_qi_with_error(
832 const nsQueryInterfaceWithError<U>& aQI, const nsIID& aIID) {
833 static_assert(
834 !(std::is_same_v<T, U> || std::is_base_of_v<T, U>),
835 "don't use do_QueryInterface for compile-time-determinable casts");
836 void* newRawPtr;
837 if (NS_FAILED(aQI(aIID, &newRawPtr))((bool)(__builtin_expect(!!(NS_FAILED_impl(aQI(aIID, &newRawPtr
))), 0)))
) {
838 newRawPtr = nullptr;
839 }
840 assign_assuming_AddRef(static_cast<T*>(newRawPtr));
841}
842
843template <class T>
844void nsCOMPtr<T>::assign_from_gs_cid(const nsGetServiceByCID aGS,
845 const nsIID& aIID) {
846 void* newRawPtr;
847 if (NS_FAILED(aGS(aIID, &newRawPtr))((bool)(__builtin_expect(!!(NS_FAILED_impl(aGS(aIID, &newRawPtr
))), 0)))
) {
848 newRawPtr = nullptr;
849 }
850 assign_assuming_AddRef(static_cast<T*>(newRawPtr));
851}
852
853template <class T>
854void nsCOMPtr<T>::assign_from_gs_cid_with_error(
855 const nsGetServiceByCIDWithError& aGS, const nsIID& aIID) {
856 void* newRawPtr;
857 if (NS_FAILED(aGS(aIID, &newRawPtr))((bool)(__builtin_expect(!!(NS_FAILED_impl(aGS(aIID, &newRawPtr
))), 0)))
) {
858 newRawPtr = nullptr;
859 }
860 assign_assuming_AddRef(static_cast<T*>(newRawPtr));
861}
862
863template <class T>
864void nsCOMPtr<T>::assign_from_gs_contractid(const nsGetServiceByContractID aGS,
865 const nsIID& aIID) {
866 void* newRawPtr;
867 if (NS_FAILED(aGS(aIID, &newRawPtr))((bool)(__builtin_expect(!!(NS_FAILED_impl(aGS(aIID, &newRawPtr
))), 0)))
) {
868 newRawPtr = nullptr;
869 }
870 assign_assuming_AddRef(static_cast<T*>(newRawPtr));
871}
872
873template <class T>
874void nsCOMPtr<T>::assign_from_gs_contractid_with_error(
875 const nsGetServiceByContractIDWithError& aGS, const nsIID& aIID) {
876 void* newRawPtr;
877 if (NS_FAILED(aGS(aIID, &newRawPtr))((bool)(__builtin_expect(!!(NS_FAILED_impl(aGS(aIID, &newRawPtr
))), 0)))
) {
878 newRawPtr = nullptr;
879 }
880 assign_assuming_AddRef(static_cast<T*>(newRawPtr));
881}
882
883template <class T>
884void nsCOMPtr<T>::assign_from_query_referent(
885 const nsQueryReferent& aQueryReferent, const nsIID& aIID) {
886 void* newRawPtr;
887 if (NS_FAILED(aQueryReferent(aIID, &newRawPtr))((bool)(__builtin_expect(!!(NS_FAILED_impl(aQueryReferent(aIID
, &newRawPtr))), 0)))
) {
888 newRawPtr = nullptr;
889 }
890 assign_assuming_AddRef(static_cast<T*>(newRawPtr));
891}
892
893template <class T>
894void nsCOMPtr<T>::assign_from_helper(const nsCOMPtr_helper& helper,
895 const nsIID& aIID) {
896 void* newRawPtr;
897 if (NS_FAILED(helper(aIID, &newRawPtr))((bool)(__builtin_expect(!!(NS_FAILED_impl(helper(aIID, &
newRawPtr))), 0)))
) {
898 newRawPtr = nullptr;
899 }
900 assign_assuming_AddRef(static_cast<T*>(newRawPtr));
901}
902
903template <class T>
904void** nsCOMPtr<T>::begin_assignment() {
905 assign_assuming_AddRef(nullptr);
906 union {
907 T** mT;
908 void** mVoid;
909 } result;
910 result.mT = &mRawPtr;
911 return result.mVoid;
912}
913
914template <class T>
915inline nsCOMPtr<T>* address_of(nsCOMPtr<T>& aPtr) {
916 return aPtr.get_address();
917}
918
919template <class T>
920inline const nsCOMPtr<T>* address_of(const nsCOMPtr<T>& aPtr) {
921 return aPtr.get_address();
922}
923
924/**
925 * This class is designed to be used for anonymous temporary objects in the
926 * argument list of calls that return COM interface pointers, e.g.,
927 *
928 * nsCOMPtr<IFoo> fooP;
929 * ...->QueryInterface(iid, getter_AddRefs(fooP))
930 *
931 * DO NOT USE THIS TYPE DIRECTLY IN YOUR CODE. Use |getter_AddRefs()| instead.
932 *
933 * When initialized with a |nsCOMPtr|, as in the example above, it returns
934 * a |void**|, a |T**|, or an |nsISupports**| as needed, that the outer call
935 * (|QueryInterface| in this case) can fill in.
936 *
937 * This type should be a nested class inside |nsCOMPtr<T>|.
938 */
939template <class T>
940class nsGetterAddRefs {
941 public:
942 explicit nsGetterAddRefs(nsCOMPtr<T>& aSmartPtr)
943 : mTargetSmartPtr(aSmartPtr) {}
944
945#if defined(NSCAP_FEATURE_TEST_DONTQUERY_CASES) || \
946 defined(NSCAP_LOG_EXTERNAL_ASSIGNMENT)
947 ~nsGetterAddRefs() {
948# ifdef NSCAP_LOG_EXTERNAL_ASSIGNMENT
949 NSCAP_LOG_ASSIGNMENT(reinterpret_cast<void*>(address_of(mTargetSmartPtr)),if (mTargetSmartPtr.get() != nullptr) NS_LogCOMPtrAddRef((reinterpret_cast
<void*>(address_of(mTargetSmartPtr))), ToSupports(mTargetSmartPtr
.get()))
950 mTargetSmartPtr.get())if (mTargetSmartPtr.get() != nullptr) NS_LogCOMPtrAddRef((reinterpret_cast
<void*>(address_of(mTargetSmartPtr))), ToSupports(mTargetSmartPtr
.get()))
;
951# endif
952
953# ifdef NSCAP_FEATURE_TEST_DONTQUERY_CASES
954 mTargetSmartPtr.Assert_NoQueryNeeded();
955# endif
956 }
957#endif
958
959 operator void**() {
960 return reinterpret_cast<void**>(mTargetSmartPtr.StartAssignment());
961 }
962
963 operator T**() { return mTargetSmartPtr.StartAssignment(); }
964 T*& operator*() { return *(mTargetSmartPtr.StartAssignment()); }
965
966 private:
967 nsCOMPtr<T>& mTargetSmartPtr;
968};
969
970template <>
971class nsGetterAddRefs<nsISupports> {
972 public:
973 explicit nsGetterAddRefs(nsCOMPtr<nsISupports>& aSmartPtr)
974 : mTargetSmartPtr(aSmartPtr) {}
975
976#ifdef NSCAP_LOG_EXTERNAL_ASSIGNMENT
977 ~nsGetterAddRefs() {
978 NSCAP_LOG_ASSIGNMENT(reinterpret_cast<void*>(address_of(mTargetSmartPtr)),if (mTargetSmartPtr.get() != nullptr) NS_LogCOMPtrAddRef((reinterpret_cast
<void*>(address_of(mTargetSmartPtr))), ToSupports(mTargetSmartPtr
.get()))
979 mTargetSmartPtr.get())if (mTargetSmartPtr.get() != nullptr) NS_LogCOMPtrAddRef((reinterpret_cast
<void*>(address_of(mTargetSmartPtr))), ToSupports(mTargetSmartPtr
.get()))
;
980 }
981#endif
982
983 operator void**() {
984 return reinterpret_cast<void**>(mTargetSmartPtr.StartAssignment());
985 }
986
987 operator nsISupports**() { return mTargetSmartPtr.StartAssignment(); }
988 nsISupports*& operator*() { return *(mTargetSmartPtr.StartAssignment()); }
989
990 private:
991 nsCOMPtr<nsISupports>& mTargetSmartPtr;
992};
993
994template <class T>
995inline nsGetterAddRefs<T> getter_AddRefs(nsCOMPtr<T>& aSmartPtr) {
996 return nsGetterAddRefs<T>(aSmartPtr);
997}
998
999template <class T, class DestinationType>
1000inline nsresult CallQueryInterface(
1001 T* aSource, nsGetterAddRefs<DestinationType> aDestination) {
1002 return CallQueryInterface(aSource,
1003 static_cast<DestinationType**>(aDestination));
1004}
1005
1006// Comparing two |nsCOMPtr|s
1007
1008template <class T, class U>
1009inline bool operator==(const nsCOMPtr<T>& aLhs, const nsCOMPtr<U>& aRhs) {
1010 return static_cast<const T*>(aLhs.get()) == static_cast<const U*>(aRhs.get());
1011}
1012
1013template <class T, class U>
1014inline bool operator!=(const nsCOMPtr<T>& aLhs, const nsCOMPtr<U>& aRhs) {
1015 return static_cast<const T*>(aLhs.get()) != static_cast<const U*>(aRhs.get());
1016}
1017
1018// Comparing an |nsCOMPtr| to a raw pointer
1019
1020template <class T, class U>
1021inline bool operator==(const nsCOMPtr<T>& aLhs, const U* aRhs) {
1022 return static_cast<const T*>(aLhs.get()) == aRhs;
1023}
1024
1025template <class T, class U>
1026inline bool operator==(const U* aLhs, const nsCOMPtr<T>& aRhs) {
1027 return aLhs == static_cast<const T*>(aRhs.get());
1028}
1029
1030template <class T, class U>
1031inline bool operator!=(const nsCOMPtr<T>& aLhs, const U* aRhs) {
1032 return static_cast<const T*>(aLhs.get()) != aRhs;
1033}
1034
1035template <class T, class U>
1036inline bool operator!=(const U* aLhs, const nsCOMPtr<T>& aRhs) {
1037 return aLhs != static_cast<const T*>(aRhs.get());
1038}
1039
1040template <class T, class U>
1041inline bool operator==(const nsCOMPtr<T>& aLhs, U* aRhs) {
1042 return static_cast<const T*>(aLhs.get()) == const_cast<const U*>(aRhs);
1043}
1044
1045template <class T, class U>
1046inline bool operator==(U* aLhs, const nsCOMPtr<T>& aRhs) {
1047 return const_cast<const U*>(aLhs) == static_cast<const T*>(aRhs.get());
1048}
1049
1050template <class T, class U>
1051inline bool operator!=(const nsCOMPtr<T>& aLhs, U* aRhs) {
1052 return static_cast<const T*>(aLhs.get()) != const_cast<const U*>(aRhs);
1053}
1054
1055template <class T, class U>
1056inline bool operator!=(U* aLhs, const nsCOMPtr<T>& aRhs) {
1057 return const_cast<const U*>(aLhs) != static_cast<const T*>(aRhs.get());
1058}
1059
1060// Comparing an |nsCOMPtr| to |nullptr|
1061
1062template <class T>
1063inline bool operator==(const nsCOMPtr<T>& aLhs, decltype(nullptr)) {
1064 return aLhs.get() == nullptr;
1065}
1066
1067template <class T>
1068inline bool operator==(decltype(nullptr), const nsCOMPtr<T>& aRhs) {
1069 return nullptr == aRhs.get();
1070}
1071
1072template <class T>
1073inline bool operator!=(const nsCOMPtr<T>& aLhs, decltype(nullptr)) {
1074 return aLhs.get() != nullptr;
1075}
1076
1077template <class T>
1078inline bool operator!=(decltype(nullptr), const nsCOMPtr<T>& aRhs) {
1079 return nullptr != aRhs.get();
1080}
1081
1082// Comparing any two [XP]COM objects for identity
1083
1084inline bool SameCOMIdentity(nsISupports* aLhs, nsISupports* aRhs) {
1085 return nsCOMPtr<nsISupports>(do_QueryInterface(aLhs)) ==
1086 nsCOMPtr<nsISupports>(do_QueryInterface(aRhs));
1087}
1088
1089template <class SourceType, class DestinationType>
1090inline nsresult CallQueryInterface(nsCOMPtr<SourceType>& aSourcePtr,
1091 DestinationType** aDestPtr) {
1092 return CallQueryInterface(aSourcePtr.get(), aDestPtr);
1093}
1094
1095template <class T>
1096RefPtr<T>::RefPtr(const nsQueryReferent& aQueryReferent) {
1097 void* newRawPtr;
1098 if (NS_FAILED(aQueryReferent(NS_GET_IID(T), &newRawPtr))((bool)(__builtin_expect(!!(NS_FAILED_impl(aQueryReferent((T::
kIID), &newRawPtr))), 0)))
) {
1099 newRawPtr = nullptr;
1100 }
1101 mRawPtr = static_cast<T*>(newRawPtr);
1102}
1103
1104template <class T>
1105RefPtr<T>::RefPtr(const nsCOMPtr_helper& aHelper) {
1106 void* newRawPtr;
1107 if (NS_FAILED(aHelper(NS_GET_IID(T), &newRawPtr))((bool)(__builtin_expect(!!(NS_FAILED_impl(aHelper((T::kIID),
&newRawPtr))), 0)))
) {
1108 newRawPtr = nullptr;
1109 }
1110 mRawPtr = static_cast<T*>(newRawPtr);
1111}
1112
1113template <class T>
1114RefPtr<T>& RefPtr<T>::operator=(const nsQueryReferent& aQueryReferent) {
1115 void* newRawPtr;
1116 if (NS_FAILED(aQueryReferent(NS_GET_IID(T), &newRawPtr))((bool)(__builtin_expect(!!(NS_FAILED_impl(aQueryReferent((T::
kIID), &newRawPtr))), 0)))
) {
1117 newRawPtr = nullptr;
1118 }
1119 assign_assuming_AddRef(static_cast<T*>(newRawPtr));
1120 return *this;
1121}
1122
1123template <class T>
1124RefPtr<T>& RefPtr<T>::operator=(const nsCOMPtr_helper& aHelper) {
1125 void* newRawPtr;
1126 if (NS_FAILED(aHelper(NS_GET_IID(T), &newRawPtr))((bool)(__builtin_expect(!!(NS_FAILED_impl(aHelper((T::kIID),
&newRawPtr))), 0)))
) {
1127 newRawPtr = nullptr;
1128 }
1129 assign_assuming_AddRef(static_cast<T*>(newRawPtr));
1130 return *this;
1131}
1132
1133template <class T>
1134inline already_AddRefed<T> do_AddRef(const nsCOMPtr<T>& aObj) {
1135 nsCOMPtr<T> ref(aObj);
1136 return ref.forget();
1137}
1138
1139// MOZ_DBG support
1140
1141template <class T>
1142std::ostream& operator<<(std::ostream& aOut, const nsCOMPtr<T>& aObj) {
1143 return mozilla::DebugValue(aOut, aObj.get());
1144}
1145
1146// ToRefPtr allows to move an nsCOMPtr<T> into a RefPtr<T>. Be mindful when
1147// using this, because usually RefPtr<T> should only be used with concrete T and
1148// nsCOMPtr<T> should only be used with XPCOM interface T.
1149template <class T>
1150RefPtr<T> ToRefPtr(nsCOMPtr<T>&& aObj) {
1151 return aObj.forget();
1152}
1153
1154// Integration with ResultExtensions.h
1155template <typename R>
1156auto ResultRefAsParam(nsCOMPtr<R>& aResult) {
1157 return getter_AddRefs(aResult);
1158}
1159
1160namespace mozilla::detail {
1161template <typename T>
1162struct outparam_as_pointer;
1163
1164template <typename T>
1165struct outparam_as_pointer<nsGetterAddRefs<T>> {
1166 using type = T**;
1167};
1168} // namespace mozilla::detail
1169
1170template <typename T>
1171struct fmt::formatter<nsCOMPtr<T>> : fmt::ostream_formatter {};
1172
1173#endif // !defined(nsCOMPtr_h_)